@mrciphersmith/keryx 0.2.98 → 0.2.100
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.
- package/dist/cli.js +4605 -2695
- package/dist/core.js +39 -1
- package/package.json +1 -1
- package/src/gdskills/bundled/rules/core/cli-interface-design.mdc +237 -0
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +116 -0
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +101 -11
- package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +9 -2
- package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +42 -5
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +19 -3
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +20 -4
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +32 -9
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +18 -4
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +21 -5
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +42 -2
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +23 -9
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +33 -31
- package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +32 -1
- package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +32 -2
- package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +14 -2
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +29 -7
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +32 -6
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +17 -0
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +17 -0
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +20 -3
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +16 -0
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +16 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +4 -0
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +4 -0
- package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +31 -4
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +26 -2
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +28 -3
- package/src/gdskills/bundled/skills/quality/api-truth/SKILL.md +226 -0
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +26 -3
- package/src/gdskills/bundled/skills/quality/deprecation-path/SKILL.md +268 -0
- package/src/gdskills/bundled/skills/quality/fresh-eyes/SKILL.md +190 -0
- package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +29 -8
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +24 -4
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +25 -2
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/root-cause/SKILL.md +204 -0
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +25 -4
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +24 -3
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +17 -2
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +40 -5
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +41 -1
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +44 -2
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +44 -4
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +2 -3
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +4 -4
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +37 -3
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +2 -4
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +36 -2
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +3 -5
- package/src/gdskills/bundled/skills/review/review-layout/SKILL.md +23 -2
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +9 -29
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +9 -9
- package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +3 -2
- package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +33 -2
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +4 -2
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +40 -2
- package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +0 -330
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +0 -655
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +0 -424
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +0 -163
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +0 -373
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +0 -374
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +0 -2232
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +0 -668
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +0 -668
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +0 -90
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +0 -90
- package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +0 -187
- package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +0 -187
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +0 -105
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +0 -105
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +0 -193
- package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +0 -193
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +0 -87
- package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +0 -87
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +0 -100
- package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +0 -100
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +0 -84
- package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +0 -84
- package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +0 -66
- package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +0 -66
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +0 -81
- package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +0 -81
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +0 -70
- package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +0 -70
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +0 -83
- package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +0 -83
- package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +0 -75
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +0 -378
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +0 -378
- package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +0 -52
- package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +0 -52
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +0 -108
- package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +0 -108
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +0 -80
- package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +0 -80
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +0 -345
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +0 -345
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +0 -203
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +0 -203
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +0 -243
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +0 -243
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +0 -259
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +0 -259
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +0 -168
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +0 -168
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: feature-dev
|
|
3
|
-
description: "Use when taking a feature from idea or GitHub issue all the way to a merge-ready PR in one guided workflow."
|
|
4
|
-
triggers:
|
|
5
|
-
- "/feature-dev"
|
|
6
|
-
- "Develop feature"
|
|
7
|
-
- "Build feature"
|
|
8
|
-
- "Implement feature"
|
|
9
|
-
- "Feature from scratch"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "2.0.0"
|
|
13
|
-
category: "orchestration"
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
15
|
-
license: "MIT"
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
<SUBAGENT-STOP>
|
|
19
|
-
If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
|
|
20
|
-
This skill is for interactive feature development sessions only.
|
|
21
|
-
Proceed directly with your assigned task.
|
|
22
|
-
</SUBAGENT-STOP>
|
|
23
|
-
|
|
24
|
-
# Feature Development (7-Phase)
|
|
25
|
-
|
|
26
|
-
End-to-end feature development workflow from idea to merge-ready PR.
|
|
27
|
-
|
|
28
|
-
## Arguments
|
|
29
|
-
|
|
30
|
-
- `/feature-dev <description>` — start from a text description
|
|
31
|
-
- `/feature-dev #<issue>` — start from a GitHub issue
|
|
32
|
-
- `/feature-dev --resume` — resume interrupted feature-dev (checks for existing worktree/branch)
|
|
33
|
-
|
|
34
|
-
## 8-Phase Architecture
|
|
35
|
-
|
|
36
|
-
> **Rules always loaded:** `tdd-workflow.mdc`, `implementation-doc-mandate.mdc`, `error-handling.mdc`
|
|
37
|
-
> **Sub-agents used:** `tests-creator` (before implement), `code-verifier` (after implement)
|
|
38
|
-
|
|
39
|
-
### Phase 1: REQUIREMENTS + SPEC
|
|
40
|
-
|
|
41
|
-
1. Parse input (description or GitHub issue via `gh issue view`)
|
|
42
|
-
2. Clarify ambiguities — ask the user up to 3 questions max
|
|
43
|
-
3. Produce the **Implementation Spec** (per `implementation-doc-mandate.mdc`):
|
|
44
|
-
- **What**: feature description in 2-3 sentences
|
|
45
|
-
- **Why**: user value / business reason
|
|
46
|
-
- **Scope**: what's in, what's explicitly out
|
|
47
|
-
- **Acceptance criteria**: testable bullet points
|
|
48
|
-
- **Approach**: which files will change, key design decisions
|
|
49
|
-
- **Test strategy**: framework, which scenarios will be covered
|
|
50
|
-
4. **Save spec** to `.feature-spec.md` in project root (add to .gitignore if not already)
|
|
51
|
-
5. **Get user confirmation before proceeding**
|
|
52
|
-
|
|
53
|
-
### Phase 2: DESIGN
|
|
54
|
-
|
|
55
|
-
1. Research the codebase:
|
|
56
|
-
- Find related modules via search tools
|
|
57
|
-
- Read neighboring implementations for patterns
|
|
58
|
-
- **Detect test framework** (package.json, existing test files) — needed for tests-creator
|
|
59
|
-
2. Produce implementation plan:
|
|
60
|
-
- Files to create/modify (with brief description of changes)
|
|
61
|
-
- Dependencies or packages needed
|
|
62
|
-
- Data model changes if any
|
|
63
|
-
- Estimated complexity: S / M / L
|
|
64
|
-
3. Load relevant rules from `.metaproject/rules/core/` based on what will be built:
|
|
65
|
-
- Always: `tdd-workflow.mdc`, `error-handling.mdc`, `solid-principles.mdc`
|
|
66
|
-
- API/service code: `api-contracts.mdc`, `clean-architecture.mdc`
|
|
67
|
-
- Database: `database-patterns.mdc`
|
|
68
|
-
- Async: `async-patterns.mdc`
|
|
69
|
-
- Security-sensitive: `security-baseline.mdc`
|
|
70
|
-
4. **Get user confirmation on the plan**
|
|
71
|
-
|
|
72
|
-
### Phase 3: PREPARE
|
|
73
|
-
|
|
74
|
-
1. Create a feature branch: `wt switch -c feat/<name>`
|
|
75
|
-
2. Install any new dependencies
|
|
76
|
-
|
|
77
|
-
### Phase 4: TESTS-CREATOR (TDD — RED phase)
|
|
78
|
-
|
|
79
|
-
**Run before writing any implementation code.**
|
|
80
|
-
|
|
81
|
-
1. For each group of acceptance criteria, invoke `tests-creator`:
|
|
82
|
-
- Input: acceptance criteria from Phase 1 spec + target files from Phase 2 plan
|
|
83
|
-
- tests-creator detects framework and generates failing test stubs
|
|
84
|
-
- tests-creator commits the stubs and verifies RED state
|
|
85
|
-
2. Confirm test stubs are in place and failing before proceeding to Phase 5
|
|
86
|
-
|
|
87
|
-
### Phase 5: IMPLEMENT (TDD — GREEN phase)
|
|
88
|
-
|
|
89
|
-
1. Implement changes file by file, following the plan from Phase 2
|
|
90
|
-
2. Goal: make the failing tests from Phase 4 GREEN
|
|
91
|
-
3. Follow existing code patterns and loaded rules
|
|
92
|
-
4. After each file group, run quick inline check: `npx tsc --noEmit` (type errors only)
|
|
93
|
-
5. Commit with conventional message after each logical chunk
|
|
94
|
-
|
|
95
|
-
### Phase 6: VERIFY (code-verifier gate)
|
|
96
|
-
|
|
97
|
-
Run `code-verifier` on the full diff:
|
|
98
|
-
|
|
99
|
-
```
|
|
100
|
-
Invoke: .metaproject/skills/gdskills/orchestration/code-verifier/SKILL.md
|
|
101
|
-
Input: codebase_path=<project_root>, scope=changed, base_branch=<base>
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
- `gate: PASS` → proceed to Phase 7
|
|
105
|
-
- `gate: FAIL` → fix findings, re-run code-verifier (max 2 cycles)
|
|
106
|
-
- Still FAIL after 2 cycles → report blocker to user, stop
|
|
107
|
-
|
|
108
|
-
### Phase 7: REVIEW (Self)
|
|
109
|
-
|
|
110
|
-
1. Launch the `review-orchestrator` skill on own changes
|
|
111
|
-
2. Or run a focused self-review:
|
|
112
|
-
- `git diff main...HEAD` — review the full diff
|
|
113
|
-
- Check for: TODOs left behind, console.logs, hardcoded values
|
|
114
|
-
- Verify all acceptance criteria from Phase 1 spec
|
|
115
|
-
3. Fix any findings (max 2 review-fix cycles)
|
|
116
|
-
4. Re-run `code-verifier` after any fixes
|
|
117
|
-
|
|
118
|
-
### Phase 8: DELIVER + CHANGE REPORT
|
|
119
|
-
|
|
120
|
-
1. Push branch
|
|
121
|
-
2. Create PR:
|
|
122
|
-
- Link to issue if applicable
|
|
123
|
-
- Include acceptance criteria checklist
|
|
124
|
-
- Add test plan and code-verifier results
|
|
125
|
-
3. **Produce Change Report** (per `implementation-doc-mandate.mdc`):
|
|
126
|
-
- Files created/modified with descriptions
|
|
127
|
-
- Test count and results
|
|
128
|
-
- code-verifier gate result
|
|
129
|
-
- Acceptance criteria checklist (checked off)
|
|
130
|
-
- Commits list
|
|
131
|
-
4. Print Change Report to user
|
|
132
|
-
5. Report PR URL to user
|
|
133
|
-
|
|
134
|
-
## Status Updates
|
|
135
|
-
|
|
136
|
-
At each phase transition, report progress:
|
|
137
|
-
```
|
|
138
|
-
✅ Phase 1: Requirements confirmed
|
|
139
|
-
🔄 Phase 2: Designing implementation...
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Rules
|
|
143
|
-
|
|
144
|
-
- ALWAYS get user confirmation after Phase 1 (requirements + spec) and Phase 2 (design)
|
|
145
|
-
- Phases 4-7 are autonomous — no user interaction needed
|
|
146
|
-
- If stuck for >3 attempts on any step, report the blocker and ask user
|
|
147
|
-
- NEVER skip Phase 4 (tests-creator) even if user says "skip tests" — this is TDD, not optional testing
|
|
148
|
-
- NEVER skip Phase 6 (code-verifier) — it is the quality gate, not a suggestion
|
|
149
|
-
- NEVER commit broken code (code-verifier gate must pass before PR)
|
|
150
|
-
- Keep commits atomic: one commit per logical chunk, not one giant commit
|
|
151
|
-
- ALWAYS produce the Change Report in Phase 8 — even if the PR was not created
|
|
152
|
-
|
|
153
|
-
## Red Flags — Stop and re-read this skill if you are thinking:
|
|
154
|
-
|
|
155
|
-
| Rationalization | Why it's wrong |
|
|
156
|
-
|---|---|
|
|
157
|
-
| "Requirements are clear enough, I'll skip the design phase" | Skipping design means discovering mismatches after code is written, not before |
|
|
158
|
-
| "The user already approved this approach verbally, no need to document" | Undocumented approval is invisible to reviewers and future agents; it doesn't exist |
|
|
159
|
-
| "Tests can be written after — implementation first to check if the approach works" | Writing tests after implementation makes you test what you built, not what was required |
|
|
160
|
-
| "This phase isn't needed for such a straightforward feature" | Every skipped phase is a deferred bug report |
|
|
161
|
-
| "I understand the requirements, confirmation is just a formality" | The confirmation step exists to catch the gap between what you understood and what was meant |
|
|
162
|
-
|
|
163
|
-
**The three constraints that hold the pipeline together:** no implementation before the spec is written and confirmed; no implementation code before tests-creator has generated failing stubs; no delivery without a passing code-verifier gate and a Change Report.
|
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: issue-analyzer
|
|
3
|
-
description: "Use when decomposing a GitHub issue into atomic tasks for AI implementation, planning task breakdown, or preparing work for task-implementer agents."
|
|
4
|
-
triggers:
|
|
5
|
-
- "Analyze issue"
|
|
6
|
-
- "Decompose issue"
|
|
7
|
-
- "Break down issue"
|
|
8
|
-
- "Issue to tasks"
|
|
9
|
-
- "Plan issue implementation"
|
|
10
|
-
metadata:
|
|
11
|
-
author: "MrCipherSmith"
|
|
12
|
-
version: "1.1.0"
|
|
13
|
-
category: "orchestration"
|
|
14
|
-
agent_worthy: true
|
|
15
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
16
|
-
license: "MIT"
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
# Issue Analyzer
|
|
20
|
-
|
|
21
|
-
## Purpose
|
|
22
|
-
|
|
23
|
-
Analyzes a GitHub issue and decomposes it into atomic implementation tasks that can be dispatched to `task-implementer` sub-agents. Designed to run autonomously as a sub-agent — no user interaction required.
|
|
24
|
-
|
|
25
|
-
**Input:** GitHub issue URL (or repo + number) + codebase path(s)
|
|
26
|
-
**Output:** JSON analysis object with one task entry per atomic task, each containing full context for implementation
|
|
27
|
-
|
|
28
|
-
## When to Use
|
|
29
|
-
|
|
30
|
-
- Orchestrator needs to break an issue into implementable tasks
|
|
31
|
-
- Planning AI-driven implementation of a GitHub issue
|
|
32
|
-
- Understanding scope and affected areas before coding
|
|
33
|
-
|
|
34
|
-
## Architecture: 4 Phases
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
Phase 1: COLLECT → Fetch all issue data from GitHub
|
|
38
|
-
Phase 2: ANALYZE → Extract intent, find affected code areas
|
|
39
|
-
Phase 3: DECOMPOSE → Break into atomic tasks with dependencies
|
|
40
|
-
Phase 4: FORMALIZE → Emit structured JSON analysis object
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Workflow
|
|
46
|
-
|
|
47
|
-
```
|
|
48
|
-
Issue Analyzer Progress:
|
|
49
|
-
- [ ] Phase 1: Collect issue data from GitHub
|
|
50
|
-
- [ ] Phase 2: Analyze intent and search codebase
|
|
51
|
-
- [ ] Phase 3: Decompose into atomic tasks
|
|
52
|
-
- [ ] Phase 4: Formalize as JSON output
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
### Phase 1: COLLECT
|
|
56
|
-
|
|
57
|
-
Fetch all available data about the issue using `gh` CLI.
|
|
58
|
-
|
|
59
|
-
**1.1 Core issue data:**
|
|
60
|
-
```bash
|
|
61
|
-
gh issue view <NUMBER> --repo <OWNER/REPO> --json title,body,state,labels,assignees,milestone,comments,projectItems
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**1.2 Timeline events (cross-references, linked PRs, assignments):**
|
|
65
|
-
```bash
|
|
66
|
-
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/timeline --paginate
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
**1.3 Comments (full thread):**
|
|
70
|
-
```bash
|
|
71
|
-
gh api repos/<OWNER>/<REPO>/issues/<NUMBER>/comments --paginate
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
**1.4 Sub-issues (if any, via GraphQL):**
|
|
75
|
-
```bash
|
|
76
|
-
gh api graphql -f query='
|
|
77
|
-
query {
|
|
78
|
-
repository(owner: "<OWNER>", name: "<REPO>") {
|
|
79
|
-
issue(number: <NUMBER>) {
|
|
80
|
-
subIssues(first: 50) {
|
|
81
|
-
nodes { number title state url }
|
|
82
|
-
}
|
|
83
|
-
parent { number title url }
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
'
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**1.5 Linked documents:**
|
|
91
|
-
- Extract URLs from issue body and comments
|
|
92
|
-
- If URLs point to GitHub files, fetch their content
|
|
93
|
-
- If URLs point to docs, fetch via WebFetch
|
|
94
|
-
|
|
95
|
-
**Output of Phase 1:** Structured issue context object:
|
|
96
|
-
```
|
|
97
|
-
ISSUE_CONTEXT:
|
|
98
|
-
number: <N>
|
|
99
|
-
title: <string>
|
|
100
|
-
body: <markdown>
|
|
101
|
-
labels: [<string>]
|
|
102
|
-
assignees: [<string>]
|
|
103
|
-
comments: [{author, body, created_at}]
|
|
104
|
-
cross_references: [{source, type}]
|
|
105
|
-
sub_issues: [{number, title, state}]
|
|
106
|
-
parent_issue: {number, title} | null
|
|
107
|
-
linked_urls: [<url>]
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Phase 2: ANALYZE
|
|
111
|
-
|
|
112
|
-
**2.1 Extract intent from issue body:**
|
|
113
|
-
- Issue type: `bug` | `feature` | `enhancement` | `refactoring` | `chore`
|
|
114
|
-
- Expected behavior (from "Expected" / "Should" sections)
|
|
115
|
-
- Steps to reproduce (from "Steps" / "How to reproduce" sections)
|
|
116
|
-
- Acceptance criteria (from "AC" / "Criteria" / "Definition of Done" sections)
|
|
117
|
-
- If no explicit AC — derive from description and expected behavior
|
|
118
|
-
|
|
119
|
-
**2.2 Search codebase for affected areas:**
|
|
120
|
-
|
|
121
|
-
Using the codebase path(s) from input, search for relevant files:
|
|
122
|
-
|
|
123
|
-
```
|
|
124
|
-
For each keyword extracted from issue title + body:
|
|
125
|
-
1. Use `find_by_name` (or similar file search tool) to find files matching names.
|
|
126
|
-
2. Use `grep_search` to find files containing matching patterns (avoid using standard bash `grep` if the IDE provides a native tool).
|
|
127
|
-
3. Track: file path, line numbers, relevance score
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
**Priority classification:**
|
|
131
|
-
- **P0** (must change): Files directly mentioned in issue, files containing the buggy behavior
|
|
132
|
-
- **P1** (likely change): Files in the same module/directory, related types/interfaces
|
|
133
|
-
- **P2** (may need update): Tests, stories, docs for P0/P1 files
|
|
134
|
-
|
|
135
|
-
**2.3 Analyze module structure:**
|
|
136
|
-
- Read P0 files:
|
|
137
|
-
- For small/medium files: read fully via `view_file`.
|
|
138
|
-
- For large files (> 500 lines): DO NOT read fully to avoid context exhaustion. Use `view_file_outline` or `grep_search` to locate specific relevant class/function signatures.
|
|
139
|
-
- Identify: imports, exports, types, class/function signatures
|
|
140
|
-
- Map dependencies between files
|
|
141
|
-
- Identify existing tests and stories for affected components
|
|
142
|
-
|
|
143
|
-
**Output of Phase 2:** Analysis summary:
|
|
144
|
-
```
|
|
145
|
-
ANALYSIS:
|
|
146
|
-
issue_type: <bug|feature|enhancement|refactoring|chore>
|
|
147
|
-
intent: <1-2 sentence summary>
|
|
148
|
-
acceptance_criteria: [<string>]
|
|
149
|
-
affected_files:
|
|
150
|
-
p0: [{path, reason, key_symbols}]
|
|
151
|
-
p1: [{path, reason}]
|
|
152
|
-
p2: [{path, reason}]
|
|
153
|
-
module_map: {module_name: [files]}
|
|
154
|
-
existing_tests: [<path>]
|
|
155
|
-
existing_stories: [<path>]
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Phase 3: DECOMPOSE
|
|
159
|
-
|
|
160
|
-
Break the issue into atomic, implementable tasks.
|
|
161
|
-
|
|
162
|
-
**3.1 Decomposition rules:**
|
|
163
|
-
- Each task should be completable by a single agent in one session
|
|
164
|
-
- Each task should touch a minimal, cohesive set of files
|
|
165
|
-
- Tasks should follow the 3-layer architecture order when possible:
|
|
166
|
-
1. Service/API layer changes first
|
|
167
|
-
2. Store/logic layer changes second
|
|
168
|
-
3. Component/UI layer changes third
|
|
169
|
-
4. Tests and stories last (or inline with their layer)
|
|
170
|
-
- Maximum 7 tasks per issue (if more needed, the issue is too large)
|
|
171
|
-
|
|
172
|
-
**3.2 Determine task type for each task:**
|
|
173
|
-
|
|
174
|
-
| Task Type | Description | Required Outputs |
|
|
175
|
-
|-----------|-------------|-----------------|
|
|
176
|
-
| `ui_component` | New or modified React component | Code + Story + Screenshot test |
|
|
177
|
-
| `store_logic` | MobX store changes | Code + Unit test |
|
|
178
|
-
| `service_api` | API service / DTO changes | Code + Unit test |
|
|
179
|
-
| `refactoring` | Code restructuring | Code + Verify existing tests pass |
|
|
180
|
-
| `fix` | Bug fix | Code + Regression test |
|
|
181
|
-
| `mixed` | Crosses multiple layers | Code + Tests appropriate to each layer |
|
|
182
|
-
|
|
183
|
-
**3.3 Assign dependencies:**
|
|
184
|
-
- If task-2 imports types from task-1's new code → task-2 depends on task-1
|
|
185
|
-
- If task-3 tests code from task-2 → task-3 depends on task-2
|
|
186
|
-
- No circular dependencies allowed
|
|
187
|
-
|
|
188
|
-
**Output of Phase 3:** Task list:
|
|
189
|
-
```
|
|
190
|
-
TASKS:
|
|
191
|
-
- id: task-1
|
|
192
|
-
name: <descriptive name>
|
|
193
|
-
task_type: <enum>
|
|
194
|
-
description: <what to do>
|
|
195
|
-
target_files: [<path>]
|
|
196
|
-
acceptance_criteria: [<string>]
|
|
197
|
-
dependencies: []
|
|
198
|
-
estimated_complexity: low | medium | high
|
|
199
|
-
- id: task-2
|
|
200
|
-
...
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
### Phase 4: FORMALIZE
|
|
204
|
-
|
|
205
|
-
Convert the task list into a structured JSON object for reliable machine parsing.
|
|
206
|
-
|
|
207
|
-
**Output structure:**
|
|
208
|
-
|
|
209
|
-
```json
|
|
210
|
-
{
|
|
211
|
-
"issue": {
|
|
212
|
-
"number": "<issue_number>",
|
|
213
|
-
"title": "<issue_title>",
|
|
214
|
-
"type": "<bug|feature|enhancement|refactoring|chore>",
|
|
215
|
-
"repo": "<owner/repo>",
|
|
216
|
-
"intent": "<1-2 sentence intent summary>",
|
|
217
|
-
"labels": ["<label1>", "<label2>"],
|
|
218
|
-
"assignees": ["<user1>"],
|
|
219
|
-
"total_tasks": "<N>"
|
|
220
|
-
},
|
|
221
|
-
"tasks": [
|
|
222
|
-
{
|
|
223
|
-
"task_id": "task-1",
|
|
224
|
-
"task_name": "<Descriptive Task Name>",
|
|
225
|
-
"task_type": "<ui_component|store_logic|service_api|refactoring|fix|mixed>",
|
|
226
|
-
"complexity": "<low|medium|high>",
|
|
227
|
-
"dependencies": [],
|
|
228
|
-
"description": "<full description of what to implement>",
|
|
229
|
-
"target_files": ["src/path/file.ts"],
|
|
230
|
-
"acceptance_criteria": ["criterion 1", "criterion 2"],
|
|
231
|
-
"context": "<relevant code context, key types, function signatures>",
|
|
232
|
-
"existing_tests": ["src/path/file.test.ts"],
|
|
233
|
-
"existing_stories": [],
|
|
234
|
-
"module_patterns": "<how similar code is written in this module>",
|
|
235
|
-
"requires_tests_creator": true
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"task_id": "task-2",
|
|
239
|
-
"task_name": "<Descriptive Task Name>",
|
|
240
|
-
"task_type": "<type>",
|
|
241
|
-
"complexity": "<low|medium|high>",
|
|
242
|
-
"dependencies": ["task-1"],
|
|
243
|
-
"description": "<description>",
|
|
244
|
-
"target_files": ["src/path/other.ts"],
|
|
245
|
-
"acceptance_criteria": ["criterion 1"],
|
|
246
|
-
"context": "<context>",
|
|
247
|
-
"existing_tests": [],
|
|
248
|
-
"existing_stories": [],
|
|
249
|
-
"module_patterns": "<patterns>",
|
|
250
|
-
"requires_tests_creator": true
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"dependency_order": ["task-1", "task-2"]
|
|
254
|
-
}
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
**Each task object is the explicit context for task-implementer.**
|
|
258
|
-
|
|
259
|
-
When `job-orchestrator` dispatches `task-implementer`, it passes the task object directly as the subagent's context. This means:
|
|
260
|
-
- `task.context`, `task.target_files`, and `task.acceptance_criteria` are **required fields** — never omit or leave them empty when the information exists.
|
|
261
|
-
- `task.context` must contain enough information for the implementer to start without reading the full codebase: key types, function signatures, relevant patterns, and any design decisions.
|
|
262
|
-
- `task.module_patterns` must describe how similar code is written nearby — the implementer uses this for style consistency.
|
|
263
|
-
|
|
264
|
-
**Red Flag: "The implementer can figure out the context from the codebase"**
|
|
265
|
-
|
|
266
|
-
→ It cannot — not reliably. An implementer with no context will make assumptions, produce inconsistent code, or ask questions. Every omitted field is a gap the implementer will fill with a guess.
|
|
267
|
-
|
|
268
|
-
## Reporting Results
|
|
269
|
-
|
|
270
|
-
Every final response to the orchestrator MUST begin with `STATUS: DONE` or `STATUS: BLOCKED`.
|
|
271
|
-
|
|
272
|
-
```
|
|
273
|
-
STATUS: DONE
|
|
274
|
-
|
|
275
|
-
## Analysis
|
|
276
|
-
[structured JSON analysis object]
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
Use `STATUS: BLOCKED` only if the issue cannot be fetched (404) or the codebase cannot be accessed.
|
|
280
|
-
|
|
281
|
-
**IRON LAW: THE FIRST LINE OF YOUR FINAL RESPONSE IS ALWAYS "STATUS: DONE" OR "STATUS: BLOCKED". THE JSON ANALYSIS FOLLOWS AFTER.**
|
|
282
|
-
|
|
283
|
-
**Rules for JSON output:**
|
|
284
|
-
- `dependency_order` must be topologically sorted — tasks with no dependencies come first
|
|
285
|
-
- `task_id` format: `task-1`, `task-2`, ... (sequential)
|
|
286
|
-
- `dependencies` lists task_ids that must complete before this task
|
|
287
|
-
- All string arrays may be empty `[]` but not omitted
|
|
288
|
-
- `context` and `module_patterns` may be empty string if not applicable
|
|
289
|
-
- `requires_tests_creator` is always `true` — orchestrator must dispatch `tests-creator` before `task-implementer` for each task
|
|
290
|
-
- Output the JSON block as the **final message** to the orchestrator, preceded by a brief summary (issue type, number of tasks, overall complexity)
|
|
291
|
-
|
|
292
|
-
**Return format** (final message to orchestrator):
|
|
293
|
-
```
|
|
294
|
-
Analysis complete.
|
|
295
|
-
- Issue type: <type>
|
|
296
|
-
- Total tasks: <N>
|
|
297
|
-
- Overall complexity: <low|medium|high>
|
|
298
|
-
- Dependency order: task-1 → task-2 → task-3
|
|
299
|
-
|
|
300
|
-
<json block>
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
---
|
|
304
|
-
|
|
305
|
-
## Automation Settings
|
|
306
|
-
|
|
307
|
-
This skill is designed to run fully autonomously. The following settings control behavior:
|
|
308
|
-
|
|
309
|
-
| Setting | Default | Options | Description |
|
|
310
|
-
|---------|---------|---------|-------------|
|
|
311
|
-
| `max_tasks` | `7` | 1-10 | Maximum number of tasks to decompose into |
|
|
312
|
-
| `search_depth` | `focused` | `shallow` / `focused` / `deep` | How deeply to search codebase |
|
|
313
|
-
| `include_context` | `true` | true/false | Include code context (types, signatures) in output |
|
|
314
|
-
| `timeout_strategy` | `partial` | `partial` / `abort` | What to do if analysis takes too long |
|
|
315
|
-
| `gh_cli_fallback` | `skip_enrichment` | `skip_enrichment` / `abort` | What to do if gh CLI is unavailable |
|
|
316
|
-
|
|
317
|
-
---
|
|
318
|
-
|
|
319
|
-
## Error Handling
|
|
320
|
-
|
|
321
|
-
| Error | Action |
|
|
322
|
-
|-------|--------|
|
|
323
|
-
| Issue not found (404) | ABORT with error message |
|
|
324
|
-
| Issue body is empty | Analyze from title + comments only. Add note in output. |
|
|
325
|
-
| No codebase match found | Return empty task list with note "No matching code found" |
|
|
326
|
-
| gh CLI not available | Use provided issue data from input (title, description fallback) |
|
|
327
|
-
| Too many affected files (>50) | Filter to P0 only, cap at max_tasks |
|
|
328
|
-
| Issue is too large (>7 tasks) | Split into top-level tasks, note "consider splitting issue" |
|
|
329
|
-
|
|
330
|
-
---
|
|
331
|
-
|
|
332
|
-
## Rules of Engagement
|
|
333
|
-
|
|
334
|
-
1. **DO NOT** ask the user any questions. All input comes from the input contract.
|
|
335
|
-
2. **DO NOT** modify any files. This is a read-only analysis skill.
|
|
336
|
-
3. **DO NOT** make assumptions about implementation approach — describe WHAT, not HOW.
|
|
337
|
-
4. **DO** include enough context in each task entry for a task-implementer to start without asking questions.
|
|
338
|
-
5. **DO** respect the 3-layer architecture: Service → Store → Component ordering.
|
|
339
|
-
6. **DO** identify existing tests and stories so implementer knows what to update.
|
|
340
|
-
7. **DO** note module patterns (how similar code is written nearby) for consistency.
|
|
341
|
-
8. Return the JSON analysis result as your **final message** to the orchestrator.
|
|
342
|
-
|
|
343
|
-
---
|
|
344
|
-
|
|
345
|
-
## Red Flags — Stop and re-read this skill if you are thinking:
|
|
346
|
-
|
|
347
|
-
| Rationalization | Why it's wrong |
|
|
348
|
-
|---|---|
|
|
349
|
-
| "The issue title is clear enough, I'll skip reading the full body" | Acceptance criteria, repro steps, and constraints live in the body — the title is just a label |
|
|
350
|
-
| "I know this codebase, I don't need to search for affected files" | Prior knowledge drifts; the search step catches files that have changed since you last looked |
|
|
351
|
-
| "I'll create one big task instead of decomposing — simpler to track" | A monolithic task cannot be parallelized or independently verified; it defeats the whole system |
|
|
352
|
-
| "The dependencies between tasks seem obvious, no need to map them" | Untracked dependencies cause agents to overwrite each other's work or build on stale code |
|
|
353
|
-
| "The issue body is mostly boilerplate, I've got the gist" | Edge cases and acceptance criteria are often buried in what looks like boilerplate |
|
|
354
|
-
|
|
355
|
-
**IRON LAW: ALWAYS READ THE FULL ISSUE BODY AND SEARCH THE CODEBASE BEFORE DECOMPOSING INTO TASKS.**
|
|
356
|
-
|
|
357
|
-
## Job Context Awareness
|
|
358
|
-
|
|
359
|
-
When dispatched by `job-orchestrator`, the prompt MAY include:
|
|
360
|
-
|
|
361
|
-
```
|
|
362
|
-
JOB_NAME: <job-name>
|
|
363
|
-
JOBS_ROOT: <JOBS_ROOT>
|
|
364
|
-
CONTEXT_PATH: <JOBS_ROOT>/<job-name>/ai/context.md
|
|
365
|
-
```
|
|
366
|
-
|
|
367
|
-
If `CONTEXT_PATH` is provided and the file exists, read it during Phase 2 (ANALYZE) to:
|
|
368
|
-
- Understand existing project conventions and patterns
|
|
369
|
-
- Identify relevant library documentation and best practices
|
|
370
|
-
- Avoid duplicating research already captured in the context document
|
|
371
|
-
- Use the context to improve the quality of task decomposition (e.g., better target_files, richer module_patterns)
|
|
372
|
-
|
|
373
|
-
If the file does not exist or is not provided, proceed normally — context is optional and non-blocking.
|