Quick reference for using SDP CLI v0.9.8 with Claude Code.
Sync: Shared with sdp_dev/AGENTS.md — placement rules, "продолжай" convention. When updating these, update both files. Sync rules: sdp_dev/docs/plans/2026-02-25-agents-claude-sync-rules.md (in parent repo).
@vision "AI-powered task manager" # Strategic planning
@reality --quick # Codebase analysis
@feature "Add user authentication" # Plan feature
@build 00-001-01 # Execute workstream
@review <feature-id> # Quality checkWorkstream ID Format: PP-FFF-SS (e.g., 00-001-01)
Artifact placement: docs/reviews/ (review artifacts), docs/workstreams/backlog/ (WS only), docs/drafts/idea-* (one per feature).
Evidence and checkpoint must be committed with the PR. When running as part of @oneshot, after sdp-orchestrate --advance writes .sdp/evidence/ and .sdp/checkpoints/, commit them (see @build skill step 3b).
"Продолжай {feature-id}" = sdp-orchestrate --feature <feature-id> --next-action. Convention: run the next action for that feature.
Status: sdp-orchestrate --feature <feature-id> --status — pending WS, open beads, next action.
The correct workflow is:
@oneshot <feature-id> → @review <feature-id> → @deploy <feature-id>
│ │ │
▼ ▼ ▼
Execute WS APPROVED? Merge PR
│
├─ YES → proceed to @deploy
└─ NO → fix loop (max 3 iterations)
"Done" = @review APPROVED + @deploy completed, NOT just "PR merged".
New project?
|-- Yes --> @vision (strategic) --> @reality (analysis)
+-- No --> Working on existing project?
|-- Yes --> What's the state?
| |-- Don't know --> @reality --quick
| +-- Know state --> @feature "add feature" (or @discovery for pre-check only)
+-- No --> Workstreams exist?
|-- Yes --> @oneshot <feature-id>
+-- No --> @feature "plan feature"
| Level | Orchestrator | Purpose | Output |
|---|---|---|---|
| Strategic | @vision (7 agents) | Product planning | VISION, PRD, ROADMAP |
| Analysis | @reality (8 agents) | Codebase analysis | Reality report |
| Feature | @feature (roadmap pre-check + @discovery + @idea + @ux + @design) | Requirements + WS | Workstreams |
| Execution | @oneshot (@build) | Parallel execution | Implemented code |
@vision — New project, major pivot, quarterly strategic review
@reality — New to project, before @feature, track tech debt, quarterly review
@feature — Feature idea but no workstreams, need interactive planning (full discovery flow)
@discovery — Roadmap pre-check, product research, feature brief (standalone or via @feature)
@ux — UX research for user-facing features (standalone or auto-triggered by @feature)
@oneshot — Workstreams exist, want autonomous execution with checkpoint/resume
@build — Execute a single workstream (use instead of @oneshot for 1-2 WS)
| Skill | Purpose | Phase |
|---|---|---|
@vision |
Strategic product planning (7 expert agents) | Strategic |
@reality |
Codebase analysis (8 expert agents) | Analysis |
@feature |
Planning orchestrator (roadmap pre-check + discovery + idea + ux + design) | Planning |
@discovery |
Product discovery gate (roadmap check, research loop) | Planning |
@idea |
Requirements gathering (AskUserQuestion) | Planning |
@ux |
UX research (mental model elicitation) | Planning |
@design |
Workstream design (EnterPlanMode) | Planning |
@oneshot |
Execution orchestrator (autonomous) | Execution |
@build |
Execute single workstream (TDD) | Execution |
@review |
Multi-agent quality review | Execution |
@deploy |
Merge feature branch to main | Execution |
| Skill | Purpose | Phase |
|---|---|---|
@debug |
Systematic debugging (scientific method) | Debug |
@issue |
Debug and route bugs | Debug |
@hotfix |
Emergency fix (P0) | Debug |
@bugfix |
Quality fix (P1/P2) | Debug |
| Skill | Purpose |
|---|---|
@init |
Initialize SDP in current project |
@help |
Interactive skill discovery |
@prototype |
Rapid prototyping shortcut |
@vision --update |
PRD/ diagram regeneration |
@test |
Contract test generation |
@reality-check |
Quick documentation vs code validation |
@verify-workstream |
Validate workstream against codebase |
@protocol-consistency |
Audit consistency across docs/CLI/CI |
@guard |
Pre-edit gate enforcing WS scope |
@tdd |
TDD enforcement (called by @build) |
@go-modern |
Modern Go style and review rules |
| Skill | Purpose |
|---|---|
@beads |
Beads task tracker integration |
Skills defined in: .claude/skills/{name}/SKILL.md
# 1. Strategic planning
@vision "AI-powered task manager for remote teams"
# 2. Codebase analysis
@reality --quick
# 3. Feature planning (per feature)
@feature "User can reset password via email"
# 4. Autonomous execution
@oneshot <feature-id># 1. Plan feature
@feature "Add payment processing"
# 2. Execute all workstreams
@oneshot <feature-id>@build 00-050-01 # Execute one at a time
@build 00-050-02
@review <feature-id> # Review when done
@deploy <feature-id> # Deploy-
Read core docs:
-
Key concepts:
- Workstream (WS): Atomic task, one-shot execution
- Feature: 5-30 workstreams
- Release: 10-30 features
-
Install Beads CLI (task tracking):
brew tap beads-dev/tap && brew install beads bd --version
sdp/
├── sdp-plugin/ # Go implementation (CLI + agents)
│ ├── cmd/sdp/ # CLI commands
│ └── internal/ # Core logic
├── .claude/
│ ├── skills/ # Skill definitions
│ └── agents/ # Multi-agent definitions
├── docs/
│ ├── PROTOCOL.md # Core specification
│ ├── reference/ # Command and API reference
│ ├── vision/ # Strategic vision docs
│ ├── decisions/ # Architecture decisions
│ ├── drafts/ # @idea output
│ └── workstreams/ # Backlog + completed WS
├── hooks/ # Git hooks and validators
├── templates/ # Workstream templates
├── PRODUCT_VISION.md # Product vision
└── go.mod # Go module
| Gate | Requirement |
|---|---|
| File Size | < 200 LOC |
| Test Coverage | >= 80% |
| Type Hints | Full strict typing |
| Clean Architecture | No layer violations |
| Error Handling | Explicit, no bare exceptions |
| TODOs | All resolved or tracked in WS |
- Files > 200 LOC
- Time-based estimates
- Layer violations
- Coverage < 80%
- TODO without followup WS
- Type hints everywhere
- Tests first (TDD)
- Explicit error handling
- Clean architecture boundaries
- Conventional commits
- For Go, use modern stdlib idioms that match the repo's Go version
- SOLID, DRY, KISS, YAGNI — see docs/reference/PRINCIPLES.md
- Clean Architecture — Domain <- App <- Infra <- Presentation
- TDD — Tests first (Red -> Green -> Refactor)
- AI-Readiness — Small files, low complexity, typed
The SDP CLI provides terminal commands for planning, executing, and tracking workstreams.
| Command | Purpose |
|---|---|
sdp doctor |
Health check (hooks, config, deps) |
sdp status |
Show project state |
sdp init |
Initialize SDP in a new project |
sdp parse <ws-file> |
Parse workstream file |
| Command | Purpose |
|---|---|
sdp guard activate <ws-id> |
Enforce edit scope for workstream |
sdp guard check <file> |
Verify file is in scope |
sdp guard status |
Show guard status |
sdp guard deactivate |
Clear edit scope |
| Command | Purpose |
|---|---|
sdp session show |
Show current session |
sdp session clear |
Clear session |
| Command | Purpose |
|---|---|
sdp log show |
Show recent events with filters |
sdp log trace |
Trace evidence chain |
sdp log export |
Export events as CSV/JSON |
sdp log stats |
Show event statistics |
| Command | Purpose |
|---|---|
sdp memory index |
Index project artifacts |
sdp memory search <query> |
Search indexed artifacts |
sdp memory stats |
Show index statistics |
| Command | Purpose |
|---|---|
sdp drift detect [ws-id] |
Detect code↔docs drift |
| Command | Purpose |
|---|---|
sdp metrics report |
Show metrics report |
sdp metrics classify |
Classify metrics |
| Command | Purpose |
|---|---|
sdp telemetry status |
Show telemetry status |
sdp telemetry analyze |
Analyze telemetry data |
| Command | Purpose |
|---|---|
sdp skill list |
List available skills |
sdp skill show <name> |
Show skill details |
sdp skill validate |
Validate skill definitions |
- Dry run:
--dry-run- Preview without writing files - JSON output:
--output=json- Machine-readable format
- By type:
--type generation- Filter event type - By workstream:
--ws 00-054-01- Filter by workstream ID - By date:
--since 2026-02-01T00:00:00Z- Filter by ISO date
Build and verify flows emit events to .sdp/log/events.jsonl (hash-chained).
Config: .sdp/config.yml with version, evidence.enabled, evidence.log_path. @build emits plan/generation/verification events when evidence is enabled.
Project memory system for avoiding duplicated work. Integrates with evidence.jsonl and Beads issues.
.sdp/
├── memory.db # SQLite + FTS5 index
├── log/
│ └── events.jsonl # Evidence log (hash-chained)
└── notifications.log # Notification channel log
| Command | Purpose |
|---|---|
sdp memory index |
Index all docs/ artifacts into memory.db |
sdp memory search <query> |
Full-text search across indexed artifacts |
sdp memory stats |
Show index statistics |
sdp drift detect [ws_id] |
Detect code↔docs drift |
- Context Recovery: After session compaction, search memory to restore context
- Decision Discovery: Find related decisions before proposing approaches
- Drift Detection: Detect code-documentation discrepancies
Check .claude/skills/{name}/SKILL.md exists
Check dependencies in docs/workstreams/backlog/{WS-ID}.md
Run test coverage tool with verbose output to identify gaps
When ending a work session, complete ALL steps. Work is NOT complete until git push succeeds.
- File issues for remaining work
- Run quality gates (if code changed)
- Update issue status — Close finished, update in-progress
- PUSH TO REMOTE:
git pull --rebase bd sync git push git status # MUST show "up to date with origin" - Clean up — Clear stashes, prune branches
- Verify — All committed AND pushed
- Hand off — Context for next session
| Resource | Purpose |
|---|---|
| PROTOCOL.md | Full specification |
| docs/reference/PRINCIPLES.md | Core principles |
| docs/SLOS.md | SLOs/SLIs |
| docs/reference/CODE_PATTERNS.md | Code patterns |
| docs/reference/MODELS.md | Model recommendations |
| .claude/skills/ | Skill definitions |
| docs/compliance/COMPLIANCE.md | Enterprise compliance |
| docs/compliance/THREAT-MODEL.md | Threat model |
CLI Version: 0.9.8 | Protocol Version: 0.10.0