一键导入
sdd-init
SDD Project Initialization - Set up a new SDD change project in PKM-AI. Trigger: When starting a new SDD change (sdd-init command or new change requested).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
SDD Project Initialization - Set up a new SDD change project in PKM-AI. Trigger: When starting a new SDD change (sdd-init command or new change requested).
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
SDD Apply Phase - Execute implementation with TDD support. Uses PKM-AI block storage with block_type="outline" for tasks and "permanent" for progress. Supports RED → GREEN → REFACTOR TDD cycle and standard mode. Trigger: When assigned as sdd-apply phase sub-agent.
SDD Archive Phase - Create final archive summary of the completed change. Uses PKM-AI block storage with block_type="permanent". Trigger: When assigned as sdd-archive phase sub-agent.
SDD Design Phase - Create architectural and technical design with AD-1, AD-2 format. Uses PKM-AI block storage with block_type="permanent". Trigger: When assigned as sdd-design phase sub-agent.
SDD Explore Phase - Research and gather information about a topic. Trigger: When assigned as sdd-explore phase sub-agent.
SDD Proposal Phase - Create a proposal for the change. Trigger: When assigned as sdd-propose phase sub-agent.
SDD Specification Phase - Create detailed specification with Given/When/Then scenarios. Uses PKM-AI block storage with block_type="structure". Trigger: When assigned as sdd-spec phase sub-agent.
| name | sdd-init |
| description | SDD Project Initialization - Set up a new SDD change project in PKM-AI. Trigger: When starting a new SDD change (sdd-init command or new change requested). |
| license | MIT |
| metadata | {"author":"pkm-ai","version":"1.0"} |
Initialize a new SDD (Spec-Driven Development) change project in PKM-AI. This creates the foundational project context block that all subsequent phases will reference.
/sdd-init <change-name>change-name: Name of the change (e.g., mcp-workflow, auth-system)project-name: Name of the project (e.g., hodei-pkm)description: Brief description of the change (optional)Change names must:
[
{
"tool": "search_blocks",
"args": {
"query": "sdd/{change-name}",
"tags": ["sdd"],
"limit": 10
}
}
]
If found, report existing and ask for confirmation before proceeding.
Create the foundational project context block:
[
{
"tool": "create_block",
"args": {
"block_type": "structure",
"title": "sdd/{change-name}/project",
"content": "# SDD Project: {change-name}\n\n## Overview\n{One sentence description of the change}\n\n## Project Metadata\n```json\n{\n \"change\": \"{change-name}\",\n \"project\": \"{project-name}\",\n \"status\": \"active\",\n \"created\": \"{ISO date}\",\n \"phases\": {\n \"explore\": null,\n \"proposal\": null,\n \"spec\": null,\n \"design\": null,\n \"tasks\": null,\n \"apply\": null,\n \"verify\": null,\n \"archive\": null\n },\n \"mode\": \"pkmai\",\n \"tdd\": false\n}\n```\n\n## Dependencies\n- {list of dependent changes, if any}\n- None if this is a greenfield change\n\n## Team Context\n- Owner: {owner or \"unassigned\"}\n- Phases handled by: {team or \"agent pipeline\"}\n\n## Notes\n{Any initial notes about this change}",
"tags": ["sdd", "project", "sdd-{change-name}"]
}
}
]
Create a tracking block for phase status:
[
{
"tool": "create_block",
"args": {
"block_type": "outline",
"title": "sdd/{change-name}/tracker",
"content": "# SDD Phase Tracker: {change-name}\n\n## Phase Status\n\n| Phase | Status | ULID | Completed |\n|-------|--------|------|----------|\n| explore | pending | - | - |\n| proposal | pending | - | - |\n| spec | pending | - | - |\n| design | pending | - | - |\n| tasks | pending | - | - |\n| apply | pending | - | - |\n| verify | pending | - | - |\n| archive | pending | - | - |\n\n## Current Phase\nNone (not started)\n\n## Next Action\nRun `sdd-explore` to begin research\n\n## Blocked Phases\nNone",
"tags": ["sdd", "tracker", "sdd-{change-name}"]
}
}
]
If user provided a topic, create an initial discovery block:
[
{
"tool": "create_block",
"args": {
"block_type": "permanent",
"title": "sdd/{change-name}/discovery",
"content": "# Initial Discovery: {change-name}\n\n## Topic\n{user-provided topic or \"Not specified\"}\n\n## Initial Questions\n- {question 1}\n- {question 2}\n\n## Resources to Explore\n- {resource 1}\n- {resource 2}\n\n## Notes\n{Any initial notes from the user}",
"tags": ["sdd", "discovery", "sdd-{change-name}"]
}
}
]
Create the initial link structure:
[
{
"tool": "create_link",
"args": {
"source_id": "{project-context-ulid}",
"target_id": "{tracker-ulid}",
"link_type": "contains"
}
}
]
Return to orchestrator:
## SDD Initialization Complete
**Change**: {change-name}
**Project**: {project-name}
**Mode**: pkmai
### Artifacts Created
| Artifact | ULID | Type |
|----------|------|------|
| sdd/{change-name}/project | {ulid} | structure |
| sdd/{change-name}/tracker | {ulid} | outline |
| sdd/{change-name}/discovery | {ulid} | permanent |
### Links Created
| From | To | Type |
|------|----|------|
| {project-ulid} | {tracker-ulid} | contains |
### Next Steps
1. Run `sdd-explore` to begin research phase
2. Or use `/sdd-new {change-name}` to run full pipeline
### Commands
/sdd-explore {change-name} # Start exploration /sdd-propose {change-name} # Propose after explore /sdd-spec {change-name} # Create spec after proposal /sdd-design {change-name} # Design after spec /sdd-tasks {change-name} # Break down into tasks /sdd-apply {change-name} # Implement tasks /sdd-verify {change-name} # Verify implementation /sdd-archive {change-name} # Archive completed change
### Status
SDD project initialized. Ready for exploration phase.
# SDD Project: {change-name}
## Overview
{Description}
## Metadata
```json
{
"change": "{change-name}",
"project": "{project-name}",
"status": "active",
"created": "{ISO date}",
"phases": {
"explore": null,
"proposal": null,
"spec": null,
"design": null,
"tasks": null,
"apply": null,
"verify": null,
"archive": null
},
"mode": "pkmai",
"tdd": false
}
{List or "None"}
## Phase Tracker Block Template
```markdown
# SDD Phase Tracker: {change-name}
## Phase Status
| Phase | Status | ULID | Completed |
|-------|--------|------|----------|
| explore | pending | - | - |
| proposal | pending | - | - |
| spec | pending | - | - |
| design | pending | - | - |
| tasks | pending | - | - |
| apply | pending | - | - |
| verify | pending | - | - |
| archive | pending | - | - |
## Current Phase
None
## Next Action
Run `sdd-explore`
structure block type for project contextoutline block type for trackerpermanent block type for discoverysdd and sdd-{change-name}contains relationship[
{
"tool": "search_blocks",
"args": {
"query": "sdd/{change-name}",
"tags": ["sdd"]
}
},
{
"tool": "create_block",
"args": {
"block_type": "structure",
"title": "sdd/{change-name}/project",
"content": "{project context content}",
"tags": ["sdd", "project", "sdd-{change-name}"]
}
},
{
"tool": "create_block",
"args": {
"block_type": "outline",
"title": "sdd/{change-name}/tracker",
"content": "{tracker content}",
"tags": ["sdd", "tracker", "sdd-{change-name}"]
}
},
{
"tool": "create_block",
"args": {
"block_type": "permanent",
"title": "sdd/{change-name}/discovery",
"content": "{discovery content}",
"tags": ["sdd", "discovery", "sdd-{change-name}"]
}
},
{
"tool": "create_link",
"args": {
"source_id": "{project-ulid}",
"target_id": "{tracker-ulid}",
"link_type": "contains"
}
}
]
| Version | Date | Changes |
|---|---|---|
| 1.0 | 2026-03-20 | Initial version for PKM-AI |