How moovaio/sdd-toolkit works
Purpose and Distribution Model
sdd-toolkit is a Node-based installer/updater that standardizes Moova’s Spec-Driven Development assets across target repositories. It distributes versioned, managed AI-agent instructions while preserving consumer-owned OpenSpec scaffolding and unsupported ticket integrations. Package entry behavior is implemented in bin/init.js; reusable source assets live under template/.
CLI Entry Point and Lifecycle
The executable supports init and update operations from a consumer repository. init resolves selected agent tools and ticket system, installs managed files, creates tool-facing links, writes .sdd-toolkit.json, and copies the OpenSpec scaffold only if absent. update reads that manifest and refreshes managed assets, optionally as a dry run.
• bin/init.js
• template/scaffold/openspec/config.yaml
Managed Asset Source of Truth
The template’s ai-specs tree is the canonical payload copied into the consumer repo’s committed ai-specs/ directory. These files are intentionally replaceable on update; agent-specific directories such as .claude/ are symlink projections to avoid duplicated content. The installer’s agent-tool mapping determines which categories each tool receives.
• template/ai-specs/agents/spec-reviewer.md
• template/ai-specs/commands/implement.md
• template/ai-specs/skills/
OpenSpec Workflow Stages
The toolkit packages four OpenSpec-oriented skills representing the core change lifecycle: explore an existing system, propose a change, apply an approved change, then archive it. Slash-command wrappers expose corresponding /opsx:* workflows. These instructions require the externally installed OpenSpec CLI rather than implementing OpenSpec itself.
• template/ai-specs/skills/openspec-explore/SKILL.md
• template/ai-specs/skills/openspec-propose/SKILL.md
• template/ai-specs/commands/opsx/
Ticket-to-Implementation Boundary
Ticket handling converts an idea into a grounded ticket draft and drives implementation from ticket context through branch, OpenSpec, review, and code steps. Ticket-system profiles separate provider-specific retrieval conventions from common command behavior. Jira and Trello are native choices; unknown systems receive an editable fallback that update must not overwrite.
• template/ai-specs/commands/ticket.md
• template/ai-specs/tickets/jira/ticket-system.md
• template/ai-specs/tickets/_unsupported/ticket-system.md
Review and Governance
An independent spec reviewer agent provides adversarial review of OpenSpec changes, forming a quality gate around the proposal/application workflow. Command and skill markdown are prompt-level control planes consumed by configured agent tooling, not application runtime code.
• template/ai-specs/agents/spec-reviewer.md
• template/ai-specs/commands/implement.md
Runtime and External Dependencies
Runtime is Node.js 18+ invoked through npx, including GitHub-hosted package execution. Consumer environments must install @fission-ai/openspec; ticket systems are represented as instruction templates and may require external Jira/Trello access configured by the consuming agent environment. No server, database, or web application runtime is present.
• package.json
• bin/init.js
Main entry points: init.js CLI lifecycle · ticket.md Ticket command · SKILL.md OpenSpec skills · spec-reviewer.md Spec reviewer
Components 17
sdd-toolkit package
Node-based installer and versioned instruction source.
- CLI lifecycle · Handles init and update operations.
bin/init.js - Package runtime
package.json - Template assets · Canonical source copied into consumer repositories.
- Spec reviewer · Independent adversarial review gate for OpenSpec changes.
template/ai-specs/agents/spec-reviewer.md - Implementation command
template/ai-specs/commands/implement.md - OpenSpec command wrappers · Exposes /opsx workflow commands to agent tools.
template/ai-specs/commands/opsx/apply.md - OpenSpec skills · Explore, propose, apply, and archive change stages.
template/ai-specs/skills/openspec-explore/SKILL.md - Ticket command · Turns an idea or ticket context into implementation work.
template/ai-specs/commands/ticket.md - Jira profile · Provider-specific ticket retrieval conventions.
template/ai-specs/tickets/jira/ticket-system.md - Unsupported ticket profile · Consumer-owned fallback that update does not overwrite.
template/ai-specs/tickets/_unsupported/ticket-system.md
Consumer repository
Repository receiving managed SDD assets.
- Toolkit manifest · Records selected tools and ticket system for updates.
- Committed ai-specs · Replaceable instruction payload in the consumer repository.
- Agent-tool links · Agent-specific directories point to canonical managed content.
- OpenSpec scaffold · Copied only when absent and preserved thereafter.
template/scaffold/openspec/config.yaml
External dependencies
- npx execution · Runs the toolkit, including GitHub-hosted package execution.
- OpenSpec CLI · Executes the workflow required by the packaged instructions.
- Jira / Trello access · Access is configured by the consuming agent environment.
Connections 21
- npx execution → CLI lifecycle: invokes
- Package runtime → CLI lifecycle: defines runtime
- CLI lifecycle → Template assets: reads source assets
- CLI lifecycle → Committed ai-specs: init/update copies
- CLI lifecycle → Agent-tool links: creates selected links
- CLI lifecycle → Toolkit manifest: writes and reads
- CLI lifecycle → OpenSpec scaffold: copies if absent
- Template assets → Spec reviewer: includes
- Template assets → Implementation command: includes
- Template assets → OpenSpec command wrappers: includes
- Template assets → OpenSpec skills: includes
- Template assets → Ticket command: includes
- Ticket command → Jira profile: selects profile
- Ticket command → Unsupported ticket profile: uses when unsupported
- Ticket command → Jira / Trello access: uses configured access
- OpenSpec command wrappers → OpenSpec skills: drives stages
- OpenSpec skills → OpenSpec CLI: requires
- Spec reviewer → OpenSpec skills: reviews proposals and changes
- Implementation command → Spec reviewer: passes review gate
- Committed ai-specs → Agent-tool links: canonical target
- Toolkit manifest → Unsupported ticket profile: preserves on update