spec-add
БесплатноБез исполняемых скриптовНе проверенAdd specs, conventions, constraints, or learnings to project guidelines interactively or automatically
от catlog22★ 2 110 звёзд на GitHubОб этом скилле
Spec Add Command
Overview
Unified command for adding specs one at a time. Supports both interactive wizard mode and direct CLI mode.
Key Features:
- Supports both project specs and personal specs
- Scope selection (global vs project) for personal specs
- Category-based organization for workflow stages
- Interactive wizard mode with smart defaults
- Direct CLI mode with auto-detection of type and category
- Auto-confirm mode (
-y/--yes) for scripted usage
Use Cases
- During Session: Capture important decisions as they're made
- After Session: Reflect on lessons learned before archiving
- Proactive: Add team conventions or architectural rules
- Interactive: Guided wizard for adding rules with full control over dimension, scope, and category
Usage
$spec-add # Interactive wizard (all prompts)
$spec-add --interactive # Explicit interactive wizard
$spec-add "Use async/await instead of callbacks" # Direct mode (auto-detect type)
$spec-add -y "No direct DB access" --type constraint # Auto-confirm, skip confirmation
$spec-add --scope global --dimension personal # Create global personal spec (interactive)
$spec-add --dimension specs --category exploration # Project spec in exploration category (interactive)
$spec-add "Cache invalidation requires event sourcing" --type learning --category architecture
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
rule |
string | Yes (unless --interactive) |
- | The rule, convention, or insight to add |
--type |
enum | No | auto-detect | Type: convention, constraint, learning |
--category |
string | No | auto-detect / general |
Category for organization (see categories below) |
--dimension |
enum | No | Interactive | specs (project) or personal |
--scope |
enum | No | project |
global or project (only for personal dimension) |
--interactive |
flag | No | - | Launch full guided wizard for adding rules |
-y / --yes |
flag | No | - | Auto-categorize and add without confirmation |
Type Categories
convention - Coding style preferences (goes to conventions section)
- Subcategories:
coding_style,naming_patterns,file_structure,documentation
constraint - Hard rules that must not be violated (goes to constraints section)
- Subcategories:
architecture,tech_stack,performance,security
learning - Session-specific insights (goes to learnings array)
- Subcategories:
architecture,performance,security,testing,process,other
Workflow Stage Categories (for --category)
| Category | Use Case | Example Rules |
|---|---|---|
general |
Applies to all stages | "Use TypeScript strict mode" |
exploration |
Code exploration, debugging | "Always trace the call stack before modifying" |
planning |
Task planning, requirements | "Break down tasks into 2-hour chunks" |
execution |
Implementation, testing | "Run tests after each file modification" |
Execution Process
Input Parsing:
|- Parse: rule text (positional argument, optional if --interactive)
|- Parse: --type (convention|constraint|learning)
|- Parse: --category (subcategory)
|- Parse: --dimension (specs|personal)
|- Parse: --scope (global|project)
|- Parse: --interactive (flag)
+- Parse: -y / --yes (flag)
Step 1: Parse Input
Step 2: Determine Mode
|- If --interactive OR no rule text -> Full Interactive Wizard (Path A)
+- If rule text provided -> Direct Mode (Path B)
Path A: Interactive Wizard
|- Step A1: Ask dimension (if not specified)
|- Step A2: Ask scope (if personal + scope not specified)
|- Step A3: Ask category (if not specified)
|- Step A4: Ask type (convention|constraint|learning)
|- Step A5: Ask content (rule text)
+- Continue to Step 3
Path B: Direct Mode
|- Step B1: Auto-detect type (if not specified) using detectType()
|- Step B2: Auto-detect category (if not specified) using detectCategory()
|- Step B3: Default dimension to 'specs' if not specified
+- Continue to Step 3
Step 3: Determine Target File
|- specs dimension -> .ccw/specs/coding-conventions.md or architecture-constraints.md
+- personal dimension -> ~/.ccw/personal/ or .ccw/personal/
Step 4: Validate and Write Spec
|- Ensure target directory and file exist
|- Check for duplicates
|- Append rule to appropriate section
+- Run ccw spec rebuild
Step 5: Display Confirmation
+- If -y/--yes: Minimal output
+- Otherwise: Full confirmation with location details
Implementation
Step 1: Parse Input
// Parse arguments
const args = "$ARGUMENTS"
const argsLower = args.toLowerCase()
// Extract flags
const AUTO_YES = argsLower.includes('--yes') || a
Установить spec-add в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
request_user_inputReadWriteEditBashGlobGrepFAQ
Что делает скилл spec-add?
Add specs, conventions, constraints, or learnings to project guidelines interactively or automatically
Как установить скилл spec-add?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл spec-add запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic