@cleocode/skills 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/dispatch-config.json +404 -0
  2. package/index.d.ts +178 -0
  3. package/index.js +405 -0
  4. package/package.json +14 -0
  5. package/profiles/core.json +7 -0
  6. package/profiles/full.json +10 -0
  7. package/profiles/minimal.json +7 -0
  8. package/profiles/recommended.json +7 -0
  9. package/provider-skills-map.json +97 -0
  10. package/skills/_shared/cleo-style-guide.md +84 -0
  11. package/skills/_shared/manifest-operations.md +810 -0
  12. package/skills/_shared/placeholders.json +433 -0
  13. package/skills/_shared/skill-chaining-patterns.md +237 -0
  14. package/skills/_shared/subagent-protocol-base.md +223 -0
  15. package/skills/_shared/task-system-integration.md +232 -0
  16. package/skills/_shared/testing-framework-config.md +110 -0
  17. package/skills/ct-cleo/SKILL.md +490 -0
  18. package/skills/ct-cleo/references/anti-patterns.md +19 -0
  19. package/skills/ct-cleo/references/loom-lifecycle.md +136 -0
  20. package/skills/ct-cleo/references/orchestrator-constraints.md +55 -0
  21. package/skills/ct-cleo/references/session-protocol.md +162 -0
  22. package/skills/ct-codebase-mapper/SKILL.md +82 -0
  23. package/skills/ct-contribution/SKILL.md +521 -0
  24. package/skills/ct-contribution/templates/contribution-init.json +21 -0
  25. package/skills/ct-dev-workflow/SKILL.md +423 -0
  26. package/skills/ct-docs-lookup/SKILL.md +66 -0
  27. package/skills/ct-docs-review/SKILL.md +175 -0
  28. package/skills/ct-docs-write/SKILL.md +108 -0
  29. package/skills/ct-documentor/SKILL.md +231 -0
  30. package/skills/ct-epic-architect/SKILL.md +305 -0
  31. package/skills/ct-epic-architect/references/bug-epic-example.md +172 -0
  32. package/skills/ct-epic-architect/references/commands.md +201 -0
  33. package/skills/ct-epic-architect/references/feature-epic-example.md +210 -0
  34. package/skills/ct-epic-architect/references/migration-epic-example.md +244 -0
  35. package/skills/ct-epic-architect/references/output-format.md +92 -0
  36. package/skills/ct-epic-architect/references/patterns.md +284 -0
  37. package/skills/ct-epic-architect/references/refactor-epic-example.md +412 -0
  38. package/skills/ct-epic-architect/references/research-epic-example.md +226 -0
  39. package/skills/ct-epic-architect/references/shell-escaping.md +86 -0
  40. package/skills/ct-epic-architect/references/skill-aware-execution.md +195 -0
  41. package/skills/ct-grade/SKILL.md +230 -0
  42. package/skills/ct-grade/agents/analysis-reporter.md +203 -0
  43. package/skills/ct-grade/agents/blind-comparator.md +157 -0
  44. package/skills/ct-grade/agents/scenario-runner.md +134 -0
  45. package/skills/ct-grade/eval-viewer/__pycache__/generate_grade_review.cpython-314.pyc +0 -0
  46. package/skills/ct-grade/eval-viewer/generate_grade_review.py +1138 -0
  47. package/skills/ct-grade/eval-viewer/generate_grade_viewer.py +544 -0
  48. package/skills/ct-grade/eval-viewer/generate_review.py +283 -0
  49. package/skills/ct-grade/eval-viewer/grade-review.html +1574 -0
  50. package/skills/ct-grade/eval-viewer/viewer.html +219 -0
  51. package/skills/ct-grade/evals/evals.json +94 -0
  52. package/skills/ct-grade/references/ab-test-methodology.md +150 -0
  53. package/skills/ct-grade/references/domains.md +137 -0
  54. package/skills/ct-grade/references/grade-spec.md +236 -0
  55. package/skills/ct-grade/references/scenario-playbook.md +234 -0
  56. package/skills/ct-grade/references/token-tracking.md +120 -0
  57. package/skills/ct-grade/scripts/__pycache__/audit_analyzer.cpython-314.pyc +0 -0
  58. package/skills/ct-grade/scripts/__pycache__/run_ab_test.cpython-314.pyc +0 -0
  59. package/skills/ct-grade/scripts/__pycache__/run_all.cpython-314.pyc +0 -0
  60. package/skills/ct-grade/scripts/__pycache__/token_tracker.cpython-314.pyc +0 -0
  61. package/skills/ct-grade/scripts/audit_analyzer.py +279 -0
  62. package/skills/ct-grade/scripts/generate_report.py +283 -0
  63. package/skills/ct-grade/scripts/run_ab_test.py +504 -0
  64. package/skills/ct-grade/scripts/run_all.py +287 -0
  65. package/skills/ct-grade/scripts/setup_run.py +183 -0
  66. package/skills/ct-grade/scripts/token_tracker.py +630 -0
  67. package/skills/ct-grade-v2-1/SKILL.md +237 -0
  68. package/skills/ct-grade-v2-1/agents/analysis-reporter.md +203 -0
  69. package/skills/ct-grade-v2-1/agents/blind-comparator.md +157 -0
  70. package/skills/ct-grade-v2-1/agents/scenario-runner.md +179 -0
  71. package/skills/ct-grade-v2-1/evals/evals.json +74 -0
  72. package/skills/ct-grade-v2-1/grade-viewer/__pycache__/build_op_stats.cpython-314.pyc +0 -0
  73. package/skills/ct-grade-v2-1/grade-viewer/__pycache__/generate_grade_review.cpython-314.pyc +0 -0
  74. package/skills/ct-grade-v2-1/grade-viewer/build_op_stats.py +174 -0
  75. package/skills/ct-grade-v2-1/grade-viewer/eval-analysis.json +41 -0
  76. package/skills/ct-grade-v2-1/grade-viewer/eval-report.md +34 -0
  77. package/skills/ct-grade-v2-1/grade-viewer/generate_grade_review.py +1023 -0
  78. package/skills/ct-grade-v2-1/grade-viewer/generate_grade_viewer.py +548 -0
  79. package/skills/ct-grade-v2-1/grade-viewer/grade-review-eval.html +613 -0
  80. package/skills/ct-grade-v2-1/grade-viewer/grade-review.html +1532 -0
  81. package/skills/ct-grade-v2-1/grade-viewer/viewer.html +620 -0
  82. package/skills/ct-grade-v2-1/manifest-entry.json +31 -0
  83. package/skills/ct-grade-v2-1/references/ab-testing.md +233 -0
  84. package/skills/ct-grade-v2-1/references/domains-ssot.md +156 -0
  85. package/skills/ct-grade-v2-1/references/grade-spec-v2.md +167 -0
  86. package/skills/ct-grade-v2-1/references/playbook-v2.md +393 -0
  87. package/skills/ct-grade-v2-1/references/token-tracking.md +202 -0
  88. package/skills/ct-grade-v2-1/scripts/generate_report.py +419 -0
  89. package/skills/ct-grade-v2-1/scripts/run_ab_test.py +493 -0
  90. package/skills/ct-grade-v2-1/scripts/run_scenario.py +396 -0
  91. package/skills/ct-grade-v2-1/scripts/setup_run.py +207 -0
  92. package/skills/ct-grade-v2-1/scripts/token_tracker.py +175 -0
  93. package/skills/ct-memory/SKILL.md +84 -0
  94. package/skills/ct-orchestrator/INSTALL.md +61 -0
  95. package/skills/ct-orchestrator/README.md +69 -0
  96. package/skills/ct-orchestrator/SKILL.md +380 -0
  97. package/skills/ct-orchestrator/manifest-entry.json +19 -0
  98. package/skills/ct-orchestrator/orchestrator-prompt.txt +17 -0
  99. package/skills/ct-orchestrator/references/SUBAGENT-PROTOCOL-BLOCK.md +66 -0
  100. package/skills/ct-orchestrator/references/autonomous-operation.md +167 -0
  101. package/skills/ct-orchestrator/references/lifecycle-gates.md +98 -0
  102. package/skills/ct-orchestrator/references/orchestrator-compliance.md +271 -0
  103. package/skills/ct-orchestrator/references/orchestrator-handoffs.md +85 -0
  104. package/skills/ct-orchestrator/references/orchestrator-patterns.md +164 -0
  105. package/skills/ct-orchestrator/references/orchestrator-recovery.md +113 -0
  106. package/skills/ct-orchestrator/references/orchestrator-spawning.md +271 -0
  107. package/skills/ct-orchestrator/references/orchestrator-tokens.md +180 -0
  108. package/skills/ct-research-agent/SKILL.md +226 -0
  109. package/skills/ct-skill-creator/.cleo/.context-state.json +13 -0
  110. package/skills/ct-skill-creator/.cleo/logs/cleo.2026-03-07.1.log +24 -0
  111. package/skills/ct-skill-creator/.cleo/tasks.db +0 -0
  112. package/skills/ct-skill-creator/SKILL.md +356 -0
  113. package/skills/ct-skill-creator/agents/analyzer.md +276 -0
  114. package/skills/ct-skill-creator/agents/comparator.md +204 -0
  115. package/skills/ct-skill-creator/agents/grader.md +225 -0
  116. package/skills/ct-skill-creator/assets/eval_review.html +146 -0
  117. package/skills/ct-skill-creator/eval-viewer/__pycache__/generate_review.cpython-314.pyc +0 -0
  118. package/skills/ct-skill-creator/eval-viewer/generate_review.py +471 -0
  119. package/skills/ct-skill-creator/eval-viewer/viewer.html +1325 -0
  120. package/skills/ct-skill-creator/manifest-entry.json +17 -0
  121. package/skills/ct-skill-creator/references/dynamic-context.md +228 -0
  122. package/skills/ct-skill-creator/references/frontmatter.md +83 -0
  123. package/skills/ct-skill-creator/references/invocation-control.md +165 -0
  124. package/skills/ct-skill-creator/references/output-patterns.md +86 -0
  125. package/skills/ct-skill-creator/references/provider-deployment.md +175 -0
  126. package/skills/ct-skill-creator/references/schemas.md +430 -0
  127. package/skills/ct-skill-creator/references/workflows.md +28 -0
  128. package/skills/ct-skill-creator/scripts/__init__.py +1 -0
  129. package/skills/ct-skill-creator/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
  130. package/skills/ct-skill-creator/scripts/__pycache__/aggregate_benchmark.cpython-314.pyc +0 -0
  131. package/skills/ct-skill-creator/scripts/__pycache__/generate_report.cpython-314.pyc +0 -0
  132. package/skills/ct-skill-creator/scripts/__pycache__/improve_description.cpython-314.pyc +0 -0
  133. package/skills/ct-skill-creator/scripts/__pycache__/init_skill.cpython-314.pyc +0 -0
  134. package/skills/ct-skill-creator/scripts/__pycache__/quick_validate.cpython-314.pyc +0 -0
  135. package/skills/ct-skill-creator/scripts/__pycache__/run_eval.cpython-314.pyc +0 -0
  136. package/skills/ct-skill-creator/scripts/__pycache__/run_loop.cpython-314.pyc +0 -0
  137. package/skills/ct-skill-creator/scripts/__pycache__/utils.cpython-314.pyc +0 -0
  138. package/skills/ct-skill-creator/scripts/aggregate_benchmark.py +401 -0
  139. package/skills/ct-skill-creator/scripts/generate_report.py +326 -0
  140. package/skills/ct-skill-creator/scripts/improve_description.py +247 -0
  141. package/skills/ct-skill-creator/scripts/init_skill.py +306 -0
  142. package/skills/ct-skill-creator/scripts/package_skill.py +110 -0
  143. package/skills/ct-skill-creator/scripts/quick_validate.py +97 -0
  144. package/skills/ct-skill-creator/scripts/run_eval.py +310 -0
  145. package/skills/ct-skill-creator/scripts/run_loop.py +328 -0
  146. package/skills/ct-skill-creator/scripts/utils.py +47 -0
  147. package/skills/ct-skill-validator/SKILL.md +178 -0
  148. package/skills/ct-skill-validator/agents/ecosystem-checker.md +151 -0
  149. package/skills/ct-skill-validator/assets/valid-skill-example.md +13 -0
  150. package/skills/ct-skill-validator/evals/eval_set.json +14 -0
  151. package/skills/ct-skill-validator/evals/evals.json +52 -0
  152. package/skills/ct-skill-validator/manifest-entry.json +20 -0
  153. package/skills/ct-skill-validator/references/cleo-ecosystem-rules.md +163 -0
  154. package/skills/ct-skill-validator/references/validation-rules.md +168 -0
  155. package/skills/ct-skill-validator/scripts/__init__.py +0 -0
  156. package/skills/ct-skill-validator/scripts/__pycache__/audit_body.cpython-314.pyc +0 -0
  157. package/skills/ct-skill-validator/scripts/__pycache__/check_ecosystem.cpython-314.pyc +0 -0
  158. package/skills/ct-skill-validator/scripts/__pycache__/generate_validation_report.cpython-314.pyc +0 -0
  159. package/skills/ct-skill-validator/scripts/__pycache__/validate.cpython-314.pyc +0 -0
  160. package/skills/ct-skill-validator/scripts/audit_body.py +242 -0
  161. package/skills/ct-skill-validator/scripts/check_ecosystem.py +169 -0
  162. package/skills/ct-skill-validator/scripts/check_manifest.py +172 -0
  163. package/skills/ct-skill-validator/scripts/generate_validation_report.py +442 -0
  164. package/skills/ct-skill-validator/scripts/validate.py +422 -0
  165. package/skills/ct-spec-writer/SKILL.md +189 -0
  166. package/skills/ct-stickynote/README.md +14 -0
  167. package/skills/ct-stickynote/SKILL.md +46 -0
  168. package/skills/ct-task-executor/SKILL.md +296 -0
  169. package/skills/ct-validator/SKILL.md +216 -0
  170. package/skills/manifest.json +469 -0
  171. package/skills.json +281 -0
@@ -0,0 +1,296 @@
1
+ ---
2
+ name: ct-task-executor
3
+ description: General implementation task execution for completing assigned CLEO tasks by following instructions and producing concrete deliverables. Handles coding, configuration, documentation work with quality verification against acceptance criteria and progress reporting. Use when executing implementation tasks, completing assigned work, or producing task deliverables. Triggers on implementation tasks, general execution needs, or task completion work.
4
+ version: 2.0.0
5
+ tier: 2
6
+ core: true
7
+ category: core
8
+ protocol: implementation
9
+ dependencies: []
10
+ sharedResources:
11
+ - subagent-protocol-base
12
+ - task-system-integration
13
+ compatibility:
14
+ - claude-code
15
+ - cursor
16
+ - windsurf
17
+ - gemini-cli
18
+ license: MIT
19
+ ---
20
+
21
+ # Task Executor Context Injection
22
+
23
+ **Protocol**: @src/protocols/implementation.md
24
+ **Type**: Context Injection (cleo-subagent)
25
+ **Version**: 2.0.0
26
+
27
+ ---
28
+
29
+ ## Purpose
30
+
31
+ Context injection for implementation tasks spawned via cleo-subagent. Provides domain expertise for completing assigned CLEO tasks by following their instructions and deliverables to produce concrete outputs.
32
+
33
+ ---
34
+
35
+ ## Capabilities
36
+
37
+ 1. **Implementation** - Execute coding, configuration, and documentation tasks
38
+ 2. **Deliverable Production** - Create files, code, and artifacts as specified
39
+ 3. **Quality Verification** - Validate work against acceptance criteria
40
+ 4. **Progress Reporting** - Document completion via subagent protocol
41
+
42
+ ---
43
+
44
+ ## Parameters (Orchestrator-Provided)
45
+
46
+ | Parameter | Description | Required |
47
+ |-----------|-------------|----------|
48
+ | `{{TASK_ID}}` | Current task identifier | Yes |
49
+ | `{{TASK_NAME}}` | Human-readable task name | Yes |
50
+ | `{{TASK_INSTRUCTIONS}}` | Specific execution instructions | Yes |
51
+ | `{{DELIVERABLES_LIST}}` | Expected outputs/artifacts | Yes |
52
+ | `{{ACCEPTANCE_CRITERIA}}` | Completion verification criteria | Yes |
53
+ | `{{TOPIC_SLUG}}` | URL-safe topic name for output | Yes |
54
+ | `{{DATE}}` | Current date (YYYY-MM-DD) | Yes |
55
+ | `{{EPIC_ID}}` | Parent epic identifier | No |
56
+ | `{{SESSION_ID}}` | Session identifier | No |
57
+ | `{{DEPENDS_LIST}}` | Dependencies completed | No |
58
+ | `{{MANIFEST_SUMMARIES}}` | Context from previous agents | No |
59
+ | `{{TOPICS_JSON}}` | JSON array of categorization tags | Yes |
60
+
61
+ ---
62
+
63
+ ## Task System Integration
64
+
65
+ @skills/_shared/task-system-integration.md
66
+
67
+ ### Execution Sequence
68
+
69
+ 1. Read task: `{{TASK_SHOW_CMD}} {{TASK_ID}}`
70
+ 2. Focus already set by orchestrator (set if working standalone)
71
+ 3. Execute instructions (see Methodology below)
72
+ 4. Verify deliverables against acceptance criteria
73
+ 5. Write output: `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`
74
+ 6. Append manifest: `{{MANIFEST_PATH}}`
75
+ 7. Complete task: `{{TASK_COMPLETE_CMD}} {{TASK_ID}}`
76
+ 8. Return summary message
77
+
78
+ ---
79
+
80
+ ## Methodology
81
+
82
+ ### Pre-Execution
83
+
84
+ 1. **Read task details** - Understand full context from task system
85
+ 2. **Review dependencies** - Check manifest summaries from previous agents
86
+ 3. **Identify deliverables** - Know exactly what to produce
87
+ 4. **Understand acceptance criteria** - Know how success is measured
88
+
89
+ ### Execution
90
+
91
+ 1. **Follow instructions** - Execute `{{TASK_INSTRUCTIONS}}` step by step
92
+ 2. **Produce deliverables** - Create each item in `{{DELIVERABLES_LIST}}`
93
+ 3. **Document as you go** - Track progress for output file
94
+ 4. **Handle blockers** - Report if unable to proceed
95
+
96
+ ### Post-Execution
97
+
98
+ 1. **Verify against criteria** - Check each acceptance criterion
99
+ 2. **Document completion** - Write detailed output file
100
+ 3. **Update manifest** - Append summary entry
101
+ 4. **Complete task** - Mark task done in task system
102
+
103
+ ---
104
+
105
+ ## Subagent Protocol
106
+
107
+ @skills/_shared/subagent-protocol-base.md
108
+
109
+ ### Output Requirements
110
+
111
+ 1. MUST write findings to: `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`
112
+ 2. MUST append ONE line to: `{{MANIFEST_PATH}}`
113
+ 3. MUST return ONLY: "Implementation complete. See MANIFEST.jsonl for summary."
114
+ 4. MUST NOT return implementation details in response
115
+
116
+ ---
117
+
118
+ ## Output File Format
119
+
120
+ Write to `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`:
121
+
122
+ ```markdown
123
+ # {{TASK_NAME}}
124
+
125
+ ## Summary
126
+
127
+ {{2-3 sentence overview of what was accomplished}}
128
+
129
+ ## Deliverables
130
+
131
+ ### {{Deliverable 1}}
132
+
133
+ {{Description of what was created/modified}}
134
+
135
+ **Files affected:**
136
+ - {{file path 1}}
137
+ - {{file path 2}}
138
+
139
+ ### {{Deliverable 2}}
140
+
141
+ {{Description of what was created/modified}}
142
+
143
+ ## Acceptance Criteria Verification
144
+
145
+ | Criterion | Status | Notes |
146
+ |-----------|--------|-------|
147
+ | {{Criterion 1}} | PASS/FAIL | {{Verification notes}} |
148
+ | {{Criterion 2}} | PASS/FAIL | {{Verification notes}} |
149
+
150
+ ## Implementation Notes
151
+
152
+ {{Technical details, decisions made, edge cases handled}}
153
+
154
+ ## Linked Tasks
155
+
156
+ - Epic: {{EPIC_ID}}
157
+ - Task: {{TASK_ID}}
158
+ - Dependencies: {{DEPENDS_LIST}}
159
+ ```
160
+
161
+ ---
162
+
163
+ ## Manifest Entry Format
164
+
165
+ Append ONE line (no pretty-printing) to `{{MANIFEST_PATH}}`:
166
+
167
+ ```json
168
+ {"id":"{{TOPIC_SLUG}}-{{DATE}}","file":"{{DATE}}_{{TOPIC_SLUG}}.md","title":"{{TASK_NAME}}","date":"{{DATE}}","status":"complete","agent_type":"implementation","topics":{{TOPICS_JSON}},"key_findings":["Completed: deliverable 1","Completed: deliverable 2","All acceptance criteria passed"],"actionable":false,"needs_followup":[],"linked_tasks":["{{EPIC_ID}}","{{TASK_ID}}"]}
169
+ ```
170
+
171
+ ### Field Guidelines
172
+
173
+ | Field | Guideline |
174
+ |-------|-----------|
175
+ | `key_findings` | 3-7 items: deliverables completed, key decisions made |
176
+ | `actionable` | `false` if task complete, `true` if followup needed |
177
+ | `needs_followup` | Task IDs for dependent work identified during execution |
178
+ | `topics` | 2-5 categorization tags matching task labels |
179
+
180
+ ---
181
+
182
+ ## Completion Checklist
183
+
184
+ - [ ] Task details read via `{{TASK_SHOW_CMD}}`
185
+ - [ ] Task started (if not pre-set by orchestrator)
186
+ - [ ] All instructions executed
187
+ - [ ] All deliverables produced
188
+ - [ ] Acceptance criteria verified
189
+ - [ ] Output file written to `{{OUTPUT_DIR}}/`
190
+ - [ ] Manifest entry appended (single line, valid JSON)
191
+ - [ ] Task completed via `{{TASK_COMPLETE_CMD}}`
192
+ - [ ] Session ended with summary note (if executor owns session)
193
+ - [ ] Response is ONLY the summary message
194
+
195
+ ---
196
+
197
+ ## Error Handling
198
+
199
+ ### Partial Completion
200
+
201
+ If all deliverables cannot be produced:
202
+
203
+ 1. Complete what is possible
204
+ 2. Document partial progress in output file
205
+ 3. Set manifest `"status": "partial"`
206
+ 4. Add blocking items to `needs_followup`
207
+ 5. Complete task (partial work is progress)
208
+ 6. Return: "Implementation partial. See MANIFEST.jsonl for details."
209
+
210
+ ### Blocked Execution
211
+
212
+ If work cannot proceed (missing dependencies, access issues, unclear requirements):
213
+
214
+ 1. Document blocking reason in output file
215
+ 2. Set manifest `"status": "blocked"`
216
+ 3. Add blocker details to `needs_followup`
217
+ 4. Do NOT complete task
218
+ 5. Return: "Implementation blocked. See MANIFEST.jsonl for blocker details."
219
+
220
+ ### Acceptance Criteria Failure
221
+
222
+ If deliverables don't pass acceptance criteria:
223
+
224
+ 1. Document what failed and why
225
+ 2. Set manifest `"status": "partial"` or `"blocked"`
226
+ 3. Add remediation suggestions to `needs_followup`
227
+ 4. Complete task only if failure is documented and understood
228
+ 5. Return appropriate status message
229
+
230
+ ---
231
+
232
+ ## Session Management
233
+
234
+ ### Session Lifecycle
235
+
236
+ Task executor sessions support long-running work with a **72-hour timeout**. Sessions persist across Claude conversations, allowing work to resume seamlessly.
237
+
238
+ **MUST** end sessions properly when completing work:
239
+
240
+ ```bash
241
+ # After completing task work
242
+ cleo session end --note "Task {{TASK_ID}} completed: {{summary}}"
243
+ ```
244
+
245
+ ### Session Cleanup
246
+
247
+ If session accumulation occurs (stale sessions from crashed agents or incomplete work):
248
+
249
+ ```bash
250
+ # List all sessions including stale ones
251
+ cleo session list --all
252
+
253
+ # Clean up stale sessions (72h+ inactive)
254
+ cleo session gc
255
+
256
+ # Force cleanup including active sessions (use cautiously)
257
+ cleo session gc --include-active
258
+ ```
259
+
260
+ ### Best Practices
261
+
262
+ | Practice | Rationale |
263
+ |----------|-----------|
264
+ | Always end sessions | Prevents accumulation, maintains clean state |
265
+ | Use descriptive end notes | Provides context for future sessions |
266
+ | Check session status on startup | Resume existing session if applicable |
267
+ | Report session issues | Blocked sessions need orchestrator attention |
268
+
269
+ ---
270
+
271
+ ## Quality Standards
272
+
273
+ ### Deliverable Quality
274
+
275
+ - **Complete** - All specified deliverables produced
276
+ - **Correct** - Meets acceptance criteria
277
+ - **Documented** - Changes are explained
278
+ - **Tested** - Verified where applicable
279
+
280
+ ### Execution Quality
281
+
282
+ - **Methodical** - Follow instructions in order
283
+ - **Thorough** - Don't skip steps
284
+ - **Transparent** - Document decisions
285
+ - **Communicative** - Report blockers immediately
286
+
287
+ ---
288
+
289
+ ## Anti-Patterns
290
+
291
+ | Pattern | Problem | Solution |
292
+ |---------|---------|----------|
293
+ | Skipping acceptance check | Incomplete work | Verify every criterion |
294
+ | Partial deliverables | Missing outputs | Complete all or report partial |
295
+ | Undocumented changes | Lost context | Write detailed output file |
296
+ | Silent failures | Orchestrator unaware | Report via manifest status |
@@ -0,0 +1,216 @@
1
+ ---
2
+ name: ct-validator
3
+ description: Compliance validation for verifying systems, documents, or code against requirements, schemas, or standards. Performs schema validation, code compliance checks, document validation, and protocol compliance verification with detailed pass/fail reporting. Use when validating compliance, checking schemas, verifying code standards, or auditing protocol implementations. Triggers on validation tasks, compliance checks, or quality verification needs.
4
+ version: 2.0.0
5
+ tier: 2
6
+ core: false
7
+ category: recommended
8
+ protocol: validation
9
+ dependencies: []
10
+ sharedResources:
11
+ - subagent-protocol-base
12
+ - task-system-integration
13
+ compatibility:
14
+ - claude-code
15
+ - cursor
16
+ - windsurf
17
+ - gemini-cli
18
+ license: MIT
19
+ ---
20
+
21
+ # Validator Context Injection
22
+
23
+ **Protocol**: @src/protocols/implementation.md
24
+ **Type**: Context Injection (cleo-subagent)
25
+ **Version**: 2.0.0
26
+
27
+ ---
28
+
29
+ ## Purpose
30
+
31
+ Context injection for compliance validation tasks spawned via cleo-subagent. Provides domain expertise for verifying that systems, documents, or code comply with specified requirements, schemas, or standards.
32
+
33
+ ---
34
+
35
+ ## Capabilities
36
+
37
+ 1. **Schema Validation** - Verify data structures against JSON Schema
38
+ 2. **Code Compliance** - Check code against style guides and standards
39
+ 3. **Document Validation** - Verify documents meet structural requirements
40
+ 4. **Protocol Compliance** - Check implementations against specifications
41
+
42
+ ---
43
+
44
+ ## Validation Methodology
45
+
46
+ ### Standard Workflow
47
+
48
+ 1. **Define scope** - What is being validated
49
+ 2. **Identify criteria** - What rules apply
50
+ 3. **Execute checks** - Run validation against criteria
51
+ 4. **Document findings** - Record pass/fail with details
52
+ 5. **Report status** - Summarize compliance level
53
+
54
+ ---
55
+
56
+ ## Output Format
57
+
58
+ ### Validation Report Structure
59
+
60
+ ```markdown
61
+ # Validation Report: {{VALIDATION_TARGET}}
62
+
63
+ ## Summary
64
+
65
+ - **Status**: PASS | PARTIAL | FAIL
66
+ - **Compliance**: {X}%
67
+ - **Critical Issues**: {N}
68
+
69
+ ## Checklist Results
70
+
71
+ | Check | Status | Details |
72
+ |-------|--------|---------|
73
+ | {CHECK_1} | PASS/FAIL | {Details} |
74
+ | {CHECK_2} | PASS/FAIL | {Details} |
75
+
76
+ ## Issues Found
77
+
78
+ ### Critical
79
+ {List or "None"}
80
+
81
+ ### Warnings
82
+ {List or "None"}
83
+
84
+ ### Suggestions
85
+ {List or "None"}
86
+
87
+ ## Remediation
88
+
89
+ {Required fixes if FAIL/PARTIAL, or "No remediation required" if PASS}
90
+ ```
91
+
92
+ ---
93
+
94
+ ## Status Definitions
95
+
96
+ | Status | Meaning | Criteria |
97
+ |--------|---------|----------|
98
+ | **PASS** | Fully compliant | All checks pass, 0 critical issues |
99
+ | **PARTIAL** | Mostly compliant | >70% pass, no critical issues |
100
+ | **FAIL** | Non-compliant | <70% pass OR any critical issues |
101
+
102
+ ---
103
+
104
+ ## Task System Integration
105
+
106
+ @skills/_shared/task-system-integration.md
107
+
108
+ ### Execution Sequence
109
+
110
+ 1. Read task: `{{TASK_SHOW_CMD}} {{TASK_ID}}`
111
+ 2. Start task: `{{TASK_START_CMD}} {{TASK_ID}}` (if not already started by orchestrator)
112
+ 3. Execute validation checks
113
+ 4. Write validation report to `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`
114
+ 5. Append manifest entry to `{{MANIFEST_PATH}}`
115
+ 6. Complete task: `{{TASK_COMPLETE_CMD}} {{TASK_ID}}`
116
+ 7. Return summary message
117
+
118
+ ---
119
+
120
+ ## Subagent Protocol
121
+
122
+ @skills/_shared/subagent-protocol-base.md
123
+
124
+ ### Output Requirements
125
+
126
+ 1. MUST write validation report to: `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`
127
+ 2. MUST append ONE line to: `{{MANIFEST_PATH}}`
128
+ 3. MUST return ONLY: "Validation complete. See MANIFEST.jsonl for summary."
129
+ 4. MUST NOT return validation content in response
130
+
131
+ ### Manifest Entry Format
132
+
133
+ ```json
134
+ {"id":"{{TOPIC_SLUG}}-{{DATE}}","file":"{{DATE}}_{{TOPIC_SLUG}}.md","title":"{{VALIDATION_TARGET}} Validation","date":"{{DATE}}","status":"complete","agent_type":"validation","topics":["validation","compliance","{{TOPIC}}"],"key_findings":["Overall: {PASS|PARTIAL|FAIL} at {X}%","{N} critical issues found","{SUMMARY_OF_MAIN_FINDINGS}"],"actionable":{TRUE_IF_ISSUES},"needs_followup":["{REMEDIATION_TASK_IDS}"],"linked_tasks":["{{EPIC_ID}}","{{TASK_ID}}"]}
135
+ ```
136
+
137
+ ---
138
+
139
+ ## Validation Types
140
+
141
+ ### Schema Validation
142
+
143
+ ```bash
144
+ # JSON Schema validation example
145
+ {{VALIDATION_COMMANDS}}
146
+ ```
147
+
148
+ **Checks**:
149
+ - Required fields present
150
+ - Field types correct
151
+ - Enum values valid
152
+ - Constraints satisfied
153
+
154
+ ### Code Compliance
155
+
156
+ **Checks**:
157
+ - Style guide conformance
158
+ - Naming conventions
159
+ - Documentation requirements
160
+ - Security patterns
161
+
162
+ ### Document Validation
163
+
164
+ **Checks**:
165
+ - Required sections present
166
+ - Frontmatter complete
167
+ - Links valid
168
+ - Format consistent
169
+
170
+ ### Protocol Compliance
171
+
172
+ **Checks**:
173
+ - RFC 2119 keywords used correctly
174
+ - Required behaviors implemented
175
+ - Constraints enforced
176
+ - Error handling present
177
+
178
+ ---
179
+
180
+ ## Completion Checklist
181
+
182
+ - [ ] Task started via `{{TASK_START_CMD}}` (if not already started)
183
+ - [ ] All validation checks executed
184
+ - [ ] Results documented with PASS/FAIL status
185
+ - [ ] Compliance percentage calculated
186
+ - [ ] Critical issues flagged
187
+ - [ ] Remediation steps provided (if FAIL/PARTIAL)
188
+ - [ ] Validation report written to output directory
189
+ - [ ] Manifest entry appended
190
+ - [ ] Task completed via `{{TASK_COMPLETE_CMD}}`
191
+ - [ ] Return summary message only
192
+
193
+ ---
194
+
195
+ ## Context Variables
196
+
197
+ When invoked by orchestrator, expect these context tokens:
198
+
199
+ | Token | Description | Example |
200
+ |-------|-------------|---------|
201
+ | `{{VALIDATION_TARGET}}` | What is being validated | `CLEO Schema v2.6.0` |
202
+ | `{{TARGET_FILES_OR_SYSTEMS}}` | Files/paths to check | `schemas/*.json` |
203
+ | `{{VALIDATION_CRITERIA}}` | Checklist of requirements | RFC 2119 compliance items |
204
+ | `{{VALIDATION_COMMANDS}}` | Specific commands to run | `ajv validate --spec=draft7` |
205
+ | `{{TOPIC_SLUG}}` | URL-safe topic name | `schema-validation` |
206
+
207
+ ---
208
+
209
+ ## Anti-Patterns
210
+
211
+ | Pattern | Problem | Solution |
212
+ |---------|---------|----------|
213
+ | Skipping failing checks | Incomplete report | Run all checks, report all failures |
214
+ | Vague findings | Unclear remediation | Specific issue + file/line + fix |
215
+ | Missing severity | Can't prioritize | Always classify: critical/warning/suggestion |
216
+ | No remediation | Findings not actionable | Always provide fix for FAIL/PARTIAL |