claude-code-orchestrator-kit 1.3.1 → 1.4.0

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,35 @@
1
+ ---
2
+ description: Convert existing tasks into actionable, dependency-ordered GitHub issues for the feature based on available design artifacts.
3
+ tools: ['github/github-mcp-server/issue_write']
4
+ scripts:
5
+ sh: .specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
6
+ ps: .specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
7
+ ---
8
+
9
+ ## User Input
10
+
11
+ ```text
12
+ $ARGUMENTS
13
+ ```
14
+
15
+ You **MUST** consider the user input before proceeding (if not empty).
16
+
17
+ ## Outline
18
+
19
+ 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").
20
+
21
+ 2. From the executed script, extract the path to **tasks**.
22
+
23
+ 3. Get the Git remote by running:
24
+
25
+ ```bash
26
+ git config --get remote.origin.url
27
+ ```
28
+
29
+ > [!CAUTION]
30
+ > ONLY PROCEED TO NEXT STEPS IF THE REMOTE IS A GITHUB URL
31
+
32
+ 4. For each task in the list, use the GitHub MCP server to create a new issue in the repository that is representative of the Git remote.
33
+
34
+ > [!CAUTION]
35
+ > UNDER NO CIRCUMSTANCES EVER CREATE ISSUES IN REPOSITORIES THAT DO NOT MATCH THE REMOTE URL
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,415 @@
1
+ # Spec-Kit: Руководство по использованию
2
+
3
+ > Версия: v0.0.90 + DeksdenFlow расширения
4
+
5
+ Spec-Kit — это набор команд для **спецификационно-ориентированной разработки** (Spec-Driven Development). Позволяет структурированно описывать требования, планировать реализацию и выполнять задачи через агентов.
6
+
7
+ ---
8
+
9
+ ## Быстрый старт
10
+
11
+ ```bash
12
+ # 1. Создать спецификацию фичи
13
+ /speckit.specify Добавить систему аутентификации через OAuth2
14
+
15
+ # 2. Уточнить требования (опционально)
16
+ /speckit.clarify
17
+
18
+ # 3. Создать технический план
19
+ /speckit.plan
20
+
21
+ # 4. Сгенерировать задачи
22
+ /speckit.tasks
23
+
24
+ # 5. Проверить консистентность (опционально)
25
+ /speckit.analyze
26
+
27
+ # 6. Реализовать
28
+ /speckit.implement
29
+ ```
30
+
31
+ ---
32
+
33
+ ## Команды
34
+
35
+ ### `/speckit.specify` — Создание спецификации
36
+
37
+ **Что делает**: Создаёт ветку, директорию и файл `spec.md` с требованиями.
38
+
39
+ **Использование**:
40
+ ```bash
41
+ /speckit.specify Описание фичи на естественном языке
42
+ ```
43
+
44
+ **Пример**:
45
+ ```bash
46
+ /speckit.specify Добавить дашборд аналитики с графиками посещаемости
47
+ ```
48
+
49
+ **Результат**:
50
+ - Создаётся ветка `1-analytics-dashboard`
51
+ - Создаётся `specs/1-analytics-dashboard/spec.md`
52
+ - Создаётся чеклист `specs/1-analytics-dashboard/checklists/requirements.md`
53
+
54
+ **Особенности**:
55
+ - Автоматически генерирует короткое имя ветки
56
+ - Проверяет существующие ветки для уникального номера
57
+ - Максимум 3 маркера `[NEEDS CLARIFICATION]`
58
+ - Задаёт уточняющие вопросы если нужно
59
+
60
+ ---
61
+
62
+ ### `/speckit.clarify` — Уточнение требований
63
+
64
+ **Что делает**: Анализирует спецификацию на неясности и задаёт до 5 вопросов.
65
+
66
+ **Использование**:
67
+ ```bash
68
+ /speckit.clarify
69
+ /speckit.clarify область безопасности
70
+ ```
71
+
72
+ **Когда использовать**:
73
+ - Перед `/speckit.plan` если spec.md содержит неясности
74
+ - Для глубокой проработки конкретной области
75
+
76
+ **Особенности**:
77
+ - Анализирует по 11 категориям (Scope, Data Model, UX, Security и др.)
78
+ - Предлагает рекомендованные ответы
79
+ - Обновляет spec.md после каждого ответа
80
+ - Сложные вопросы помечает для research phase
81
+
82
+ ---
83
+
84
+ ### `/speckit.plan` — Техническое планирование
85
+
86
+ **Что делает**: Создаёт технический план с архитектурой, моделями данных и контрактами.
87
+
88
+ **Использование**:
89
+ ```bash
90
+ /speckit.plan
91
+ /speckit.plan Next.js 15, Supabase, tRPC
92
+ ```
93
+
94
+ **Результат** (в директории фичи):
95
+ - `plan.md` — основной план
96
+ - `research.md` — результаты исследований
97
+ - `research/` — сложные исследования (если есть)
98
+ - `data-model.md` — модели данных
99
+ - `contracts/` — API контракты
100
+ - `quickstart.md` — быстрый старт
101
+
102
+ **Особенности**:
103
+ - **Library-First**: Сначала ищет существующие библиотеки
104
+ - Проверяет соответствие Constitution
105
+ - Классифицирует research: simple (решается сразу) / complex (в research/)
106
+
107
+ ---
108
+
109
+ ### `/speckit.tasks` — Генерация задач
110
+
111
+ **Что делает**: Создаёт `tasks.md` с пошаговым планом реализации.
112
+
113
+ **Использование**:
114
+ ```bash
115
+ /speckit.tasks
116
+ ```
117
+
118
+ **Структура tasks.md**:
119
+ ```
120
+ Phase 0: Planning (назначение executor'ов)
121
+ Phase 1: Setup (инициализация проекта)
122
+ Phase 2: Foundational (базовая инфраструктура)
123
+ Phase 3+: User Stories (по приоритетам P1, P2, P3...)
124
+ Phase N: Polish (финальные улучшения)
125
+ ```
126
+
127
+ **Формат задач**:
128
+ ```markdown
129
+ - [ ] T001 Create project structure per implementation plan
130
+ - [ ] T005 [P] [US1] Create User model in src/models/user.py
131
+ ```
132
+
133
+ - `T001` — ID задачи
134
+ - `[P]` — можно выполнять параллельно
135
+ - `[US1]` — относится к User Story 1
136
+
137
+ ---
138
+
139
+ ### `/speckit.analyze` — Анализ консистентности
140
+
141
+ **Что делает**: Проверяет spec.md, plan.md и tasks.md на противоречия.
142
+
143
+ **Использование**:
144
+ ```bash
145
+ /speckit.analyze
146
+ ```
147
+
148
+ **Что проверяет**:
149
+ - Дублирование требований
150
+ - Неясные формулировки
151
+ - Покрытие требований задачами
152
+ - Соответствие Constitution
153
+ - Терминологическую консистентность
154
+
155
+ **Результат**: Отчёт с severity (CRITICAL/HIGH/MEDIUM/LOW) и рекомендациями.
156
+
157
+ ---
158
+
159
+ ### `/speckit.implement` — Реализация
160
+
161
+ **Что делает**: Выполняет задачи из tasks.md через агентов.
162
+
163
+ **Использование**:
164
+ ```bash
165
+ /speckit.implement
166
+ /speckit.implement начать с Phase 2
167
+ ```
168
+
169
+ **Workflow**:
170
+
171
+ ```
172
+ ┌─────────────────────────────────────────────────────────┐
173
+ │ PLANNING PHASE (один раз в начале) │
174
+ ├─────────────────────────────────────────────────────────┤
175
+ │ P001: Анализ задач → какие агенты нужны │
176
+ │ P002: Создание агентов через meta-agent-v3 │
177
+ │ P003: Назначение executor'ов для каждой задачи │
178
+ │ P004: Решение research задач │
179
+ └─────────────────────────────────────────────────────────┘
180
+
181
+ ┌─────────────────────────────────────────────────────────┐
182
+ │ EXECUTION (для каждой задачи) │
183
+ ├─────────────────────────────────────────────────────────┤
184
+ │ 1. TodoWrite: in_progress │
185
+ │ 2. Gather context (код, паттерны, документация) │
186
+ │ 3. Library search (если >20 строк нового кода) │
187
+ │ 4. Context7: получить docs библиотек │
188
+ │ 5. Execute: делегировать агенту или выполнить │
189
+ │ 6. Verify: прочитать файлы, type-check │
190
+ │ 7. Accept/Reject: повторить если ошибка │
191
+ │ 8. TodoWrite: completed │
192
+ │ 9. Mark [X] в tasks.md + artifacts │
193
+ │ 10. /push patch │
194
+ └─────────────────────────────────────────────────────────┘
195
+ ```
196
+
197
+ **Ключевые правила**:
198
+ - **1 Task = 1 Agent** — атомарность
199
+ - **Parallel = N calls in single message** — параллельные задачи запускаются одним сообщением
200
+ - **Library-first** — сначала ищем библиотеку, потом пишем код
201
+ - **Commit after each task** — `/push patch` после каждой задачи
202
+
203
+ ---
204
+
205
+ ### `/speckit.checklist` — Создание чеклиста
206
+
207
+ **Что делает**: Генерирует чеклист для проверки качества требований.
208
+
209
+ **Использование**:
210
+ ```bash
211
+ /speckit.checklist ux
212
+ /speckit.checklist security
213
+ /speckit.checklist api
214
+ ```
215
+
216
+ **Важно**: Чеклисты проверяют **качество требований**, не реализацию!
217
+
218
+ ```markdown
219
+ # Правильно (проверка требований):
220
+ - [ ] Are error handling requirements defined for all API failure modes?
221
+
222
+ # Неправильно (проверка реализации):
223
+ - [ ] Verify API returns 200 on success
224
+ ```
225
+
226
+ ---
227
+
228
+ ### `/speckit.constitution` — Управление принципами
229
+
230
+ **Что делает**: Создаёт/обновляет файл принципов проекта.
231
+
232
+ **Использование**:
233
+ ```bash
234
+ /speckit.constitution
235
+ /speckit.constitution добавить принцип "No ORM, raw SQL only"
236
+ ```
237
+
238
+ **Файл**: `.specify/memory/constitution.md`
239
+
240
+ Constitution определяет:
241
+ - Обязательные технологии
242
+ - Запрещённые подходы
243
+ - Quality gates
244
+ - Архитектурные ограничения
245
+
246
+ ---
247
+
248
+ ### `/speckit.taskstoissues` — Экспорт в GitHub Issues
249
+
250
+ **Что делает**: Конвертирует tasks.md в GitHub Issues.
251
+
252
+ **Использование**:
253
+ ```bash
254
+ /speckit.taskstoissues
255
+ ```
256
+
257
+ **Требования**:
258
+ - GitHub MCP server должен быть настроен
259
+ - Remote должен быть GitHub URL
260
+
261
+ ---
262
+
263
+ ## Структура проекта
264
+
265
+ ```
266
+ project/
267
+ ├── .specify/
268
+ │ ├── memory/
269
+ │ │ └── constitution.md # Принципы проекта
270
+ │ ├── templates/
271
+ │ │ ├── spec-template.md
272
+ │ │ ├── plan-template.md
273
+ │ │ ├── tasks-template.md
274
+ │ │ └── checklist-template.md
275
+ │ └── scripts/bash/
276
+ │ ├── create-new-feature.sh
277
+ │ ├── check-prerequisites.sh
278
+ │ ├── setup-plan.sh
279
+ │ └── update-agent-context.sh
280
+ ├── .claude/commands/
281
+ │ ├── speckit.specify.md
282
+ │ ├── speckit.clarify.md
283
+ │ ├── speckit.plan.md
284
+ │ ├── speckit.tasks.md
285
+ │ ├── speckit.analyze.md
286
+ │ ├── speckit.implement.md
287
+ │ ├── speckit.checklist.md
288
+ │ ├── speckit.constitution.md
289
+ │ └── speckit.taskstoissues.md
290
+ └── specs/
291
+ └── 1-feature-name/
292
+ ├── spec.md
293
+ ├── plan.md
294
+ ├── research.md
295
+ ├── research/ # Сложные исследования
296
+ ├── data-model.md
297
+ ├── contracts/
298
+ ├── quickstart.md
299
+ ├── tasks.md
300
+ └── checklists/
301
+ └── requirements.md
302
+ ```
303
+
304
+ ---
305
+
306
+ ## Phase 0: Planning — Детали
307
+
308
+ Phase 0 — критическая фаза перед реализацией:
309
+
310
+ | Шаг | Действие | Результат |
311
+ |-----|----------|-----------|
312
+ | P001 | Анализ задач | Список необходимых агентов |
313
+ | P002 | Создание агентов | `.claude/agents/` + restart |
314
+ | P003 | Назначение executor'ов | Аннотации `[EXECUTOR: name]` |
315
+ | P004 | Research resolution | Решённые вопросы или prompts |
316
+
317
+ **Executor'ы**:
318
+ - `MAIN` — только тривиальные задачи (1-2 строки)
319
+ - `existing-agent` — если 100% совпадение возможностей
320
+ - `new-agent` — создаётся через meta-agent-v3
321
+
322
+ **Пример аннотированной задачи**:
323
+ ```markdown
324
+ - [ ] T012 [P] [US1] [EXECUTOR: fullstack-nextjs-specialist] [PARALLEL-GROUP-1]
325
+ Create User model in src/models/user.ts
326
+ ```
327
+
328
+ ---
329
+
330
+ ## Интеграция с библиотеками
331
+
332
+ Перед написанием кода >20 строк:
333
+
334
+ 1. **WebSearch**: `npm {functionality} library 2025`
335
+ 2. **Context7**: Получить документацию
336
+ 3. **Проверить**: downloads >1000/week, commits <6 months, TypeScript support
337
+ 4. **Решить**: использовать библиотеку или писать своё
338
+
339
+ ```bash
340
+ # В implement фазе автоматически:
341
+ mcp__context7__resolve-library-id → получить ID
342
+ mcp__context7__get-library-docs → получить docs по теме
343
+ ```
344
+
345
+ ---
346
+
347
+ ## DeksdenFlow (Session Management)
348
+
349
+ При длинных сессиях `/speckit.implement`:
350
+
351
+ - **resume-session** — проверка существующей сессии
352
+ - **save-session-context** — сохранение после каждой фазы
353
+ - **load-project-context** — загрузка структуры проекта
354
+
355
+ Позволяет:
356
+ - Возобновить работу после перезапуска
357
+ - Не терять контекст при ошибках
358
+ - Логировать решения в session-log.md
359
+
360
+ ---
361
+
362
+ ## Типичные сценарии
363
+
364
+ ### Новая фича с нуля
365
+ ```bash
366
+ /speckit.specify Добавить систему уведомлений
367
+ /speckit.clarify
368
+ /speckit.plan Next.js, Supabase
369
+ /speckit.tasks
370
+ /speckit.implement
371
+ ```
372
+
373
+ ### Быстрый прототип (skip clarify)
374
+ ```bash
375
+ /speckit.specify Простая форма обратной связи
376
+ /speckit.plan
377
+ /speckit.tasks
378
+ /speckit.implement
379
+ ```
380
+
381
+ ### Только планирование (без реализации)
382
+ ```bash
383
+ /speckit.specify Миграция на новую архитектуру
384
+ /speckit.clarify
385
+ /speckit.plan
386
+ /speckit.tasks
387
+ /speckit.analyze
388
+ # Передать tasks.md команде
389
+ ```
390
+
391
+ ### Проверка существующей спеки
392
+ ```bash
393
+ /speckit.analyze
394
+ /speckit.checklist security
395
+ /speckit.checklist ux
396
+ ```
397
+
398
+ ---
399
+
400
+ ## Troubleshooting
401
+
402
+ | Проблема | Решение |
403
+ |----------|---------|
404
+ | `No feature branch` | Сначала запустите `/speckit.specify` |
405
+ | `spec.md not found` | Переключитесь на feature ветку |
406
+ | `tasks.md missing` | Запустите `/speckit.tasks` |
407
+ | Агент не найден | После P002 перезапустите Claude Code |
408
+ | Library not found | Проверьте Context7 MCP connection |
409
+
410
+ ---
411
+
412
+ ## Ссылки
413
+
414
+ - [GitHub Spec-Kit](https://github.com/github/spec-kit)
415
+ - [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/)
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.0",
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",