packages/skills/skills/ct-epic-architect/SKILL.md
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.
npx skillsauth add kryptobaseddev/cleo ct-epic-architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Protocol: @src/protocols/decomposition.md Type: Context Injection (cleo-subagent) Version: 3.0.0
Context injection for epic planning and task decomposition tasks spawned via cleo-subagent. Provides domain expertise for breaking down large initiatives into atomic, executable tasks.
@skills/_shared/task-system-integration.md
cleo show {{TASK_ID}}cleo start {{TASK_ID}}cleo find "keyword", cleo list --type epiccleo session start --scope epic:{{EPIC_ID}} --auto-startcleo complete {{TASK_ID}}MUST check for related work BEFORE creating:
cleo find "auth" --status pending # Related tasks
cleo list --type epic --status pending # Existing epics
cleo phase show # Current phase
cleo list --tree --parent T001 # Hierarchy view
Epic (type: epic, size: large)
├── Task 1 (no deps) [Wave 0]
├── Task 2 (depends: T1) [Wave 1]
├── Task 3 (depends: T1) [Wave 1] ← Parallel
├── Task 4 (depends: T2,T3) [Wave 2] ← Convergence
└── Task 5 (depends: T4) [Wave 3]
| Type | Size | Scope | |------|------|-------| | Epic | large | 8+ files, multiple features | | Task | medium | 3-7 files, single feature | | Subtask | small | 1-2 files, single function |
cleo add "Auth System Implementation" \
--type epic --size large --priority high --phase core \
--labels "feature,auth,v1.0" \
--description "Complete authentication with JWT and session management" \
--acceptance "All child tasks completed" \
--acceptance "Integration tests pass" \
--files "docs/auth-spec.md,docs/api-design.md" \
--notes "Initial planning: JWT chosen for stateless API support"
# Wave 0: No dependencies
cleo add "Create auth schema" \
--type task --size medium --priority high \
--parent T001 --phase setup \
--description "Define user, session, and token tables" \
--acceptance "Schema validates against requirements" \
--files "src/db/schema.ts"
# Wave 1: Depends on Wave 0
cleo add "Implement JWT middleware" \
--type task --size medium --priority high \
--parent T001 --phase core --depends T002 \
--description "Token generation, validation, refresh" \
--acceptance "All token operations tested"
# Wave 2: Convergence
cleo add "Integration tests" \
--type task --size medium --priority high \
--parent T001 --phase testing --depends T003,T004 \
--acceptance "E2E auth flow tests pass"
# Link existing research output to task
cleo research link T001 research-auth-patterns-20260126
# View linked research
cleo show T001 # Shows .linkedResearch array
| Method | Use Case | Storage |
|--------|----------|---------|
| --files | Input context (specs, designs, code) | Task .files array |
| research link | Output artifacts (research findings) | Task .linkedResearch array |
cleo add "Implement auth" --files "spec.md,design.md"
cleo update T001 --files "additional-context.md"
| Constraint | Value | Enforcement |
|------------|-------|-------------|
| Max depth | 3 | epic (0) → task (1) → subtask (2) |
| Max active siblings | 8 (default) | hierarchy.maxActiveSiblings |
| Max siblings | unlimited (default) | hierarchy.maxSiblings=0 |
| Parent must exist | Validated | cleo exists {{PARENT_ID}} |
Validation Before Creation:
cleo exists T001 --quiet || echo "ERROR: Parent not found"
cleo list --parent T001 --status pending,active | jq '.tasks | length'
| Wave | Description | Execution | |------|-------------|-----------| | Wave 0 | No dependencies | Start immediately | | Wave 1 | Depends on Wave 0 | Parallel within wave | | Wave N | Depends on prior waves | Convergence points |
| Phase | Purpose |
|-------|---------|
| setup | Schema, config, structure |
| core | Features, components |
| testing | Tests, validation |
| polish | Docs, optimization |
| maintenance | Fixes, updates |
cleo phase show # Current phase
cleo list --phase $(cleo phase show -q) # Tasks in phase
Ask when:
Template:
Before proceeding, I need clarification:
1. [Question about scope]
2. [Question about constraints]
Options:
A. [Option with trade-offs]
B. [Option with trade-offs]
Recommendation: [Your recommendation]
@skills/_shared/subagent-protocol-base.md
{{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md{{MANIFEST_PATH}}| Reference | Content |
|-----------|---------|
| patterns.md | Research, Bug, Brownfield, Refactor patterns |
| commands.md | Complete CLEO command reference |
| shell-escaping.md | Escape $ as \$ in notes |
| feature-epic-example.md | Greenfield feature |
| refactor-epic-example.md | Brownfield modernization |
| Anti-Pattern | Solution |
|--------------|----------|
| Too large tasks | Atomic (one agent session) |
| Missing Wave 0 | At least one no-dependency task |
| Circular deps | Analyze data flow |
| Depth > 3 | Flatten hierarchy |
| Missing acceptance | Add --acceptance |
| Time estimates | Use size only |
cleo find, cleo list --type epic)cleo phase show)| Exit | Meaning | Fix |
|------|---------|-----|
| 4 | Not found | cleo find to verify |
| 10 | Parent missing | cleo exists {{ID}} |
| 11 | Depth exceeded | Flatten (epic→task→subtask max) |
| 12 | Sibling limit | Split to different parent |
| 6 | Validation | Escape $ as \$, check fields |
Shell Escaping: Always \$ in --notes/--description. See shell-escaping.md.
tools
Connect any AI agent to SignalDock for agent-to-agent messaging. Use when an agent needs to: (1) register on api.signaldock.io, (2) install the signaldock runtime CLI, (3) send/receive messages to other agents, (4) set up SSE real-time streaming, (5) poll for messages, (6) check inbox, or (7) connect to the SignalDock platform. Triggers on: "connect to signaldock", "register agent", "send message to agent", "agent messaging", "signaldock setup", "install signaldock", "agent-to-agent".
development
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.
testing
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.
tools
Quick ephemeral sticky notes for project-wide capture before formal classification