@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,423 @@
1
+ ---
2
+ name: ct-dev-workflow
3
+ description: Development workflow orchestration for task-driven development with atomic commits, conventional commit messages, and systematic release processes. Enforces task traceability, branch discipline, smart test scope selection, and GitHub Actions integration. Use when committing code, creating releases, managing branches, or following contribution protocols. Triggers on commit operations, release preparation, or workflow compliance needs.
4
+ version: 3.0.0
5
+ tier: 2
6
+ core: false
7
+ category: specialist
8
+ protocol: contribution
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
+ # Development Workflow Context Injection
22
+
23
+ **Protocol**: @src/protocols/contribution.md
24
+ **Type**: Context Injection (cleo-subagent)
25
+ **Version**: 3.0.0
26
+
27
+ ---
28
+
29
+ ## Purpose
30
+
31
+ Context injection for development workflow tasks spawned via cleo-subagent. Provides domain expertise for atomic commits with task traceability, conventional commit messages, and systematic release processes.
32
+
33
+ ---
34
+
35
+ ## Core Principle: Task-Driven Development
36
+
37
+ > **CRITICAL**: NO code changes or commits without a tracked task.
38
+
39
+ Every commit MUST be traceable to a CLEO task. This ensures:
40
+ - Work is planned and tracked
41
+ - Changes are reviewable and reversible
42
+ - Progress is measurable
43
+ - Context is preserved for future agents
44
+
45
+ ---
46
+
47
+ ## Immutable Constraints (WORKFLOW)
48
+
49
+ | ID | Rule | Enforcement |
50
+ |----|------|-------------|
51
+ | WF-001 | Task required | NO commits without CLEO task reference |
52
+ | WF-002 | Branch discipline | NO commits to main/master |
53
+ | WF-003 | Atomic commits | ONE logical change per commit |
54
+ | WF-004 | Conventional format | `<type>(<scope>): <description>` |
55
+ | WF-005 | Tests before push | Relevant tests MUST pass |
56
+
57
+ ---
58
+
59
+ ## Task Tracking Integration
60
+
61
+ ### Before Any Work
62
+
63
+ ```bash
64
+ # 1. Verify you have a task
65
+ cleo current
66
+
67
+ # 2. If no task, find or create one
68
+ cleo find "relevant query"
69
+ cleo add "Task title" --description "What you're doing" --parent T001
70
+ cleo start T123
71
+ ```
72
+
73
+ ### Commit Message Format
74
+
75
+ **MUST** include task reference:
76
+
77
+ ```
78
+ <type>(<scope>): <description>
79
+
80
+ <body explaining why>
81
+
82
+ Task: T123
83
+ Co-Authored-By: Claude <noreply@anthropic.com>
84
+ ```
85
+
86
+ **Example:**
87
+ ```
88
+ fix(auth): prevent token expiry race condition
89
+
90
+ The refresh token was being invalidated before the new access
91
+ token was validated, causing intermittent auth failures.
92
+
93
+ Task: T1456
94
+ Co-Authored-By: Claude <noreply@anthropic.com>
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Branch & Subagent Awareness
100
+
101
+ ### Single Branch Reality
102
+
103
+ Subagents share the parent session's branch. This means:
104
+
105
+ - All work happens on the same branch
106
+ - No parallel feature branches from subagents
107
+ - Commits are sequential, not parallel
108
+ - Worktrees needed for true branch isolation
109
+
110
+ ### Branch Strategy
111
+
112
+ ```bash
113
+ # Check current branch
114
+ git branch --show-current
115
+
116
+ # Feature work (typical pattern)
117
+ main → feature/T123-description → PR → main
118
+
119
+ # Branch naming
120
+ feature/T123-auth-improvements # Task-prefixed
121
+ fix/T456-token-validation # Bug fix
122
+ ```
123
+
124
+ ---
125
+
126
+ ## Gate System (Simplified)
127
+
128
+ Not all gates apply to all changes. Follow the decision matrix.
129
+
130
+ ### G0: Pre-Flight Check
131
+
132
+ **Always required.**
133
+
134
+ ```bash
135
+ # 1. Verify task context
136
+ cleo current
137
+ # MUST have a current task
138
+
139
+ # 2. Check branch
140
+ git branch --show-current
141
+ # MUST NOT be main/master
142
+
143
+ # 3. Check for uncommitted work
144
+ git status --porcelain
145
+ # Review staged/unstaged changes
146
+ ```
147
+
148
+ ### G1: Classify Change
149
+
150
+ | Type | Description | Tests Needed | Version Bump |
151
+ |------|-------------|--------------|--------------|
152
+ | `feat` | New feature | Related tests | MINOR |
153
+ | `fix` | Bug fix | Regression test | PATCH |
154
+ | `docs` | Documentation | None | None |
155
+ | `refactor` | Code restructure | Affected tests | PATCH |
156
+ | `test` | Test additions | The new tests | None |
157
+ | `chore` | Maintenance | None | None |
158
+ | `perf` | Performance | Perf tests | PATCH |
159
+ | `security` | Security fix | Security tests | PATCH |
160
+
161
+ ### G2: Testing (Smart Scope)
162
+
163
+ **NOT always full test suite.** CI runs full tests on push.
164
+
165
+ | Change Type | Test Scope | Command |
166
+ |-------------|------------|---------|
167
+ | `feat` | Related module tests | `bats tests/unit/feature.bats` |
168
+ | `fix` | Regression + affected | `bats tests/unit/affected.bats` |
169
+ | `docs` | None (CI validates) | Skip |
170
+ | `refactor` | Affected modules | `bats tests/unit/module*.bats` |
171
+ | `test` | The new tests only | `bats tests/unit/new.bats` |
172
+ | `chore` | Syntax check only | `bash -n scripts/*.sh` |
173
+
174
+ **When to run full suite locally:**
175
+ - Before release (version bump)
176
+ - Major refactoring
177
+ - Cross-cutting changes
178
+ - User explicitly requests
179
+
180
+ ```bash
181
+ # Full suite (when needed)
182
+ ./tests/run-all-tests.sh
183
+
184
+ # Targeted tests (typical)
185
+ bats tests/unit/specific-feature.bats
186
+ bats tests/integration/workflow.bats
187
+
188
+ # Quick syntax check
189
+ bash -n scripts/*.sh lib/*.sh
190
+ ```
191
+
192
+ ### G3: Commit
193
+
194
+ ```bash
195
+ # 1. Get task info
196
+ task_id=$(cleo current --quiet)
197
+
198
+ # 2. Stage changes (be specific for atomic commits)
199
+ git add scripts/specific-file.sh lib/related.sh
200
+
201
+ # 3. Create commit with task reference
202
+ git commit -m "$(cat <<'EOF'
203
+ fix(auth): prevent token expiry race condition
204
+
205
+ The refresh token was being invalidated before validation.
206
+
207
+ Task: T1456
208
+ Co-Authored-By: Claude <noreply@anthropic.com>
209
+ EOF
210
+ )"
211
+ ```
212
+
213
+ ### G4: Push (Triggers CI)
214
+
215
+ ```bash
216
+ # Push branch (CI runs full tests)
217
+ git push origin HEAD
218
+
219
+ # CI will run:
220
+ # - Full test suite
221
+ # - ShellCheck linting
222
+ # - JSON validation
223
+ # - Documentation drift check
224
+ # - Installation test
225
+ ```
226
+
227
+ ### G5: Version Bump (Release Only)
228
+
229
+ **Only for releases**, not every commit.
230
+
231
+ ```bash
232
+ # 1. Preview
233
+ ./dev/bump-version.sh --dry-run patch
234
+
235
+ # 2. Execute
236
+ ./dev/bump-version.sh patch
237
+
238
+ # 3. Validate
239
+ ./dev/validate-version.sh
240
+
241
+ # 4. Reinstall locally
242
+ ./install.sh --force
243
+ cleo version
244
+ ```
245
+
246
+ ### G6: Tag & Release
247
+
248
+ **GitHub Actions handles release creation.**
249
+
250
+ ```bash
251
+ # 1. Create annotated tag
252
+ git tag -a v${VERSION} -m "${TYPE}: ${SUMMARY}"
253
+
254
+ # 2. Push tag (triggers release workflow)
255
+ git push origin v${VERSION}
256
+
257
+ # 3. Push branch
258
+ git push origin HEAD
259
+
260
+ # GitHub Actions automatically:
261
+ # - Builds release tarball
262
+ # - Creates GitHub Release
263
+ # - Generates release notes
264
+ # - Uploads artifacts
265
+ ```
266
+
267
+ ---
268
+
269
+ ## Quick Decision Matrix
270
+
271
+ ### What Tests to Run?
272
+
273
+ | Change | Local Tests | Rely on CI |
274
+ |--------|-------------|------------|
275
+ | Single file fix | Related unit test | Yes |
276
+ | New feature | Feature tests | Yes |
277
+ | Docs only | None | Yes |
278
+ | Schema change | Schema tests | Yes |
279
+ | Cross-cutting refactor | Full suite | Yes |
280
+ | Release prep | Full suite | Yes |
281
+
282
+ ### Do I Need a Version Bump?
283
+
284
+ | Change | Bump | Tag |
285
+ |--------|------|-----|
286
+ | `feat` | minor | Yes |
287
+ | `fix` | patch | Yes |
288
+ | `docs` | No | No |
289
+ | `refactor` | patch | Yes |
290
+ | `test` | No | No |
291
+ | `chore` | No | No |
292
+ | `perf` | patch | Yes |
293
+ | `security` | patch | Yes |
294
+
295
+ ---
296
+
297
+ ## Task System Integration
298
+
299
+ @skills/_shared/task-system-integration.md
300
+
301
+ ### CLEO Integration Commands
302
+
303
+ ```bash
304
+ # Task lifecycle
305
+ cleo current # Current task
306
+ cleo start T123 # Start task
307
+ cleo complete T123 # Mark done
308
+
309
+ # Find existing work
310
+ cleo find "query" # Search tasks
311
+ cleo list --status pending # Pending work
312
+
313
+ # Create new work
314
+ cleo add "Title" --parent T001 --description "..."
315
+
316
+ # Session management
317
+ cleo session status # Current session
318
+ cleo session end --note "Completed X, Y, Z"
319
+ ```
320
+
321
+ ---
322
+
323
+ ## Subagent Protocol
324
+
325
+ @skills/_shared/subagent-protocol-base.md
326
+
327
+ ### Output Requirements
328
+
329
+ 1. MUST write workflow summary to: `{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md`
330
+ 2. MUST append ONE line to: `{{MANIFEST_PATH}}`
331
+ 3. MUST return ONLY: "Workflow complete. See MANIFEST.jsonl for summary."
332
+ 4. MUST NOT return full commit/release details in response
333
+
334
+ ---
335
+
336
+ ## Complete Workflow Examples
337
+
338
+ ### Example 1: Bug Fix (Typical)
339
+
340
+ ```bash
341
+ # 1. Verify task
342
+ cleo current
343
+ # Output: T1456 - Fix token validation
344
+
345
+ # 2. Make changes
346
+ # ... edit files ...
347
+
348
+ # 3. Run relevant test
349
+ bats tests/unit/auth.bats
350
+
351
+ # 4. Stage specific files
352
+ git add lib/auth.sh scripts/login.sh
353
+
354
+ # 5. Commit with task
355
+ git commit -m "$(cat <<'EOF'
356
+ fix(auth): prevent token expiry race condition
357
+
358
+ Task: T1456
359
+ Co-Authored-By: Claude <noreply@anthropic.com>
360
+ EOF
361
+ )"
362
+
363
+ # 6. Push (CI handles full tests)
364
+ git push origin HEAD
365
+
366
+ # 7. Mark task complete
367
+ cleo complete T1456
368
+ ```
369
+
370
+ ### Example 2: Documentation Only
371
+
372
+ ```bash
373
+ # 1. Verify task
374
+ cleo current # T1550 - Update README
375
+
376
+ # 2. Make doc changes
377
+ # ... edit docs ...
378
+
379
+ # 3. No tests needed (CI validates)
380
+
381
+ # 4. Commit
382
+ git add docs/ README.md
383
+ git commit -m "$(cat <<'EOF'
384
+ docs: update installation instructions
385
+
386
+ Task: T1550
387
+ Co-Authored-By: Claude <noreply@anthropic.com>
388
+ EOF
389
+ )"
390
+
391
+ # 5. Push
392
+ git push origin HEAD
393
+
394
+ # 6. Complete
395
+ cleo complete T1550
396
+ ```
397
+
398
+ ---
399
+
400
+ ## Anti-Patterns
401
+
402
+ | Pattern | Problem | Solution |
403
+ |---------|---------|----------|
404
+ | No task reference | Untracked work | Create/find task first |
405
+ | Committing to main | Bypass review | Use feature branches |
406
+ | Running full tests always | Slow iteration | Use smart test scope |
407
+ | Skipping CI | Missing validations | Always push, let CI run |
408
+ | Manual release creation | Inconsistent releases | Use tag, GH Actions |
409
+ | Giant commits | Hard to review/revert | Atomic commits |
410
+ | Vague commit messages | Lost context | Conventional + task ref |
411
+
412
+ ---
413
+
414
+ ## Critical Rules Summary
415
+
416
+ 1. **Always have a task** before making changes
417
+ 2. **Always include task reference** in commit message
418
+ 3. **Never commit to main/master** directly
419
+ 4. **Run relevant tests** locally, not always full suite
420
+ 5. **Let CI validate** with full test suite on push
421
+ 6. **Use tags for releases** - GitHub Actions handles the rest
422
+ 7. **One logical change** per commit (atomic)
423
+ 8. **Conventional commit format** with task reference
@@ -0,0 +1,66 @@
1
+ ---
2
+ name: ct-docs-lookup
3
+ description: This skill should be used when the user asks "how do I configure [library]", "write code using [framework]", "what are the [library] methods", "show me [framework] examples", or mentions libraries like React, Vue, Next.js, Prisma, Supabase, Express, Tailwind, Drizzle, Svelte. Triggers for library setup, configuration, API references, framework code examples, or version-specific docs ("React 19", "Next.js 15").
4
+ version: 1.0.0
5
+ tier: 3
6
+ core: false
7
+ category: composition
8
+ protocol: null
9
+ dependencies: []
10
+ sharedResources: []
11
+ compatibility:
12
+ - claude-code
13
+ - cursor
14
+ - windsurf
15
+ - gemini-cli
16
+ license: MIT
17
+ ---
18
+
19
+ When the user asks about libraries, frameworks, or needs code examples, use Context7 to fetch current documentation instead of relying on training data.
20
+
21
+ ## When to Use This Skill
22
+
23
+ Activate this skill when the user:
24
+
25
+ - Asks setup or configuration questions ("How do I configure Next.js middleware?")
26
+ - Requests code involving libraries ("Write a Prisma query for...")
27
+ - Needs API references ("What are the Supabase auth methods?")
28
+ - Mentions specific frameworks (React, Vue, Svelte, Express, Tailwind, etc.)
29
+
30
+ ## How to Fetch Documentation
31
+
32
+ ### Step 1: Resolve the Library ID
33
+
34
+ Call `resolve-library-id` with:
35
+
36
+ - `libraryName`: The library name extracted from the user's question
37
+ - `query`: The user's full question (improves relevance ranking)
38
+
39
+ ### Step 2: Select the Best Match
40
+
41
+ From the resolution results, choose based on:
42
+
43
+ - Exact or closest name match to what the user asked for
44
+ - Higher benchmark scores indicate better documentation quality
45
+ - If the user mentioned a version (e.g., "React 19"), prefer version-specific IDs
46
+
47
+ ### Step 3: Fetch the Documentation
48
+
49
+ Call `query-docs` with:
50
+
51
+ - `libraryId`: The selected Context7 library ID (e.g., `/vercel/next.js`)
52
+ - `query`: The user's specific question
53
+
54
+ ### Step 4: Use the Documentation
55
+
56
+ Incorporate the fetched documentation into your response:
57
+
58
+ - Answer the user's question using current, accurate information
59
+ - Include relevant code examples from the docs
60
+ - Cite the library version when relevant
61
+
62
+ ## Guidelines
63
+
64
+ - **Be specific**: Pass the user's full question as the query for better results
65
+ - **Version awareness**: When users mention versions ("Next.js 15", "React 19"), use version-specific library IDs if available from the resolution step
66
+ - **Prefer official sources**: When multiple matches exist, prefer official/primary packages over community forks
@@ -0,0 +1,175 @@
1
+ ---
2
+ name: ct-docs-review
3
+ description: This skill should be used when the user asks to "review documentation", "check docs style", "review this markdown file", "check style guide compliance", "review PR documentation", or needs documentation reviewed against the CLEO writing style guide. Supports both local file review and GitHub PR review modes with inline comments.
4
+ version: 1.0.0
5
+ tier: 3
6
+ core: false
7
+ category: composition
8
+ protocol: null
9
+ dependencies: []
10
+ sharedResources: []
11
+ compatibility:
12
+ - claude-code
13
+ - cursor
14
+ - windsurf
15
+ - gemini-cli
16
+ license: MIT
17
+ ---
18
+
19
+ # Documentation Review Skill
20
+
21
+ @skills/_shared/cleo-style-guide.md
22
+
23
+ ## Review mode detection
24
+
25
+ **IMPORTANT: Before starting the review, determine which mode to use:**
26
+
27
+ 1. **PR review mode**: If the `mcp__github__create_pending_pull_request_review` tool is available, you are reviewing a GitHub PR
28
+ - Use the pending review workflow to post all issues as one cohesive review
29
+ - Follow the workflow steps in "PR review mode format" below
30
+
31
+ 2. **Local review mode**: If the MCP tool is NOT available, output issues in the conversation
32
+ - Format all issues in a numbered markdown list (as described in "Feedback format" below)
33
+
34
+ ## Review process
35
+
36
+ 1. **Detect review mode** - Check if `mcp__github__create_pending_pull_request_review` is available
37
+ 2. Read the changes through once to understand intent
38
+ 3. Check all issues that violate style guide or significantly impact readability
39
+ 4. Only flag issues worth mentioning - if it won't make a material difference to the reader, skip it
40
+ 5. **REQUIRED: Number ALL feedback sequentially** - Start from Issue 1 and increment for each issue found
41
+
42
+ ## Review checklist
43
+
44
+ Run through the diff looking for these issues:
45
+
46
+ **Tone and voice:**
47
+
48
+ - [ ] Formal/corporate language ("utilize" not "use", "offerings", etc.)
49
+ - [ ] "Users" instead of "people" or "companies"
50
+ - [ ] Excessive exclamation points or overly peppy tone
51
+ - [ ] Telling readers something is cool instead of showing them
52
+
53
+ **Structure and clarity:**
54
+
55
+ - [ ] Important information buried instead of leading
56
+ - [ ] Verbose text that adds little value
57
+ - [ ] Paragraphs without clear purpose
58
+ - [ ] Vague headings that don't convey the point
59
+ - [ ] Instructions explain "why" before telling "what to do"
60
+ - [ ] Tasks described as "easy" or "simple"
61
+
62
+ **Links and references:**
63
+
64
+ - [ ] Linking the word "here" instead of descriptive text
65
+ - [ ] Links in headings (unless entire heading is a link)
66
+
67
+ **Formatting:**
68
+
69
+ - [ ] Ampersands as "and" substitute (except proper nouns)
70
+ - [ ] Inconsistent list formatting
71
+
72
+ **Code and examples:**
73
+
74
+ - [ ] Code examples that don't work or would error
75
+ - [ ] Commands not in execution order
76
+ - [ ] Full-width screenshots instead of scoped UI elements
77
+ - [ ] Excessive or unnecessary images
78
+
79
+ **Sentence construction:**
80
+
81
+ - [ ] Overuse of pronouns when introducing new terms
82
+
83
+ ## Quick scan table
84
+
85
+ | Pattern | Issue |
86
+ | ----------------------------- | --------------------------------------------- |
87
+ | we can do X, our feature | Should be "CLEO" or "it" |
88
+ | click here, read more here | Need descriptive link text |
89
+ | easy, simple, just | Remove condescending qualifiers |
90
+ | users | Should be "people" or "companies" if possible |
91
+
92
+ ## Feedback format
93
+
94
+ **MANDATORY REQUIREMENT: Every single issue MUST be numbered sequentially starting from Issue 1.**
95
+
96
+ This numbered format is NON-NEGOTIABLE. It allows users to efficiently reference specific issues (e.g., "fix issues 1, 3, and 5") and track which feedback has been addressed.
97
+
98
+ ### Local review mode format
99
+
100
+ When outputting issues in the conversation (local mode), use this format:
101
+
102
+ ```markdown
103
+ ## Issues
104
+
105
+ **Issue 1: [Brief title]**
106
+ Line X: Succinct description of the issue
107
+ [code or example]
108
+ Suggested fix or succinct explanation
109
+
110
+ **Issue 2: [Brief title]**
111
+ Line Y: Description of the issue
112
+ Suggested fix or explanation
113
+
114
+ **Issue 3: [Brief title]**
115
+ ...
116
+ ```
117
+
118
+ **Examples:**
119
+
120
+ > **Issue 1: Formal tone**
121
+ > Line 15: This could be more conversational. Consider: "You can't..." instead of "You cannot..."
122
+
123
+ > **Issue 2: Vague heading**
124
+ > Line 8: The heading could be more specific. Try stating the point directly: "Run migrations before upgrading" vs "Upgrade process"
125
+
126
+ ### PR review mode format
127
+
128
+ When posting to GitHub (PR mode), use the **pending review workflow**:
129
+
130
+ **Workflow steps:**
131
+
132
+ 1. **Start a review**: Use `mcp__github__create_pending_pull_request_review` to begin a pending review
133
+ - This creates a draft review that won't be visible until submitted
134
+
135
+ 2. **Get diff information**: Use `mcp__github__get_pull_request_diff` to understand the code changes and line numbers
136
+ - This helps you determine the correct file paths and line numbers for comments
137
+
138
+ 3. **Identify ALL issues**: Read through all changes and identify every issue worth mentioning
139
+ - Collect all issues before posting any comments
140
+ - Number them sequentially (Issue 1, Issue 2, Issue 3, etc.)
141
+
142
+ 4. **Add review comments**: Use `mcp__github__add_pull_request_review_comment_to_pending_review` for each issue
143
+ - **CRITICAL**: Post ALL comments in a SINGLE response using multiple tool calls in parallel
144
+ - Each comment should reference a specific file path and line number from the diff
145
+ - Start each comment body with `**Issue N: [Brief title]**`
146
+ - Include the description and suggested fix
147
+
148
+ 5. **Submit the review**: Use `mcp__github__submit_pending_pull_request_review` to publish all comments at once
149
+ - Use event type `"COMMENT"` (NOT "REQUEST_CHANGES") to make it non-blocking
150
+ - **Do NOT include a body message** - Leave the body empty or omit it entirely
151
+ - All comments will appear together as one cohesive review
152
+
153
+ **Comment format example:**
154
+
155
+ ```
156
+ **Issue 1: Formal tone**
157
+
158
+ This could be more conversational. Consider: "You can't..." instead of "You cannot..."
159
+ ```
160
+
161
+ **IMPORTANT**:
162
+ - Each issue gets its own review comment attached to the pending review
163
+ - Number ALL comments sequentially (Issue 1, Issue 2, Issue 3, etc.)
164
+ - Always start the comment body with `**Issue N: [Brief title]**`
165
+ - **MUST add all comments in parallel in a single response** - Do NOT add them one after another in separate responses
166
+ - Do NOT output a summary message to the conversation - only post GitHub review comments
167
+ - When submitting the review, do NOT include a body parameter (or leave it empty) to avoid cluttering the PR with summary text
168
+ - The review will appear as a single review with multiple comments when submitted
169
+
170
+ ## Final check
171
+
172
+ 1. Remove any issues from your assessment that won't make a material difference to the reader if addressed. Only flag issues worth the author's time to fix.
173
+ 2. **Verify all issues are numbered sequentially** starting from Issue 1 with no gaps in numbering.
174
+ 3. Confirm the format exactly matches: `**Issue N: [Brief title]**` where N is the issue number.
175
+ 4. **In PR mode**: Verify each issue was posted as a separate GitHub comment (not output to conversation).