sdd:sdd-infrastructure
Core infrastructure for Specification-Driven Development workflow. Contains templates for specs/plans/tasks, bash scripts for feature management, and constitution framework for project governance. This skill powers the /sdd commands with reusable, versioned templates and automation.
What this skill does
# SDD Infrastructure
This skill provides the complete infrastructure for the Specification-Driven Development (SDD) workflow, including templates, scripts, and documentation that power all `/sdd:*` commands.
## Quick Reference
| Workflow Phase | Component | Location | Used By |
|----------------|-----------|----------|---------|
| **Constitution** | Constitution template | `assets/constitution/constitution-template.md` | `/sdd:constitution` |
| **Specify** | Spec template | `templates/spec-template.md` | `/sdd:specify` |
| **Specify** | Feature creation script | `scripts/create-new-feature.sh` | `/sdd:specify` |
| **Plan** | Plan template | `templates/plan-template.md` | `/sdd:plan` |
| **Plan** | Setup script | `scripts/setup-plan.sh` | `/sdd:plan` |
| **Tasks** | Tasks template | `templates/tasks-template.md` | `/sdd:tasks` |
| **Analyze** | Checklist template | `templates/checklist-template.md` | `/sdd:checklist` |
| **Implement** | Agent file template | `templates/agent-file-template.md` | `/sdd:implement` |
| **All phases** | Common utilities | `scripts/common.sh` | All scripts |
| **All phases** | Prerequisites check | `scripts/check-prerequisites.sh` | Multiple commands |
| **All phases** | Agent context sync | `scripts/update-agent-context.sh` | Multiple commands |
## Component Types
### Templates (5 files)
Templates define the structure for SDD artifacts. Each template includes:
- Purpose and usage context
- Required sections and fields
- Customization guidelines
- Examples
**Available templates:**
- `spec-template.md` - Feature specifications with user stories
- `plan-template.md` - Technical implementation plans
- `tasks-template.md` - Independent, testable user stories
- `checklist-template.md` - Quality validation checklists
- `agent-file-template.md` - AI agent context and guidelines
๐ See [Template Guide](references/template-guide.md) for detailed documentation.
### Scripts (5 files)
Bash scripts automate common SDD workflow tasks:
- `common.sh` - Shared utilities (feature paths, validation)
- `create-new-feature.sh` - Initialize new feature with branch and spec
- `setup-plan.sh` - Create plan from template
- `check-prerequisites.sh` - Validate feature readiness
- `update-agent-context.sh` - Sync AI agent configuration
**Scripts use `.sdd/` directory for runtime content:**
- `.sdd/codebase/` - Auto-generated codebase documentation
- `.sdd/memory/` - Project constitution and principles
- `.sdd/features/<name>/` - Feature-specific artifacts
๐ See [Script Guide](references/script-guide.md) for parameters and examples.
### Constitution Framework
The constitution defines project-specific principles and constraints:
- `assets/constitution/constitution-template.md` - Template for project constitution
Commands copy this to `.sdd/memory/constitution.md` and load it into Claude's memory for context-aware development.
๐ See [Constitution Guide](references/constitution-guide.md) for principles catalog.
## Architecture
**Plugin-managed (versioned):**
```
plugins/sdd/skills/sdd-infrastructure/
โโโ SKILL.md # This file
โโโ templates/ # Reusable templates
โโโ scripts/ # Automation scripts
โโโ assets/constitution/ # Constitution template
โโโ references/ # Extended documentation
```
**User repository (runtime, gitignored):**
```
.sdd/
โโโ .gitignore # Ignore runtime content
โโโ codebase/ # Auto-generated docs (from /map)
โ โโโ STACK.md
โ โโโ ARCHITECTURE.md
โ โโโ ...
โโโ memory/
โ โโโ constitution.md # Project principles
โโโ features/<name>/ # Feature artifacts
โโโ spec.md
โโโ plan.md
โโโ tasks.md
```
## Usage Patterns
### From Commands
Commands invoke this skill's resources using `${CLAUDE_PLUGIN_ROOT}`:
```bash
# Resolve plugin root (once per command)
PLUGIN_ROOT=$(python3 /tmp/cpr.py sdd)
# Use templates
cat "$PLUGIN_ROOT"/skills/sdd-infrastructure/templates/spec-template.md
# Execute scripts
"$PLUGIN_ROOT"/skills/sdd-infrastructure/scripts/create-new-feature.sh --json "$ARGS"
```
### Local Overrides
Users can override templates by creating `.sdd/templates/<template-name>.md`. Commands check for local overrides before using plugin templates.
### Script Integration
Scripts source `common.sh` for shared utilities:
```bash
#!/usr/bin/env bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/common.sh"
# Now use shared functions
get_feature_paths "$FEATURE_NAME"
```
## Learn More
- **[Workflow Overview](references/workflow-overview.md)** - Complete SDD process from constitution to implementation
- **[Template Guide](references/template-guide.md)** - Deep dive on each template with customization examples
- **[Script Guide](references/script-guide.md)** - Script parameters, examples, and extension patterns
- **[Constitution Guide](references/constitution-guide.md)** - Creating and maintaining project constitutions
## Related Skills
- **sdd:code-mapping** - Generates codebase documentation (uses this skill's scripts)
## Version
This skill is part of SDD plugin v1.0.0 (migrated from `.specify` to `.sdd` architecture).
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.