@cleocode/cleo 2026.3.4 → 2026.3.6

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 (71) 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/templates/CLEO-INJECTION.md +24 -0
  29. package/packages/ct-skills/protocols/agent-protocol.md +0 -260
  30. package/packages/ct-skills/protocols/artifact-publish.md +0 -587
  31. package/packages/ct-skills/protocols/consensus.md +0 -309
  32. package/packages/ct-skills/protocols/contribution.md +0 -375
  33. package/packages/ct-skills/protocols/decomposition.md +0 -352
  34. package/packages/ct-skills/protocols/implementation.md +0 -344
  35. package/packages/ct-skills/protocols/provenance.md +0 -600
  36. package/packages/ct-skills/protocols/release.md +0 -635
  37. package/packages/ct-skills/protocols/research.md +0 -248
  38. package/packages/ct-skills/protocols/specification.md +0 -287
  39. package/packages/ct-skills/protocols/testing.md +0 -346
  40. package/packages/ct-skills/protocols/validation.md +0 -229
  41. package/packages/ct-skills/skills/ct-gitbook/SKILL.md +0 -516
  42. package/packages/ct-skills/skills/ct-gitbook/assets/SUMMARY.md +0 -28
  43. package/packages/ct-skills/skills/ct-gitbook/assets/gitbook.yaml +0 -14
  44. package/packages/ct-skills/skills/ct-gitbook/references/api-sdk.md +0 -318
  45. package/packages/ct-skills/skills/ct-gitbook/references/auth-sso.md +0 -208
  46. package/packages/ct-skills/skills/ct-gitbook/references/change-requests.md +0 -169
  47. package/packages/ct-skills/skills/ct-gitbook/references/content-blocks.md +0 -230
  48. package/packages/ct-skills/skills/ct-gitbook/references/docs-sites.md +0 -202
  49. package/packages/ct-skills/skills/ct-gitbook/references/git-sync.md +0 -175
  50. package/packages/ct-skills/skills/ct-gitbook/references/llm-ready.md +0 -178
  51. package/packages/ct-skills/skills/ct-gitbook/references/migration.md +0 -263
  52. package/packages/ct-skills/skills/ct-library-implementer-bash/SKILL.md +0 -316
  53. package/packages/ct-skills/skills/ct-skill-lookup/SKILL.md +0 -179
  54. package/packages/ct-skills/skills/ct-test-writer-bats/SKILL.md +0 -347
  55. package/packages/ct-skills/skills/railway-platform/SKILL.md +0 -506
  56. package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-api.sh +0 -180
  57. package/packages/ct-skills/skills/railway-platform/_shared/scripts/railway-common.sh +0 -262
  58. package/packages/ct-skills/skills/railway-platform/references/01-getting-started.md +0 -149
  59. package/packages/ct-skills/skills/railway-platform/references/02-projects.md +0 -116
  60. package/packages/ct-skills/skills/railway-platform/references/03-services.md +0 -147
  61. package/packages/ct-skills/skills/railway-platform/references/04-deployments.md +0 -210
  62. package/packages/ct-skills/skills/railway-platform/references/05-databases.md +0 -142
  63. package/packages/ct-skills/skills/railway-platform/references/06-environments.md +0 -261
  64. package/packages/ct-skills/skills/railway-platform/references/07-domains.md +0 -139
  65. package/packages/ct-skills/skills/railway-platform/references/08-volumes.md +0 -533
  66. package/packages/ct-skills/skills/railway-platform/references/09-networking.md +0 -592
  67. package/packages/ct-skills/skills/railway-platform/references/10-cron.md +0 -488
  68. package/packages/ct-skills/skills/railway-platform/references/11-functions.md +0 -170
  69. package/packages/ct-skills/skills/railway-platform/references/12-monorepo.md +0 -294
  70. package/packages/ct-skills/skills/railway-platform/references/13-troubleshooting.md +0 -335
  71. package/packages/ct-skills/skills/railway-platform/references/14-railway-metal.md +0 -197
@@ -1,5 +1,246 @@
1
1
  {
2
- "version": "2.0.0",
3
- "generated": "2026-02-19T18:35:42Z",
4
- "skills": [{"name":"ct-cleo","description":"CLEO task management protocol - core guidance for session, task, and workflow operations. Provides MCP-first workflow, CLI fallback, session protocol, task discovery patterns, RCSD lifecycle overview, and error handling. Load this skill for detailed CLEO protocol guidance.","version":"2.0.0","path":"skills/ct-cleo/SKILL.md","references":["skills/ct-cleo/references/session-protocol.md","skills/ct-cleo/references/rcsd-lifecycle.md","skills/ct-cleo/references/orchestrator-constraints.md","skills/ct-cleo/references/anti-patterns.md"],"core":true,"category":"core","tier":0,"protocol":null,"dependencies":[],"sharedResources":["task-system-integration"],"compatibility":["claude-code","gemini-cli","codex-cli"],"license":"MIT","metadata":{}},{"name":"ct-contribution","description":"Guided workflow for multi-agent consensus contributions. Use when user says \"/contribution\", \"contribution protocol\", \"submit contribution\", \"consensus workflow\", \"multi-agent decision\", \"create contribution\", \"contribution start\", \"contribution submit\", \"detect conflicts\", \"weighted consensus\", \"decision tracking\", \"conflict resolution\".","version":"1.0.0","path":"skills/ct-contribution/SKILL.md","references":[],"core":false,"category":"meta","tier":3,"protocol":"contribution","dependencies":[],"sharedResources":["subagent-protocol-base"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-dev-workflow","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.","version":"3.0.0","path":"skills/ct-dev-workflow/SKILL.md","references":[],"core":false,"category":"specialist","tier":2,"protocol":"contribution","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-docs-lookup","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\").","version":"1.0.0","path":"skills/ct-docs-lookup/SKILL.md","references":[],"core":false,"category":"composition","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-docs-review","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.","version":"1.0.0","path":"skills/ct-docs-review/SKILL.md","references":[],"core":false,"category":"composition","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-docs-write","description":"This skill should be used when creating, editing, or reviewing documentation files (markdown, MDX, README, guides). Use when the user asks to \"write docs\", \"create documentation\", \"edit the README\", \"improve doc clarity\", \"make docs more readable\", \"follow the style guide\", or \"write user-facing content\". Applies CLEO's conversational, clear, and user-focused writing style.","version":"1.0.0","path":"skills/ct-docs-write/SKILL.md","references":[],"core":false,"category":"composition","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-documentor","description":"Documentation creation, editing, and review with CLEO style guide compliance. Coordinates specialized skills for lookup, writing, and review. Use when creating or updating documentation files, consolidating scattered documentation, or validating documentation against style standards. Triggers on documentation tasks, doc update requests, or style guide compliance checks.","version":"3.0.0","path":"skills/ct-documentor/SKILL.md","references":[],"core":false,"category":"specialist","tier":3,"protocol":null,"dependencies":["ct-docs-lookup","ct-docs-write","ct-docs-review"],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-epic-architect","description":"Epic planning and task decomposition for breaking down large initiatives into atomic, executable tasks. Provides dependency analysis, wave-based parallel execution planning, hierarchy management, and research linking. Use when creating epics, decomposing initiatives into task trees, planning parallel workflows, or analyzing task dependencies. Triggers on epic creation, task decomposition requests, or planning phase work.","version":"3.0.0","path":"skills/ct-epic-architect/SKILL.md","references":["skills/ct-epic-architect/references/bug-epic-example.md","skills/ct-epic-architect/references/commands.md","skills/ct-epic-architect/references/feature-epic-example.md","skills/ct-epic-architect/references/migration-epic-example.md","skills/ct-epic-architect/references/output-format.md","skills/ct-epic-architect/references/patterns.md","skills/ct-epic-architect/references/refactor-epic-example.md","skills/ct-epic-architect/references/research-epic-example.md","skills/ct-epic-architect/references/shell-escaping.md","skills/ct-epic-architect/references/skill-aware-execution.md"],"core":false,"category":"recommended","tier":1,"protocol":"decomposition","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-gitbook","description":"Comprehensive guide for the modern GitBook platform including Docs Sites publishing, @gitbook/api TypeScript SDK, Git Sync with GitHub App, Change Requests, Site Sections, adaptive content, visitor authentication (Auth0/Okta/Azure AD), LLM-ready docs (llms.txt, MCP server), OpenAPI integration, content blocks, custom domains, SSO/SAML, SEO optimization, and migration from MkDocs/Docusaurus. Use when creating, managing, or automating GitBook documentation sites, configuring Git Sync, working with the GitBook API, setting up authentication, or migrating documentation to GitBook.","version":"1.0.0","path":"skills/ct-gitbook/SKILL.md","references":["skills/ct-gitbook/references/api-sdk.md","skills/ct-gitbook/references/auth-sso.md","skills/ct-gitbook/references/change-requests.md","skills/ct-gitbook/references/content-blocks.md","skills/ct-gitbook/references/docs-sites.md","skills/ct-gitbook/references/git-sync.md","skills/ct-gitbook/references/llm-ready.md","skills/ct-gitbook/references/migration.md"],"core":false,"category":"meta","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-library-implementer-bash","description":"Bash library development with focus on creating well-structured lib/*.sh files following shell best practices. Implements reusable functions, utility modules, and shared helpers with proper documentation, error handling, and dependency management. Use when creating new lib/ modules, implementing shared functions, or adding utility libraries. Triggers on library implementation tasks, bash module creation, or utility function needs.","version":"2.0.0","path":"skills/ct-library-implementer-bash/SKILL.md","references":[],"core":false,"category":"specialist","tier":2,"protocol":"implementation","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-orchestrator","description":"This skill should be used when the user asks to \"orchestrate\", \"orchestrator mode\", \"run as orchestrator\", \"delegate to subagents\", \"coordinate agents\", \"spawn subagents\", \"multi-agent workflow\", \"context-protected workflow\", \"agent farm\", \"HITL orchestration\", or needs to manage complex workflows by delegating work to subagents while protecting the main context window. Enforces ORC-001 through ORC-009 constraints.","version":"3.0.0","path":"skills/ct-orchestrator/SKILL.md","references":["skills/ct-orchestrator/references/autonomous-operation.md","skills/ct-orchestrator/references/lifecycle-gates.md","skills/ct-orchestrator/references/orchestrator-compliance.md","skills/ct-orchestrator/references/orchestrator-handoffs.md","skills/ct-orchestrator/references/orchestrator-patterns.md","skills/ct-orchestrator/references/orchestrator-recovery.md","skills/ct-orchestrator/references/orchestrator-spawning.md","skills/ct-orchestrator/references/orchestrator-tokens.md","skills/ct-orchestrator/references/SUBAGENT-PROTOCOL-BLOCK.md"],"core":true,"category":"core","tier":0,"protocol":"agent-protocol","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-research-agent","description":"Multi-source research and investigation combining web search, documentation lookup via Context7, and codebase analysis. Synthesizes findings into actionable recommendations with proper citation and task traceability. Use when conducting research, investigating best practices, gathering technical information, or analyzing existing implementations. Triggers on research tasks, investigation needs, or information discovery requests.","version":"2.0.0","path":"skills/ct-research-agent/SKILL.md","references":[],"core":false,"category":"recommended","tier":2,"protocol":"research","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-skill-creator","description":"Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","version":"1.0.0","path":"skills/ct-skill-creator/SKILL.md","references":["skills/ct-skill-creator/references/output-patterns.md","skills/ct-skill-creator/references/workflows.md"],"core":false,"category":"meta","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-skill-lookup","description":"This skill should be used when the user asks to \"find me a skill\", \"search for skills\", \"what skills are available\", \"get skill XYZ\", \"install a skill\", \"extend Claude's capabilities with skills\", or mentions Agent Skills, prompts.chat, SkillsMP, marketplace, external skills, or reusable AI agent components.","version":"1.1.0","path":"skills/ct-skill-lookup/SKILL.md","references":[],"core":false,"category":"meta","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-spec-writer","description":"Technical specification writing using RFC 2119 language for clear, unambiguous requirements. Creates protocol specifications, technical requirements, API specifications, and architecture documents with testable requirements and compliance criteria. Use when writing specifications, defining protocols, documenting requirements, or creating API contracts. Triggers on specification tasks, protocol definition needs, or requirement documentation.","version":"2.0.0","path":"skills/ct-spec-writer/SKILL.md","references":[],"core":false,"category":"recommended","tier":2,"protocol":"specification","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-task-executor","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.","version":"2.0.0","path":"skills/ct-task-executor/SKILL.md","references":[],"core":true,"category":"core","tier":2,"protocol":"implementation","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-test-writer-bats","description":"BATS (Bash Automated Testing System) test creation for comprehensive integration and unit testing. Creates idempotent tests with happy path, error handling, and edge case coverage. Includes fixture creation and JSON output validation. Use when writing tests, creating test suites, adding test coverage, or validating bash implementations. Triggers on test writing tasks, test coverage needs, or BATS test creation.","version":"2.0.0","path":"skills/ct-test-writer-bats/SKILL.md","references":[],"core":false,"category":"specialist","tier":2,"protocol":"testing","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"ct-validator","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.","version":"2.0.0","path":"skills/ct-validator/SKILL.md","references":[],"core":false,"category":"recommended","tier":2,"protocol":"validation","dependencies":[],"sharedResources":["subagent-protocol-base","task-system-integration"],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}},{"name":"railway-platform","description":"Deploy and manage applications on Railway platform. Use for creating projects, deploying services (Node.js, Python, Go, Docker, static sites), managing databases (Postgres, Redis, MySQL, MongoDB), configuring domains, environment variables, volumes, cron jobs, and networking. Integrates with GitHub for auto-deploys. Supports monorepos, private networking, and Railway Metal infrastructure.","version":"1.0.0","path":"skills/railway-platform/SKILL.md","references":["skills/railway-platform/references/01-getting-started.md","skills/railway-platform/references/02-projects.md","skills/railway-platform/references/03-services.md","skills/railway-platform/references/04-deployments.md","skills/railway-platform/references/05-databases.md","skills/railway-platform/references/06-environments.md","skills/railway-platform/references/07-domains.md","skills/railway-platform/references/08-volumes.md","skills/railway-platform/references/09-networking.md","skills/railway-platform/references/10-cron.md","skills/railway-platform/references/11-functions.md","skills/railway-platform/references/12-monorepo.md","skills/railway-platform/references/13-troubleshooting.md","skills/railway-platform/references/14-railway-metal.md"],"core":false,"category":"specialist","tier":3,"protocol":null,"dependencies":[],"sharedResources":[],"compatibility":["claude-code","cursor","windsurf","gemini-cli"],"license":"MIT","metadata":{}}]
2
+ "version": "2.1.0",
3
+ "generated": "2026-03-02T05:45:00Z",
4
+ "skills": [
5
+ {
6
+ "name": "ct-cleo",
7
+ "description": "CLEO task management protocol - core guidance for session, task, and workflow operations. Provides MCP-first workflow, CLI fallback, session protocol, task discovery patterns, RCSD lifecycle overview, and error handling. Load this skill for detailed CLEO protocol guidance.",
8
+ "version": "2.0.0",
9
+ "path": "skills/ct-cleo/SKILL.md",
10
+ "references": ["skills/ct-cleo/references/session-protocol.md", "skills/ct-cleo/references/rcsd-lifecycle.md", "skills/ct-cleo/references/anti-patterns.md"],
11
+ "core": true,
12
+ "category": "core",
13
+ "tier": 0,
14
+ "protocol": null,
15
+ "dependencies": [],
16
+ "sharedResources": ["task-system-integration"],
17
+ "compatibility": ["claude-code", "gemini-cli", "codex-cli"],
18
+ "license": "MIT",
19
+ "metadata": {}
20
+ },
21
+ {
22
+ "name": "ct-orchestrator",
23
+ "description": "Pipeline-aware orchestration for multi-agent workflows. Manages RCASD-IVTR+C pipeline progression for epics, delegates all work to subagents via provider-neutral spawning, enforces lifecycle gates before spawning, and reads only manifests. Use when orchestrating complex workflows, delegating to subagents, or managing epic pipeline progression.",
24
+ "version": "4.0.0",
25
+ "path": "skills/ct-orchestrator/SKILL.md",
26
+ "references": ["skills/ct-orchestrator/references/autonomous-operation.md", "skills/ct-orchestrator/references/lifecycle-gates.md", "skills/ct-orchestrator/references/orchestrator-compliance.md", "skills/ct-orchestrator/references/orchestrator-handoffs.md", "skills/ct-orchestrator/references/orchestrator-patterns.md", "skills/ct-orchestrator/references/orchestrator-recovery.md", "skills/ct-orchestrator/references/orchestrator-spawning.md", "skills/ct-orchestrator/references/orchestrator-tokens.md", "skills/ct-orchestrator/references/SUBAGENT-PROTOCOL-BLOCK.md"],
27
+ "core": true,
28
+ "category": "core",
29
+ "tier": 0,
30
+ "protocol": "agent-protocol",
31
+ "dependencies": [],
32
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
33
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
34
+ "license": "MIT",
35
+ "metadata": {}
36
+ },
37
+ {
38
+ "name": "ct-task-executor",
39
+ "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.",
40
+ "version": "2.0.0",
41
+ "path": "skills/ct-task-executor/SKILL.md",
42
+ "references": [],
43
+ "core": true,
44
+ "category": "core",
45
+ "tier": 0,
46
+ "protocol": "implementation",
47
+ "dependencies": [],
48
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
49
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
50
+ "license": "MIT",
51
+ "metadata": {}
52
+ },
53
+ {
54
+ "name": "ct-epic-architect",
55
+ "description": "Epic planning and task decomposition for breaking down large initiatives into atomic, executable tasks. Provides dependency analysis, wave-based parallel execution planning, hierarchy management, and research linking.",
56
+ "version": "3.0.0",
57
+ "path": "skills/ct-epic-architect/SKILL.md",
58
+ "references": ["skills/ct-epic-architect/references/bug-epic-example.md", "skills/ct-epic-architect/references/commands.md", "skills/ct-epic-architect/references/feature-epic-example.md", "skills/ct-epic-architect/references/migration-epic-example.md", "skills/ct-epic-architect/references/output-format.md", "skills/ct-epic-architect/references/patterns.md", "skills/ct-epic-architect/references/refactor-epic-example.md", "skills/ct-epic-architect/references/research-epic-example.md", "skills/ct-epic-architect/references/shell-escaping.md", "skills/ct-epic-architect/references/skill-aware-execution.md"],
59
+ "core": false,
60
+ "category": "recommended",
61
+ "tier": 1,
62
+ "protocol": "decomposition",
63
+ "dependencies": [],
64
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
65
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
66
+ "license": "MIT",
67
+ "metadata": {}
68
+ },
69
+ {
70
+ "name": "ct-research-agent",
71
+ "description": "Multi-source research and investigation combining web search, documentation lookup via Context7, and codebase analysis. Synthesizes findings into actionable recommendations with proper citation and task traceability.",
72
+ "version": "2.0.0",
73
+ "path": "skills/ct-research-agent/SKILL.md",
74
+ "references": [],
75
+ "core": false,
76
+ "category": "recommended",
77
+ "tier": 1,
78
+ "protocol": "research",
79
+ "dependencies": [],
80
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
81
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
82
+ "license": "MIT",
83
+ "metadata": {}
84
+ },
85
+ {
86
+ "name": "ct-spec-writer",
87
+ "description": "Technical specification writing using RFC 2119 language for clear, unambiguous requirements. Creates protocol specifications, technical requirements, API specifications, and architecture documents with testable requirements and compliance criteria.",
88
+ "version": "2.0.0",
89
+ "path": "skills/ct-spec-writer/SKILL.md",
90
+ "references": [],
91
+ "core": false,
92
+ "category": "recommended",
93
+ "tier": 1,
94
+ "protocol": "specification",
95
+ "dependencies": [],
96
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
97
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
98
+ "license": "MIT",
99
+ "metadata": {}
100
+ },
101
+ {
102
+ "name": "ct-validator",
103
+ "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.",
104
+ "version": "2.0.0",
105
+ "path": "skills/ct-validator/SKILL.md",
106
+ "references": [],
107
+ "core": false,
108
+ "category": "recommended",
109
+ "tier": 1,
110
+ "protocol": "validation",
111
+ "dependencies": [],
112
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
113
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
114
+ "license": "MIT",
115
+ "metadata": {}
116
+ },
117
+ {
118
+ "name": "ct-dev-workflow",
119
+ "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.",
120
+ "version": "3.0.0",
121
+ "path": "skills/ct-dev-workflow/SKILL.md",
122
+ "references": [],
123
+ "core": false,
124
+ "category": "specialist",
125
+ "tier": 2,
126
+ "protocol": "contribution",
127
+ "dependencies": [],
128
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
129
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
130
+ "license": "MIT",
131
+ "metadata": {}
132
+ },
133
+ {
134
+ "name": "ct-documentor",
135
+ "description": "Documentation creation, editing, and review with CLEO style guide compliance. Coordinates specialized skills for lookup, writing, and review.",
136
+ "version": "3.0.0",
137
+ "path": "skills/ct-documentor/SKILL.md",
138
+ "references": [],
139
+ "core": false,
140
+ "category": "specialist",
141
+ "tier": 2,
142
+ "protocol": null,
143
+ "dependencies": ["ct-docs-lookup", "ct-docs-write", "ct-docs-review"],
144
+ "sharedResources": ["subagent-protocol-base", "task-system-integration"],
145
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
146
+ "license": "MIT",
147
+ "metadata": {}
148
+ },
149
+ {
150
+ "name": "ct-docs-lookup",
151
+ "description": "Context7 library documentation lookup. Use when configuring libraries, writing framework code, or looking up API references and version-specific docs.",
152
+ "version": "1.0.0",
153
+ "path": "skills/ct-docs-lookup/SKILL.md",
154
+ "references": [],
155
+ "core": false,
156
+ "category": "composition",
157
+ "tier": 2,
158
+ "protocol": null,
159
+ "dependencies": [],
160
+ "sharedResources": [],
161
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
162
+ "license": "MIT",
163
+ "metadata": {}
164
+ },
165
+ {
166
+ "name": "ct-docs-write",
167
+ "description": "Documentation writing with CLEO's conversational, clear, user-focused style. Use when creating, editing, or improving documentation files.",
168
+ "version": "1.0.0",
169
+ "path": "skills/ct-docs-write/SKILL.md",
170
+ "references": [],
171
+ "core": false,
172
+ "category": "composition",
173
+ "tier": 2,
174
+ "protocol": null,
175
+ "dependencies": [],
176
+ "sharedResources": [],
177
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
178
+ "license": "MIT",
179
+ "metadata": {}
180
+ },
181
+ {
182
+ "name": "ct-docs-review",
183
+ "description": "Documentation review against CLEO writing style guide. Supports local file review and GitHub PR review modes.",
184
+ "version": "1.0.0",
185
+ "path": "skills/ct-docs-review/SKILL.md",
186
+ "references": [],
187
+ "core": false,
188
+ "category": "composition",
189
+ "tier": 2,
190
+ "protocol": null,
191
+ "dependencies": [],
192
+ "sharedResources": [],
193
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
194
+ "license": "MIT",
195
+ "metadata": {}
196
+ },
197
+ {
198
+ "name": "ct-contribution",
199
+ "description": "Guided workflow for multi-agent consensus contributions including conflict detection, weighted consensus, and decision tracking.",
200
+ "version": "1.0.0",
201
+ "path": "skills/ct-contribution/SKILL.md",
202
+ "references": [],
203
+ "core": false,
204
+ "category": "specialist",
205
+ "tier": 2,
206
+ "protocol": "contribution",
207
+ "dependencies": [],
208
+ "sharedResources": ["subagent-protocol-base"],
209
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
210
+ "license": "MIT",
211
+ "metadata": {}
212
+ },
213
+ {
214
+ "name": "ct-grade",
215
+ "description": "Session grading for agent behavioral analysis. Evaluates session quality against CLEO protocol using a 5-dimension rubric to produce scores and diagnostic flags.",
216
+ "version": "1.0.0",
217
+ "path": "skills/ct-grade/SKILL.md",
218
+ "references": [],
219
+ "core": false,
220
+ "category": "specialist",
221
+ "tier": 2,
222
+ "protocol": null,
223
+ "dependencies": [],
224
+ "sharedResources": [],
225
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
226
+ "license": "MIT",
227
+ "metadata": {}
228
+ },
229
+ {
230
+ "name": "ct-skill-creator",
231
+ "description": "Guide for creating effective skills. Use when creating a new skill or updating an existing skill that extends agent capabilities.",
232
+ "version": "1.0.0",
233
+ "path": "skills/ct-skill-creator/SKILL.md",
234
+ "references": ["skills/ct-skill-creator/references/output-patterns.md", "skills/ct-skill-creator/references/workflows.md"],
235
+ "core": false,
236
+ "category": "meta",
237
+ "tier": 3,
238
+ "protocol": null,
239
+ "dependencies": [],
240
+ "sharedResources": [],
241
+ "compatibility": ["claude-code", "cursor", "windsurf", "gemini-cli"],
242
+ "license": "MIT",
243
+ "metadata": {}
244
+ }
245
+ ]
5
246
  }
@@ -72,6 +72,30 @@ For advanced session ops (find, suspend, resume, debrief, decisions): see `.cleo
72
72
 
73
73
  **Budget note**: `session list` defaults to 10 results (~500-2000 tokens). Prefer `session find` for discovery (~200-400 tokens).
74
74
 
75
+ ## Memory Protocol
76
+
77
+ CLEO includes a native BRAIN memory system. Use the 3-layer retrieval pattern for token-efficient access:
78
+
79
+ | Step | Operation | Gateway | ~Tokens | Purpose |
80
+ |------|-----------|---------|---------|---------|
81
+ | 1 | `memory brain.search` | query | 50/hit | Search index (IDs + titles) |
82
+ | 2 | `memory brain.timeline` | query | 200-500 | Context around an anchor ID |
83
+ | 3 | `memory brain.fetch` | query | 500/entry | Full details for filtered IDs |
84
+ | Save | `memory brain.observe` | mutate | — | Save observation to brain.db |
85
+
86
+ **Workflow**: Search first (cheap) → filter interesting IDs → fetch only what you need.
87
+
88
+ **Example**:
89
+ ```
90
+ cleo_query memory brain.search {query: "authentication"}
91
+ cleo_query memory brain.fetch {ids: ["O-abc123"]}
92
+ cleo_mutate memory brain.observe {text: "Found auth uses JWT", title: "Auth discovery"}
93
+ ```
94
+
95
+ **Anti-patterns:**
96
+ - Fetching all entries without searching first (expensive)
97
+ - Skipping brain.search and going straight to brain.fetch
98
+
75
99
  ## Escalation
76
100
 
77
101
  For deeper guidance beyond this minimal protocol:
@@ -1,260 +0,0 @@
1
- # CLEO Agent Protocol
2
-
3
- **Version**: 1.0.0
4
- **Type**: Agent Reference
5
- **Audience**: LLM agents operating CLEO CLI
6
-
7
- ---
8
-
9
- ## Commands
10
-
11
- | Command | Purpose | Output Key |
12
- |---------|---------|------------|
13
- | ct find "query" | Search tasks | .tasks[].id |
14
- | ct find --id 142 | ID search | .tasks[].id |
15
- | ct show T### | Task details | .task |
16
- | ct add "Title" | Create task | .task.id |
17
- | ct add "Title" --parent T### | Create subtask | .task.id |
18
- | ct done T### | Complete task | .completedAt |
19
- | ct update T### --status active | Update status | .task |
20
- | ct start T### | Start working on task | .task |
21
- | ct current | Current task | .task |
22
- | ct next | Suggest task | .recommendation.taskId |
23
- | ct session list | List sessions | .sessions[] |
24
- | ct session start --scope epic:T### --auto-start --name "..." | Start session | .session.id |
25
- | ct session end --note "..." | End session | .session |
26
- | ct session resume ID | Resume session | .session |
27
- | ct session status | Current session | .session |
28
- | ct dash | Project overview | .summary |
29
- | ct context | Context usage | .context |
30
- | ct archive | Archive done tasks | .archived[] |
31
- | ct exists T### | Check existence | .exists |
32
- | ct list --parent T### | Children only | .tasks[] |
33
-
34
- ## Session Sequence
35
-
36
- 1. `ct session list` - Check existing sessions
37
- 2. `ct session start --scope epic:T### --auto-start --name "Name"` OR `ct session resume ID`
38
- 3. `ct start T###` - Start working on task
39
- 4. Execute work on current task
40
- 5. `ct complete T###` - Mark done
41
- 6. `ct start T###` - Next task (or `ct next`)
42
- 7. `ct archive` - Clean up done tasks
43
- 8. `ct session end --note "Progress summary"` - ALWAYS end
44
-
45
- **CRITICAL**: Session start requires BOTH `--scope` AND `--auto-start` (or `--start T###`)
46
-
47
- ## Exit Codes
48
-
49
- ### General (0-8)
50
-
51
- | Code | Constant | Recoverable | Recovery |
52
- |------|----------|:-----------:|----------|
53
- | 0 | SUCCESS | - | - |
54
- | 1 | GENERAL_ERROR | Yes | Check error.message |
55
- | 2 | INVALID_INPUT | Yes | Fix arguments |
56
- | 3 | FILE_ERROR | No | Check permissions |
57
- | 4 | NOT_FOUND | Yes | `ct find` to locate ID |
58
- | 5 | DEPENDENCY_ERROR | No | Install missing tool |
59
- | 6 | VALIDATION_ERROR | Yes | Check field lengths, escape \$ |
60
- | 7 | LOCK_TIMEOUT | Yes | Retry after delay |
61
- | 8 | CONFIG_ERROR | Yes | `ct doctor` to diagnose |
62
-
63
- ### Hierarchy (10-19)
64
-
65
- | Code | Constant | Recoverable | Recovery |
66
- |------|----------|:-----------:|----------|
67
- | 10 | PARENT_NOT_FOUND | Yes | `ct exists <parentId>` first |
68
- | 11 | DEPTH_EXCEEDED | Yes | Max 3 levels (epic->task->subtask) |
69
- | 12 | SIBLING_LIMIT | Yes | Check parent children count |
70
- | 13 | INVALID_PARENT_TYPE | Yes | Subtasks cannot have children |
71
- | 14 | CIRCULAR_REFERENCE | No | Check dependency graph |
72
- | 15 | ORPHAN_DETECTED | Yes | Verify parent exists |
73
- | 16 | HAS_CHILDREN | Yes | Delete children first or use --cascade |
74
- | 17 | TASK_COMPLETED | Yes | Use `ct archive` instead |
75
- | 18 | CASCADE_FAILED | No | Manual intervention required |
76
- | 19 | HAS_DEPENDENTS | Yes | Use --orphan flag |
77
-
78
- ### Concurrency (20-22)
79
-
80
- | Code | Constant | Recoverable | Recovery |
81
- |------|----------|:-----------:|----------|
82
- | 20 | CHECKSUM_MISMATCH | Yes | Retry (file changed externally) |
83
- | 21 | CONCURRENT_MODIFICATION | Yes | Retry after delay |
84
- | 22 | ID_COLLISION | Yes | Retry (regenerates ID) |
85
-
86
- ### Session (30-39)
87
-
88
- | Code | Constant | Recoverable | Recovery |
89
- |------|----------|:-----------:|----------|
90
- | 30 | SESSION_EXISTS | Yes | `ct session list`, resume existing |
91
- | 31 | SESSION_NOT_FOUND | Yes | `ct session list` for valid IDs |
92
- | 32 | SCOPE_CONFLICT | Yes | End conflicting session first |
93
- | 33 | SCOPE_INVALID | Yes | Verify epic exists |
94
- | 34 | TASK_NOT_IN_SCOPE | Yes | End session, restart with correct scope |
95
- | 35 | TASK_CLAIMED | Yes | `ct next` for unclaimed task |
96
- | 36 | SESSION_REQUIRED | Yes | `ct session start` first |
97
- | 37 | SESSION_CLOSE_BLOCKED | No | Complete pending tasks first |
98
- | 38 | START_REQUIRED | Yes | `ct start T###` |
99
- | 39 | NOTES_REQUIRED | Yes | Add `--note "..."` |
100
-
101
- ### Verification (40-47)
102
-
103
- | Code | Constant | Recoverable | Recovery |
104
- |------|----------|:-----------:|----------|
105
- | 40 | VERIFICATION_INIT_FAILED | Yes | Check task state |
106
- | 41 | GATE_UPDATE_FAILED | Yes | Retry |
107
- | 42 | INVALID_GATE | Yes | Check valid gate names |
108
- | 43 | INVALID_AGENT | Yes | Check valid agent names |
109
- | 44 | MAX_ROUNDS_EXCEEDED | Yes | Review implementation |
110
- | 45 | GATE_DEPENDENCY | Yes | Complete prerequisite gate |
111
- | 46 | VERIFICATION_LOCKED | No | Requires manual unlock |
112
- | 47 | ROUND_MISMATCH | Yes | Sync round number |
113
-
114
- ### Context Safeguard (50-54)
115
-
116
- | Code | Constant | Action |
117
- |------|----------|--------|
118
- | 50 | CONTEXT_WARNING | Continue, reduce output |
119
- | 51 | CONTEXT_CAUTION | Prioritize completion |
120
- | 52 | CONTEXT_CRITICAL | Run `ct safestop` |
121
- | 53 | CONTEXT_EMERGENCY | Immediate `ct safestop` |
122
- | 54 | CONTEXT_STALE | Re-check context state |
123
-
124
- ### Protocol/Orchestrator (60-67)
125
-
126
- | Code | Constant | Recoverable | Recovery |
127
- |------|----------|:-----------:|----------|
128
- | 60 | PROTOCOL_MISSING | Yes | Add protocol injection block |
129
- | 61 | INVALID_RETURN_MESSAGE | Yes | Fix return format |
130
- | 62 | MANIFEST_ENTRY_MISSING | Yes | Append MANIFEST.jsonl entry |
131
- | 63 | SPAWN_VALIDATION_FAILED | Yes | Fix spawn parameters |
132
- | 64 | AUTONOMOUS_BOUNDARY | No | Requires HITL decision |
133
- | 65 | HANDOFF_REQUIRED | No | Generate handoff document |
134
- | 66 | RESUME_FAILED | Yes | Check session/handoff validity |
135
- | 67 | CONCURRENT_SESSION | Yes | End other session first |
136
-
137
- **NOTE**: Codes 60-67 have a known collision between protocol validation (RCSD) and orchestrator functions. They are isolated by usage context.
138
-
139
- ### Nexus (70-79)
140
-
141
- | Code | Constant | Recoverable | Recovery |
142
- |------|----------|:-----------:|----------|
143
- | 70 | NEXUS_NOT_INITIALIZED | Yes | Run nexus init |
144
- | 71 | NEXUS_PROJECT_NOT_FOUND | Yes | Register project first |
145
- | 72 | NEXUS_PERMISSION_DENIED | No | Check permissions |
146
- | 73 | NEXUS_INVALID_SYNTAX | Yes | Fix query syntax |
147
- | 74 | NEXUS_SYNC_FAILED | Yes | Retry sync |
148
- | 75 | NEXUS_REGISTRY_CORRUPT | No | Manual repair needed |
149
- | 76 | NEXUS_PROJECT_EXISTS | Yes | Already registered |
150
- | 77 | NEXUS_QUERY_FAILED | Yes | Retry or refine query |
151
- | 78 | NEXUS_GRAPH_ERROR | Yes | Retry |
152
- | 79 | NEXUS_RESERVED | - | Reserved |
153
-
154
- ### Lifecycle (80-84)
155
-
156
- | Code | Constant | Recoverable | Recovery |
157
- |------|----------|:-----------:|----------|
158
- | 80 | LIFECYCLE_GATE_FAILED | Yes | Complete prerequisite RCSD stages |
159
- | 81 | AUDIT_MISSING | Yes | Add required audit fields |
160
- | 82 | CIRCULAR_VALIDATION | No | Assign different validator |
161
- | 83 | LIFECYCLE_TRANSITION_INVALID | No | Follow RCSD->IVTR sequence |
162
- | 84 | PROVENANCE_REQUIRED | Yes | Add provenance fields |
163
-
164
- ### Special (100+) - NOT errors
165
-
166
- | Code | Constant | Meaning | Agent Action |
167
- |------|----------|---------|-------------|
168
- | 100 | NO_DATA | Query returned empty | Do NOT retry. No matching data. |
169
- | 101 | ALREADY_EXISTS | Resource exists | Treat as success. |
170
- | 102 | NO_CHANGE | No-op (idempotent) | Treat as success. Do NOT retry. |
171
-
172
- ## Error Recovery Decision Trees
173
-
174
- ### Exit 34 (TASK_NOT_IN_SCOPE)
175
- ```
176
- 1. ct session status -> get current scope
177
- 2. ct show T### -> get task's parent epic
178
- 3. ct session end --note "Scope mismatch"
179
- 4. ct session start --scope epic:<parentId> --auto-start --name "Name"
180
- 5. RETRY original command
181
- ```
182
-
183
- ### Exit 35 (TASK_CLAIMED)
184
- ```
185
- 1. ct next -> get unclaimed task suggestion
186
- 2. ct start <suggested> -> switch to unclaimed task
187
- ```
188
-
189
- ### Exit 38 (START_REQUIRED)
190
- ```
191
- 1. ct start T### -> start working on target task
192
- 2. RETRY original command
193
- ```
194
-
195
- ### Exit 100 (NO_DATA) with session start
196
- ```
197
- 1. ct session list -> check existing sessions
198
- 2. IF sessions exist: ct session resume <id>
199
- 3. ELSE: ct session start --scope epic:T### --auto-start --name "Name"
200
- ```
201
-
202
- ## State Transitions
203
-
204
- | From | To | Via Command |
205
- |------|----|-------------|
206
- | pending | active | `ct start T###` |
207
- | pending | blocked | `ct update T### --status blocked` |
208
- | pending | done | `ct complete T###` |
209
- | active | pending | `ct start <other>` (stops current) |
210
- | active | blocked | `ct update T### --status blocked` |
211
- | active | done | `ct complete T###` |
212
- | blocked | pending | `ct update T### --status pending` |
213
- | blocked | active | `ct start T###` |
214
- | done | active | `ct reopen T###` |
215
-
216
- Valid statuses: `pending` | `active` | `blocked` | `done`
217
-
218
- ## JSON Output Format
219
-
220
- All commands return:
221
- ```json
222
- {"_meta":{"command":"...","timestamp":"...","version":"..."},"success":true,...}
223
- ```
224
-
225
- Errors return:
226
- ```json
227
- {"_meta":{...},"success":false,"error":{"code":"E_...","exitCode":N,"message":"...","fix":"ct ...","alternatives":[{"action":"...","command":"ct ..."}]}}
228
- ```
229
-
230
- **Parsing patterns**:
231
- - Success check: `jq '.success'`
232
- - Error code: `jq '.error.code'`
233
- - Fix command: `jq -r '.error.fix'`
234
- - Results field: `jq -r '._meta.resultsField'` -> tells which key has primary data
235
-
236
- ## Constraints
237
-
238
- | Rule | Value |
239
- |------|-------|
240
- | Hierarchy depth | Max 3 (epic -> task -> subtask) |
241
- | Siblings per parent | Max configurable (default varies) |
242
- | Valid statuses | pending, active, blocked, done |
243
- | ID format | T### (sequential, immutable) |
244
- | Shell escaping | Escape `$` as `\$` in arguments |
245
- | Context efficiency | Use `find` (not `list`) for discovery |
246
- | Discovery pattern | `find` -> `show` for details |
247
-
248
- ## Subagent Protocol
249
-
250
- 1. `ct start T###` - Start task before work
251
- 2. Execute implementation work
252
- 3. Write output file to designated path
253
- 4. Append ONE line to `MANIFEST.jsonl` (compact JSON, no pretty-print)
254
- 5. `ct complete T###` - Mark task done
255
- 6. Return summary message ONLY (no file content)
256
-
257
- **Manifest entry format**:
258
- ```json
259
- {"id":"T###-slug","file":"path","title":"...","date":"YYYY-MM-DD","status":"complete","agent_type":"...","topics":[],"key_findings":[],"actionable":true,"needs_followup":[],"linked_tasks":["T###"]}
260
- ```