@cleocode/cleo 2026.2.8 → 2026.3.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 (62) hide show
  1. package/README.md +14 -13
  2. package/dist/cli/index.js +22676 -26012
  3. package/dist/cli/index.js.map +4 -4
  4. package/dist/mcp/index.js +1651 -802
  5. package/dist/mcp/index.js.map +4 -4
  6. package/drizzle/20260301053344_careless_changeling/migration.sql +27 -0
  7. package/drizzle/20260301053344_careless_changeling/snapshot.json +2598 -0
  8. package/package.json +3 -4
  9. package/packages/ct-skills/skills/ct-cleo/SKILL.md +49 -22
  10. package/templates/CLEO-INJECTION.md +32 -138
  11. package/templates/cleo-gitignore +66 -49
  12. package/templates/git-hooks/pre-commit +24 -6
  13. package/schemas/archive/agent-configs.schema.json +0 -120
  14. package/schemas/archive/agent-registry.schema.json +0 -132
  15. package/schemas/archive/archive.schema.json +0 -450
  16. package/schemas/archive/claudedocs-frontmatter.schema.json +0 -162
  17. package/schemas/archive/commands-index.schema.json +0 -158
  18. package/schemas/archive/contribution.schema.json +0 -722
  19. package/schemas/archive/critical-path.schema.json +0 -246
  20. package/schemas/archive/deps-cache.schema.json +0 -97
  21. package/schemas/archive/doctor-output.schema.json +0 -283
  22. package/schemas/archive/error.schema.json +0 -161
  23. package/schemas/archive/export-package.schema.json +0 -375
  24. package/schemas/archive/global-config.schema.json +0 -219
  25. package/schemas/archive/log.schema.json +0 -250
  26. package/schemas/archive/metrics.schema.json +0 -328
  27. package/schemas/archive/migrations.schema.json +0 -150
  28. package/schemas/archive/nexus-registry.schema.json +0 -90
  29. package/schemas/archive/output.schema.json +0 -164
  30. package/schemas/archive/rcsd-consensus-report.schema.json +0 -491
  31. package/schemas/archive/rcsd-hitl-resolution.schema.json +0 -216
  32. package/schemas/archive/rcsd-index.schema.json +0 -384
  33. package/schemas/archive/rcsd-manifest.schema.json +0 -264
  34. package/schemas/archive/rcsd-research-output.schema.json +0 -564
  35. package/schemas/archive/rcsd-spec-frontmatter.schema.json +0 -225
  36. package/schemas/archive/releases.schema.json +0 -267
  37. package/schemas/archive/skills-manifest.schema.json +0 -91
  38. package/schemas/archive/skillsmp.schema.json +0 -208
  39. package/schemas/archive/spec-index.schema.json +0 -196
  40. package/schemas/archive/todo.schema.json +0 -995
  41. package/schemas/claudedocs-frontmatter.schema.json +0 -162
  42. package/schemas/commands-index.schema.json +0 -158
  43. package/schemas/rcsd-consensus-report.schema.json +0 -494
  44. package/schemas/rcsd-hitl-resolution.schema.json +0 -219
  45. package/schemas/rcsd-index.schema.json +0 -387
  46. package/schemas/rcsd-manifest.schema.json +0 -267
  47. package/schemas/rcsd-research-output.schema.json +0 -567
  48. package/schemas/rcsd-spec-frontmatter.schema.json +0 -225
  49. package/schemas/todo.schema.json +0 -994
  50. package/skills/_shared/cleo-style-guide.md +0 -84
  51. package/skills/_shared/manifest-operations.md +0 -810
  52. package/skills/_shared/placeholders.json +0 -433
  53. package/skills/_shared/skill-chaining-patterns.md +0 -240
  54. package/skills/_shared/subagent-protocol-base.md +0 -221
  55. package/skills/_shared/task-system-integration.md +0 -232
  56. package/skills/_shared/testing-framework-config.md +0 -110
  57. package/skills/agentskills-integrate.md +0 -104
  58. package/skills/agentskills-specs.md +0 -255
  59. package/skills/agentskills-what-are-skills.md +0 -75
  60. package/skills/manifest.json +0 -510
  61. package/templates/AGENT-INJECTION.md +0 -166
  62. /package/schemas/{research-manifest.schema.json → archive/research-manifest.schema.json} +0 -0
@@ -1,166 +0,0 @@
1
- ## Task Management (cleo)
2
-
3
- Use `ct` (alias for `cleo`) for task operations. Global architecture: `~/.cleo/templates/CLEO-INJECTION.md`
4
-
5
- **Multi-Agent**: Auto-injected into CLAUDE.md, AGENTS.md, GEMINI.md. Update: `ct init --update-docs`
6
-
7
- ### CRITICAL: Error Handling
8
- **NEVER ignore exit codes. Failed commands = tasks NOT created/updated.**
9
-
10
- **After EVERY command:**
11
- 1. Exit code: `0` = success, `1-22` = error, `100+` = special (not error)
12
- 2. JSON: `"success": false` = operation failed
13
- 3. Execute `error.fix` - Copy-paste-ready fix command
14
- 4. Or use `error.alternatives` - Array of {action, command} options
15
-
16
- **Critical Errors:**
17
- | Exit | Code | Fix |
18
- |:----:|------|-----|
19
- | 4 | `E_NOT_FOUND` | Use `ct find` or `ct list` to verify |
20
- | 6 | `E_VALIDATION_*` | Check field lengths, escape `$` as `\$` |
21
- | 10 | `E_PARENT_NOT_FOUND` | Verify with `ct exists <parent-id>` |
22
- | 11 | `E_DEPTH_EXCEEDED` | Max depth 3 (epic→task→subtask) |
23
- | 12 | `E_SIBLING_LIMIT` | Max 7 siblings per parent |
24
- | 38 | `E_ACTIVE_TASK_REQUIRED` | Add `--auto-focus` to session start or use `cleo start <id>` |
25
- | 100 | `E_SESSION_DISCOVERY_MODE` | Add `--scope epic:<id>` + run `ct session list` first |
26
-
27
- **Shell escaping:**
28
- ```bash
29
- ct update T001 --notes "Price: \$395" # Correct
30
- ct update T001 --notes "Price: $395" # WRONG - $395 interpreted as variable
31
- ```
32
-
33
- ### Essential Commands
34
- ```bash
35
- ct find "query" # Fuzzy search (99% less context than list)
36
- ct find --id 142 # ID search (multiple matches)
37
- ct show T1234 # Full task details
38
- ct add "Task" # Create task
39
- ct done <id> # Complete task
40
- ct start <id> # Start working on task
41
- ct session list # Check sessions FIRST
42
- ct session status # Current session
43
- ct dash # Project overview
44
- ct context # Context window usage
45
- ```
46
-
47
- ### Session Protocol
48
-
49
- **CRITICAL: Multi-session requires BOTH flags:**
50
- ```bash
51
- ct session start --scope epic:T001 --auto-focus --name "Name"
52
- # ↑ REQUIRED ↑ REQUIRED (or --focus T005)
53
- ```
54
-
55
- **START (ALWAYS first):**
56
- ```bash
57
- ct session list # ← CHECK FIRST
58
- ct session status # Current session
59
- ct session resume <id> # Resume existing
60
- # OR (only if no suitable session):
61
- ct session start --scope epic:T001 --auto-focus --name "Work"
62
- ```
63
-
64
- **WORK:**
65
- ```bash
66
- ct current # Show active task
67
- ct next # Task suggestion
68
- ct add "Task" --depends T005 # Add related
69
- ct complete T005 # Complete task
70
- ct start T006 # Next task
71
- ```
72
-
73
- **END (ALWAYS when stopping):**
74
- ```bash
75
- ct complete <id> # Complete current
76
- ct archive # Clean up done tasks
77
- ct session end --note "Progress" # ← ALWAYS END
78
- ```
79
-
80
- ### Task Discovery (Context Efficiency)
81
- **MUST** use efficient commands:
82
- ```bash
83
- ct find "query" # ✅ Minimal fields (99% less context)
84
- ct find --id 1234 # ✅ ID search (returns multiple)
85
- ct show T1234 # ✅ Full details for specific task
86
- ct list --parent T001 # ✅ Direct children only
87
- ```
88
-
89
- **Why `find` > `list`:**
90
- - `list` includes full notes arrays (huge)
91
- - `find` returns minimal fields only
92
- - **MUST** use `find` for discovery, `show` for details
93
-
94
- ### Project Context (Auto-Detected)
95
-
96
- When available, project-specific configuration and LLM hints are loaded from:
97
-
98
- @.cleo/project-context.json
99
-
100
- This file is generated by `cleo init --detect` and contains:
101
- - Detected project type and testing framework
102
- - Framework-specific test patterns and directories
103
- - LLM hints for code generation (commonPatterns, avoidPatterns)
104
- - Type system information
105
-
106
- **Note**: If the file doesn't exist, run `cleo init --detect` to generate it.
107
-
108
- **Testing Framework Configuration**: See @skills/_shared/testing-framework-config.md for detailed configuration examples, supported frameworks, validation gates, and auto-detection instructions.
109
-
110
- ### cleo-subagent Architecture (v0.70.0+)
111
-
112
- CLEO uses **2-tier universal subagent architecture**:
113
-
114
- ```
115
- Tier 0: ORCHESTRATOR (ct-orchestrator)
116
- ├── Coordinates workflows
117
- ├── Pre-resolves ALL tokens
118
- └── Reads manifest summaries only
119
-
120
-
121
- Tier 1: CLEO-SUBAGENT (universal executor)
122
- ├── Receives fully-resolved prompts
123
- ├── Loads skill via protocol injection
124
- └── Outputs: file + manifest + summary
125
- ```
126
-
127
- **Subagent Output Requirements:**
128
- - **MUST** append ONE line to `MANIFEST.jsonl`
129
- - **MUST NOT** return content (summary only)
130
- - **MUST** complete via `ct complete`
131
- - **MUST** start a task before work
132
-
133
- **Protocol Types (9)**: Research, Consensus, Specification, Decomposition, Implementation, Contribution, Release, Validation, Testing
134
-
135
- **Lifecycle**: RCASD-IVTR+C Pipeline (Research → Consensus → Architecture Decision → Specification → Decomposition) → (Implementation → Validation → Testing → Release) + Contribution (cross-cutting)
136
-
137
- Full architecture: `~/.cleo/docs/CLEO-INJECTION.md`
138
- Full lifecycle spec: `docs/specs/PROJECT-LIFECYCLE-SPEC.md`
139
-
140
- ### Skill Ecosystem (Detailed Guidance)
141
-
142
- For comprehensive workflow guidance beyond this quick reference:
143
-
144
- **HITL Workflows & Coordination:**
145
- - `ct-orchestrator` - Multi-agent coordination
146
- - `ct-dev-workflow` - Development lifecycle
147
-
148
- **Planning & Architecture:**
149
- - `ct-epic-architect` - Epic decomposition
150
- - `ct-spec-writer` - Specification creation
151
-
152
- **Implementation:**
153
- - `ct-task-executor` - General task execution
154
- - `ct-library-implementer-bash` - Bash library development
155
- - `ct-test-writer-bats` - BATS test creation
156
-
157
- **Quality & Documentation:**
158
- - `ct-validator` - Validation and quality checks
159
- - `ct-documentor` - Documentation generation
160
-
161
- **Discovery:**
162
- ```bash
163
- ct commands -r critical # Essential commands
164
- skill list # Available skills
165
- skill show ct-orchestrator # Skill details
166
- ```