How nathanramorim/forge-sdd works
Forge-SDD is a Go CLI and npm-delivered installer that scaffolds an AI-assisted Software Design Doc workflow into a project. Users initialize or update a project, then use generated agent commands to discover and plan work, implement features or fixes, review, and archive; the CLI also diagnoses installations and records/reports local telemetry. The source excerpts show the CLI’s configuration, survey, and scaffold calls, but not every command handler or generated prompt’s runtime behavior, so those relationships are omitted or marked unverified.
Main entry points: main.go CLI commands · scaffold.go Template scaffold · session.go Session telemetry · commands Feature and fixes
Components 20
CLI delivery
- npm launcher
npm/bin/run.js - CLI commands
cmd/forge-sdd/main.go
Project setup
- Project config
internal/config/config.go - Interactive setup
internal/survey/survey.go - Template scaffold
internal/scaffold/scaffold.go - Command cheat sheet
internal/scaffold/cheatsheet.go - Agent integrations
internal/scaffold/templates/agents - SDD project files
internal/scaffold/templates/sdd
SDD workflow
- Canonical commands
internal/scaffold/templates/.agents/commands - Discovery planning
internal/scaffold/templates/.agents/commands - Feature and fixes
internal/scaffold/templates/.agents/commands - Review and archive
internal/scaffold/templates/.agents/commands
Project operations
- Installation doctor
cmd/forge-sdd/doctor.go - Project removal
cmd/forge-sdd/destroy.go - Session telemetry
cmd/forge-sdd/session.go - Metrics report
cmd/forge-sdd/report.go - Fix lessons
cmd/forge-sdd/lessons.go - Local metrics
sdd/.metrics
Other components
- Project user
- npm registry
Connections 24
- Project user → npm launcher: runs CLI
README.md - npm launcher → npm registry: fetches package
- Project user → CLI commands: runs commands
README.md - CLI commands → Interactive setup: collects choices
cmd/forge-sdd/main.go - CLI commands → Template scaffold: renders project
cmd/forge-sdd/main.go - CLI commands → Project config: reads settings
- CLI commands → npm registry: checks versions
cmd/forge-sdd/main.go - Template scaffold → Agent integrations: renders integrations
internal/scaffold/scaffold.go - Template scaffold → SDD project files: renders structure
internal/scaffold/scaffold.go - Template scaffold → Canonical commands: renders commands
internal/scaffold/scaffold.go - CLI commands → Command cheat sheet: prints summary
- Project user → Discovery planning: describes work
README.md - Discovery planning → Feature and fixes: plans features
- Project user → Feature and fixes: requests changes
README.md - Feature and fixes → Review and archive: requests review
- Project user → Review and archive: reviews or archives
README.md - CLI commands → Installation doctor: runs diagnostics
cmd/forge-sdd/main.go - CLI commands → Project removal: removes structure
cmd/forge-sdd/main.go - CLI commands → Session telemetry: records sessions
- Session telemetry → Project config: checks telemetry
cmd/forge-sdd/session.go - Session telemetry → Local metrics: writes records
cmd/forge-sdd/session.go - CLI commands → Metrics report: shows metrics
- Metrics report → Local metrics: reads records
- Project user → Fix lessons: uses lessons