@mrciphersmith/keryx 0.4.27 → 0.4.29
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/README.md +2 -2
- package/dist/cli.js +105640 -105242
- package/dist/core.js +24 -200
- package/dist/keryx-general-worker-entry.js +355 -418
- package/package.json +3 -3
- package/src/gdskills/bundled/agents/work-planner.md +1 -1
- package/src/gdskills/bundled/install-manifest.json +4 -26
- package/src/gdskills/bundled/rules/core/clean-architecture.mdc +25 -153
- package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
- package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +1 -0
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
- package/src/gdskills/bundled/rules/core/error-handling.mdc +57 -108
- package/src/gdskills/bundled/rules/core/implementation-doc-mandate.mdc +4 -5
- package/src/gdskills/bundled/rules/core/jobs-documentation.mdc +8 -8
- package/src/gdskills/bundled/rules/core/skill-authoring.mdc +190 -0
- package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +12 -10
- package/src/gdskills/bundled/rules/core/solid-principles.mdc +48 -123
- package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +12 -21
- package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/orchestration/task-implementer/input-contract.schema.json +1 -1
- package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/planning/interview/SKILL.md +3 -4
- package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/quality/git-publish/SKILL.md +60 -0
- package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +6 -6
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +23 -25
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +100 -421
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +6 -6
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +36 -33
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +1 -1
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +63 -134
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -5
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.detail.md +18 -20
- package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +12 -18
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-finding.schema.json +2 -2
- package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +2 -10
- package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +35 -35
- package/src/gdskills/bundled/skills/review/review-pr-contract/SKILL.md +4 -5
- package/src/gdskills/bundled/skills/review/review-premise/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +2 -4
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +13 -14
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +41 -44
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +10 -10
- package/src/gdskills/bundled/skills/review/review-ui-ux/SKILL.md +10 -11
- package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +5 -5
- package/src/gdskills/bundled/skills/shared/git-merge-base.md +1 -1
- package/src/gdskills/bundled/stacks/csharp-dotnet/rules/patterns.mdc +4 -3
- package/src/gdskills/bundled/stacks/java-kotlin-spring/rules/coding-style.mdc +3 -3
- package/src/gdskills/bundled/stacks/mobx/agent-refs.json +1 -1
- package/src/gdskills/bundled/stacks/mobx/governance/scout.json +2 -2
- package/src/gdskills/bundled/stacks/mobx/skills/mobx-store-implementation/SKILL.md +2 -2
- package/src/gdskills/bundled/stacks/ruby-rails/rules/coding-style.mdc +4 -4
- package/src/gdskills/bundled/stacks/vue/governance/scout.json +1 -1
- package/src/gdskills/contracts/review-finding.schema.json +2 -2
- package/src/gdskills/bundled/rules/core/code-review-ai-assistant.mdc +0 -49
- package/src/gdskills/bundled/rules/core/gproject-contracts.mdc +0 -198
- package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +0 -177
- package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +0 -414
- package/src/gdskills/bundled/skills/orchestration/job-documenter/input-contract.schema.json +0 -55
- package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json +0 -58
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +0 -209
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +0 -209
- package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +0 -208
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +0 -255
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +0 -255
- package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +0 -254
- package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +0 -209
- package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +0 -209
- package/src/gdskills/bundled/skills/planning/planner/SKILL.md +0 -208
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +0 -171
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +0 -171
- package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +0 -170
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +0 -184
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +0 -184
- package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +0 -183
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +0 -249
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +0 -249
- package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +0 -248
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +0 -199
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +0 -199
- package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +0 -198
- package/src/gdskills/bundled/skills/quality/commit/SKILL.md +0 -87
- package/src/gdskills/bundled/skills/quality/pr/SKILL.md +0 -95
- package/src/gdskills/bundled/skills/quality/push/SKILL.md +0 -73
- package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +0 -238
- package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +0 -301
- package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +0 -208
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: >
|
|
3
|
-
Dispatch and return contracts for gproject subagents. Extends
|
|
4
|
-
subagent-context-construction.md with gproject-specific fields.
|
|
5
|
-
Loaded by: gproject-orchestrator, all gproject-* subagents.
|
|
6
|
-
globs: skills/gproject-*/**
|
|
7
|
-
alwaysApply: false
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# gproject Subagent Contracts
|
|
11
|
-
|
|
12
|
-
## Extends
|
|
13
|
-
|
|
14
|
-
This rule extends `rules/core/subagent-context-construction.md` and
|
|
15
|
-
`rules/core/subagent-status-protocol.md`. All base rules apply.
|
|
16
|
-
gproject adds domain-specific fields.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Language Rule
|
|
21
|
-
|
|
22
|
-
All gproject subagents MUST respond in the same language the user used in their
|
|
23
|
-
original request. If the user wrote in Russian — respond in Russian. If in English — in English.
|
|
24
|
-
This applies to artifact content, summaries, questions, and all user-facing output.
|
|
25
|
-
The decisions registry keys (D_mode, D_frontend, etc.) remain in English regardless of language.
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## Dispatch Contract (Orchestrator → Subagent)
|
|
30
|
-
|
|
31
|
-
Every dispatch from gproject-orchestrator MUST include:
|
|
32
|
-
|
|
33
|
-
```yaml
|
|
34
|
-
# Required (from base protocol)
|
|
35
|
-
description: "<phase>: <task>"
|
|
36
|
-
subagent_type: "general-purpose"
|
|
37
|
-
prompt: "<structured prompt — see template below>"
|
|
38
|
-
|
|
39
|
-
# gproject-specific (inside prompt)
|
|
40
|
-
phase: "<phase number and name>"
|
|
41
|
-
mode: "new_project | task_in_project"
|
|
42
|
-
user_language: "<language of the original user request>"
|
|
43
|
-
input_artifacts: [<ONLY files this subagent needs>]
|
|
44
|
-
decisions_so_far: <ONLY decisions relevant to this phase>
|
|
45
|
-
constraints: [<from previous phases>]
|
|
46
|
-
output_contract:
|
|
47
|
-
artifact_path: "<where to write full output>"
|
|
48
|
-
summary_max_tokens: 150
|
|
49
|
-
decisions_format: "key: value"
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### Minimality Principle (Enhanced)
|
|
53
|
-
|
|
54
|
-
Base rule says: "Subagents must not infer context from conversation history."
|
|
55
|
-
gproject strengthens this:
|
|
56
|
-
|
|
57
|
-
1. **Artifact minimality**: subagent receives ONLY artifacts listed in
|
|
58
|
-
`input_artifacts` — never all artifacts in the job directory
|
|
59
|
-
2. **Decision minimality**: subagent receives ONLY decisions relevant to
|
|
60
|
-
its phase — not the full decisions.md
|
|
61
|
-
3. **No cross-phase leakage**: Phase 4 agent cannot see Phase 0 raw data
|
|
62
|
-
unless explicitly passed (which it shouldn't be — use Phase 1 summary instead)
|
|
63
|
-
|
|
64
|
-
### What each phase receives:
|
|
65
|
-
|
|
66
|
-
| Phase | Input Artifacts | Decisions Subset |
|
|
67
|
-
|-------|----------------|-----------------|
|
|
68
|
-
| 0: Discovery | user input, uploaded docs, repo path | none (first phase) |
|
|
69
|
-
| 1: Problem | discovery-brief.md | D_mode, D_domain, D_audience, D_scale |
|
|
70
|
-
| 2: Stack | problem-statement.md | D_core_problems, D_goals, D_non_goals |
|
|
71
|
-
| 3: Patterns | stack-decision.md, problem-statement.md | D_level, D_frontend..D_infra |
|
|
72
|
-
| 4: PRD | problem-statement.md, architecture.md, tech-bestpractices.md | ALL decisions |
|
|
73
|
-
| 5: Review | ALL artifacts, decisions.md | ALL decisions |
|
|
74
|
-
| 6: Planning | prd.md, architecture.md | ALL decisions |
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## Return Contract (Subagent → Orchestrator)
|
|
79
|
-
|
|
80
|
-
Every subagent response MUST begin with STATUS prefix (per base protocol)
|
|
81
|
-
and include gproject-specific fields:
|
|
82
|
-
|
|
83
|
-
### STATUS: DONE
|
|
84
|
-
|
|
85
|
-
```yaml
|
|
86
|
-
STATUS: DONE
|
|
87
|
-
summary: |
|
|
88
|
-
<3-5 sentences. What was produced, key decisions made, confidence level.>
|
|
89
|
-
<Max 150 tokens.>
|
|
90
|
-
new_decisions:
|
|
91
|
-
D_<name>: "<value>"
|
|
92
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/<name>.md"
|
|
93
|
-
next_phase_needs:
|
|
94
|
-
- "<hint for orchestrator about what next phase will need>"
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### STATUS: DONE_WITH_CONCERNS
|
|
98
|
-
|
|
99
|
-
```yaml
|
|
100
|
-
STATUS: DONE_WITH_CONCERNS
|
|
101
|
-
summary: |
|
|
102
|
-
<3-5 sentences. Same as DONE but includes concern summary.>
|
|
103
|
-
new_decisions:
|
|
104
|
-
D_<name>: "<value>"
|
|
105
|
-
concerns:
|
|
106
|
-
- severity: "high | medium"
|
|
107
|
-
description: "<what's wrong>"
|
|
108
|
-
suggestion: "<how to address>"
|
|
109
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/<name>.md"
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
### STATUS: NEEDS_CONTEXT
|
|
113
|
-
|
|
114
|
-
```yaml
|
|
115
|
-
STATUS: NEEDS_CONTEXT
|
|
116
|
-
questions:
|
|
117
|
-
- id: "Q1"
|
|
118
|
-
text: "<clear question>"
|
|
119
|
-
options:
|
|
120
|
-
A: "<option — most common / recommended>"
|
|
121
|
-
B: "<option>"
|
|
122
|
-
C: "<option>"
|
|
123
|
-
D: "<option — 'not sure' or 'other' is acceptable>"
|
|
124
|
-
why: "<1 sentence: why this matters for this phase>"
|
|
125
|
-
can_be_resolved_by_agent: false | "<agent name if yes>"
|
|
126
|
-
- id: "Q2"
|
|
127
|
-
...
|
|
128
|
-
partial_artifact_path: ".metaproject/jobs/<job>/artifacts/<name>.partial.md"
|
|
129
|
-
# Subagent MAY save partial work for resume
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### STATUS: BLOCKED
|
|
133
|
-
|
|
134
|
-
```yaml
|
|
135
|
-
STATUS: BLOCKED
|
|
136
|
-
blocker: "<clear description of what's blocking>"
|
|
137
|
-
required_to_unblock: "<what the orchestrator or user must provide>"
|
|
138
|
-
rollback_suggestion: "<if applicable, which phase to go back to>"
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## Orchestrator Context Budget
|
|
144
|
-
|
|
145
|
-
The orchestrator MUST stay within these limits:
|
|
146
|
-
|
|
147
|
-
| Item | Max Tokens | Notes |
|
|
148
|
-
|------|-----------|-------|
|
|
149
|
-
| state.json | 200 | Pipeline state only |
|
|
150
|
-
| decisions.md (in memory) | 500 | Compact: ID + value only |
|
|
151
|
-
| Phase summaries (all) | 800 | Max 120 per phase |
|
|
152
|
-
| Current dispatch overhead | 400 | Template + routing logic |
|
|
153
|
-
| **Total** | **~1900** | If exceeded, compress decisions |
|
|
154
|
-
|
|
155
|
-
### Compression triggers:
|
|
156
|
-
- decisions.md > 800 tokens → create decisions-compact.md (ID: value only, no rationale)
|
|
157
|
-
- phase_summaries total > 800 → keep only last 3 phases in memory, rest on disk
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## NEEDS_CONTEXT Resolution Protocol
|
|
162
|
-
|
|
163
|
-
When a subagent returns NEEDS_CONTEXT:
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
1. Parse questions array
|
|
167
|
-
2. For each question:
|
|
168
|
-
IF can_be_resolved_by_agent is truthy:
|
|
169
|
-
→ Dispatch named agent with the question as task
|
|
170
|
-
→ Collect answer
|
|
171
|
-
→ Add to answers dict
|
|
172
|
-
ELSE:
|
|
173
|
-
→ Add to user_questions list
|
|
174
|
-
|
|
175
|
-
3. IF user_questions is not empty:
|
|
176
|
-
→ Present to user as questionnaire
|
|
177
|
-
→ Format: numbered questions with A/B/C/D options
|
|
178
|
-
→ Collect answers
|
|
179
|
-
|
|
180
|
-
4. Compose context supplement:
|
|
181
|
-
{
|
|
182
|
-
"answers": {
|
|
183
|
-
"Q1": {"choice": "B", "detail": "<if user added detail>"},
|
|
184
|
-
"Q2": {"choice": "A"}
|
|
185
|
-
},
|
|
186
|
-
"agent_research": {
|
|
187
|
-
"Q3": "<findings from dispatched agent>"
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
5. Re-dispatch original subagent with:
|
|
192
|
-
- Original task + input_artifacts
|
|
193
|
-
- PLUS: context_supplement (above)
|
|
194
|
-
- PLUS: partial_artifact_path (if subagent saved partial work)
|
|
195
|
-
|
|
196
|
-
6. Max 2 NEEDS_CONTEXT loops per phase
|
|
197
|
-
→ After 2, escalate to user with full context
|
|
198
|
-
```
|
|
@@ -1,177 +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. NOT for: splitting an issue into tasks run by parallel sub-agents (use job-orchestrator)."
|
|
4
|
-
triggers:
|
|
5
|
-
- "feature dev"
|
|
6
|
-
- "develop feature"
|
|
7
|
-
- "guided feature workflow"
|
|
8
|
-
- "Build feature"
|
|
9
|
-
- "Implement feature"
|
|
10
|
-
- "Feature from scratch"
|
|
11
|
-
metadata:
|
|
12
|
-
author: "MrCipherSmith"
|
|
13
|
-
version: "2.0.0"
|
|
14
|
-
category: "orchestration"
|
|
15
|
-
compatible_harnesses: "cursor,codex,zed,opencode,claude"
|
|
16
|
-
license: "MIT"
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
<SUBAGENT-STOP>
|
|
20
|
-
If you were dispatched as a subagent to execute a specific task, skip this skill entirely.
|
|
21
|
-
This skill is for interactive feature development sessions only.
|
|
22
|
-
Proceed directly with your assigned task.
|
|
23
|
-
</SUBAGENT-STOP>
|
|
24
|
-
|
|
25
|
-
# Feature Development (7-Phase)
|
|
26
|
-
|
|
27
|
-
End-to-end feature development workflow from idea to merge-ready PR.
|
|
28
|
-
|
|
29
|
-
## Arguments
|
|
30
|
-
|
|
31
|
-
- `/feature-dev <description>` — start from a text description. Plan bridge: publish `phase-1`…`phase-8` with `plan_set`/`plan_update`; while a confirmation question is open the items are `proposed` — see the `session-plan-bridge` rule.
|
|
32
|
-
- `/feature-dev #<issue>` — start from a GitHub issue
|
|
33
|
-
- `/feature-dev --resume` — resume interrupted feature-dev (checks for existing worktree/branch)
|
|
34
|
-
|
|
35
|
-
## 8-Phase Architecture
|
|
36
|
-
|
|
37
|
-
> **Rules always loaded:** `tdd-workflow.mdc`, `implementation-doc-mandate.mdc`, `error-handling.mdc`
|
|
38
|
-
> **Sub-agents used:** `tests-creator` (before implement), `code-verifier` (after implement)
|
|
39
|
-
|
|
40
|
-
### Phase 1: REQUIREMENTS + SPEC
|
|
41
|
-
|
|
42
|
-
1. Parse input (description or GitHub issue via `gh issue view`). An issue filed from a review finding, or an external review comment, is a premise to check: dispatch `review-premise` on it first, shaped and recorded as `flow-orchestrator` Phase 1 says ("A flow sourced from a finding": no `decide-premise`; claims in `<flow-dir>/premise/<n>.json` if a flow exists; with none, its claims object goes into the Implementation Spec under **Premise**), and on `challenged` or `owner-decision` ask the operator its question with its options and journal their answer before writing the spec
|
|
43
|
-
2. Clarify ambiguities — ask the user up to 3 questions max
|
|
44
|
-
3. Produce the **Implementation Spec** (per `implementation-doc-mandate.mdc`):
|
|
45
|
-
- **What**: feature description in 2-3 sentences
|
|
46
|
-
- **Why**: user value / business reason
|
|
47
|
-
- **Scope**: what's in, what's explicitly out
|
|
48
|
-
- **Acceptance criteria**: testable bullet points
|
|
49
|
-
- **Approach**: which files will change, key design decisions
|
|
50
|
-
- **Test strategy**: framework, which scenarios will be covered
|
|
51
|
-
- **Premise** (only for an input sourced from a finding, with no flow): the review-premise claims object and the operator's answer, in their words
|
|
52
|
-
4. **Save spec** to `.feature-spec.md` in project root (add to .gitignore if not already), then **get user confirmation before proceeding**
|
|
53
|
-
|
|
54
|
-
### Phase 2: DESIGN
|
|
55
|
-
|
|
56
|
-
1. Research the codebase:
|
|
57
|
-
- Find related modules via search tools
|
|
58
|
-
- Read neighboring implementations for patterns
|
|
59
|
-
- **Detect test framework** (package.json, existing test files) — needed for tests-creator
|
|
60
|
-
2. Produce implementation plan:
|
|
61
|
-
- Files to create/modify (with brief description of changes)
|
|
62
|
-
- Dependencies or packages needed
|
|
63
|
-
- Data model changes if any
|
|
64
|
-
- Estimated complexity: S / M / L
|
|
65
|
-
3. Load relevant rules from `.metaproject/rules/core/` based on what will be built:
|
|
66
|
-
- Always: `tdd-workflow.mdc`, `error-handling.mdc`, `solid-principles.mdc`
|
|
67
|
-
- API/service code: `api-contracts.mdc`, `clean-architecture.mdc`
|
|
68
|
-
- Database: `database-patterns.mdc`
|
|
69
|
-
- Async: `async-patterns.mdc`
|
|
70
|
-
- Security-sensitive: `security-baseline.mdc`
|
|
71
|
-
4. **Get user confirmation on the plan**
|
|
72
|
-
|
|
73
|
-
### Phase 3: PREPARE
|
|
74
|
-
|
|
75
|
-
1. Create a feature branch: `wt switch -c feat/<name>`
|
|
76
|
-
2. Install any new dependencies
|
|
77
|
-
|
|
78
|
-
### Phase 4: TESTS-CREATOR (TDD — RED phase)
|
|
79
|
-
|
|
80
|
-
**Run before writing any implementation code.**
|
|
81
|
-
|
|
82
|
-
1. For each group of acceptance criteria, invoke `tests-creator`:
|
|
83
|
-
- Input: acceptance criteria from Phase 1 spec + target files from Phase 2 plan
|
|
84
|
-
- tests-creator detects framework and generates failing test stubs
|
|
85
|
-
- tests-creator commits the stubs and verifies RED state
|
|
86
|
-
2. Confirm test stubs are in place and failing before proceeding to Phase 5
|
|
87
|
-
|
|
88
|
-
### Phase 5: IMPLEMENT (TDD — GREEN phase)
|
|
89
|
-
|
|
90
|
-
1. Implement changes file by file, following the plan from Phase 2
|
|
91
|
-
2. Goal: make the failing tests from Phase 4 GREEN
|
|
92
|
-
3. Follow existing code patterns and loaded rules
|
|
93
|
-
4. After each file group, run a quick inline check: `keryx health run --changed --source typescript` (type errors only, over the changed files — `src/health/sources/typescript.ts` resolves the real invocation, so this is never a hardcoded `npx tsc`; on a project with no keryx health config, fall back to its own configured type-check command)
|
|
94
|
-
5. Commit with conventional message after each logical chunk
|
|
95
|
-
|
|
96
|
-
### Phase 6: VERIFY (code-verifier gate)
|
|
97
|
-
|
|
98
|
-
Run `code-verifier` on the full diff:
|
|
99
|
-
|
|
100
|
-
```
|
|
101
|
-
Invoke: .metaproject/skills/gdskills/orchestration/code-verifier/SKILL.md
|
|
102
|
-
Input: codebase_path=<project_root>, scope=changed, base_branch=<base>
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
- `gate: PASS` → proceed to Phase 7
|
|
106
|
-
- `gate: FAIL` → fix findings, re-run code-verifier (max 2 cycles)
|
|
107
|
-
- Still FAIL after 2 cycles → report blocker to user, stop
|
|
108
|
-
|
|
109
|
-
### Phase 7: REVIEW (Self)
|
|
110
|
-
|
|
111
|
-
1. Launch the `review-orchestrator` skill on own changes
|
|
112
|
-
2. Or run a focused self-review:
|
|
113
|
-
- `git diff main...HEAD` — review the full diff
|
|
114
|
-
- Check for: TODOs left behind, console.logs, hardcoded values
|
|
115
|
-
- Verify all acceptance criteria from Phase 1 spec
|
|
116
|
-
3. Fix any findings (max 2 review-fix cycles), never one `review-premise` holds: a held finding is neither fixable nor clean and blocks the cycle until answered; ask the operator about it as `review-orchestrator` "Wave D" says, and only an upheld one is fixed, carrying `premise_verdict` and `premise_answer` as task-implementer's `FIX_CONTEXT` defines them (unattended: stop and report the held list). Each next round is `keryx review start` or `keryx review plan` on the new head: the round comes from `round.json`; no own range, no whole-branch re-review (the `git diff main...HEAD` above is round 1 only).
|
|
117
|
-
4. Re-run `code-verifier` after any fixes
|
|
118
|
-
|
|
119
|
-
### Phase 8: DELIVER + CHANGE REPORT
|
|
120
|
-
|
|
121
|
-
1. Push branch
|
|
122
|
-
2. Create PR:
|
|
123
|
-
- Link to issue if applicable
|
|
124
|
-
- Include acceptance criteria checklist
|
|
125
|
-
- Add test plan and code-verifier results
|
|
126
|
-
3. **Produce Change Report** (per `implementation-doc-mandate.mdc`):
|
|
127
|
-
- Files created/modified with descriptions
|
|
128
|
-
- Test count and results
|
|
129
|
-
- code-verifier gate result
|
|
130
|
-
- Acceptance criteria checklist (checked off)
|
|
131
|
-
- Commits list
|
|
132
|
-
4. Print Change Report to user
|
|
133
|
-
5. Report PR URL to user
|
|
134
|
-
|
|
135
|
-
## Status Updates
|
|
136
|
-
|
|
137
|
-
At each phase transition, report progress:
|
|
138
|
-
```
|
|
139
|
-
✅ Phase 1: Requirements confirmed
|
|
140
|
-
🔄 Phase 2: Designing implementation...
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
## Rules
|
|
144
|
-
|
|
145
|
-
- ALWAYS get user confirmation after Phase 1 (requirements + spec) and Phase 2 (design)
|
|
146
|
-
- Phases 4-7 are autonomous — no user interaction needed
|
|
147
|
-
- If stuck for >3 attempts on any step, report the blocker and ask user
|
|
148
|
-
- NEVER skip Phase 4 (tests-creator) even if user says "skip tests" — this is TDD, not optional testing
|
|
149
|
-
- NEVER skip Phase 6 (code-verifier) — it is the quality gate, not a suggestion
|
|
150
|
-
- NEVER commit broken code (code-verifier gate must pass before PR)
|
|
151
|
-
- Keep commits atomic: one commit per logical chunk, not one giant commit
|
|
152
|
-
- ALWAYS produce the Change Report in Phase 8 — even if the PR was not created
|
|
153
|
-
|
|
154
|
-
## Red Flags — Stop and re-read this skill if you are thinking:
|
|
155
|
-
|
|
156
|
-
| Rationalization | Why it's wrong |
|
|
157
|
-
|---|---|
|
|
158
|
-
| "Requirements are clear enough, I'll skip the design phase" | Skipping design means discovering mismatches after code is written, not before |
|
|
159
|
-
| "The user already approved this approach verbally, no need to document" | Undocumented approval is invisible to reviewers and future agents; it doesn't exist |
|
|
160
|
-
| "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 |
|
|
161
|
-
| "This phase isn't needed for such a straightforward feature" | Every skipped phase is a deferred bug report |
|
|
162
|
-
| "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 |
|
|
163
|
-
|
|
164
|
-
**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.
|
|
165
|
-
|
|
166
|
-
## Verification
|
|
167
|
-
|
|
168
|
-
Do not report the feature as delivered until all of these hold:
|
|
169
|
-
|
|
170
|
-
- The user explicitly confirmed the Phase 1 spec and the Phase 2 design — a confirmation you can quote, not one you inferred from silence.
|
|
171
|
-
- Phase 4's test stubs were observed FAILING before any implementation code was written, and the same tests pass now. Tests that were green the moment they were written tested nothing.
|
|
172
|
-
- Every acceptance criterion in the Phase 1 spec maps to at least one test, and each is checked off in the Change Report.
|
|
173
|
-
- `code-verifier` was re-run after the last fix and its final result is `gate: PASS` (or `PASS_WITH_WARNINGS` with the warnings named in the Change Report). A gate result from before the last edit does not count.
|
|
174
|
-
- `git diff <base>...HEAD` shows no TODOs, debug logging, or hardcoded values introduced by this work.
|
|
175
|
-
- Commits are atomic — one logical chunk each — and the branch is pushed.
|
|
176
|
-
- The PR exists with the issue link, acceptance-criteria checklist, test plan and gate result; if no PR was created, the Change Report says why.
|
|
177
|
-
- The Change Report was printed to the user and names files changed, test count and result, gate result, checked-off criteria, and the commit list.
|