CLI Reference
Complete reference for all SidStack CLI commands and options.
Installation
npx @sidstack/cli init
# npm global install and Homebrew coming after first release
All commands support --help for detailed usage information.
Project Setup
sidstack init
Initialize a new SidStack project in the current directory. Creates .sidstack/ folder with governance, skills, principles, and workflows. Also sets up .claude/commands/ slash commands and .mcp.json configuration.
--governanceInclude governance structure (principles, skills, workflows)--openspecInclude OpenSpec workflow for spec-driven development--no-frameworksMinimal setup without governance or OpenSpec--preset <name>Use a preset (minimal, fullstack-typescript, etc.)--forceOverwrite existing .sidstack folder
sidstack update
Update SidStack configuration and governance files to the latest version. Checks for new principles, skills, and workflows.
--governance-onlyOnly update governance files--forceForce overwrite existing files
sidstack doctor
Check project health and configuration. Validates .sidstack/ structure, MCP configuration, governance files, and service connectivity.
--jsonOutput as JSON for programmatic consumption
Knowledge Management
sidstack knowledge init
Initialize the knowledge folder structure under .sidstack/knowledge/. Creates directories for business-logic, api-endpoints, design-patterns, and database-tables.
sidstack knowledge create
Create a new knowledge document from a template. Generates a markdown file with frontmatter including type, module, status, and tags.
--type <type>Document type (business-logic, api-endpoint, design-pattern, database-table, module, index)--title <title>Document title--module <id>Link to a module
sidstack knowledge list
List all knowledge documents in the project. Shows document type, title, module, and status.
--jsonOutput as JSON
sidstack knowledge templates
List available knowledge document templates. Shows each template type with its required fields and structure.
sidstack knowledge validate
Validate knowledge documents for completeness. Checks frontmatter fields, required sections, and cross-references between documents.
Governance
sidstack governance show
Show governance overview including active principles, skills, workflows, and agent roles. Provides a summary of the entire governance structure.
--section <name>Show specific section (principles, skills, workflows)--jsonOutput as JSON
sidstack governance check
Check governance compliance for the current project. Validates that required principles are present, skills are properly structured, and quality gates are defined.
--strictFail on warnings (not just errors)--jsonOutput as JSON
Task Management
sidstack task create
Create a new task with governance auto-linked based on task type. Requires a detailed description with problem statement and solution approach.
--title <title>Task title in format: [TYPE] description (e.g., [feature] Add login)--type <type>Task type: feature, bugfix, refactor, test, docs, infra, security, perf, debt, spike--priority <level>Priority: low, medium, high--jsonOutput as JSON
sidstack task list
List all tasks in the project with smart filtering. Defaults to showing actionable tasks (pending + in_progress).
--status <status>Filter by status: pending, in_progress, completed, blocked, failed, cancelled--preset <name>Smart filter: actionable, blocked, recent, epics, all--jsonOutput as JSON
sidstack task update
Update task status, progress, or add notes. Use to track work progress and transition task states.
--status <status>New status--progress <0-100>Progress percentage--notes <text>Status update notes
Impact Analysis
sidstack impact analyze
Run impact analysis on a planned change. Analyzes scope (affected modules, files), risks (severity, blocking status), data flows, and generates a validation checklist with gate status.
--task <id>Task ID to analyze--description <text>Change description to analyze--change-type <type>Type: feature, refactor, bugfix, migration, deletion
sidstack impact check
Check gate status for an impact analysis. Returns blocked, warning, or clear status with details about any blockers that need resolution.
--analysis <id>Analysis ID to check--task <id>Task ID to find analysis for
Skills & Presets
sidstack skill list
List available governance skills. Shows capability-based skills organized by category (implement, design, test, review, deploy).
sidstack skill show <name>
Show details of a specific skill including its content, applicability, and trigger conditions.
sidstack skill create
Create a new custom skill from a template. Skills can be procedures, checklists, templates, or rules.
--name <name>Skill name (kebab-case)--type <type>Type: procedure, checklist, template, rule
sidstack preset list
List available project presets. Presets provide pre-configured governance structures for common project types.
sidstack preset show <name>
Show details of a specific preset including its principles, skills, and workflows.
Slash Commands
sidstack command list
List all installed Claude Code slash commands. Shows commands available in .claude/commands/sidstack/.
sidstack command add <name>
Add a new slash command to the project. Creates a markdown file in .claude/commands/sidstack/.
sidstack command show <name>
Show the content of a specific slash command.
MCP Server
sidstack mcp start
Start the MCP server for Claude Code integration. Exposes project knowledge, task management, impact analysis, and training tools to AI agents via the Model Context Protocol.
Common Workflows
1. Initialize a New Project
2. Create and Track a Feature
3. Build Project Knowledge
4. Check Governance Compliance
Project Structure After Init
your-project/ ├── .sidstack/ │ ├── config.json # Project configuration │ ├── governance.md # Governance overview │ ├── principles/ # Quality standards │ │ ├── code-standards.md │ │ ├── testing-qa.md │ │ ├── security.md │ │ └── ... │ ├── skills/capabilities/ # Role-specific skills │ │ ├── implement/ # feature, bugfix, refactor │ │ ├── design/ # architecture, database, api │ │ ├── test/ # unit, integration, e2e │ │ ├── review/ # code, security, performance │ │ └── deploy/ # ci-cd, release │ ├── workflows/ # End-to-end processes │ └── knowledge/ # Project knowledge docs ├── .claude/ │ ├── settings.local.json # MCP auto-approval │ └── commands/sidstack/ # Slash commands │ ├── agent.md │ ├── analyze.md │ ├── governance.md │ └── ... └── .mcp.json # Claude Code MCP config
Claude Code Slash Commands
After running sidstack init, these slash commands are available in Claude Code:
Exit Codes
0Success1Error (fatal)2Warning (non-fatal)3Validation failed4Not initialized