@mrciphersmith/keryx 0.4.26 → 0.4.28
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 +106917 -105655
- package/dist/core.js +28 -198
- package/dist/keryx-general-worker-entry.js +526 -421
- package/package.json +3 -3
- package/src/gdskills/bundled/agents/work-planner.md +1 -1
- package/src/gdskills/bundled/install-manifest.json +3 -26
- package/src/gdskills/bundled/rules/core/code-review-learned-profile.mdc +1 -2
- package/src/gdskills/bundled/rules/core/definition-of-done.mdc +0 -1
- 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/skills-storage-workflow.mdc +7 -10
- 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/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/review/code-learned-review/SKILL.md +3 -3
- package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +7 -7
- package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +22 -22
- package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +15 -15
- package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-degradation/SKILL.md +7 -7
- package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +34 -30
- package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +2 -2
- package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +64 -135
- package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +4 -4
- 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 +3 -5
- package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +14 -15
- package/src/gdskills/bundled/skills/review/review-style/SKILL.md +14 -13
- package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +11 -11
- 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/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/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
package/src/gdskills/bundled/skills/orchestration/job-documenter/output-contract.schema.json
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://keryx.local/schemas/job-documenter/output-contract.schema.json",
|
|
4
|
-
"title": "Job Documenter Output Contract",
|
|
5
|
-
"description": "DOCUMENTER_RESULT returned by job-documenter for every action.",
|
|
6
|
-
"type": "object",
|
|
7
|
-
"additionalProperties": false,
|
|
8
|
-
"required": ["action", "status"],
|
|
9
|
-
"properties": {
|
|
10
|
-
"action": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"enum": ["init", "add-document", "update-readme", "finalize"]
|
|
13
|
-
},
|
|
14
|
-
"status": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"enum": ["success", "error"]
|
|
17
|
-
},
|
|
18
|
-
"job_path": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Absolute path to job folder (for init and finalize)"
|
|
21
|
-
},
|
|
22
|
-
"files_created": {
|
|
23
|
-
"type": "array",
|
|
24
|
-
"items": { "type": "string" },
|
|
25
|
-
"description": "List of file paths created"
|
|
26
|
-
},
|
|
27
|
-
"readme_updated": {
|
|
28
|
-
"type": "boolean",
|
|
29
|
-
"description": "Whether README.md was updated (for add-document)"
|
|
30
|
-
},
|
|
31
|
-
"updates_applied": {
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": { "type": "string" },
|
|
34
|
-
"description": "List of updates applied (for update-readme)"
|
|
35
|
-
},
|
|
36
|
-
"final_status": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": ["completed", "aborted"],
|
|
39
|
-
"description": "Final job status (for finalize)"
|
|
40
|
-
},
|
|
41
|
-
"total_documents": {
|
|
42
|
-
"type": "integer",
|
|
43
|
-
"description": "Total documents in job folder (for finalize)"
|
|
44
|
-
},
|
|
45
|
-
"verification": {
|
|
46
|
-
"type": "string",
|
|
47
|
-
"description": "passed or list of discrepancies (for finalize)"
|
|
48
|
-
},
|
|
49
|
-
"error_details": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "Error description when status=error"
|
|
52
|
-
},
|
|
53
|
-
"error_log_created": {
|
|
54
|
-
"type": "boolean",
|
|
55
|
-
"description": "Whether error-log.md was created on failure"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: consistency-checker
|
|
3
|
-
description: >
|
|
4
|
-
Validates PRD/Implementation Plan against decisions registry, architecture doc,
|
|
5
|
-
and best practices constraints. Catches contradictions, gaps, and violations.
|
|
6
|
-
Use when: dispatched by gproject-orchestrator Phase 5.
|
|
7
|
-
NOT for: direct user invocation.
|
|
8
|
-
triggers:
|
|
9
|
-
- "check consistency"
|
|
10
|
-
- "validate spec"
|
|
11
|
-
- "doc contradictions"
|
|
12
|
-
metadata:
|
|
13
|
-
version: 1.0.0
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode"
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# gproject-consistency-checker
|
|
18
|
-
|
|
19
|
-
## Purpose
|
|
20
|
-
|
|
21
|
-
Quality gate before human approval. Systematically verify that the PRD
|
|
22
|
-
is internally consistent and fully aligned with all upstream decisions.
|
|
23
|
-
This agent is adversarial — its job is to find problems, not to approve.
|
|
24
|
-
|
|
25
|
-
## Iron Laws
|
|
26
|
-
|
|
27
|
-
| # | Law |
|
|
28
|
-
|---|-----|
|
|
29
|
-
| 1 | Check EVERY decision in decisions.md against PRD — no sampling |
|
|
30
|
-
| 2 | Check EVERY MUST constraint in tech-bestpractices.md against PRD |
|
|
31
|
-
| 3 | Report ALL violations — don't stop at the first one |
|
|
32
|
-
| 4 | Classify severity: CRITICAL (blocks approval) / WARNING (should fix) / INFO (suggestion) |
|
|
33
|
-
| 5 | NEVER fix violations yourself — only report them |
|
|
34
|
-
| 6 | A clean report still lists what was checked (audit trail) |
|
|
35
|
-
|
|
36
|
-
## Red Flags
|
|
37
|
-
|
|
38
|
-
Stop and re-read this skill if you are thinking:
|
|
39
|
-
|
|
40
|
-
| Rationalization | Rebuttal |
|
|
41
|
-
|---|---|
|
|
42
|
-
| "The first decisions all check out, so the rest of the registry is fine." | Iron Law 1: every decision, no sampling. The registry's later entries are the ones added late under pressure — the most likely to contradict a PRD written before them. |
|
|
43
|
-
| "This violation is one line to fix — cheaper to correct than to report." | Iron Law 5: never fix, only report. This agent is the gate; a gate that edits the artifact it is judging has approved its own change, and the spec-writer never learns its output drifted. |
|
|
44
|
-
| "One CRITICAL violation, but the PRD is strong overall — `DONE` with a note." | The status logic is mechanical: any CRITICAL means `DONE_WITH_CONCERNS`. Softening it lets a document reach human approval carrying exactly the contradiction this phase exists to surface. |
|
|
45
|
-
| "The PRD contradicts a decision, but the PRD's version is clearly better." | Being right is not this agent's job. Report the contradiction and let the orchestrator or the human resolve it — a checker that picks a winner has quietly changed a project decision nobody recorded. |
|
|
46
|
-
| "Nothing was wrong, so a short 'all clear' is the report." | Iron Law 6: a clean report still lists what was checked. Without the audit trail, "no violations" and "did not look" produce the same document. |
|
|
47
|
-
| "I found several violations already — that is enough to block approval." | Iron Law 3: report ALL violations. Stopping early guarantees a second review round for the ones you did not name, and each round costs another full pipeline pass. |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Input Contract
|
|
52
|
-
|
|
53
|
-
```yaml
|
|
54
|
-
task: "Validate PRD consistency against all project decisions and constraints"
|
|
55
|
-
input_artifacts:
|
|
56
|
-
- .metaproject/jobs/<job>/artifacts/prd.md
|
|
57
|
-
- .metaproject/jobs/<job>/artifacts/problem-statement.md
|
|
58
|
-
- .metaproject/jobs/<job>/artifacts/stack-decision.md
|
|
59
|
-
- .metaproject/jobs/<job>/artifacts/architecture.md
|
|
60
|
-
- .metaproject/jobs/<job>/artifacts/tech-bestpractices.md
|
|
61
|
-
- .metaproject/jobs/<job>/decisions.md
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Output Contract
|
|
65
|
-
|
|
66
|
-
```yaml
|
|
67
|
-
status: "DONE" | "DONE_WITH_CONCERNS"
|
|
68
|
-
summary: "<3-5 sentences: checks run, violations found, overall verdict>"
|
|
69
|
-
concerns: ["<CRITICAL violations if any>"]
|
|
70
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/consistency-report.md"
|
|
71
|
-
# Note: no new_decisions — this agent doesn't make decisions
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Status logic:
|
|
75
|
-
- `DONE` = zero CRITICAL violations (WARNINGs acceptable)
|
|
76
|
-
- `DONE_WITH_CONCERNS` = one or more CRITICAL violations found
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Workflow
|
|
81
|
-
|
|
82
|
-
### Step 1: Goals ↔ User Stories Check
|
|
83
|
-
|
|
84
|
-
For each goal in problem-statement.md:
|
|
85
|
-
- [ ] At least one user story addresses this goal
|
|
86
|
-
- [ ] User story acceptance criteria map to goal's success metric
|
|
87
|
-
|
|
88
|
-
For each user story in PRD:
|
|
89
|
-
- [ ] Traces back to a defined goal (not an invented one)
|
|
90
|
-
- [ ] Does NOT implement a non-goal
|
|
91
|
-
|
|
92
|
-
**Violation types:**
|
|
93
|
-
- CRITICAL: Goal with no user story coverage
|
|
94
|
-
- CRITICAL: User story implementing a non-goal
|
|
95
|
-
- WARNING: User story with weak traceability to goal
|
|
96
|
-
|
|
97
|
-
### Step 2: Stack ↔ PRD Check
|
|
98
|
-
|
|
99
|
-
For each technology in stack-decision.md:
|
|
100
|
-
- [ ] PRD technical references use this technology (not something else)
|
|
101
|
-
- [ ] No undeclared technologies appear in PRD
|
|
102
|
-
|
|
103
|
-
**Violation types:**
|
|
104
|
-
- CRITICAL: PRD references technology not in stack-decision.md
|
|
105
|
-
- CRITICAL: Key stack technology has no presence in PRD
|
|
106
|
-
- WARNING: Stack technology mentioned but underspecified in PRD
|
|
107
|
-
|
|
108
|
-
### Step 3: Architecture ↔ PRD Check
|
|
109
|
-
|
|
110
|
-
For each architecture decision in architecture.md:
|
|
111
|
-
- [ ] PRD respects layer boundaries
|
|
112
|
-
- [ ] PRD respects dependency direction
|
|
113
|
-
- [ ] PRD technical notes align with defined patterns
|
|
114
|
-
|
|
115
|
-
**Violation types:**
|
|
116
|
-
- CRITICAL: PRD proposes pattern contradicting architecture.md
|
|
117
|
-
- WARNING: PRD section doesn't reference applicable architecture decision
|
|
118
|
-
|
|
119
|
-
### Step 4: Best Practices ↔ PRD Check
|
|
120
|
-
|
|
121
|
-
For each MUST constraint in tech-bestpractices.md:
|
|
122
|
-
- [ ] PRD does not violate this constraint
|
|
123
|
-
- [ ] Relevant user stories reference this constraint
|
|
124
|
-
|
|
125
|
-
For each MUST NOT constraint:
|
|
126
|
-
- [ ] PRD does not propose the antipattern
|
|
127
|
-
|
|
128
|
-
**Violation types:**
|
|
129
|
-
- CRITICAL: PRD violates a MUST constraint
|
|
130
|
-
- CRITICAL: PRD proposes a MUST NOT antipattern
|
|
131
|
-
- WARNING: MUST constraint not referenced by any user story
|
|
132
|
-
|
|
133
|
-
### Step 5: Internal Consistency Check
|
|
134
|
-
|
|
135
|
-
Within the PRD itself:
|
|
136
|
-
- [ ] No two user stories contradict each other
|
|
137
|
-
- [ ] Priorities are consistent (P0 depends on P0, not P1 depending on P2)
|
|
138
|
-
- [ ] Data model matches API surface
|
|
139
|
-
- [ ] Security requirements cover all user-facing features
|
|
140
|
-
- [ ] Testing requirements cover all P0 user stories
|
|
141
|
-
|
|
142
|
-
**Violation types:**
|
|
143
|
-
- CRITICAL: Contradicting user stories
|
|
144
|
-
- CRITICAL: P0 feature with no test coverage requirement
|
|
145
|
-
- WARNING: Priority inconsistency in dependencies
|
|
146
|
-
|
|
147
|
-
### Step 6: Completeness Check
|
|
148
|
-
|
|
149
|
-
- [ ] All sections of PRD template are present
|
|
150
|
-
- [ ] Executive summary matches actual content
|
|
151
|
-
- [ ] Traceability matrix is complete
|
|
152
|
-
- [ ] Open questions are flagged (not hidden)
|
|
153
|
-
|
|
154
|
-
**Violation types:**
|
|
155
|
-
- WARNING: Missing PRD section
|
|
156
|
-
- INFO: Traceability matrix has gaps
|
|
157
|
-
|
|
158
|
-
### Step 7: Write Consistency Report
|
|
159
|
-
|
|
160
|
-
Write `artifacts/consistency-report.md`:
|
|
161
|
-
|
|
162
|
-
```markdown
|
|
163
|
-
# Consistency Report: <Project/Task Name>
|
|
164
|
-
|
|
165
|
-
## Verdict: PASS | PASS_WITH_WARNINGS | FAIL
|
|
166
|
-
|
|
167
|
-
## Summary
|
|
168
|
-
- Checks executed: <count>
|
|
169
|
-
- CRITICAL violations: <count>
|
|
170
|
-
- WARNING violations: <count>
|
|
171
|
-
- INFO items: <count>
|
|
172
|
-
|
|
173
|
-
## Violations
|
|
174
|
-
|
|
175
|
-
### CRITICAL
|
|
176
|
-
#### V-001: <Title>
|
|
177
|
-
- **Check**: <which check caught this>
|
|
178
|
-
- **Found in PRD**: <section/user story reference>
|
|
179
|
-
- **Conflicts with**: <decision ID / constraint ID / architecture section>
|
|
180
|
-
- **Details**: <specific description>
|
|
181
|
-
- **Suggested fix**: <what should change>
|
|
182
|
-
- **Fix target**: <which phase/artifact needs to be updated>
|
|
183
|
-
|
|
184
|
-
### WARNINGS
|
|
185
|
-
#### W-001: <Title>
|
|
186
|
-
...
|
|
187
|
-
|
|
188
|
-
### INFO
|
|
189
|
-
#### I-001: <Title>
|
|
190
|
-
...
|
|
191
|
-
|
|
192
|
-
## Audit Trail
|
|
193
|
-
| Check Category | Items Checked | Passed | Failed |
|
|
194
|
-
|---------------|--------------|--------|--------|
|
|
195
|
-
| Goals ↔ User Stories | <N> | <N> | <N> |
|
|
196
|
-
| Stack ↔ PRD | <N> | <N> | <N> |
|
|
197
|
-
| Architecture ↔ PRD | <N> | <N> | <N> |
|
|
198
|
-
| Best Practices ↔ PRD | <N> | <N> | <N> |
|
|
199
|
-
| Internal Consistency | <N> | <N> | <N> |
|
|
200
|
-
| Completeness | <N> | <N> | <N> |
|
|
201
|
-
|
|
202
|
-
## Rollback Recommendations
|
|
203
|
-
<If CRITICAL violations exist, suggest which phase to rollback to>
|
|
204
|
-
- V-001 → requires rollback to Phase <N> (<reason>)
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Step 8: Return Summary
|
|
208
|
-
|
|
209
|
-
Compact summary: verdict, violation counts, rollback recommendation if applicable.
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: consistency-checker
|
|
3
|
-
description: >
|
|
4
|
-
Validates PRD/Implementation Plan against decisions registry, architecture doc,
|
|
5
|
-
and best practices constraints. Catches contradictions, gaps, and violations.
|
|
6
|
-
Use when: dispatched by gproject-orchestrator Phase 5.
|
|
7
|
-
NOT for: direct user invocation.
|
|
8
|
-
triggers:
|
|
9
|
-
- "check consistency"
|
|
10
|
-
- "validate spec"
|
|
11
|
-
- "doc contradictions"
|
|
12
|
-
metadata:
|
|
13
|
-
version: 1.0.0
|
|
14
|
-
compatible_harnesses: "cursor,codex,zed,opencode"
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# gproject-consistency-checker
|
|
18
|
-
|
|
19
|
-
## Purpose
|
|
20
|
-
|
|
21
|
-
Quality gate before human approval. Systematically verify that the PRD
|
|
22
|
-
is internally consistent and fully aligned with all upstream decisions.
|
|
23
|
-
This agent is adversarial — its job is to find problems, not to approve.
|
|
24
|
-
|
|
25
|
-
## Iron Laws
|
|
26
|
-
|
|
27
|
-
| # | Law |
|
|
28
|
-
|---|-----|
|
|
29
|
-
| 1 | Check EVERY decision in decisions.md against PRD — no sampling |
|
|
30
|
-
| 2 | Check EVERY MUST constraint in tech-bestpractices.md against PRD |
|
|
31
|
-
| 3 | Report ALL violations — don't stop at the first one |
|
|
32
|
-
| 4 | Classify severity: CRITICAL (blocks approval) / WARNING (should fix) / INFO (suggestion) |
|
|
33
|
-
| 5 | NEVER fix violations yourself — only report them |
|
|
34
|
-
| 6 | A clean report still lists what was checked (audit trail) |
|
|
35
|
-
|
|
36
|
-
## Red Flags
|
|
37
|
-
|
|
38
|
-
Stop and re-read this skill if you are thinking:
|
|
39
|
-
|
|
40
|
-
| Rationalization | Rebuttal |
|
|
41
|
-
|---|---|
|
|
42
|
-
| "The first decisions all check out, so the rest of the registry is fine." | Iron Law 1: every decision, no sampling. The registry's later entries are the ones added late under pressure — the most likely to contradict a PRD written before them. |
|
|
43
|
-
| "This violation is one line to fix — cheaper to correct than to report." | Iron Law 5: never fix, only report. This agent is the gate; a gate that edits the artifact it is judging has approved its own change, and the spec-writer never learns its output drifted. |
|
|
44
|
-
| "One CRITICAL violation, but the PRD is strong overall — `DONE` with a note." | The status logic is mechanical: any CRITICAL means `DONE_WITH_CONCERNS`. Softening it lets a document reach human approval carrying exactly the contradiction this phase exists to surface. |
|
|
45
|
-
| "The PRD contradicts a decision, but the PRD's version is clearly better." | Being right is not this agent's job. Report the contradiction and let the orchestrator or the human resolve it — a checker that picks a winner has quietly changed a project decision nobody recorded. |
|
|
46
|
-
| "Nothing was wrong, so a short 'all clear' is the report." | Iron Law 6: a clean report still lists what was checked. Without the audit trail, "no violations" and "did not look" produce the same document. |
|
|
47
|
-
| "I found several violations already — that is enough to block approval." | Iron Law 3: report ALL violations. Stopping early guarantees a second review round for the ones you did not name, and each round costs another full pipeline pass. |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Input Contract
|
|
52
|
-
|
|
53
|
-
```yaml
|
|
54
|
-
task: "Validate PRD consistency against all project decisions and constraints"
|
|
55
|
-
input_artifacts:
|
|
56
|
-
- .metaproject/jobs/<job>/artifacts/prd.md
|
|
57
|
-
- .metaproject/jobs/<job>/artifacts/problem-statement.md
|
|
58
|
-
- .metaproject/jobs/<job>/artifacts/stack-decision.md
|
|
59
|
-
- .metaproject/jobs/<job>/artifacts/architecture.md
|
|
60
|
-
- .metaproject/jobs/<job>/artifacts/tech-bestpractices.md
|
|
61
|
-
- .metaproject/jobs/<job>/decisions.md
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Output Contract
|
|
65
|
-
|
|
66
|
-
```yaml
|
|
67
|
-
status: "DONE" | "DONE_WITH_CONCERNS"
|
|
68
|
-
summary: "<3-5 sentences: checks run, violations found, overall verdict>"
|
|
69
|
-
concerns: ["<CRITICAL violations if any>"]
|
|
70
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/consistency-report.md"
|
|
71
|
-
# Note: no new_decisions — this agent doesn't make decisions
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Status logic:
|
|
75
|
-
- `DONE` = zero CRITICAL violations (WARNINGs acceptable)
|
|
76
|
-
- `DONE_WITH_CONCERNS` = one or more CRITICAL violations found
|
|
77
|
-
|
|
78
|
-
---
|
|
79
|
-
|
|
80
|
-
## Workflow
|
|
81
|
-
|
|
82
|
-
### Step 1: Goals ↔ User Stories Check
|
|
83
|
-
|
|
84
|
-
For each goal in problem-statement.md:
|
|
85
|
-
- [ ] At least one user story addresses this goal
|
|
86
|
-
- [ ] User story acceptance criteria map to goal's success metric
|
|
87
|
-
|
|
88
|
-
For each user story in PRD:
|
|
89
|
-
- [ ] Traces back to a defined goal (not an invented one)
|
|
90
|
-
- [ ] Does NOT implement a non-goal
|
|
91
|
-
|
|
92
|
-
**Violation types:**
|
|
93
|
-
- CRITICAL: Goal with no user story coverage
|
|
94
|
-
- CRITICAL: User story implementing a non-goal
|
|
95
|
-
- WARNING: User story with weak traceability to goal
|
|
96
|
-
|
|
97
|
-
### Step 2: Stack ↔ PRD Check
|
|
98
|
-
|
|
99
|
-
For each technology in stack-decision.md:
|
|
100
|
-
- [ ] PRD technical references use this technology (not something else)
|
|
101
|
-
- [ ] No undeclared technologies appear in PRD
|
|
102
|
-
|
|
103
|
-
**Violation types:**
|
|
104
|
-
- CRITICAL: PRD references technology not in stack-decision.md
|
|
105
|
-
- CRITICAL: Key stack technology has no presence in PRD
|
|
106
|
-
- WARNING: Stack technology mentioned but underspecified in PRD
|
|
107
|
-
|
|
108
|
-
### Step 3: Architecture ↔ PRD Check
|
|
109
|
-
|
|
110
|
-
For each architecture decision in architecture.md:
|
|
111
|
-
- [ ] PRD respects layer boundaries
|
|
112
|
-
- [ ] PRD respects dependency direction
|
|
113
|
-
- [ ] PRD technical notes align with defined patterns
|
|
114
|
-
|
|
115
|
-
**Violation types:**
|
|
116
|
-
- CRITICAL: PRD proposes pattern contradicting architecture.md
|
|
117
|
-
- WARNING: PRD section doesn't reference applicable architecture decision
|
|
118
|
-
|
|
119
|
-
### Step 4: Best Practices ↔ PRD Check
|
|
120
|
-
|
|
121
|
-
For each MUST constraint in tech-bestpractices.md:
|
|
122
|
-
- [ ] PRD does not violate this constraint
|
|
123
|
-
- [ ] Relevant user stories reference this constraint
|
|
124
|
-
|
|
125
|
-
For each MUST NOT constraint:
|
|
126
|
-
- [ ] PRD does not propose the antipattern
|
|
127
|
-
|
|
128
|
-
**Violation types:**
|
|
129
|
-
- CRITICAL: PRD violates a MUST constraint
|
|
130
|
-
- CRITICAL: PRD proposes a MUST NOT antipattern
|
|
131
|
-
- WARNING: MUST constraint not referenced by any user story
|
|
132
|
-
|
|
133
|
-
### Step 5: Internal Consistency Check
|
|
134
|
-
|
|
135
|
-
Within the PRD itself:
|
|
136
|
-
- [ ] No two user stories contradict each other
|
|
137
|
-
- [ ] Priorities are consistent (P0 depends on P0, not P1 depending on P2)
|
|
138
|
-
- [ ] Data model matches API surface
|
|
139
|
-
- [ ] Security requirements cover all user-facing features
|
|
140
|
-
- [ ] Testing requirements cover all P0 user stories
|
|
141
|
-
|
|
142
|
-
**Violation types:**
|
|
143
|
-
- CRITICAL: Contradicting user stories
|
|
144
|
-
- CRITICAL: P0 feature with no test coverage requirement
|
|
145
|
-
- WARNING: Priority inconsistency in dependencies
|
|
146
|
-
|
|
147
|
-
### Step 6: Completeness Check
|
|
148
|
-
|
|
149
|
-
- [ ] All sections of PRD template are present
|
|
150
|
-
- [ ] Executive summary matches actual content
|
|
151
|
-
- [ ] Traceability matrix is complete
|
|
152
|
-
- [ ] Open questions are flagged (not hidden)
|
|
153
|
-
|
|
154
|
-
**Violation types:**
|
|
155
|
-
- WARNING: Missing PRD section
|
|
156
|
-
- INFO: Traceability matrix has gaps
|
|
157
|
-
|
|
158
|
-
### Step 7: Write Consistency Report
|
|
159
|
-
|
|
160
|
-
Write `artifacts/consistency-report.md`:
|
|
161
|
-
|
|
162
|
-
```markdown
|
|
163
|
-
# Consistency Report: <Project/Task Name>
|
|
164
|
-
|
|
165
|
-
## Verdict: PASS | PASS_WITH_WARNINGS | FAIL
|
|
166
|
-
|
|
167
|
-
## Summary
|
|
168
|
-
- Checks executed: <count>
|
|
169
|
-
- CRITICAL violations: <count>
|
|
170
|
-
- WARNING violations: <count>
|
|
171
|
-
- INFO items: <count>
|
|
172
|
-
|
|
173
|
-
## Violations
|
|
174
|
-
|
|
175
|
-
### CRITICAL
|
|
176
|
-
#### V-001: <Title>
|
|
177
|
-
- **Check**: <which check caught this>
|
|
178
|
-
- **Found in PRD**: <section/user story reference>
|
|
179
|
-
- **Conflicts with**: <decision ID / constraint ID / architecture section>
|
|
180
|
-
- **Details**: <specific description>
|
|
181
|
-
- **Suggested fix**: <what should change>
|
|
182
|
-
- **Fix target**: <which phase/artifact needs to be updated>
|
|
183
|
-
|
|
184
|
-
### WARNINGS
|
|
185
|
-
#### W-001: <Title>
|
|
186
|
-
...
|
|
187
|
-
|
|
188
|
-
### INFO
|
|
189
|
-
#### I-001: <Title>
|
|
190
|
-
...
|
|
191
|
-
|
|
192
|
-
## Audit Trail
|
|
193
|
-
| Check Category | Items Checked | Passed | Failed |
|
|
194
|
-
|---------------|--------------|--------|--------|
|
|
195
|
-
| Goals ↔ User Stories | <N> | <N> | <N> |
|
|
196
|
-
| Stack ↔ PRD | <N> | <N> | <N> |
|
|
197
|
-
| Architecture ↔ PRD | <N> | <N> | <N> |
|
|
198
|
-
| Best Practices ↔ PRD | <N> | <N> | <N> |
|
|
199
|
-
| Internal Consistency | <N> | <N> | <N> |
|
|
200
|
-
| Completeness | <N> | <N> | <N> |
|
|
201
|
-
|
|
202
|
-
## Rollback Recommendations
|
|
203
|
-
<If CRITICAL violations exist, suggest which phase to rollback to>
|
|
204
|
-
- V-001 → requires rollback to Phase <N> (<reason>)
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
### Step 8: Return Summary
|
|
208
|
-
|
|
209
|
-
Compact summary: verdict, violation counts, rollback recommendation if applicable.
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: consistency-checker
|
|
3
|
-
description: >
|
|
4
|
-
Validates PRD/Implementation Plan against decisions registry, architecture doc,
|
|
5
|
-
and best practices constraints. Catches contradictions, gaps, and violations.
|
|
6
|
-
Use when: dispatched by gproject-orchestrator Phase 5.
|
|
7
|
-
NOT for: direct user invocation.
|
|
8
|
-
triggers:
|
|
9
|
-
- "check consistency"
|
|
10
|
-
- "validate spec"
|
|
11
|
-
- "doc contradictions"
|
|
12
|
-
metadata:
|
|
13
|
-
version: 1.0.0
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
# gproject-consistency-checker
|
|
17
|
-
|
|
18
|
-
## Purpose
|
|
19
|
-
|
|
20
|
-
Quality gate before human approval. Systematically verify that the PRD
|
|
21
|
-
is internally consistent and fully aligned with all upstream decisions.
|
|
22
|
-
This agent is adversarial — its job is to find problems, not to approve.
|
|
23
|
-
|
|
24
|
-
## Iron Laws
|
|
25
|
-
|
|
26
|
-
| # | Law |
|
|
27
|
-
|---|-----|
|
|
28
|
-
| 1 | Check EVERY decision in decisions.md against PRD — no sampling |
|
|
29
|
-
| 2 | Check EVERY MUST constraint in tech-bestpractices.md against PRD |
|
|
30
|
-
| 3 | Report ALL violations — don't stop at the first one |
|
|
31
|
-
| 4 | Classify severity: CRITICAL (blocks approval) / WARNING (should fix) / INFO (suggestion) |
|
|
32
|
-
| 5 | NEVER fix violations yourself — only report them |
|
|
33
|
-
| 6 | A clean report still lists what was checked (audit trail) |
|
|
34
|
-
|
|
35
|
-
## Red Flags
|
|
36
|
-
|
|
37
|
-
Stop and re-read this skill if you are thinking:
|
|
38
|
-
|
|
39
|
-
| Rationalization | Rebuttal |
|
|
40
|
-
|---|---|
|
|
41
|
-
| "The first decisions all check out, so the rest of the registry is fine." | Iron Law 1: every decision, no sampling. The registry's later entries are the ones added late under pressure — the most likely to contradict a PRD written before them. |
|
|
42
|
-
| "This violation is one line to fix — cheaper to correct than to report." | Iron Law 5: never fix, only report. This agent is the gate; a gate that edits the artifact it is judging has approved its own change, and the spec-writer never learns its output drifted. |
|
|
43
|
-
| "One CRITICAL violation, but the PRD is strong overall — `DONE` with a note." | The status logic is mechanical: any CRITICAL means `DONE_WITH_CONCERNS`. Softening it lets a document reach human approval carrying exactly the contradiction this phase exists to surface. |
|
|
44
|
-
| "The PRD contradicts a decision, but the PRD's version is clearly better." | Being right is not this agent's job. Report the contradiction and let the orchestrator or the human resolve it — a checker that picks a winner has quietly changed a project decision nobody recorded. |
|
|
45
|
-
| "Nothing was wrong, so a short 'all clear' is the report." | Iron Law 6: a clean report still lists what was checked. Without the audit trail, "no violations" and "did not look" produce the same document. |
|
|
46
|
-
| "I found several violations already — that is enough to block approval." | Iron Law 3: report ALL violations. Stopping early guarantees a second review round for the ones you did not name, and each round costs another full pipeline pass. |
|
|
47
|
-
|
|
48
|
-
---
|
|
49
|
-
|
|
50
|
-
## Input Contract
|
|
51
|
-
|
|
52
|
-
```yaml
|
|
53
|
-
task: "Validate PRD consistency against all project decisions and constraints"
|
|
54
|
-
input_artifacts:
|
|
55
|
-
- .metaproject/jobs/<job>/artifacts/prd.md
|
|
56
|
-
- .metaproject/jobs/<job>/artifacts/problem-statement.md
|
|
57
|
-
- .metaproject/jobs/<job>/artifacts/stack-decision.md
|
|
58
|
-
- .metaproject/jobs/<job>/artifacts/architecture.md
|
|
59
|
-
- .metaproject/jobs/<job>/artifacts/tech-bestpractices.md
|
|
60
|
-
- .metaproject/jobs/<job>/decisions.md
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
## Output Contract
|
|
64
|
-
|
|
65
|
-
```yaml
|
|
66
|
-
status: "DONE" | "DONE_WITH_CONCERNS"
|
|
67
|
-
summary: "<3-5 sentences: checks run, violations found, overall verdict>"
|
|
68
|
-
concerns: ["<CRITICAL violations if any>"]
|
|
69
|
-
artifact_path: ".metaproject/jobs/<job>/artifacts/consistency-report.md"
|
|
70
|
-
# Note: no new_decisions — this agent doesn't make decisions
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
Status logic:
|
|
74
|
-
- `DONE` = zero CRITICAL violations (WARNINGs acceptable)
|
|
75
|
-
- `DONE_WITH_CONCERNS` = one or more CRITICAL violations found
|
|
76
|
-
|
|
77
|
-
---
|
|
78
|
-
|
|
79
|
-
## Workflow
|
|
80
|
-
|
|
81
|
-
### Step 1: Goals ↔ User Stories Check
|
|
82
|
-
|
|
83
|
-
For each goal in problem-statement.md:
|
|
84
|
-
- [ ] At least one user story addresses this goal
|
|
85
|
-
- [ ] User story acceptance criteria map to goal's success metric
|
|
86
|
-
|
|
87
|
-
For each user story in PRD:
|
|
88
|
-
- [ ] Traces back to a defined goal (not an invented one)
|
|
89
|
-
- [ ] Does NOT implement a non-goal
|
|
90
|
-
|
|
91
|
-
**Violation types:**
|
|
92
|
-
- CRITICAL: Goal with no user story coverage
|
|
93
|
-
- CRITICAL: User story implementing a non-goal
|
|
94
|
-
- WARNING: User story with weak traceability to goal
|
|
95
|
-
|
|
96
|
-
### Step 2: Stack ↔ PRD Check
|
|
97
|
-
|
|
98
|
-
For each technology in stack-decision.md:
|
|
99
|
-
- [ ] PRD technical references use this technology (not something else)
|
|
100
|
-
- [ ] No undeclared technologies appear in PRD
|
|
101
|
-
|
|
102
|
-
**Violation types:**
|
|
103
|
-
- CRITICAL: PRD references technology not in stack-decision.md
|
|
104
|
-
- CRITICAL: Key stack technology has no presence in PRD
|
|
105
|
-
- WARNING: Stack technology mentioned but underspecified in PRD
|
|
106
|
-
|
|
107
|
-
### Step 3: Architecture ↔ PRD Check
|
|
108
|
-
|
|
109
|
-
For each architecture decision in architecture.md:
|
|
110
|
-
- [ ] PRD respects layer boundaries
|
|
111
|
-
- [ ] PRD respects dependency direction
|
|
112
|
-
- [ ] PRD technical notes align with defined patterns
|
|
113
|
-
|
|
114
|
-
**Violation types:**
|
|
115
|
-
- CRITICAL: PRD proposes pattern contradicting architecture.md
|
|
116
|
-
- WARNING: PRD section doesn't reference applicable architecture decision
|
|
117
|
-
|
|
118
|
-
### Step 4: Best Practices ↔ PRD Check
|
|
119
|
-
|
|
120
|
-
For each MUST constraint in tech-bestpractices.md:
|
|
121
|
-
- [ ] PRD does not violate this constraint
|
|
122
|
-
- [ ] Relevant user stories reference this constraint
|
|
123
|
-
|
|
124
|
-
For each MUST NOT constraint:
|
|
125
|
-
- [ ] PRD does not propose the antipattern
|
|
126
|
-
|
|
127
|
-
**Violation types:**
|
|
128
|
-
- CRITICAL: PRD violates a MUST constraint
|
|
129
|
-
- CRITICAL: PRD proposes a MUST NOT antipattern
|
|
130
|
-
- WARNING: MUST constraint not referenced by any user story
|
|
131
|
-
|
|
132
|
-
### Step 5: Internal Consistency Check
|
|
133
|
-
|
|
134
|
-
Within the PRD itself:
|
|
135
|
-
- [ ] No two user stories contradict each other
|
|
136
|
-
- [ ] Priorities are consistent (P0 depends on P0, not P1 depending on P2)
|
|
137
|
-
- [ ] Data model matches API surface
|
|
138
|
-
- [ ] Security requirements cover all user-facing features
|
|
139
|
-
- [ ] Testing requirements cover all P0 user stories
|
|
140
|
-
|
|
141
|
-
**Violation types:**
|
|
142
|
-
- CRITICAL: Contradicting user stories
|
|
143
|
-
- CRITICAL: P0 feature with no test coverage requirement
|
|
144
|
-
- WARNING: Priority inconsistency in dependencies
|
|
145
|
-
|
|
146
|
-
### Step 6: Completeness Check
|
|
147
|
-
|
|
148
|
-
- [ ] All sections of PRD template are present
|
|
149
|
-
- [ ] Executive summary matches actual content
|
|
150
|
-
- [ ] Traceability matrix is complete
|
|
151
|
-
- [ ] Open questions are flagged (not hidden)
|
|
152
|
-
|
|
153
|
-
**Violation types:**
|
|
154
|
-
- WARNING: Missing PRD section
|
|
155
|
-
- INFO: Traceability matrix has gaps
|
|
156
|
-
|
|
157
|
-
### Step 7: Write Consistency Report
|
|
158
|
-
|
|
159
|
-
Write `artifacts/consistency-report.md`:
|
|
160
|
-
|
|
161
|
-
```markdown
|
|
162
|
-
# Consistency Report: <Project/Task Name>
|
|
163
|
-
|
|
164
|
-
## Verdict: PASS | PASS_WITH_WARNINGS | FAIL
|
|
165
|
-
|
|
166
|
-
## Summary
|
|
167
|
-
- Checks executed: <count>
|
|
168
|
-
- CRITICAL violations: <count>
|
|
169
|
-
- WARNING violations: <count>
|
|
170
|
-
- INFO items: <count>
|
|
171
|
-
|
|
172
|
-
## Violations
|
|
173
|
-
|
|
174
|
-
### CRITICAL
|
|
175
|
-
#### V-001: <Title>
|
|
176
|
-
- **Check**: <which check caught this>
|
|
177
|
-
- **Found in PRD**: <section/user story reference>
|
|
178
|
-
- **Conflicts with**: <decision ID / constraint ID / architecture section>
|
|
179
|
-
- **Details**: <specific description>
|
|
180
|
-
- **Suggested fix**: <what should change>
|
|
181
|
-
- **Fix target**: <which phase/artifact needs to be updated>
|
|
182
|
-
|
|
183
|
-
### WARNINGS
|
|
184
|
-
#### W-001: <Title>
|
|
185
|
-
...
|
|
186
|
-
|
|
187
|
-
### INFO
|
|
188
|
-
#### I-001: <Title>
|
|
189
|
-
...
|
|
190
|
-
|
|
191
|
-
## Audit Trail
|
|
192
|
-
| Check Category | Items Checked | Passed | Failed |
|
|
193
|
-
|---------------|--------------|--------|--------|
|
|
194
|
-
| Goals ↔ User Stories | <N> | <N> | <N> |
|
|
195
|
-
| Stack ↔ PRD | <N> | <N> | <N> |
|
|
196
|
-
| Architecture ↔ PRD | <N> | <N> | <N> |
|
|
197
|
-
| Best Practices ↔ PRD | <N> | <N> | <N> |
|
|
198
|
-
| Internal Consistency | <N> | <N> | <N> |
|
|
199
|
-
| Completeness | <N> | <N> | <N> |
|
|
200
|
-
|
|
201
|
-
## Rollback Recommendations
|
|
202
|
-
<If CRITICAL violations exist, suggest which phase to rollback to>
|
|
203
|
-
- V-001 → requires rollback to Phase <N> (<reason>)
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
### Step 8: Return Summary
|
|
207
|
-
|
|
208
|
-
Compact summary: verdict, violation counts, rollback recommendation if applicable.
|