superspec init
Initialize SuperSpec in the current project, creating configuration files and directory structure.
Syntax
bash
superspec init [options]Options
| Option | Description | Default |
|---|---|---|
--ai <agent> | AI assistant type | cursor |
--lang <lang> | Template language | en |
--force | Force overwrite existing configuration | false |
--no-git | Skip git initialization | false |
--ai Option
Supported AI assistant types:
cursor- Cursor (default)claude- Claude Codeqwen- Qwenopencode- OpenCodecodex- Codexcodebuddy- CodeBuddyqoder- Qoder
--lang Option
Supported languages:
en- English (default)zh- Chinese
Examples
Basic Initialization
bash
superspec initChinese Templates
bash
superspec init --lang zhSpecify AI Assistant
bash
# Claude Code
superspec init --ai claude
# Qwen
superspec init --ai qwen
# Qoder
superspec init --ai qoderForce Overwrite
bash
superspec init --forceSkip git Initialization
bash
superspec init --no-gitCombined Usage
bash
superspec init --ai claude --lang zh --forceCreated Files
Running init creates the following files and directories:
your-project/
├── superspec.config.json # Main configuration file
├── AGENTS.md # AI Agent general instructions
├── superspec/
│ ├── changes/ # Changes directory
│ └── templates/ # Template files
│ ├── proposal.md
│ ├── spec.md
│ ├── tasks.md
│ ├── clarify.md
│ ├── checklist.md
│ └── design.md
└── .cursor/ # Cursor-specific (if applicable)
└── rules/
└── superspec.mdcOutput Example
███████╗██╗ ██╗██████╗ ███████╗██████╗ ███████╗██████╗ ███████╗ ██████╗
██╔════╝██║ ██║██╔══██╗██╔════╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝
███████╗██║ ██║██████╔╝█████╗ ██████╔╝███████╗██████╔╝█████╗ ██║
╚════██║██║ ██║██╔═══╝ ██╔══╝ ██╔══██╗╚════██║██╔═══╝ ██╔══╝ ██║
███████║╚██████╔╝██║ ███████╗██║ ██║███████║██║ ███████╗╚██████╗
╚══════╝ ╚═════╝ ╚═╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝ ╚═════╝
Spec-Driven Development Toolkit
◆ Creating Configuration
──────────────────────────────────────────────────
📄 superspec.config.json
◆ Creating Directory Structure
──────────────────────────────────────────────────
📁 superspec/changes/
📁 superspec/templates/
◆ Installing Templates
──────────────────────────────────────────────────
✓ 6 templates (en)
◆ Installing AI Agent Files
──────────────────────────────────────────────────
✓ AGENTS.md
╭────────────────────────────────────────────────╮
│ Config → superspec.config.json │
│ Spec dir → superspec/ │
│ AI agent → cursor │
│ Language → en │
╰────────────────────────────────────────────────╯
✨ SuperSpec initialized successfully!
Next step: superspec create <feature>Notes
- Existing configuration: If
superspec.config.jsonalready exists, use--forceto overwrite - Non-empty directory: Initializing in a non-empty directory shows a warning; template files merge with existing content
- Git repository: If the directory is not a git repository,
git initruns automatically (unless--no-gitis used)