@cleocode/cleo 2026.3.4 → 2026.3.7

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 (72) hide show
  1. package/dist/cli/index.js +2277 -609
  2. package/dist/cli/index.js.map +4 -4
  3. package/dist/mcp/index.js +1838 -443
  4. package/dist/mcp/index.js.map +4 -4
  5. package/package.json +1 -1
  6. package/packages/ct-skills/index.js +1 -1
  7. package/packages/ct-skills/package.json +0 -2
  8. package/packages/ct-skills/profiles/core.json +1 -1
  9. package/packages/ct-skills/profiles/full.json +4 -5
  10. package/packages/ct-skills/profiles/minimal.json +3 -3
  11. package/packages/ct-skills/profiles/recommended.json +2 -2
  12. package/packages/ct-skills/provider-skills-map.json +97 -0
  13. package/packages/ct-skills/skills/_shared/skill-chaining-patterns.md +23 -26
  14. package/packages/ct-skills/skills/_shared/testing-framework-config.md +9 -9
  15. package/packages/ct-skills/skills/ct-cleo/SKILL.md +21 -1
  16. package/packages/ct-skills/skills/ct-dev-workflow/SKILL.md +1 -1
  17. package/packages/ct-skills/skills/ct-documentor/SKILL.md +1 -1
  18. package/packages/ct-skills/skills/ct-epic-architect/SKILL.md +1 -1
  19. package/packages/ct-skills/skills/ct-orchestrator/SKILL.md +119 -43
  20. package/packages/ct-skills/skills/ct-orchestrator/orchestrator-prompt.txt +17 -0
  21. package/packages/ct-skills/skills/ct-orchestrator/references/orchestrator-patterns.md +1 -1
  22. package/packages/ct-skills/skills/ct-research-agent/SKILL.md +1 -1
  23. package/packages/ct-skills/skills/ct-spec-writer/SKILL.md +1 -1
  24. package/packages/ct-skills/skills/ct-task-executor/SKILL.md +1 -1
  25. package/packages/ct-skills/skills/ct-validator/SKILL.md +1 -1
  26. package/packages/ct-skills/skills/manifest.json +217 -947
  27. package/packages/ct-skills/skills.json +244 -3
  28. package/server.json +4 -4
  29. package/templates/CLEO-INJECTION.md +24 -0
  30. package/packages/ct-skills/protocols/agent-protocol.md +0 -260
  31. package/packages/ct-skills/protocols/artifact-publish.md +0 -587
  32. package/packages/ct-skills/protocols/consensus.md +0 -309
  33. package/packages/ct-skills/protocols/contribution.md +0 -375
  34. package/packages/ct-skills/protocols/decomposition.md +0 -352
  35. package/packages/ct-skills/protocols/implementation.md +0 -344
  36. package/packages/ct-skills/protocols/provenance.md +0 -600
  37. package/packages/ct-skills/protocols/release.md +0 -635
  38. package/packages/ct-skills/protocols/research.md +0 -248
  39. package/packages/ct-skills/protocols/specification.md +0 -287
  40. package/packages/ct-skills/protocols/testing.md +0 -346
  41. package/packages/ct-skills/protocols/validation.md +0 -229
  42. package/packages/ct-skills/skills/ct-gitbook/SKILL.md +0 -516
  43. package/packages/ct-skills/skills/ct-gitbook/assets/SUMMARY.md +0 -28
  44. package/packages/ct-skills/skills/ct-gitbook/assets/gitbook.yaml +0 -14
  45. package/packages/ct-skills/skills/ct-gitbook/references/api-sdk.md +0 -318
  46. package/packages/ct-skills/skills/ct-gitbook/references/auth-sso.md +0 -208
  47. package/packages/ct-skills/skills/ct-gitbook/references/change-requests.md +0 -169
  48. package/packages/ct-skills/skills/ct-gitbook/references/content-blocks.md +0 -230
  49. package/packages/ct-skills/skills/ct-gitbook/references/docs-sites.md +0 -202
  50. package/packages/ct-skills/skills/ct-gitbook/references/git-sync.md +0 -175
  51. package/packages/ct-skills/skills/ct-gitbook/references/llm-ready.md +0 -178
  52. package/packages/ct-skills/skills/ct-gitbook/references/migration.md +0 -263
  53. package/packages/ct-skills/skills/ct-library-implementer-bash/SKILL.md +0 -316
  54. package/packages/ct-skills/skills/ct-skill-lookup/SKILL.md +0 -179
  55. package/packages/ct-skills/skills/ct-test-writer-bats/SKILL.md +0 -347
  56. package/packages/ct-skills/skills/railway-platform/SKILL.md +0 -506
  57. package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-api.sh +0 -180
  58. package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-common.sh +0 -262
  59. package/packages/ct-skills/skills/railway-platform/references/01-getting-started.md +0 -149
  60. package/packages/ct-skills/skills/railway-platform/references/02-projects.md +0 -116
  61. package/packages/ct-skills/skills/railway-platform/references/03-services.md +0 -147
  62. package/packages/ct-skills/skills/railway-platform/references/04-deployments.md +0 -210
  63. package/packages/ct-skills/skills/railway-platform/references/05-databases.md +0 -142
  64. package/packages/ct-skills/skills/railway-platform/references/06-environments.md +0 -261
  65. package/packages/ct-skills/skills/railway-platform/references/07-domains.md +0 -139
  66. package/packages/ct-skills/skills/railway-platform/references/08-volumes.md +0 -533
  67. package/packages/ct-skills/skills/railway-platform/references/09-networking.md +0 -592
  68. package/packages/ct-skills/skills/railway-platform/references/10-cron.md +0 -488
  69. package/packages/ct-skills/skills/railway-platform/references/11-functions.md +0 -170
  70. package/packages/ct-skills/skills/railway-platform/references/12-monorepo.md +0 -294
  71. package/packages/ct-skills/skills/railway-platform/references/13-troubleshooting.md +0 -335
  72. package/packages/ct-skills/skills/railway-platform/references/14-railway-metal.md +0 -197
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cleocode/cleo",
3
- "version": "2026.3.4",
3
+ "version": "2026.3.7",
4
4
  "description": "CLEO V2 - TypeScript task management CLI for AI coding agents",
5
5
  "mcpName": "io.github.kryptobaseddev/cleo-mcp-server",
6
6
  "type": "module",
@@ -6,7 +6,7 @@ const fs = require('fs');
6
6
  const LIBRARY_ROOT = __dirname;
7
7
  const SKILLS_ROOT = path.join(LIBRARY_ROOT, 'skills');
8
8
  const PROFILES_ROOT = path.join(LIBRARY_ROOT, 'profiles');
9
- const PROTOCOLS_ROOT = path.join(LIBRARY_ROOT, 'protocols');
9
+ const PROTOCOLS_ROOT = path.join(LIBRARY_ROOT, '..', '..', 'src', 'protocols');
10
10
  const SHARED_ROOT = path.join(SKILLS_ROOT, '_shared');
11
11
 
12
12
  // --- Package metadata ---
@@ -6,9 +6,7 @@
6
6
  "types": "index.d.ts",
7
7
  "files": [
8
8
  "skills",
9
- "protocols",
10
9
  "profiles",
11
- "_shared",
12
10
  "*.json",
13
11
  "*.js",
14
12
  "*.d.ts"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "core",
3
- "description": "Minimum viable CLEO skill set",
3
+ "description": "Orchestration and pipeline awareness",
4
4
  "extends": "minimal",
5
5
  "skills": ["ct-orchestrator"],
6
6
  "includeProtocols": ["agent-protocol"]
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "full",
3
- "description": "All CT-SKILLS",
3
+ "description": "All skills including execution, documentation, quality, and meta",
4
4
  "extends": "recommended",
5
5
  "skills": [
6
- "ct-dev-workflow", "ct-test-writer-bats", "ct-library-implementer-bash",
7
- "ct-documentor", "ct-docs-lookup", "ct-docs-write", "ct-docs-review",
8
- "ct-skill-creator", "ct-skill-lookup", "ct-contribution", "ct-gitbook"
6
+ "ct-dev-workflow", "ct-documentor", "ct-docs-lookup", "ct-docs-write", "ct-docs-review",
7
+ "ct-contribution", "ct-grade", "ct-skill-creator"
9
8
  ],
10
- "includeProtocols": ["contribution", "release", "testing", "artifact-publish", "provenance"]
9
+ "includeProtocols": ["implementation", "contribution", "release", "testing", "artifact-publish", "provenance"]
11
10
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimal",
3
- "description": "Bare minimum just the default fallback skill",
4
- "skills": ["ct-task-executor"],
3
+ "description": "Solo task execution with core CLEO protocol — no orchestration needed",
4
+ "skills": ["ct-cleo", "ct-task-executor"],
5
5
  "includeShared": true,
6
- "includeProtocols": ["implementation"]
6
+ "includeProtocols": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "recommended",
3
- "description": "Core + RCSD pipeline skills",
3
+ "description": "Full RCASD pipeline skills for epic-driven development",
4
4
  "extends": "core",
5
5
  "skills": ["ct-epic-architect", "ct-research-agent", "ct-spec-writer", "ct-validator"],
6
- "includeProtocols": ["research", "specification", "decomposition", "consensus", "validation"]
6
+ "includeProtocols": ["research", "consensus", "specification", "decomposition", "validation", "adr"]
7
7
  }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "https://lafs.dev/schemas/v1/provider-skills-map.schema.json",
3
+ "version": "1.0.0",
4
+ "description": "Provider skill path discovery and precedence rules for CLEO skill deployment",
5
+ "providers": {
6
+ "claude-code": {
7
+ "globalSkills": "$HOME/.claude/skills",
8
+ "projectSkills": ".claude/skills",
9
+ "agentsGlobal": null,
10
+ "agentsProject": null,
11
+ "readsFromDotAgents": false,
12
+ "precedence": "vendor-only",
13
+ "symlinkSupported": true,
14
+ "notes": "Created Agent Skills standard but uses vendor path exclusively"
15
+ },
16
+ "codex-cli": {
17
+ "globalSkills": "$HOME/.agents/skills",
18
+ "projectSkills": ".agents/skills",
19
+ "agentsGlobal": "$HOME/.agents/skills",
20
+ "agentsProject": ".agents/skills",
21
+ "readsFromDotAgents": true,
22
+ "precedence": "agents-canonical",
23
+ "symlinkSupported": true,
24
+ "notes": "Uses .agents/skills as canonical location"
25
+ },
26
+ "gemini-cli": {
27
+ "globalSkills": "$HOME/.gemini/skills",
28
+ "projectSkills": ".gemini/skills",
29
+ "agentsGlobal": "$HOME/.agents/skills",
30
+ "agentsProject": ".agents/skills",
31
+ "readsFromDotAgents": true,
32
+ "precedence": "agents-first",
33
+ "symlinkSupported": true,
34
+ "notes": ".agents/skills takes precedence over .gemini/skills within same tier"
35
+ },
36
+ "cursor": {
37
+ "globalSkills": "$HOME/.cursor/skills",
38
+ "projectSkills": ".cursor/skills",
39
+ "agentsGlobal": null,
40
+ "agentsProject": ".agents/skills",
41
+ "readsFromDotAgents": "project-only",
42
+ "precedence": "vendor-global-agents-project",
43
+ "symlinkSupported": true,
44
+ "notes": "Global uses vendor path; project supports .agents/skills"
45
+ },
46
+ "github-copilot": {
47
+ "globalSkills": "$HOME/.copilot/skills",
48
+ "projectSkills": ".github/skills",
49
+ "agentsGlobal": "$HOME/.agents/skills",
50
+ "agentsProject": ".agents/skills",
51
+ "readsFromDotAgents": true,
52
+ "precedence": "agents-supported",
53
+ "symlinkSupported": true,
54
+ "notes": "Supports both vendor and .agents paths at all levels"
55
+ },
56
+ "windsurf": {
57
+ "globalSkills": "$HOME/.codeium/windsurf/skills",
58
+ "projectSkills": ".windsurf/skills",
59
+ "agentsGlobal": null,
60
+ "agentsProject": null,
61
+ "readsFromDotAgents": false,
62
+ "precedence": "vendor-only",
63
+ "symlinkSupported": false,
64
+ "notes": "Vendor-specific paths only, no .agents support"
65
+ },
66
+ "opencode": {
67
+ "globalSkills": "$HOME/.config/opencode/skills",
68
+ "projectSkills": ".opencode/skills",
69
+ "agentsGlobal": "$HOME/.agents/skills",
70
+ "agentsProject": ".agents/skills",
71
+ "readsFromDotAgents": true,
72
+ "precedence": "agents-supported",
73
+ "symlinkSupported": true,
74
+ "notes": "User confirms .agents/ support; verify via opencode docs"
75
+ },
76
+ "kimi-coding": {
77
+ "globalSkills": "$HOME/.kimi/skills",
78
+ "projectSkills": ".kimi/skills",
79
+ "agentsGlobal": null,
80
+ "agentsProject": null,
81
+ "readsFromDotAgents": false,
82
+ "precedence": "vendor-only",
83
+ "symlinkSupported": false,
84
+ "notes": "Model-based provider; skill path support uncertain"
85
+ },
86
+ "antigravity": {
87
+ "globalSkills": "$HOME/.antigravity/skills",
88
+ "projectSkills": ".agent/skills",
89
+ "agentsGlobal": null,
90
+ "agentsProject": ".agents/skills",
91
+ "readsFromDotAgents": "project-only",
92
+ "precedence": "vendor-global-agents-project",
93
+ "symlinkSupported": true,
94
+ "notes": "Project-level .agents/skills confirmed in Google codelabs"
95
+ }
96
+ }
97
+ }
@@ -16,7 +16,7 @@ This reference defines patterns for multi-level skill invocation and context pro
16
16
 
17
17
  ## Pattern 1: Single-Level Spawning
18
18
 
19
- The orchestrator delegates work to a subagent via Task tool with skill injection.
19
+ The orchestrator delegates work to a subagent via `orchestrate.spawn` with skill injection.
20
20
 
21
21
  ### Flow
22
22
 
@@ -25,7 +25,7 @@ The orchestrator delegates work to a subagent via Task tool with skill injection
25
25
  │ ORCHESTRATOR │
26
26
  │ (ct-orchestrator)
27
27
  └────────┬────────┘
28
- Task tool + skill template
28
+ orchestrate.spawn provider adapter
29
29
 
30
30
  ┌─────────────────┐
31
31
  │ SUBAGENT │
@@ -35,18 +35,15 @@ The orchestrator delegates work to a subagent via Task tool with skill injection
35
35
 
36
36
  ### Implementation
37
37
 
38
- ```bash
39
- # Orchestrator prepares context
40
- source lib/token-inject.sh
41
- export TI_TASK_ID="T1234"
42
- export TI_DATE="$(date +%Y-%m-%d)"
43
- export TI_TOPIC_SLUG="auth-research"
44
- ti_set_defaults
45
-
46
- # Load skill template with tokens
47
- template=$(ti_load_template "skills/ct-research-agent/SKILL.md")
48
-
49
- # Spawn via Task tool (includes subagent protocol block)
38
+ ```
39
+ # 1. Generate fully-resolved spawn prompt via MCP
40
+ cleo_mutate({ domain: "orchestrate", operation: "spawn", params: { taskId: "T1234" }})
41
+
42
+ # 2. Provider adapter executes the prompt using its native mechanism
43
+ # - Claude Code: Task tool with cleo-subagent type
44
+ # - OpenCode: config-driven agent spawn
45
+ # - Codex: SDK agent creation
46
+ # - Others: file-based prompt handoff
50
47
  ```
51
48
 
52
49
  ### Context Propagation
@@ -127,13 +124,13 @@ A subagent can itself become an orchestrator, spawning further subagents for com
127
124
  │ ORCHESTRATOR │ Level 0: Main workflow
128
125
  │ (ct-orchestrator) │
129
126
  └─────────┬───────────┘
130
- Task tool
127
+ orchestrate.spawn
131
128
 
132
129
  ┌─────────────────────┐
133
130
  │ SUB-ORCHESTRATOR │ Level 1: Epic decomposition
134
131
  │ (ct-epic-architect) │
135
132
  └─────────┬───────────┘
136
- Task tool
133
+ orchestrate.spawn
137
134
 
138
135
  ┌─────────────────────┐
139
136
  │ WORKER AGENT │ Level 2: Task execution
@@ -184,13 +181,13 @@ Detailed findings go to output files, not manifest or response:
184
181
 
185
182
  ### Rule 4: Token Injection (SHOULD)
186
183
 
187
- Use `lib/token-inject.sh` for dynamic token replacement:
184
+ All tokens are resolved before prompt injection via `orchestrate.spawn`:
188
185
 
189
- ```bash
186
+ ```
190
187
  # Required tokens for all subagents
191
- TI_TASK_ID # Current task identifier
192
- TI_DATE # Execution date (YYYY-MM-DD)
193
- TI_TOPIC_SLUG # URL-safe topic name
188
+ TASK_ID # Current task identifier
189
+ DATE # Execution date (YYYY-MM-DD)
190
+ TOPIC_SLUG # URL-safe topic name
194
191
  ```
195
192
 
196
193
  ---
@@ -211,14 +208,14 @@ TI_TOPIC_SLUG # URL-safe topic name
211
208
 
212
209
  Before spawning subagent:
213
210
  - [ ] Identify appropriate skill for task type
214
- - [ ] Prepare token context (TI_TASK_ID, TI_DATE, TI_TOPIC_SLUG)
215
- - [ ] Load skill template with `ti_load_template()`
216
- - [ ] Include subagent protocol block in prompt
211
+ - [ ] Prepare token context (TASK_ID, DATE, TOPIC_SLUG)
212
+ - [ ] Use `orchestrate.spawn` to generate fully-resolved prompt
213
+ - [ ] Verify token resolution is complete (`tokenResolution.fullyResolved`)
217
214
 
218
215
  Before chaining to another skill:
219
216
  - [ ] Determine if skill shares context (same agent) or needs delegation
220
217
  - [ ] For same-agent: Use `Skill(skill="name")` or `/skill-name`
221
- - [ ] For new agent: Use Task tool with full protocol injection
218
+ - [ ] For new agent: Use `orchestrate.spawn` with full protocol injection
222
219
 
223
220
  Before completion:
224
221
  - [ ] Verify manifest entry appended
@@ -231,7 +228,7 @@ Before completion:
231
228
 
232
229
  | Skill | Demonstrates |
233
230
  |-------|--------------|
234
- | `ct-orchestrator` | Single-level spawning via Task tool |
231
+ | `ct-orchestrator` | Single-level spawning via orchestrate.spawn |
235
232
  | `ct-documentor` | Skill chaining (lookup → write → review) |
236
233
  | `ct-epic-architect` | Potential multi-level orchestration |
237
234
 
@@ -71,15 +71,15 @@ CLEO supports 16 testing frameworks. Configure your project's testing setup in `
71
71
 
72
72
  ## Supported Frameworks
73
73
 
74
- | Framework | Extension | Ecosystem |
75
- |-----------|-----------|-----------|
76
- | bats | .bats | Bash |
77
- | jest, vitest, playwright, cypress, mocha, ava, uvu, tap | .test.js/.ts | Node.js |
78
- | node:test, deno, bun | .test.ts | Runtime built-ins |
79
- | pytest | _test.py | Python |
80
- | go | _test.go | Go |
81
- | cargo | .rs | Rust |
82
- | custom | varies | Any |
74
+ | Framework | Extension | Ecosystem | Notes |
75
+ |-----------|-----------|-----------|-------|
76
+ | vitest | .test.ts | Node.js | **Default for CLEO projects** |
77
+ | jest, playwright, cypress, mocha, ava, uvu, tap | .test.js/.ts | Node.js | |
78
+ | node:test, deno, bun | .test.ts | Runtime built-ins | |
79
+ | pytest | _test.py | Python | |
80
+ | go | _test.go | Go | |
81
+ | cargo | .rs | Rust | |
82
+ | custom | varies | Any | |
83
83
 
84
84
  ## Validation Gates
85
85
 
@@ -40,6 +40,8 @@ MCP is the **primary** entry point. Use `cleo_query` for reads and `cleo_mutate`
40
40
  | `system` | `context` | Context window usage |
41
41
  | `skills` | `list` | Available skills |
42
42
  | `skills` | `show` | Skill details (`params: { name }`) |
43
+ | `pipeline` | `stage.status` | Pipeline stage for epic (`params: { epicId }`) |
44
+ | `pipeline` | `stage.validate` | Validate gate before advancing (`params: { epicId, stage }`) |
43
45
 
44
46
  ### Key Write Operations (`cleo_mutate`)
45
47
 
@@ -54,6 +56,8 @@ MCP is the **primary** entry point. Use `cleo_query` for reads and `cleo_mutate`
54
56
  | `tasks` | `start` | Start working on a task (`params: { taskId }`) |
55
57
  | `research` | `link` | Link research to task (`params: { taskId, entryId }`) |
56
58
  | `orchestrate` | `spawn` | Generate spawn prompt for subagent (`params: { taskId }`) |
59
+ | `pipeline` | `stage.record` | Record pipeline stage progress (`params: { epicId, stage, status }`) |
60
+ | `pipeline` | `stage.gate.pass` | Advance pipeline to next stage (`params: { epicId, stage }`) |
57
61
 
58
62
  ## CLI Fallback
59
63
 
@@ -180,6 +184,23 @@ After EVERY command:
180
184
 
181
185
  **Lifecycle**: See CLEO-INJECTION.md standard tier for full RCASD-IVTR+C pipeline details, or `references/rcsd-lifecycle.md` for gate enforcement and subagent architecture.
182
186
 
187
+ ## Pipeline Awareness
188
+
189
+ Epics follow the RCASD-IVTR+C lifecycle managed through pipeline stages. Use `pipeline.stage.status` to check where an epic is in its lifecycle:
190
+
191
+ | Stage | Purpose |
192
+ |-------|---------|
193
+ | `research` | Information gathering and analysis |
194
+ | `consensus` | Validate claims and decisions |
195
+ | `architecture_decision` | ADR and specification |
196
+ | `specification` | Formal requirements |
197
+ | `decomposition` | Task breakdown |
198
+ | `implementation` | Build functionality |
199
+ | `validation` | Verify against criteria |
200
+ | `testing` | Test coverage |
201
+ | `release` | Version and publish |
202
+ | `contribution` | Multi-agent consensus tracking |
203
+
183
204
  ## Time Estimates Prohibited
184
205
 
185
206
  - **MUST NOT** estimate hours, days, weeks, or temporal duration
@@ -192,5 +213,4 @@ For detailed guidance on specific topics, see:
192
213
 
193
214
  - **Session Protocol**: `references/session-protocol.md`
194
215
  - **RCSD Lifecycle**: `references/rcsd-lifecycle.md`
195
- - **Orchestrator Constraints**: `references/orchestrator-constraints.md`
196
216
  - **Anti-Patterns**: `references/anti-patterns.md`
@@ -20,7 +20,7 @@ license: MIT
20
20
 
21
21
  # Development Workflow Context Injection
22
22
 
23
- **Protocol**: @protocols/contribution.md
23
+ **Protocol**: @src/protocols/contribution.md
24
24
  **Type**: Context Injection (cleo-subagent)
25
25
  **Version**: 3.0.0
26
26
 
@@ -23,7 +23,7 @@ license: MIT
23
23
 
24
24
  # Documentation Specialist Context Injection
25
25
 
26
- **Protocol**: @protocols/implementation.md
26
+ **Protocol**: @src/protocols/implementation.md
27
27
  **Type**: Context Injection (cleo-subagent)
28
28
  **Version**: 3.0.0
29
29
 
@@ -20,7 +20,7 @@ license: MIT
20
20
 
21
21
  # Epic Architect Context Injection
22
22
 
23
- **Protocol**: @protocols/decomposition.md
23
+ **Protocol**: @src/protocols/decomposition.md
24
24
  **Type**: Context Injection (cleo-subagent)
25
25
  **Version**: 3.0.0
26
26