@mrciphersmith/keryx 0.2.97 → 0.2.99

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.
Files changed (210) hide show
  1. package/dist/cli.js +4583 -2702
  2. package/dist/core.js +40 -2
  3. package/package.json +1 -1
  4. package/src/gdskills/bundled/rules/core/api-contracts.mdc +1 -0
  5. package/src/gdskills/bundled/rules/core/cli-interface-design.mdc +237 -0
  6. package/src/gdskills/bundled/rules/core/code-style-patterns.mdc +1 -0
  7. package/src/gdskills/bundled/rules/core/database-patterns.mdc +1 -0
  8. package/src/gdskills/bundled/rules/core/definition-of-done.mdc +116 -0
  9. package/src/gdskills/bundled/rules/core/documentation-management.mdc +33 -38
  10. package/src/gdskills/bundled/rules/core/error-handling.mdc +1 -11
  11. package/src/gdskills/bundled/rules/core/execution-metrics.md +1 -2
  12. package/src/gdskills/bundled/rules/core/frontend-assistant.mdc +1 -0
  13. package/src/gdskills/bundled/rules/core/git-concurrency.mdc +101 -0
  14. package/src/gdskills/bundled/rules/core/implementation-plans.mdc +23 -11
  15. package/src/gdskills/bundled/rules/core/mobx-store-template.mdc +1 -0
  16. package/src/gdskills/bundled/rules/core/nestjs-dto.mdc +1 -0
  17. package/src/gdskills/bundled/rules/core/playwright-testing.mdc +1 -0
  18. package/src/gdskills/bundled/rules/core/requirements-management.mdc +15 -11
  19. package/src/gdskills/bundled/rules/core/rule-management-workflow.mdc +29 -14
  20. package/src/gdskills/bundled/rules/core/shared-definitions.mdc +1 -1
  21. package/src/gdskills/bundled/rules/core/skill-lifecycle.mdc +9 -5
  22. package/src/gdskills/bundled/rules/core/skills-storage-workflow.mdc +156 -23
  23. package/src/gdskills/bundled/rules/core/storybook-guidelines.mdc +1 -0
  24. package/src/gdskills/bundled/rules/core/subagent-status-protocol.md +9 -2
  25. package/src/gdskills/bundled/skills/core/reviewer-skill-creator/SKILL.md +42 -5
  26. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.md +67 -74
  27. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.md +24 -8
  28. package/src/gdskills/bundled/skills/orchestration/context-collector/orchestrator-prompt.md +2 -2
  29. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.detail.md +12 -22
  30. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.md +44 -31
  31. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.md +2 -2
  32. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/analysis-request.template.md +1 -1
  33. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/input-contract.schema.json +4 -4
  34. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/orchestrator-prompt.md +2 -2
  35. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.md +20 -6
  36. package/src/gdskills/bundled/skills/orchestration/flow-orchestrator/SKILL.md +67 -9
  37. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.md +6 -6
  38. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/orchestrator-prompt.md +1 -1
  39. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.md +45 -5
  40. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.md +88 -32
  41. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.md +52 -41
  42. package/src/gdskills/bundled/skills/orchestration/task-implementer/output-contract.schema.json +32 -1
  43. package/src/gdskills/bundled/skills/planning/autodoc-analyst/SKILL.md +16 -0
  44. package/src/gdskills/bundled/skills/planning/autodoc-architect/SKILL.md +16 -0
  45. package/src/gdskills/bundled/skills/planning/autodoc-assembler/SKILL.md +16 -0
  46. package/src/gdskills/bundled/skills/planning/autodoc-orchestrator/SKILL.md +17 -0
  47. package/src/gdskills/bundled/skills/planning/autodoc-scanner/SKILL.md +16 -0
  48. package/src/gdskills/bundled/skills/planning/autodoc-writer/SKILL.md +16 -0
  49. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.md +29 -4
  50. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.codex.md +17 -0
  51. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.cursor.md +17 -0
  52. package/src/gdskills/bundled/skills/planning/consistency-checker/SKILL.md +17 -0
  53. package/src/gdskills/bundled/skills/planning/docpack-orchestrator/SKILL.md +32 -2
  54. package/src/gdskills/bundled/skills/planning/docpack-review/SKILL.md +14 -2
  55. package/src/gdskills/bundled/skills/planning/interview/SKILL.md +30 -8
  56. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.md +33 -7
  57. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.codex.md +16 -0
  58. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.cursor.md +16 -0
  59. package/src/gdskills/bundled/skills/planning/patterns-researcher/SKILL.md +16 -0
  60. package/src/gdskills/bundled/skills/planning/planner/SKILL.codex.md +17 -0
  61. package/src/gdskills/bundled/skills/planning/planner/SKILL.cursor.md +17 -0
  62. package/src/gdskills/bundled/skills/planning/planner/SKILL.md +17 -0
  63. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.md +27 -10
  64. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.codex.md +16 -0
  65. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.cursor.md +16 -0
  66. package/src/gdskills/bundled/skills/planning/problem-definer/SKILL.md +16 -0
  67. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.codex.md +16 -0
  68. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.cursor.md +16 -0
  69. package/src/gdskills/bundled/skills/planning/project-discovery/SKILL.md +16 -0
  70. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.codex.md +4 -0
  71. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.cursor.md +4 -0
  72. package/src/gdskills/bundled/skills/planning/spec-writer/SKILL.md +4 -0
  73. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.codex.md +4 -0
  74. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.cursor.md +4 -0
  75. package/src/gdskills/bundled/skills/planning/stack-advisor/SKILL.md +4 -0
  76. package/src/gdskills/bundled/skills/platform/agent-entrypoint-distiller/SKILL.md +31 -4
  77. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.md +27 -3
  78. package/src/gdskills/bundled/skills/platform/hookify/SKILL.md +29 -4
  79. package/src/gdskills/bundled/skills/quality/api-truth/SKILL.md +226 -0
  80. package/src/gdskills/bundled/skills/quality/changelog/SKILL.md +25 -5
  81. package/src/gdskills/bundled/skills/quality/commit/SKILL.md +26 -5
  82. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.md +25 -4
  83. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.md +26 -5
  84. package/src/gdskills/bundled/skills/quality/deploy/SKILL.md +27 -4
  85. package/src/gdskills/bundled/skills/quality/deprecation-path/SKILL.md +268 -0
  86. package/src/gdskills/bundled/skills/quality/fresh-eyes/SKILL.md +190 -0
  87. package/src/gdskills/bundled/skills/quality/metaproject-security/SKILL.md +24 -3
  88. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.md +30 -9
  89. package/src/gdskills/bundled/skills/quality/pr/SKILL.md +25 -5
  90. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.md +27 -4
  91. package/src/gdskills/bundled/skills/quality/push/SKILL.md +25 -4
  92. package/src/gdskills/bundled/skills/quality/root-cause/SKILL.md +204 -0
  93. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.md +25 -4
  94. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.md +31 -5
  95. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.md +32 -11
  96. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.md +42 -7
  97. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.md +43 -3
  98. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.md +46 -4
  99. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.md +46 -6
  100. package/src/gdskills/bundled/skills/review/review-architecture/SKILL.md +5 -5
  101. package/src/gdskills/bundled/skills/review/review-backend/SKILL.md +5 -6
  102. package/src/gdskills/bundled/skills/review/review-clean-code/SKILL.md +6 -6
  103. package/src/gdskills/bundled/skills/review/review-core-boundaries/SKILL.md +37 -3
  104. package/src/gdskills/bundled/skills/review/review-flow-graph/SKILL.md +38 -4
  105. package/src/gdskills/bundled/skills/review/review-frontend/SKILL.md +4 -6
  106. package/src/gdskills/bundled/skills/review/review-frontend-conventions/SKILL.md +37 -3
  107. package/src/gdskills/bundled/skills/review/review-highload/SKILL.md +5 -7
  108. package/src/gdskills/bundled/skills/review/review-layout/SKILL.md +24 -3
  109. package/src/gdskills/bundled/skills/review/review-logic/SKILL.md +5 -5
  110. package/src/gdskills/bundled/skills/review/review-orchestrator/SKILL.md +49 -64
  111. package/src/gdskills/bundled/skills/review/review-orchestrator/input-contract.schema.json +1 -2
  112. package/src/gdskills/bundled/skills/review/review-orchestrator/review-context.schema.json +1 -5
  113. package/src/gdskills/bundled/skills/review/review-orchestrator/reviewer-input.schema.json +53 -9
  114. package/src/gdskills/bundled/skills/review/review-performance/SKILL.md +11 -11
  115. package/src/gdskills/bundled/skills/review/review-pr-feedback/SKILL.md +9 -8
  116. package/src/gdskills/bundled/skills/review/review-regression/SKILL.md +33 -2
  117. package/src/gdskills/bundled/skills/review/review-security-code/SKILL.md +6 -4
  118. package/src/gdskills/bundled/skills/review/review-style/SKILL.md +5 -5
  119. package/src/gdskills/bundled/skills/review/review-testing-practices/SKILL.md +41 -3
  120. package/src/gdskills/bundled/skills/review/review-verifier/SKILL.md +2 -2
  121. package/src/gdskills/bundled/rules/core/review-agent-profile.mdc +0 -49
  122. package/src/gdskills/bundled/rules/core/review-strict-profile.mdc +0 -48
  123. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.codex.md +0 -353
  124. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.cursor.md +0 -353
  125. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.opencode.md +0 -353
  126. package/src/gdskills/bundled/skills/orchestration/code-verifier/SKILL.zed.md +0 -353
  127. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.codex.md +0 -655
  128. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.cursor.md +0 -655
  129. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.opencode.md +0 -655
  130. package/src/gdskills/bundled/skills/orchestration/context-collector/SKILL.zed.md +0 -655
  131. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.codex.md +0 -434
  132. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.cursor.md +0 -434
  133. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.opencode.md +0 -434
  134. package/src/gdskills/bundled/skills/orchestration/feature-analyzer/SKILL.zed.md +0 -434
  135. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.codex.md +0 -163
  136. package/src/gdskills/bundled/skills/orchestration/feature-dev/SKILL.cursor.md +0 -163
  137. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.codex.md +0 -373
  138. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.cursor.md +0 -373
  139. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.opencode.md +0 -373
  140. package/src/gdskills/bundled/skills/orchestration/issue-analyzer/SKILL.zed.md +0 -373
  141. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.codex.md +0 -374
  142. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.cursor.md +0 -374
  143. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.opencode.md +0 -374
  144. package/src/gdskills/bundled/skills/orchestration/job-documenter/SKILL.zed.md +0 -374
  145. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.codex.md +0 -2190
  146. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.cursor.md +0 -2190
  147. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.opencode.md +0 -2190
  148. package/src/gdskills/bundled/skills/orchestration/job-orchestrator/SKILL.zed.md +0 -2190
  149. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.codex.md +0 -659
  150. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.cursor.md +0 -659
  151. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.opencode.md +0 -659
  152. package/src/gdskills/bundled/skills/orchestration/task-implementer/SKILL.zed.md +0 -659
  153. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.codex.md +0 -90
  154. package/src/gdskills/bundled/skills/planning/brainstorm/SKILL.cursor.md +0 -90
  155. package/src/gdskills/bundled/skills/planning/interview/SKILL.codex.md +0 -187
  156. package/src/gdskills/bundled/skills/planning/interview/SKILL.cursor.md +0 -187
  157. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.codex.md +0 -105
  158. package/src/gdskills/bundled/skills/planning/interviewer/SKILL.cursor.md +0 -105
  159. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.codex.md +0 -193
  160. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.cursor.md +0 -193
  161. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.opencode.md +0 -193
  162. package/src/gdskills/bundled/skills/planning/prd-creator/SKILL.zed.md +0 -193
  163. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.codex.md +0 -87
  164. package/src/gdskills/bundled/skills/platform/claude-md-management/SKILL.cursor.md +0 -87
  165. package/src/gdskills/bundled/skills/platform/hookify/SKILL.codex.md +0 -100
  166. package/src/gdskills/bundled/skills/platform/hookify/SKILL.cursor.md +0 -100
  167. package/src/gdskills/bundled/skills/quality/changelog/SKILL.codex.md +0 -84
  168. package/src/gdskills/bundled/skills/quality/changelog/SKILL.cursor.md +0 -84
  169. package/src/gdskills/bundled/skills/quality/commit/SKILL.codex.md +0 -66
  170. package/src/gdskills/bundled/skills/quality/commit/SKILL.cursor.md +0 -66
  171. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.codex.md +0 -66
  172. package/src/gdskills/bundled/skills/quality/db-migrate/SKILL.cursor.md +0 -66
  173. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.codex.md +0 -81
  174. package/src/gdskills/bundled/skills/quality/dependency-update/SKILL.cursor.md +0 -81
  175. package/src/gdskills/bundled/skills/quality/deploy/SKILL.codex.md +0 -70
  176. package/src/gdskills/bundled/skills/quality/deploy/SKILL.cursor.md +0 -70
  177. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.codex.md +0 -83
  178. package/src/gdskills/bundled/skills/quality/perf-check/SKILL.cursor.md +0 -83
  179. package/src/gdskills/bundled/skills/quality/pr/SKILL.codex.md +0 -75
  180. package/src/gdskills/bundled/skills/quality/pr/SKILL.cursor.md +0 -75
  181. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.codex.md +0 -378
  182. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.cursor.md +0 -378
  183. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.opencode.md +0 -378
  184. package/src/gdskills/bundled/skills/quality/pr-issue-documenter/SKILL.zed.md +0 -378
  185. package/src/gdskills/bundled/skills/quality/push/SKILL.codex.md +0 -52
  186. package/src/gdskills/bundled/skills/quality/push/SKILL.cursor.md +0 -52
  187. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.codex.md +0 -108
  188. package/src/gdskills/bundled/skills/quality/security-audit/SKILL.cursor.md +0 -108
  189. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.codex.md +0 -75
  190. package/src/gdskills/bundled/skills/quality/test-gen/SKILL.cursor.md +0 -75
  191. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.codex.md +0 -339
  192. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.cursor.md +0 -339
  193. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.opencode.md +0 -339
  194. package/src/gdskills/bundled/skills/quality/tests-creator/SKILL.zed.md +0 -339
  195. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.codex.md +0 -203
  196. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.cursor.md +0 -203
  197. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.opencode.md +0 -203
  198. package/src/gdskills/bundled/skills/review/code-ai-review/SKILL.zed.md +0 -203
  199. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.codex.md +0 -243
  200. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.cursor.md +0 -243
  201. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.opencode.md +0 -243
  202. package/src/gdskills/bundled/skills/review/code-learned-review/SKILL.zed.md +0 -243
  203. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.codex.md +0 -259
  204. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.cursor.md +0 -259
  205. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.opencode.md +0 -259
  206. package/src/gdskills/bundled/skills/review/code-mobx-store-review/SKILL.zed.md +0 -259
  207. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.codex.md +0 -168
  208. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.cursor.md +0 -168
  209. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.opencode.md +0 -168
  210. package/src/gdskills/bundled/skills/review/code-style-review/SKILL.zed.md +0 -168
@@ -1,353 +0,0 @@
1
- ---
2
- name: code-verifier
3
- model_tier: light
4
- description: "Use when running a full quality gate after implementation — lint, type-check, tests, and import validation. Mandatory step in job-orchestrator after task-implementer and after fix iterations. Use standalone when you need a structured verification report."
5
- triggers:
6
- - "Run verification"
7
- - "Quality gate"
8
- - "Check code quality"
9
- - "Run lint and tests"
10
- - "Verify implementation"
11
- - "Run checks"
12
- metadata:
13
- author: "MrCipherSmith"
14
- version: "1.0.0"
15
- category: "verification"
16
- agent_worthy: true
17
- compatible_harnesses: "cursor,codex,zed,opencode"
18
- license: "MIT"
19
- ---
20
-
21
- # Code Verifier
22
-
23
- ## Purpose
24
-
25
- Runs the full quality gate for a project: lint, type-check, tests, and import validation. Provides a structured, parseable result that the orchestrator uses to decide whether to proceed or trigger a fix loop.
26
-
27
- **Distinct from `task-implementer` Phase 5:** task-implementer does inline self-verification during implementation. `code-verifier` is an independent gate that runs after all tasks in a wave are complete — giving a clean, consolidated view of the whole diff, not per-task.
28
-
29
- **Input:** Codebase path + worktree path + scope (changed files or full project)
30
- **Output:** `VERIFICATION_RESULT` structured report — gate status (pass/fail), per-check results, actionable findings
31
-
32
- ## When to Use
33
-
34
- - Dispatched by `job-orchestrator` after each task-implementer wave (mandatory)
35
- - Dispatched by `job-orchestrator` after each fix iteration
36
- - Run standalone: "verify my code", "run quality gate", "/code-verifier"
37
- - Any time you need a reproducible, structured view of project health
38
-
39
- ## Architecture: 4 Phases
40
-
41
- ```
42
- Phase 1: DETECT → Auto-detect stack, tooling, commands
43
- Phase 2: RUN → Execute lint → type-check → tests → import-check
44
- Phase 3: ANALYZE → Parse outputs, classify findings by severity
45
- Phase 4: REPORT → Emit VERIFICATION_RESULT
46
- ```
47
-
48
- ---
49
-
50
- ## Workflow
51
-
52
- ```
53
- Code Verifier Progress:
54
- - [ ] Phase 1: Detect stack and tooling
55
- - [ ] Phase 2: Run verification checks
56
- - [ ] Phase 3: Analyze and classify findings
57
- - [ ] Phase 4: Report results
58
- ```
59
-
60
- ---
61
-
62
- ### Phase 1: DETECT
63
-
64
- Auto-detect the project stack and available verification tools.
65
-
66
- **1.1 Package manager and runner:**
67
-
68
- ```bash
69
- cd <codebase_path>
70
-
71
- if [ -f bun.lock ] || [ -f bun.lockb ]; then PM=bun; RUNNER="bun run"
72
- elif [ -f pnpm-lock.yaml ]; then PM=pnpm; RUNNER="pnpm run"
73
- elif [ -f yarn.lock ]; then PM=yarn; RUNNER="yarn"
74
- elif [ -f package-lock.json ]; then PM=npm; RUNNER="npm run"
75
- elif [ -f pyproject.toml ] || [ -f requirements.txt ]; then PM=python; RUNNER=""
76
- elif [ -f go.mod ]; then PM=go; RUNNER=""
77
- else PM=unknown; RUNNER=""
78
- fi
79
- ```
80
-
81
- **1.2 Detect available check commands:**
82
-
83
- | Check | How to detect | Command |
84
- |---|---|---|
85
- | Lint | `package.json` has `"lint"` script | `$RUNNER lint` |
86
- | Lint (auto) | `eslint.config.*` or `.eslintrc*` present | `npx eslint . --max-warnings 0` |
87
- | Biome | `biome.json` present | `npx biome check .` |
88
- | Type-check | `package.json` has `"type-check"` or `"typecheck"` script | `$RUNNER type-check` |
89
- | Type-check (auto) | `tsconfig.json` present | `npx tsc --noEmit` |
90
- | Tests | `package.json` has `"test"` script | `$RUNNER test --run` (vitest) or `$RUNNER test` |
91
- | pytest | `pytest` in `pyproject.toml` or `requirements.txt` | `pytest --tb=short -q` |
92
- | Go tests | `go.mod` present | `go test ./...` |
93
- | Circular imports | `madge` in devDependencies | `npx madge --circular src/` |
94
-
95
- **1.3 Determine scope:**
96
-
97
- ```
98
- IF scope = "changed" (default when dispatched by orchestrator):
99
- FILES = git diff --name-only <base_branch>...HEAD
100
- Run tests only for files related to changed code
101
- Run lint only on changed files: npx eslint <changed_files>
102
- Run type-check on full project (tsc doesn't support file-level scope)
103
-
104
- IF scope = "full":
105
- Run all checks on full project
106
- ```
107
-
108
- **Output of Phase 1:**
109
- ```
110
- TOOLING:
111
- pm: bun | pnpm | yarn | npm | python | go | unknown
112
- runner: "bun run" | ...
113
- checks_available: [lint, type-check, tests, circular-imports]
114
- checks_skipped: [<reason>]
115
- scope: changed | full
116
- changed_files: [<paths>]
117
- ```
118
-
119
- ---
120
-
121
- ### Phase 2: RUN
122
-
123
- Execute each available check in order. Capture full output.
124
-
125
- **Execution order:** lint → type-check → tests → import-check
126
-
127
- **Do NOT abort early** — run all checks even if one fails. The orchestrator needs the complete picture.
128
-
129
- **2.1 Lint:**
130
- ```bash
131
- # Changed files only (faster, more actionable)
132
- npx eslint <changed_files> --format=json --max-warnings 0
133
- # OR if lint script exists:
134
- $RUNNER lint
135
- ```
136
-
137
- Capture:
138
- - Exit code (0 = pass, non-zero = fail)
139
- - Number of errors and warnings
140
- - Per-file error list (file path, line, column, rule, message)
141
-
142
- **2.2 Type-check:**
143
- ```bash
144
- npx tsc --noEmit 2>&1
145
- # OR:
146
- $RUNNER type-check
147
- ```
148
-
149
- Capture:
150
- - Exit code
151
- - Number of errors
152
- - Per-error: file, line, column, message, TS error code
153
-
154
- **2.3 Tests:**
155
- ```bash
156
- $RUNNER test --run 2>&1 # vitest
157
- # OR: npx jest --ci 2>&1
158
- # OR: pytest --tb=short -q 2>&1
159
- # OR: go test ./... 2>&1
160
- ```
161
-
162
- Capture:
163
- - Exit code
164
- - Tests passed / failed / skipped counts
165
- - Per-failure: test name, file, error message, stack (first 5 lines)
166
-
167
- **2.4 Circular import check (if madge available):**
168
- ```bash
169
- npx madge --circular --extensions ts,tsx src/ 2>&1
170
- ```
171
-
172
- Capture:
173
- - Exit code
174
- - List of circular chains (if any)
175
-
176
- ---
177
-
178
- ### Phase 3: ANALYZE
179
-
180
- Parse raw outputs into structured findings. Classify by severity.
181
-
182
- **3.1 Severity classification:**
183
-
184
- | Finding | Severity |
185
- |---|---|
186
- | Type error | CRITICAL |
187
- | Test failure | CRITICAL |
188
- | ESLint error (not warning) | HIGH |
189
- | Circular import | HIGH |
190
- | ESLint warning | LOW |
191
- | Skipped test | INFO |
192
-
193
- **3.2 Gate decision:**
194
-
195
- ```
196
- GATE = PASS
197
- IF any CRITICAL findings → GATE = FAIL (blocks proceed)
198
- IF any HIGH findings → GATE = FAIL (blocks proceed)
199
- IF only LOW/INFO findings → GATE = PASS_WITH_WARNINGS
200
- ```
201
-
202
- **3.3 Actionable finding format:**
203
-
204
- Each finding must include enough context for `task-implementer` (fix mode) to resolve it without re-reading the full output:
205
-
206
- ```
207
- {
208
- severity: CRITICAL | HIGH | LOW | INFO,
209
- check: lint | type-check | test | circular-import,
210
- file: <path>,
211
- line: <N> | null,
212
- column: <N> | null,
213
- rule: <ESLint rule or TS error code> | null,
214
- message: <error text>,
215
- suggestion: <optional fix hint>
216
- }
217
- ```
218
-
219
- ---
220
-
221
- ### Phase 4: REPORT
222
-
223
- Emit the structured `VERIFICATION_RESULT` as the final message.
224
-
225
- ```
226
- VERIFICATION_RESULT:
227
- gate: PASS | PASS_WITH_WARNINGS | FAIL
228
- scope: changed | full
229
-
230
- checks:
231
- lint:
232
- status: pass | fail | skipped
233
- errors: <N>
234
- warnings: <N>
235
- command_used: "<command>"
236
-
237
- type_check:
238
- status: pass | fail | skipped
239
- errors: <N>
240
- command_used: "<command>"
241
-
242
- tests:
243
- status: pass | fail | skipped
244
- passed: <N>
245
- failed: <N>
246
- skipped: <N>
247
- command_used: "<command>"
248
-
249
- circular_imports:
250
- status: pass | fail | skipped
251
- cycles: <N>
252
-
253
- findings:
254
- - severity: CRITICAL
255
- check: type-check
256
- file: src/services/UserService.ts
257
- line: 42
258
- rule: TS2345
259
- message: "Argument of type 'string' is not assignable to parameter of type 'number'"
260
- - severity: HIGH
261
- check: lint
262
- file: src/components/Form.tsx
263
- line: 18
264
- rule: "no-unused-vars"
265
- message: "'value' is defined but never used"
266
-
267
- summary: "<1-2 sentence human-readable summary>"
268
- ```
269
-
270
- **STATUS reporting:**
271
-
272
- ```
273
- STATUS: DONE — gate PASS or PASS_WITH_WARNINGS, report follows
274
- STATUS: DONE_WITH_CONCERNS — PASS_WITH_WARNINGS with notable warnings
275
- STATUS: BLOCKED — could not run checks (missing tooling, wrong directory)
276
- ```
277
-
278
- > If `gate: FAIL` → STATUS is still `DONE` (the gate result, not the skill's execution). The orchestrator reads `gate: FAIL` and decides to trigger fix.
279
-
280
- ---
281
-
282
- ## Integration with job-orchestrator
283
-
284
- The orchestrator dispatches `code-verifier` at two points:
285
-
286
- **After task-implementer wave (pre-review gate):**
287
- ```
288
- code-verifier:
289
- codebase_path: <worktree_path>
290
- scope: changed
291
- base_branch: <base_branch from JOB_STATE>
292
- → If gate: FAIL → dispatch fix tasks → re-run code-verifier
293
- → If gate: PASS → proceed to review
294
- ```
295
-
296
- **After fix iterations (post-fix gate):**
297
- ```
298
- code-verifier:
299
- codebase_path: <worktree_path>
300
- scope: changed
301
- → If gate still FAIL after 2 iterations → report as BLOCKED, skip to report
302
- → If gate: PASS → proceed to report
303
- ```
304
-
305
- **The orchestrator's internal "checks" step (2.8) is replaced by `code-verifier` dispatch.**
306
-
307
- ---
308
-
309
- ## Standalone Usage
310
-
311
- ```bash
312
- # Run on current directory, changed files only
313
- /code-verifier
314
-
315
- # Run on specific project
316
- /code-verifier --path /path/to/project
317
-
318
- # Full project scan (not just changed files)
319
- /code-verifier --scope full
320
- ```
321
-
322
- ---
323
-
324
- ## Automation Settings
325
-
326
- | Setting | Default | Options | Description |
327
- |---------|---------|---------|-------------|
328
- | `scope` | `changed` | `changed` / `full` | Limit checks to changed files or run full project |
329
- | `fail_on_warnings` | `false` | true/false | Treat ESLint warnings as gate failures |
330
- | `include_circular` | `true` | true/false | Run circular import detection if madge available |
331
- | `max_findings_reported` | `20` | 1-100 | Cap findings in report to avoid overflow |
332
-
333
- ---
334
-
335
- ## Error Handling
336
-
337
- | Error | Action |
338
- |---|---|
339
- | Check command not found | Mark check as `skipped`, continue others |
340
- | Wrong working directory | ABORT with `STATUS: BLOCKED` and directory hint |
341
- | Command times out (>120s) | Mark check as `skipped (timeout)`, continue |
342
- | Zero checks available | `STATUS: BLOCKED` — cannot verify without any tooling |
343
- | Circular import tool missing | Skip silently (not installed in all projects) |
344
-
345
- ---
346
-
347
- ## Rules of Engagement
348
-
349
- 1. **Run ALL checks** — never abort after first failure. The orchestrator needs the full picture.
350
- 2. **Do NOT modify files** — this is read-only verification.
351
- 3. **Scope to changed files** by default — full scans are slow and produce noise.
352
- 4. **Be specific** in findings — include file, line, rule, message. Vague "lint failed" is not actionable.
353
- 5. Return `VERIFICATION_RESULT` as the **final message** to the orchestrator.
@@ -1,353 +0,0 @@
1
- ---
2
- name: code-verifier
3
- model_tier: light
4
- description: "Use when running a full quality gate after implementation — lint, type-check, tests, and import validation. Mandatory step in job-orchestrator after task-implementer and after fix iterations. Use standalone when you need a structured verification report."
5
- triggers:
6
- - "Run verification"
7
- - "Quality gate"
8
- - "Check code quality"
9
- - "Run lint and tests"
10
- - "Verify implementation"
11
- - "Run checks"
12
- metadata:
13
- author: "MrCipherSmith"
14
- version: "1.0.0"
15
- category: "verification"
16
- agent_worthy: true
17
- compatible_harnesses: "cursor,codex,zed,opencode"
18
- license: "MIT"
19
- ---
20
-
21
- # Code Verifier
22
-
23
- ## Purpose
24
-
25
- Runs the full quality gate for a project: lint, type-check, tests, and import validation. Provides a structured, parseable result that the orchestrator uses to decide whether to proceed or trigger a fix loop.
26
-
27
- **Distinct from `task-implementer` Phase 5:** task-implementer does inline self-verification during implementation. `code-verifier` is an independent gate that runs after all tasks in a wave are complete — giving a clean, consolidated view of the whole diff, not per-task.
28
-
29
- **Input:** Codebase path + worktree path + scope (changed files or full project)
30
- **Output:** `VERIFICATION_RESULT` structured report — gate status (pass/fail), per-check results, actionable findings
31
-
32
- ## When to Use
33
-
34
- - Dispatched by `job-orchestrator` after each task-implementer wave (mandatory)
35
- - Dispatched by `job-orchestrator` after each fix iteration
36
- - Run standalone: "verify my code", "run quality gate", "/code-verifier"
37
- - Any time you need a reproducible, structured view of project health
38
-
39
- ## Architecture: 4 Phases
40
-
41
- ```
42
- Phase 1: DETECT → Auto-detect stack, tooling, commands
43
- Phase 2: RUN → Execute lint → type-check → tests → import-check
44
- Phase 3: ANALYZE → Parse outputs, classify findings by severity
45
- Phase 4: REPORT → Emit VERIFICATION_RESULT
46
- ```
47
-
48
- ---
49
-
50
- ## Workflow
51
-
52
- ```
53
- Code Verifier Progress:
54
- - [ ] Phase 1: Detect stack and tooling
55
- - [ ] Phase 2: Run verification checks
56
- - [ ] Phase 3: Analyze and classify findings
57
- - [ ] Phase 4: Report results
58
- ```
59
-
60
- ---
61
-
62
- ### Phase 1: DETECT
63
-
64
- Auto-detect the project stack and available verification tools.
65
-
66
- **1.1 Package manager and runner:**
67
-
68
- ```bash
69
- cd <codebase_path>
70
-
71
- if [ -f bun.lock ] || [ -f bun.lockb ]; then PM=bun; RUNNER="bun run"
72
- elif [ -f pnpm-lock.yaml ]; then PM=pnpm; RUNNER="pnpm run"
73
- elif [ -f yarn.lock ]; then PM=yarn; RUNNER="yarn"
74
- elif [ -f package-lock.json ]; then PM=npm; RUNNER="npm run"
75
- elif [ -f pyproject.toml ] || [ -f requirements.txt ]; then PM=python; RUNNER=""
76
- elif [ -f go.mod ]; then PM=go; RUNNER=""
77
- else PM=unknown; RUNNER=""
78
- fi
79
- ```
80
-
81
- **1.2 Detect available check commands:**
82
-
83
- | Check | How to detect | Command |
84
- |---|---|---|
85
- | Lint | `package.json` has `"lint"` script | `$RUNNER lint` |
86
- | Lint (auto) | `eslint.config.*` or `.eslintrc*` present | `npx eslint . --max-warnings 0` |
87
- | Biome | `biome.json` present | `npx biome check .` |
88
- | Type-check | `package.json` has `"type-check"` or `"typecheck"` script | `$RUNNER type-check` |
89
- | Type-check (auto) | `tsconfig.json` present | `npx tsc --noEmit` |
90
- | Tests | `package.json` has `"test"` script | `$RUNNER test --run` (vitest) or `$RUNNER test` |
91
- | pytest | `pytest` in `pyproject.toml` or `requirements.txt` | `pytest --tb=short -q` |
92
- | Go tests | `go.mod` present | `go test ./...` |
93
- | Circular imports | `madge` in devDependencies | `npx madge --circular src/` |
94
-
95
- **1.3 Determine scope:**
96
-
97
- ```
98
- IF scope = "changed" (default when dispatched by orchestrator):
99
- FILES = git diff --name-only <base_branch>...HEAD
100
- Run tests only for files related to changed code
101
- Run lint only on changed files: npx eslint <changed_files>
102
- Run type-check on full project (tsc doesn't support file-level scope)
103
-
104
- IF scope = "full":
105
- Run all checks on full project
106
- ```
107
-
108
- **Output of Phase 1:**
109
- ```
110
- TOOLING:
111
- pm: bun | pnpm | yarn | npm | python | go | unknown
112
- runner: "bun run" | ...
113
- checks_available: [lint, type-check, tests, circular-imports]
114
- checks_skipped: [<reason>]
115
- scope: changed | full
116
- changed_files: [<paths>]
117
- ```
118
-
119
- ---
120
-
121
- ### Phase 2: RUN
122
-
123
- Execute each available check in order. Capture full output.
124
-
125
- **Execution order:** lint → type-check → tests → import-check
126
-
127
- **Do NOT abort early** — run all checks even if one fails. The orchestrator needs the complete picture.
128
-
129
- **2.1 Lint:**
130
- ```bash
131
- # Changed files only (faster, more actionable)
132
- npx eslint <changed_files> --format=json --max-warnings 0
133
- # OR if lint script exists:
134
- $RUNNER lint
135
- ```
136
-
137
- Capture:
138
- - Exit code (0 = pass, non-zero = fail)
139
- - Number of errors and warnings
140
- - Per-file error list (file path, line, column, rule, message)
141
-
142
- **2.2 Type-check:**
143
- ```bash
144
- npx tsc --noEmit 2>&1
145
- # OR:
146
- $RUNNER type-check
147
- ```
148
-
149
- Capture:
150
- - Exit code
151
- - Number of errors
152
- - Per-error: file, line, column, message, TS error code
153
-
154
- **2.3 Tests:**
155
- ```bash
156
- $RUNNER test --run 2>&1 # vitest
157
- # OR: npx jest --ci 2>&1
158
- # OR: pytest --tb=short -q 2>&1
159
- # OR: go test ./... 2>&1
160
- ```
161
-
162
- Capture:
163
- - Exit code
164
- - Tests passed / failed / skipped counts
165
- - Per-failure: test name, file, error message, stack (first 5 lines)
166
-
167
- **2.4 Circular import check (if madge available):**
168
- ```bash
169
- npx madge --circular --extensions ts,tsx src/ 2>&1
170
- ```
171
-
172
- Capture:
173
- - Exit code
174
- - List of circular chains (if any)
175
-
176
- ---
177
-
178
- ### Phase 3: ANALYZE
179
-
180
- Parse raw outputs into structured findings. Classify by severity.
181
-
182
- **3.1 Severity classification:**
183
-
184
- | Finding | Severity |
185
- |---|---|
186
- | Type error | CRITICAL |
187
- | Test failure | CRITICAL |
188
- | ESLint error (not warning) | HIGH |
189
- | Circular import | HIGH |
190
- | ESLint warning | LOW |
191
- | Skipped test | INFO |
192
-
193
- **3.2 Gate decision:**
194
-
195
- ```
196
- GATE = PASS
197
- IF any CRITICAL findings → GATE = FAIL (blocks proceed)
198
- IF any HIGH findings → GATE = FAIL (blocks proceed)
199
- IF only LOW/INFO findings → GATE = PASS_WITH_WARNINGS
200
- ```
201
-
202
- **3.3 Actionable finding format:**
203
-
204
- Each finding must include enough context for `task-implementer` (fix mode) to resolve it without re-reading the full output:
205
-
206
- ```
207
- {
208
- severity: CRITICAL | HIGH | LOW | INFO,
209
- check: lint | type-check | test | circular-import,
210
- file: <path>,
211
- line: <N> | null,
212
- column: <N> | null,
213
- rule: <ESLint rule or TS error code> | null,
214
- message: <error text>,
215
- suggestion: <optional fix hint>
216
- }
217
- ```
218
-
219
- ---
220
-
221
- ### Phase 4: REPORT
222
-
223
- Emit the structured `VERIFICATION_RESULT` as the final message.
224
-
225
- ```
226
- VERIFICATION_RESULT:
227
- gate: PASS | PASS_WITH_WARNINGS | FAIL
228
- scope: changed | full
229
-
230
- checks:
231
- lint:
232
- status: pass | fail | skipped
233
- errors: <N>
234
- warnings: <N>
235
- command_used: "<command>"
236
-
237
- type_check:
238
- status: pass | fail | skipped
239
- errors: <N>
240
- command_used: "<command>"
241
-
242
- tests:
243
- status: pass | fail | skipped
244
- passed: <N>
245
- failed: <N>
246
- skipped: <N>
247
- command_used: "<command>"
248
-
249
- circular_imports:
250
- status: pass | fail | skipped
251
- cycles: <N>
252
-
253
- findings:
254
- - severity: CRITICAL
255
- check: type-check
256
- file: src/services/UserService.ts
257
- line: 42
258
- rule: TS2345
259
- message: "Argument of type 'string' is not assignable to parameter of type 'number'"
260
- - severity: HIGH
261
- check: lint
262
- file: src/components/Form.tsx
263
- line: 18
264
- rule: "no-unused-vars"
265
- message: "'value' is defined but never used"
266
-
267
- summary: "<1-2 sentence human-readable summary>"
268
- ```
269
-
270
- **STATUS reporting:**
271
-
272
- ```
273
- STATUS: DONE — gate PASS or PASS_WITH_WARNINGS, report follows
274
- STATUS: DONE_WITH_CONCERNS — PASS_WITH_WARNINGS with notable warnings
275
- STATUS: BLOCKED — could not run checks (missing tooling, wrong directory)
276
- ```
277
-
278
- > If `gate: FAIL` → STATUS is still `DONE` (the gate result, not the skill's execution). The orchestrator reads `gate: FAIL` and decides to trigger fix.
279
-
280
- ---
281
-
282
- ## Integration with job-orchestrator
283
-
284
- The orchestrator dispatches `code-verifier` at two points:
285
-
286
- **After task-implementer wave (pre-review gate):**
287
- ```
288
- code-verifier:
289
- codebase_path: <worktree_path>
290
- scope: changed
291
- base_branch: <base_branch from JOB_STATE>
292
- → If gate: FAIL → dispatch fix tasks → re-run code-verifier
293
- → If gate: PASS → proceed to review
294
- ```
295
-
296
- **After fix iterations (post-fix gate):**
297
- ```
298
- code-verifier:
299
- codebase_path: <worktree_path>
300
- scope: changed
301
- → If gate still FAIL after 2 iterations → report as BLOCKED, skip to report
302
- → If gate: PASS → proceed to report
303
- ```
304
-
305
- **The orchestrator's internal "checks" step (2.8) is replaced by `code-verifier` dispatch.**
306
-
307
- ---
308
-
309
- ## Standalone Usage
310
-
311
- ```bash
312
- # Run on current directory, changed files only
313
- /code-verifier
314
-
315
- # Run on specific project
316
- /code-verifier --path /path/to/project
317
-
318
- # Full project scan (not just changed files)
319
- /code-verifier --scope full
320
- ```
321
-
322
- ---
323
-
324
- ## Automation Settings
325
-
326
- | Setting | Default | Options | Description |
327
- |---------|---------|---------|-------------|
328
- | `scope` | `changed` | `changed` / `full` | Limit checks to changed files or run full project |
329
- | `fail_on_warnings` | `false` | true/false | Treat ESLint warnings as gate failures |
330
- | `include_circular` | `true` | true/false | Run circular import detection if madge available |
331
- | `max_findings_reported` | `20` | 1-100 | Cap findings in report to avoid overflow |
332
-
333
- ---
334
-
335
- ## Error Handling
336
-
337
- | Error | Action |
338
- |---|---|
339
- | Check command not found | Mark check as `skipped`, continue others |
340
- | Wrong working directory | ABORT with `STATUS: BLOCKED` and directory hint |
341
- | Command times out (>120s) | Mark check as `skipped (timeout)`, continue |
342
- | Zero checks available | `STATUS: BLOCKED` — cannot verify without any tooling |
343
- | Circular import tool missing | Skip silently (not installed in all projects) |
344
-
345
- ---
346
-
347
- ## Rules of Engagement
348
-
349
- 1. **Run ALL checks** — never abort after first failure. The orchestrator needs the full picture.
350
- 2. **Do NOT modify files** — this is read-only verification.
351
- 3. **Scope to changed files** by default — full scans are slow and produce noise.
352
- 4. **Be specific** in findings — include file, line, rule, message. Vague "lint failed" is not actionable.
353
- 5. Return `VERIFICATION_RESULT` as the **final message** to the orchestrator.