claude-code-orchestrator-kit 1.3.1 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  description: Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
3
+ scripts:
4
+ sh: .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
5
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
3
6
  ---
4
7
 
5
8
  ## User Input
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  description: Generate a custom checklist for the current feature based on user requirements.
3
+ scripts:
4
+ sh: .specify/scripts/bash/check-prerequisites.sh --json
5
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json
3
6
  ---
4
7
 
5
8
  ## Checklist Purpose: "Unit Tests for English"
@@ -1,5 +1,12 @@
1
1
  ---
2
2
  description: Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
3
+ handoffs:
4
+ - label: Build Technical Plan
5
+ agent: speckit.plan
6
+ prompt: Create a plan for the spec. I am building with...
7
+ scripts:
8
+ sh: .specify/scripts/bash/check-prerequisites.sh --json --paths-only
9
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
3
10
  ---
4
11
 
5
12
  ## User Input
@@ -166,7 +173,7 @@ Execution steps:
166
173
 
167
174
  Behavior rules:
168
175
 
169
- - If clarifications reveal complex unknowns, flag for research phase
176
+ - If clarifications reveal complex unknowns, flag for research phase (create research prompts in `FEATURE_DIR/research/`)
170
177
  - If no meaningful ambiguities found (or all potential questions would be low-impact), respond: "No critical ambiguities detected worth formal clarification." and suggest proceeding.
171
178
  - If spec file missing, instruct user to run `/speckit.specify` first (do not create a new spec here).
172
179
  - Never exceed 5 total asked questions (clarification retries for a single question do not count as new questions).
@@ -1,5 +1,9 @@
1
1
  ---
2
2
  description: Create or update the project constitution from interactive or provided principle inputs, ensuring all dependent templates stay in sync
3
+ handoffs:
4
+ - label: Build Specification
5
+ agent: speckit.specify
6
+ prompt: Implement the feature specification based on the updated constitution. I want to build...
3
7
  ---
4
8
 
5
9
  ## User Input
@@ -1,5 +1,8 @@
1
1
  ---
2
2
  description: Execute the implementation plan by processing and executing all tasks defined in tasks.md
3
+ scripts:
4
+ sh: .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
5
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
3
6
  ---
4
7
 
5
8
  > **ORCHESTRATION REMINDER**: You are the orchestrator, not the implementer. Delegate all complex tasks to subagents with complete context. Gather full context before delegation (read code, search patterns, review docs, check commits). Verify results thoroughly (read files, run type-check). Re-delegate with corrections if validation fails. Execute directly only for trivial tasks (1-2 line fixes, imports, single npm install).
@@ -1,5 +1,19 @@
1
1
  ---
2
2
  description: Execute the implementation planning workflow using the plan template to generate design artifacts.
3
+ handoffs:
4
+ - label: Create Tasks
5
+ agent: speckit.tasks
6
+ prompt: Break the plan into tasks
7
+ send: true
8
+ - label: Create Checklist
9
+ agent: speckit.checklist
10
+ prompt: Create a checklist for the following domain...
11
+ scripts:
12
+ sh: .specify/scripts/bash/setup-plan.sh --json
13
+ ps: .specify/scripts/powershell/setup-plan.ps1 -Json
14
+ agent_scripts:
15
+ sh: .specify/scripts/bash/update-agent-context.sh __AGENT__
16
+ ps: .specify/scripts/powershell/update-agent-context.ps1 -AgentType __AGENT__
3
17
  ---
4
18
 
5
19
  ## User Input
@@ -31,18 +45,19 @@ You **MUST** consider the user input before proceeding (if not empty).
31
45
 
32
46
  ### Phase 0: Outline & Research
33
47
 
34
- **Research Considerations**:
35
- - If tech decisions unclear, classify as research task
36
- - Document research questions in plan with classification (simple/complex)
37
- - Simple research: Agent tools (Grep, Read, WebSearch, Context7, Supabase docs)
38
- - Complex research: Create prompt → deepresearch → incorporate
39
-
40
48
  1. **Extract unknowns from Technical Context** above:
41
49
  - For each NEEDS CLARIFICATION → research task
42
50
  - For each dependency → best practices task
43
51
  - For each integration → patterns task
44
52
 
45
- 2. **Generate and dispatch research agents**:
53
+ 2. **Library-First Search** (MANDATORY before research):
54
+ - For each major component (>20 lines expected), search for existing libraries:
55
+ - WebSearch: "npm {functionality} library 2024" or "python {functionality} package"
56
+ - Context7: documentation for candidate libraries
57
+ - Check: weekly downloads >1000, commits in last 6 months, TypeScript/types support
58
+ - Document library decisions in research.md
59
+
60
+ 3. **Generate and dispatch research agents**:
46
61
 
47
62
  ```text
48
63
  For each unknown in Technical Context:
@@ -51,17 +66,17 @@ You **MUST** consider the user input before proceeding (if not empty).
51
66
  Task: "Find best practices for {tech} in {domain}"
52
67
  ```
53
68
 
54
- 3. **Consolidate findings** in `research.md` using format:
69
+ 4. **Research Considerations**:
70
+ - **Simple research**: Questions solvable with available tools (Grep, Read, WebSearch, Context7) - resolve immediately
71
+ - **Complex research**: Requires deep investigation → create research prompt in `FEATURE_DIR/research/` for deepresearch tool
72
+
73
+ 5. **Consolidate findings** in `research.md` using format:
55
74
  - Decision: [what was chosen]
56
75
  - Rationale: [why chosen]
57
76
  - Alternatives considered: [what else evaluated]
77
+ - Library: [if applicable - name, version, why chosen over alternatives]
58
78
 
59
- 4. **Library discovery** for each planned component:
60
- - Search npm/pypi for existing solutions (WebSearch + Context7)
61
- - Evaluate: maintenance status (commits last 6 months), weekly downloads >1000, TypeScript support
62
- - Document in research.md: chosen libraries with rationale, or justification for custom implementation
63
-
64
- **Output**: research.md with all NEEDS CLARIFICATION resolved and library decisions documented
79
+ **Output**: research.md with all NEEDS CLARIFICATION resolved, research/ with complex research prompts (if any)
65
80
 
66
81
  ### Phase 1: Design & Contracts
67
82
 
@@ -90,3 +105,4 @@ You **MUST** consider the user input before proceeding (if not empty).
90
105
 
91
106
  - Use absolute paths
92
107
  - ERROR on gate failures or unresolved clarifications
108
+ - Library-first: Always check for existing libraries before planning custom implementations
@@ -1,5 +1,16 @@
1
1
  ---
2
2
  description: Create or update the feature specification from a natural language feature description.
3
+ handoffs:
4
+ - label: Build Technical Plan
5
+ agent: speckit.plan
6
+ prompt: Create a plan for the spec. I am building with...
7
+ - label: Clarify Spec Requirements
8
+ agent: speckit.clarify
9
+ prompt: Clarify specification requirements
10
+ send: true
11
+ scripts:
12
+ sh: .specify/scripts/bash/create-new-feature.sh --json "{ARGS}"
13
+ ps: .specify/scripts/powershell/create-new-feature.ps1 -Json "{ARGS}"
3
14
  ---
4
15
 
5
16
  ## User Input
@@ -29,27 +40,28 @@ Given that feature description, do this:
29
40
  - "Fix payment processing timeout bug" → "fix-payment-timeout"
30
41
 
31
42
  2. **Check for existing branches before creating new one**:
32
-
43
+
33
44
  a. First, fetch all remote branches to ensure we have the latest information:
45
+
34
46
  ```bash
35
47
  git fetch --all --prune
36
48
  ```
37
-
49
+
38
50
  b. Find the highest feature number across all sources for the short-name:
39
51
  - Remote branches: `git ls-remote --heads origin | grep -E 'refs/heads/[0-9]+-<short-name>$'`
40
52
  - Local branches: `git branch | grep -E '^[* ]*[0-9]+-<short-name>$'`
41
53
  - Specs directories: Check for directories matching `specs/[0-9]+-<short-name>`
42
-
54
+
43
55
  c. Determine the next available number:
44
56
  - Extract all numbers from all three sources
45
57
  - Find the highest number N
46
58
  - Use N+1 for the new branch number
47
-
59
+
48
60
  d. Run the script `.specify/scripts/bash/create-new-feature.sh --json "$ARGUMENTS"` with the calculated number and short-name:
49
61
  - Pass `--number N+1` and `--short-name "your-short-name"` along with the feature description
50
- - Bash example: `.specify/scripts/bash/create-new-feature.sh --json "$ARGUMENTS" --json --number 5 --short-name "user-auth" "Add user authentication"`
51
- - PowerShell example: `.specify/scripts/bash/create-new-feature.sh --json "$ARGUMENTS" -Json -Number 5 -ShortName "user-auth" "Add user authentication"`
52
-
62
+ - Bash example: `.specify/scripts/bash/create-new-feature.sh --json --number 5 --short-name "user-auth" "Add user authentication"`
63
+ - PowerShell example: `.specify/scripts/powershell/create-new-feature.ps1 -Json -Number 5 -ShortName "user-auth" "Add user authentication"`
64
+
53
65
  **IMPORTANT**:
54
66
  - Check all three sources (remote branches, local branches, specs directories) to find the highest number
55
67
  - Only match branches/directories with the exact short-name pattern
@@ -96,20 +108,20 @@ Given that feature description, do this:
96
108
 
97
109
  ```markdown
98
110
  # Specification Quality Checklist: [FEATURE NAME]
99
-
111
+
100
112
  **Purpose**: Validate specification completeness and quality before proceeding to planning
101
113
  **Created**: [DATE]
102
114
  **Feature**: [Link to spec.md]
103
-
115
+
104
116
  ## Content Quality
105
-
117
+
106
118
  - [ ] No implementation details (languages, frameworks, APIs)
107
119
  - [ ] Focused on user value and business needs
108
120
  - [ ] Written for non-technical stakeholders
109
121
  - [ ] All mandatory sections completed
110
-
122
+
111
123
  ## Requirement Completeness
112
-
124
+
113
125
  - [ ] No [NEEDS CLARIFICATION] markers remain
114
126
  - [ ] Requirements are testable and unambiguous
115
127
  - [ ] Success criteria are measurable
@@ -118,16 +130,16 @@ Given that feature description, do this:
118
130
  - [ ] Edge cases are identified
119
131
  - [ ] Scope is clearly bounded
120
132
  - [ ] Dependencies and assumptions identified
121
-
133
+
122
134
  ## Feature Readiness
123
-
135
+
124
136
  - [ ] All functional requirements have clear acceptance criteria
125
137
  - [ ] User scenarios cover primary flows
126
138
  - [ ] Feature meets measurable outcomes defined in Success Criteria
127
139
  - [ ] No implementation details leak into specification
128
-
140
+
129
141
  ## Notes
130
-
142
+
131
143
  - Items marked incomplete require spec updates before `/speckit.clarify` or `/speckit.plan`
132
144
  ```
133
145
 
@@ -152,20 +164,20 @@ Given that feature description, do this:
152
164
 
153
165
  ```markdown
154
166
  ## Question [N]: [Topic]
155
-
167
+
156
168
  **Context**: [Quote relevant spec section]
157
-
169
+
158
170
  **What we need to know**: [Specific question from NEEDS CLARIFICATION marker]
159
-
171
+
160
172
  **Suggested Answers**:
161
-
173
+
162
174
  | Option | Answer | Implications |
163
175
  |--------|--------|--------------|
164
176
  | A | [First suggested answer] | [What this means for the feature] |
165
177
  | B | [Second suggested answer] | [What this means for the feature] |
166
178
  | C | [Third suggested answer] | [What this means for the feature] |
167
179
  | Custom | Provide your own answer | [Explain how to provide custom input] |
168
-
180
+
169
181
  **Your choice**: _[Wait for user response]_
170
182
  ```
171
183
 
@@ -1,5 +1,17 @@
1
1
  ---
2
2
  description: Generate an actionable, dependency-ordered tasks.md for the feature based on available design artifacts.
3
+ handoffs:
4
+ - label: Analyze For Consistency
5
+ agent: speckit.analyze
6
+ prompt: Run a project analysis for consistency
7
+ send: true
8
+ - label: Implement Project
9
+ agent: speckit.implement
10
+ prompt: Start the implementation in phases
11
+ send: true
12
+ scripts:
13
+ sh: .specify/scripts/bash/check-prerequisites.sh --json
14
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json
3
15
  ---
4
16
 
5
17
  ## User Input
@@ -16,7 +28,7 @@ You **MUST** consider the user input before proceeding (if not empty).
16
28
 
17
29
  2. **Load design documents**: Read from FEATURE_DIR:
18
30
  - **Required**: plan.md (tech stack, libraries, structure), spec.md (user stories with priorities)
19
- - **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), quickstart.md (test scenarios)
31
+ - **Optional**: data-model.md (entities), contracts/ (API endpoints), research.md (decisions), research/ (complex research), quickstart.md (test scenarios)
20
32
  - Note: Not all projects have all documents. Generate tasks based on what's available.
21
33
 
22
34
  3. **Execute task generation workflow**:
@@ -25,13 +37,15 @@ You **MUST** consider the user input before proceeding (if not empty).
25
37
  - If data-model.md exists: Extract entities and map to user stories
26
38
  - If contracts/ exists: Map endpoints to user stories
27
39
  - If research.md exists: Extract decisions for setup tasks
40
+ - If research/ exists: Identify complex research tasks that need resolution
28
41
  - Generate tasks organized by user story (see Task Generation Rules below)
29
42
  - Generate dependency graph showing user story completion order
30
43
  - Create parallel execution examples per user story
31
44
  - Validate task completeness (each user story has all needed tasks, independently testable)
32
45
 
33
- 4. **Generate tasks.md**: Use `.specify.specify/templates/tasks-template.md` as structure, fill with:
46
+ 4. **Generate tasks.md**: Use `.specify/templates/tasks-template.md` as structure, fill with:
34
47
  - Correct feature name from plan.md
48
+ - Phase 0: Planning (executor assignment) - ALWAYS include
35
49
  - Phase 1: Setup tasks (project initialization)
36
50
  - Phase 2: Foundational tasks (blocking prerequisites for all user stories)
37
51
  - Phase 3+: One phase per user story (in priority order from spec.md)
@@ -94,7 +108,7 @@ Every task MUST strictly follow this format:
94
108
  4. **[Story] label**: REQUIRED for user story phase tasks only
95
109
  - Format: [US1], [US2], [US3], etc. (maps to user stories from spec.md)
96
110
  - Setup phase: NO story label
97
- - Foundational phase: NO story label
111
+ - Foundational phase: NO story label
98
112
  - User Story phases: MUST have story label
99
113
  - Polish phase: NO story label
100
114
  5. **Description**: Clear action with exact file path
@@ -137,6 +151,7 @@ Every task MUST strictly follow this format:
137
151
 
138
152
  ### Phase Structure
139
153
 
154
+ - **Phase 0**: Planning (executor assignment, agent creation, research resolution)
140
155
  - **Phase 1**: Setup (project initialization)
141
156
  - **Phase 2**: Foundational (blocking prerequisites - MUST complete before user stories)
142
157
  - **Phase 3+**: User Stories in priority order (P1, P2, P3...)
@@ -0,0 +1,125 @@
1
+ ---
2
+ description: Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
3
+ scripts:
4
+ sh: .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
5
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
6
+ ---
7
+
8
+ ## User Input
9
+
10
+ ```text
11
+ $ARGUMENTS
12
+ ```
13
+
14
+ You **MUST** consider the user input before proceeding (if not empty).
15
+
16
+ ## Outline
17
+
18
+ 1. Run `.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks` from repo root and parse FEATURE_DIR and AVAILABLE_DOCS list. All paths must be absolute. For single quotes in args like "I'm Groot", use escape syntax: e.g 'I'\''m Groot' (or double-quote if possible: "I'm Groot").
19
+
20
+ 2. From the executed script, extract the path to **tasks.md**.
21
+
22
+ 3. **Verify GitHub remote**:
23
+
24
+ ```bash
25
+ git config --get remote.origin.url
26
+ ```
27
+
28
+ > [!CAUTION]
29
+ > ONLY PROCEED TO NEXT STEPS IF THE REMOTE IS A GITHUB URL (contains `github.com`)
30
+
31
+ 4. **Check `gh` CLI availability**:
32
+
33
+ ```bash
34
+ gh --version
35
+ ```
36
+
37
+ If `gh` is not installed, inform the user:
38
+ ```
39
+ GitHub CLI (gh) is not installed. Install it:
40
+ - macOS: brew install gh
41
+ - Ubuntu: sudo apt install gh
42
+ - Windows: winget install GitHub.cli
43
+
44
+ Then authenticate: gh auth login
45
+ ```
46
+
47
+ 5. **Verify authentication**:
48
+
49
+ ```bash
50
+ gh auth status
51
+ ```
52
+
53
+ If not authenticated, prompt user to run `gh auth login`.
54
+
55
+ 6. **Parse tasks.md** and extract all incomplete tasks:
56
+ - Tasks matching `- [ ] T### ...` pattern
57
+ - Extract: Task ID, description, phase, parallel marker [P], user story [US#]
58
+
59
+ 7. **For each task, create a GitHub issue** using `gh` CLI:
60
+
61
+ ```bash
62
+ gh issue create \
63
+ --title "T001: Create project structure" \
64
+ --body "## Task Details
65
+
66
+ **ID**: T001
67
+ **Phase**: Setup
68
+ **Parallel**: No
69
+ **User Story**: N/A
70
+
71
+ ### Description
72
+ Create project structure per implementation plan
73
+
74
+ ### Acceptance Criteria
75
+ - [ ] Task completed as specified in tasks.md
76
+
77
+ ---
78
+ *Generated from tasks.md by /speckit.taskstoissues*" \
79
+ --label "speckit"
80
+ ```
81
+
82
+ **Formatting rules**:
83
+ - Title: `T###: <short description>`
84
+ - Body: Task details, phase, parallel info, acceptance criteria
85
+ - Label: `speckit` (create if doesn't exist)
86
+ - Optional labels based on phase: `setup`, `foundational`, `user-story`, `polish`
87
+
88
+ 8. **Create labels if needed** (first run only):
89
+
90
+ ```bash
91
+ gh label create speckit --description "Generated from spec-kit tasks" --color "0052CC" 2>/dev/null || true
92
+ gh label create setup --description "Setup phase task" --color "C5DEF5" 2>/dev/null || true
93
+ gh label create user-story --description "User story implementation" --color "D4C5F9" 2>/dev/null || true
94
+ ```
95
+
96
+ 9. **Report results**:
97
+ - Number of issues created
98
+ - Links to created issues
99
+ - Any errors encountered
100
+
101
+ > [!CAUTION]
102
+ > UNDER NO CIRCUMSTANCES EVER CREATE ISSUES IN REPOSITORIES THAT DO NOT MATCH THE REMOTE URL
103
+
104
+ ## Options
105
+
106
+ User can specify in `$ARGUMENTS`:
107
+ - `--dry-run` — показать какие issues будут созданы, но не создавать
108
+ - `--phase N` — создать issues только для Phase N
109
+ - `--limit N` — создать только первые N issues
110
+
111
+ ## Examples
112
+
113
+ ```bash
114
+ # Создать issues для всех задач
115
+ /speckit.taskstoissues
116
+
117
+ # Только показать что будет создано
118
+ /speckit.taskstoissues --dry-run
119
+
120
+ # Только Phase 1 (Setup)
121
+ /speckit.taskstoissues --phase 1
122
+
123
+ # Первые 5 задач
124
+ /speckit.taskstoissues --limit 5
125
+ ```
package/.gitignore CHANGED
@@ -108,6 +108,8 @@ $RECYCLE.BIN/
108
108
  *.backup
109
109
  *.bak
110
110
  *.old
111
+ .claude/commands.backup.*/
112
+ .specify.backup.*/
111
113
 
112
114
  # Archive files
113
115
  *.archive
@@ -126,3 +128,9 @@ articles/
126
128
 
127
129
  # Content agents (temporary/helper agents for writing)
128
130
  .claude/agents/content/
131
+
132
+ # ===================================================================
133
+ # Spec-Kit Temporary
134
+ # ===================================================================
135
+ # Original spec-kit clone (for comparison)
136
+ /tmp/spec-kit-comparison/
@@ -0,0 +1,662 @@
1
+ # Claude Code Orchestrator Kit: Руководство по командам
2
+
3
+ > Версия: v1.4.0
4
+
5
+ Полный набор slash-команд для разработки с Claude Code: от спецификации до релиза.
6
+
7
+ ---
8
+
9
+ ## Обзор команд
10
+
11
+ | Группа | Команды | Назначение |
12
+ |--------|---------|------------|
13
+ | **Spec-Kit** | `/speckit.*` (9 команд) | Спецификационно-ориентированная разработка |
14
+ | **Health** | `/health-*` (6 команд) | Анализ и исправление качества кода |
15
+ | **Worktree** | `/worktree-*` (4 команды) | Параллельная разработка в git worktrees |
16
+ | **Release** | `/push` | Автоматизация релизов |
17
+ | **Utility** | `/translate-doc` | Перевод документации |
18
+
19
+ ---
20
+
21
+ # Spec-Kit
22
+
23
+ Spec-Kit — набор команд для **спецификационно-ориентированной разработки** (Spec-Driven Development). Позволяет структурированно описывать требования, планировать реализацию и выполнять задачи через агентов.
24
+
25
+ ---
26
+
27
+ ## Быстрый старт
28
+
29
+ ```bash
30
+ # 1. Создать спецификацию фичи
31
+ /speckit.specify Добавить систему аутентификации через OAuth2
32
+
33
+ # 2. Уточнить требования (опционально)
34
+ /speckit.clarify
35
+
36
+ # 3. Создать технический план
37
+ /speckit.plan
38
+
39
+ # 4. Сгенерировать задачи
40
+ /speckit.tasks
41
+
42
+ # 5. Проверить консистентность (опционально)
43
+ /speckit.analyze
44
+
45
+ # 6. Реализовать
46
+ /speckit.implement
47
+ ```
48
+
49
+ ---
50
+
51
+ ## Команды
52
+
53
+ ### `/speckit.specify` — Создание спецификации
54
+
55
+ **Что делает**: Создаёт ветку, директорию и файл `spec.md` с требованиями.
56
+
57
+ **Использование**:
58
+ ```bash
59
+ /speckit.specify Описание фичи на естественном языке
60
+ ```
61
+
62
+ **Пример**:
63
+ ```bash
64
+ /speckit.specify Добавить дашборд аналитики с графиками посещаемости
65
+ ```
66
+
67
+ **Результат**:
68
+ - Создаётся ветка `1-analytics-dashboard`
69
+ - Создаётся `specs/1-analytics-dashboard/spec.md`
70
+ - Создаётся чеклист `specs/1-analytics-dashboard/checklists/requirements.md`
71
+
72
+ **Особенности**:
73
+ - Автоматически генерирует короткое имя ветки
74
+ - Проверяет существующие ветки для уникального номера
75
+ - Максимум 3 маркера `[NEEDS CLARIFICATION]`
76
+ - Задаёт уточняющие вопросы если нужно
77
+
78
+ ---
79
+
80
+ ### `/speckit.clarify` — Уточнение требований
81
+
82
+ **Что делает**: Анализирует спецификацию на неясности и задаёт до 5 вопросов.
83
+
84
+ **Использование**:
85
+ ```bash
86
+ /speckit.clarify
87
+ /speckit.clarify область безопасности
88
+ ```
89
+
90
+ **Когда использовать**:
91
+ - Перед `/speckit.plan` если spec.md содержит неясности
92
+ - Для глубокой проработки конкретной области
93
+
94
+ **Особенности**:
95
+ - Анализирует по 11 категориям (Scope, Data Model, UX, Security и др.)
96
+ - Предлагает рекомендованные ответы
97
+ - Обновляет spec.md после каждого ответа
98
+ - Сложные вопросы помечает для research phase
99
+
100
+ ---
101
+
102
+ ### `/speckit.plan` — Техническое планирование
103
+
104
+ **Что делает**: Создаёт технический план с архитектурой, моделями данных и контрактами.
105
+
106
+ **Использование**:
107
+ ```bash
108
+ /speckit.plan
109
+ /speckit.plan Next.js 15, Supabase, tRPC
110
+ ```
111
+
112
+ **Результат** (в директории фичи):
113
+ - `plan.md` — основной план
114
+ - `research.md` — результаты исследований
115
+ - `research/` — сложные исследования (если есть)
116
+ - `data-model.md` — модели данных
117
+ - `contracts/` — API контракты
118
+ - `quickstart.md` — быстрый старт
119
+
120
+ **Особенности**:
121
+ - **Library-First**: Сначала ищет существующие библиотеки
122
+ - Проверяет соответствие Constitution
123
+ - Классифицирует research: simple (решается сразу) / complex (в research/)
124
+
125
+ ---
126
+
127
+ ### `/speckit.tasks` — Генерация задач
128
+
129
+ **Что делает**: Создаёт `tasks.md` с пошаговым планом реализации.
130
+
131
+ **Использование**:
132
+ ```bash
133
+ /speckit.tasks
134
+ ```
135
+
136
+ **Структура tasks.md**:
137
+ ```
138
+ Phase 0: Planning (назначение executor'ов)
139
+ Phase 1: Setup (инициализация проекта)
140
+ Phase 2: Foundational (базовая инфраструктура)
141
+ Phase 3+: User Stories (по приоритетам P1, P2, P3...)
142
+ Phase N: Polish (финальные улучшения)
143
+ ```
144
+
145
+ **Формат задач**:
146
+ ```markdown
147
+ - [ ] T001 Create project structure per implementation plan
148
+ - [ ] T005 [P] [US1] Create User model in src/models/user.py
149
+ ```
150
+
151
+ - `T001` — ID задачи
152
+ - `[P]` — можно выполнять параллельно
153
+ - `[US1]` — относится к User Story 1
154
+
155
+ ---
156
+
157
+ ### `/speckit.analyze` — Анализ консистентности
158
+
159
+ **Что делает**: Проверяет spec.md, plan.md и tasks.md на противоречия.
160
+
161
+ **Использование**:
162
+ ```bash
163
+ /speckit.analyze
164
+ ```
165
+
166
+ **Что проверяет**:
167
+ - Дублирование требований
168
+ - Неясные формулировки
169
+ - Покрытие требований задачами
170
+ - Соответствие Constitution
171
+ - Терминологическую консистентность
172
+
173
+ **Результат**: Отчёт с severity (CRITICAL/HIGH/MEDIUM/LOW) и рекомендациями.
174
+
175
+ ---
176
+
177
+ ### `/speckit.implement` — Реализация
178
+
179
+ **Что делает**: Выполняет задачи из tasks.md через агентов.
180
+
181
+ **Использование**:
182
+ ```bash
183
+ /speckit.implement
184
+ /speckit.implement начать с Phase 2
185
+ ```
186
+
187
+ **Workflow**:
188
+
189
+ ```
190
+ ┌─────────────────────────────────────────────────────────┐
191
+ │ PLANNING PHASE (один раз в начале) │
192
+ ├─────────────────────────────────────────────────────────┤
193
+ │ P001: Анализ задач → какие агенты нужны │
194
+ │ P002: Создание агентов через meta-agent-v3 │
195
+ │ P003: Назначение executor'ов для каждой задачи │
196
+ │ P004: Решение research задач │
197
+ └─────────────────────────────────────────────────────────┘
198
+
199
+ ┌─────────────────────────────────────────────────────────┐
200
+ │ EXECUTION (для каждой задачи) │
201
+ ├─────────────────────────────────────────────────────────┤
202
+ │ 1. TodoWrite: in_progress │
203
+ │ 2. Gather context (код, паттерны, документация) │
204
+ │ 3. Library search (если >20 строк нового кода) │
205
+ │ 4. Context7: получить docs библиотек │
206
+ │ 5. Execute: делегировать агенту или выполнить │
207
+ │ 6. Verify: прочитать файлы, type-check │
208
+ │ 7. Accept/Reject: повторить если ошибка │
209
+ │ 8. TodoWrite: completed │
210
+ │ 9. Mark [X] в tasks.md + artifacts │
211
+ │ 10. /push patch │
212
+ └─────────────────────────────────────────────────────────┘
213
+ ```
214
+
215
+ **Ключевые правила**:
216
+ - **1 Task = 1 Agent** — атомарность
217
+ - **Parallel = N calls in single message** — параллельные задачи запускаются одним сообщением
218
+ - **Library-first** — сначала ищем библиотеку, потом пишем код
219
+ - **Commit after each task** — `/push patch` после каждой задачи
220
+
221
+ ---
222
+
223
+ ### `/speckit.checklist` — Создание чеклиста
224
+
225
+ **Что делает**: Генерирует чеклист для проверки качества требований.
226
+
227
+ **Использование**:
228
+ ```bash
229
+ /speckit.checklist ux
230
+ /speckit.checklist security
231
+ /speckit.checklist api
232
+ ```
233
+
234
+ **Важно**: Чеклисты проверяют **качество требований**, не реализацию!
235
+
236
+ ```markdown
237
+ # Правильно (проверка требований):
238
+ - [ ] Are error handling requirements defined for all API failure modes?
239
+
240
+ # Неправильно (проверка реализации):
241
+ - [ ] Verify API returns 200 on success
242
+ ```
243
+
244
+ ---
245
+
246
+ ### `/speckit.constitution` — Управление принципами
247
+
248
+ **Что делает**: Создаёт/обновляет файл принципов проекта.
249
+
250
+ **Использование**:
251
+ ```bash
252
+ /speckit.constitution
253
+ /speckit.constitution добавить принцип "No ORM, raw SQL only"
254
+ ```
255
+
256
+ **Файл**: `.specify/memory/constitution.md`
257
+
258
+ Constitution определяет:
259
+ - Обязательные технологии
260
+ - Запрещённые подходы
261
+ - Quality gates
262
+ - Архитектурные ограничения
263
+
264
+ ---
265
+
266
+ ### `/speckit.taskstoissues` — Экспорт в GitHub Issues
267
+
268
+ **Что делает**: Конвертирует tasks.md в GitHub Issues.
269
+
270
+ **Использование**:
271
+ ```bash
272
+ /speckit.taskstoissues # все задачи
273
+ /speckit.taskstoissues --dry-run # только показать
274
+ /speckit.taskstoissues --phase 1 # только Phase 1
275
+ /speckit.taskstoissues --limit 5 # первые 5 задач
276
+ ```
277
+
278
+ **Требования**:
279
+ - `gh` CLI установлен (`brew install gh` / `apt install gh`)
280
+ - Авторизация: `gh auth login`
281
+ - Remote должен быть GitHub URL
282
+
283
+ **Что создаёт**:
284
+ - Issue для каждой задачи из tasks.md
285
+ - Labels: `speckit`, `setup`, `user-story`
286
+ - Форматированное описание с metadata
287
+
288
+ ---
289
+
290
+ ## Структура проекта
291
+
292
+ ```
293
+ project/
294
+ ├── .specify/
295
+ │ ├── memory/
296
+ │ │ └── constitution.md # Принципы проекта
297
+ │ ├── templates/
298
+ │ │ ├── spec-template.md
299
+ │ │ ├── plan-template.md
300
+ │ │ ├── tasks-template.md
301
+ │ │ └── checklist-template.md
302
+ │ └── scripts/bash/
303
+ │ ├── create-new-feature.sh
304
+ │ ├── check-prerequisites.sh
305
+ │ ├── setup-plan.sh
306
+ │ └── update-agent-context.sh
307
+ ├── .claude/commands/
308
+ │ ├── speckit.specify.md
309
+ │ ├── speckit.clarify.md
310
+ │ ├── speckit.plan.md
311
+ │ ├── speckit.tasks.md
312
+ │ ├── speckit.analyze.md
313
+ │ ├── speckit.implement.md
314
+ │ ├── speckit.checklist.md
315
+ │ ├── speckit.constitution.md
316
+ │ └── speckit.taskstoissues.md
317
+ └── specs/
318
+ └── 1-feature-name/
319
+ ├── spec.md
320
+ ├── plan.md
321
+ ├── research.md
322
+ ├── research/ # Сложные исследования
323
+ ├── data-model.md
324
+ ├── contracts/
325
+ ├── quickstart.md
326
+ ├── tasks.md
327
+ └── checklists/
328
+ └── requirements.md
329
+ ```
330
+
331
+ ---
332
+
333
+ ## Phase 0: Planning — Детали
334
+
335
+ Phase 0 — критическая фаза перед реализацией:
336
+
337
+ | Шаг | Действие | Результат |
338
+ |-----|----------|-----------|
339
+ | P001 | Анализ задач | Список необходимых агентов |
340
+ | P002 | Создание агентов | `.claude/agents/` + restart |
341
+ | P003 | Назначение executor'ов | Аннотации `[EXECUTOR: name]` |
342
+ | P004 | Research resolution | Решённые вопросы или prompts |
343
+
344
+ **Executor'ы**:
345
+ - `MAIN` — только тривиальные задачи (1-2 строки)
346
+ - `existing-agent` — если 100% совпадение возможностей
347
+ - `new-agent` — создаётся через meta-agent-v3
348
+
349
+ **Пример аннотированной задачи**:
350
+ ```markdown
351
+ - [ ] T012 [P] [US1] [EXECUTOR: fullstack-nextjs-specialist] [PARALLEL-GROUP-1]
352
+ Create User model in src/models/user.ts
353
+ ```
354
+
355
+ ---
356
+
357
+ ## Интеграция с библиотеками
358
+
359
+ Перед написанием кода >20 строк:
360
+
361
+ 1. **WebSearch**: `npm {functionality} library 2025`
362
+ 2. **Context7**: Получить документацию
363
+ 3. **Проверить**: downloads >1000/week, commits <6 months, TypeScript support
364
+ 4. **Решить**: использовать библиотеку или писать своё
365
+
366
+ ```bash
367
+ # В implement фазе автоматически:
368
+ mcp__context7__resolve-library-id → получить ID
369
+ mcp__context7__get-library-docs → получить docs по теме
370
+ ```
371
+
372
+ ---
373
+
374
+ ## DeksdenFlow (Session Management)
375
+
376
+ При длинных сессиях `/speckit.implement`:
377
+
378
+ - **resume-session** — проверка существующей сессии
379
+ - **save-session-context** — сохранение после каждой фазы
380
+ - **load-project-context** — загрузка структуры проекта
381
+
382
+ Позволяет:
383
+ - Возобновить работу после перезапуска
384
+ - Не терять контекст при ошибках
385
+ - Логировать решения в session-log.md
386
+
387
+ ---
388
+
389
+ ## Типичные сценарии
390
+
391
+ ### Новая фича с нуля
392
+ ```bash
393
+ /speckit.specify Добавить систему уведомлений
394
+ /speckit.clarify
395
+ /speckit.plan Next.js, Supabase
396
+ /speckit.tasks
397
+ /speckit.implement
398
+ ```
399
+
400
+ ### Быстрый прототип (skip clarify)
401
+ ```bash
402
+ /speckit.specify Простая форма обратной связи
403
+ /speckit.plan
404
+ /speckit.tasks
405
+ /speckit.implement
406
+ ```
407
+
408
+ ### Только планирование (без реализации)
409
+ ```bash
410
+ /speckit.specify Миграция на новую архитектуру
411
+ /speckit.clarify
412
+ /speckit.plan
413
+ /speckit.tasks
414
+ /speckit.analyze
415
+ # Передать tasks.md команде
416
+ ```
417
+
418
+ ### Проверка существующей спеки
419
+ ```bash
420
+ /speckit.analyze
421
+ /speckit.checklist security
422
+ /speckit.checklist ux
423
+ ```
424
+
425
+ ---
426
+
427
+ ## Troubleshooting
428
+
429
+ | Проблема | Решение |
430
+ |----------|---------|
431
+ | `No feature branch` | Сначала запустите `/speckit.specify` |
432
+ | `spec.md not found` | Переключитесь на feature ветку |
433
+ | `tasks.md missing` | Запустите `/speckit.tasks` |
434
+ | Агент не найден | После P002 перезапустите Claude Code |
435
+ | Library not found | Проверьте Context7 MCP connection |
436
+
437
+ ---
438
+
439
+ # Health Commands
440
+
441
+ Команды для автоматического анализа и исправления качества кода.
442
+
443
+ ## `/health-bugs` — Поиск и исправление багов
444
+
445
+ **Что делает**: Полный цикл обнаружения и исправления багов.
446
+
447
+ ```bash
448
+ /health-bugs
449
+ ```
450
+
451
+ **Workflow**:
452
+ 1. Сканирование кода на баги (все приоритеты)
453
+ 2. Исправление по стадиям: critical → high → medium → low
454
+ 3. Quality gates после каждой стадии
455
+ 4. Верификация
456
+ 5. До 3 итераций если проблемы остаются
457
+
458
+ ---
459
+
460
+ ## `/health-security` — Анализ безопасности
461
+
462
+ **Что делает**: Обнаружение и исправление уязвимостей.
463
+
464
+ ```bash
465
+ /health-security
466
+ ```
467
+
468
+ **Что проверяет**:
469
+ - SQL injection, XSS
470
+ - Проблемы аутентификации
471
+ - Hardcoded secrets
472
+ - RLS policies (Supabase)
473
+ - OWASP Top 10
474
+
475
+ ---
476
+
477
+ ## `/health-deps` — Управление зависимостями
478
+
479
+ **Что делает**: Аудит и обновление зависимостей.
480
+
481
+ ```bash
482
+ /health-deps
483
+ ```
484
+
485
+ **Что делает**:
486
+ - Поиск устаревших пакетов
487
+ - Обнаружение уязвимостей (npm audit)
488
+ - Обновление по одному пакету с валидацией
489
+ - Откат при ошибках
490
+
491
+ ---
492
+
493
+ ## `/health-cleanup` — Очистка dead code
494
+
495
+ **Что делает**: Поиск и удаление неиспользуемого кода.
496
+
497
+ ```bash
498
+ /health-cleanup
499
+ ```
500
+
501
+ **Что ищет**:
502
+ - Неиспользуемые функции и переменные
503
+ - Закомментированный код
504
+ - Debug артефакты (console.log)
505
+ - Недостижимый код
506
+
507
+ ---
508
+
509
+ ## `/health-reuse` — Дедупликация кода
510
+
511
+ **Что делает**: Поиск и консолидация дублирующегося кода.
512
+
513
+ ```bash
514
+ /health-reuse
515
+ ```
516
+
517
+ **Что ищет**:
518
+ - Дублирующиеся типы и интерфейсы
519
+ - Повторяющиеся Zod схемы
520
+ - Копипаст констант
521
+ - Похожие утилиты
522
+
523
+ ---
524
+
525
+ ## `/health-metrics` — Метрики качества
526
+
527
+ **Что делает**: Сбор метрик качества кода.
528
+
529
+ ```bash
530
+ /health-metrics
531
+ ```
532
+
533
+ **Метрики**:
534
+ - Покрытие тестами
535
+ - Сложность кода
536
+ - Количество TODO/FIXME
537
+ - Размер бандла
538
+
539
+ ---
540
+
541
+ # Worktree Commands
542
+
543
+ Команды для параллельной разработки через git worktrees.
544
+
545
+ ## `/worktree-create` — Создать worktree
546
+
547
+ **Что делает**: Создаёт изолированную директорию для параллельной работы.
548
+
549
+ ```bash
550
+ /worktree-create feature-name
551
+ /worktree-create payment-system main
552
+ ```
553
+
554
+ **Результат**:
555
+ - Создаёт `../project-worktrees/feature-name/`
556
+ - Создаёт ветку `feature-name`
557
+ - Копирует конфиги из `.worktree-sync.json`
558
+
559
+ ---
560
+
561
+ ## `/worktree-list` — Список worktrees
562
+
563
+ **Что делает**: Показывает все активные worktrees.
564
+
565
+ ```bash
566
+ /worktree-list
567
+ ```
568
+
569
+ ---
570
+
571
+ ## `/worktree-remove` — Удалить worktree
572
+
573
+ **Что делает**: Удаляет worktree и опционально ветку.
574
+
575
+ ```bash
576
+ /worktree-remove feature-name
577
+ ```
578
+
579
+ ---
580
+
581
+ ## `/worktree-cleanup` — Очистка worktrees
582
+
583
+ **Что делает**: Удаляет устаревшие worktrees.
584
+
585
+ ```bash
586
+ /worktree-cleanup
587
+ ```
588
+
589
+ ---
590
+
591
+ # Release & Utility
592
+
593
+ ## `/push` — Автоматизация релизов
594
+
595
+ **Что делает**: Бампит версию, обновляет CHANGELOG, создаёт тег и пушит.
596
+
597
+ ```bash
598
+ /push patch # 1.0.0 → 1.0.1 (багфиксы)
599
+ /push minor # 1.0.0 → 1.1.0 (новые фичи)
600
+ /push major # 1.0.0 → 2.0.0 (breaking changes)
601
+ /push # автоопределение по коммитам
602
+ ```
603
+
604
+ **Особенности**:
605
+ - Синхронизирует версию с последним тегом
606
+ - Анализирует conventional commits
607
+ - Генерирует CHANGELOG
608
+ - Откат при ошибках
609
+
610
+ ---
611
+
612
+ ## `/translate-doc` — Перевод документации
613
+
614
+ **Что делает**: Переводит документацию с английского на русский.
615
+
616
+ ```bash
617
+ /translate-doc docs/README.md
618
+ ```
619
+
620
+ **Сохраняет**:
621
+ - Markdown форматирование
622
+ - Код без изменений
623
+ - Технические термины
624
+
625
+ ---
626
+
627
+ # Полная структура проекта
628
+
629
+ ```
630
+ project/
631
+ ├── .claude/
632
+ │ ├── commands/ # Slash команды
633
+ │ │ ├── speckit.*.md # Spec-Kit (9 файлов)
634
+ │ │ ├── health-*.md # Health (6 файлов)
635
+ │ │ ├── worktree-*.md # Worktree (4 файла)
636
+ │ │ ├── push.md # Release
637
+ │ │ └── translate-doc.md # Utility
638
+ │ ├── agents/ # Субагенты
639
+ │ │ ├── workers/
640
+ │ │ └── orchestrators/
641
+ │ ├── skills/ # Навыки (reusable)
642
+ │ └── scripts/ # Bash скрипты
643
+ │ └── release.sh
644
+ ├── .specify/
645
+ │ ├── memory/
646
+ │ │ └── constitution.md
647
+ │ ├── templates/
648
+ │ └── scripts/bash/
649
+ ├── specs/ # Спецификации фич
650
+ │ └── 1-feature-name/
651
+ ├── docs/
652
+ │ └── SPECKIT-GUIDE.md # Это руководство
653
+ └── .worktree-sync.json # Конфиг для worktrees
654
+ ```
655
+
656
+ ---
657
+
658
+ ## Ссылки
659
+
660
+ - [GitHub Spec-Kit](https://github.com/github/spec-kit)
661
+ - [Spec-Driven Development Guide](https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/)
662
+ - [Claude Code Orchestrator Kit](https://github.com/maslennikov-ig/claude-code-orchestrator-kit)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-code-orchestrator-kit",
3
- "version": "1.3.1",
3
+ "version": "1.4.1",
4
4
  "description": "Complete automation and orchestration system for Claude Code with 33+ AI agents, quality gates, health monitoring, and workflow automation",
5
5
  "main": "index.js",
6
6
  "type": "module",