npx skills add ...
npx skills add giuseppe-trisciuoglio/developer-kit --skill sdd-init
Initialize Spec-Driven Development context — detects tech stack, conventions, architecture patterns, and bootstraps persistence backends. Triggers on 'sdd-init', 'init sdd', 'setup sdd', 'initialize sdd', 'setup project', 'initialize project context'. Creates/updates docs/specs/architecture.md & ontology.md (Constitution), and populates knowledge-graph.json.
npx skills add giuseppe-trisciuoglio/developer-kit --skill sdd-init
Initialize Spec-Driven Development (SDD) in the current project. Detects tech stack, conventions, architecture patterns, and bootstraps all persistence backends (Constitution + Knowledge Graph).
Trigger phrases:
Detect the primary language and framework:
Scan for existing patterns:
Analyze project structure for architectural patterns:
Use AskUserQuestion to prompt:
The Constitution files (architecture.md, ontology.md) don't exist yet.
Option 1: Create both (Recommended) - Sets up architectural DNA and domain language Option 2: Create architecture.md only Option 3: Create ontology.md only
Option 4: Skip for now - I'll detect context but skip Constitution
If user chooses option 1-3, delegate to /developer-kit-specs:constitution create with the detected context.
Read and display current Constitution files with detected context as comparison.
Create or update docs/specs/knowledge-graph.json with initial discoveries:
After creating KG, validate it exists and has valid JSON:
Return a JSON object with:
Display result in a structured format:
| Skill | Integration Point |
|---|---|
constitution | Created/updated by sdd-init if missing |
knowledge-graph | Populated by sdd-init with initial discoveries |
brainstorm | Should read Constitution before starting |
spec-to-tasks | Should validate against KG and Constitution |
task-implementation | Should check KG for existing patterns |
| Error | Recovery |
|---|---|
| Cannot create docs/specs/ | Ask user to create directory manually |
| KG JSON invalid | Show error, keep raw file, suggest validation |
| Constitution delegate fails | Fall back to inline creation with template |