Source profileQuality 97/100

kryptobaseddev/cleo/packages/skills/skills/ct-epic-architect/SKILL.md

ct-epic-architect

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.

Source repository stars
160
Declared platforms
3
Static risk flags
1
Last source update
2026-08-20
Source checked
2026-08-25

Decision brief

What it does: where it fits

Protocol: @src/protocols/decomposition.md Type: Context Injection (cleo-subagent) Version: 3.0.0

Best for

  • 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.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeDeclaredSource recordInstall path and trigger
CursorDeclaredSource recordInstall path and trigger
Gemini CLIDeclaredSource recordInstall path and trigger
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/kryptobaseddev/cleo --skill "packages/skills/skills/ct-epic-architect"
Safe inspection promptEditorial

Inspect the Agent Skill "ct-epic-architect" from https://github.com/kryptobaseddev/cleo/blob/77fb47e0495c2456dfd45bdbe480198e7445123b/packages/skills/skills/ct-epic-architect/SKILL.md at commit 77fb47e0495c2456dfd45bdbe480198e7445123b. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Phase Assignment

    Review the “Phase Assignment” section in the pinned source before continuing.

    Review and apply the “Phase Assignment” source section.
  2. 02

    Purpose

    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.

    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.
  3. 03

    Capabilities

    1. Epic Creation - Parent epic with full metadata and file attachments 2. Task Decomposition - Atomic tasks with acceptance criteria 3. Dependency Analysis - Wave-based parallel execution planning 4. Research Linking - Connect research outputs to tasks 5. HITL Clarification - As…

    Epic Creation - Parent epic with full metadata and file attachmentsTask Decomposition - Atomic tasks with acceptance criteriaDependency Analysis - Wave-based parallel execution planning
  4. 04

    Task System Integration

    @skills/shared/task-system-integration.md

    Read task: cleo show {{TASKID}}Start task: cleo start {{TASKID}}Check existing work: cleo find "keyword", cleo list --type epic
  5. 05

    Execution Sequence

    1. Read task: cleo show {{TASKID}} 2. Start task: cleo start {{TASKID}} 3. Check existing work: cleo find "keyword", cleo list --type epic 4. Create epic and child tasks 5. Attach files and link research 6. Start session: cleo session start --scope epic:{{EPICID}} --auto-start 7…

    Read task: cleo show {{TASKID}}Start task: cleo start {{TASKID}}Check existing work: cleo find "keyword", cleo list --type epic

Permission review

Static risk signals and limitations

Writes files

medium · line 104

The documentation asks the agent to create, modify, or delete local files.

### Create Epic with File Attachments

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score97/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars160SourceRepository attention, not individual Skill quality
Compatibility3 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
kryptobaseddev/cleo
Skill path
packages/skills/skills/ct-epic-architect/SKILL.md
Commit
77fb47e0495c2456dfd45bdbe480198e7445123b
License
MIT
Collected
2026-08-25
Default branch
main
View the original SKILL.md

Epic Architect Context Injection

Protocol: @src/protocols/decomposition.md Type: Context Injection (cleo-subagent) Version: 3.0.0


Purpose

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.


Capabilities

  1. Epic Creation - Parent epic with full metadata and file attachments
  2. Task Decomposition - Atomic tasks with acceptance criteria
  3. Dependency Analysis - Wave-based parallel execution planning
  4. Research Linking - Connect research outputs to tasks
  5. HITL Clarification - Ask when requirements are ambiguous

Task System Integration

@skills/_shared/task-system-integration.md

Execution Sequence

  1. Read task: cleo show {{TASK_ID}}
  2. Start task: cleo start {{TASK_ID}}
  3. Check existing work: cleo find "keyword", cleo list --type epic
  4. Create epic and child tasks
  5. Attach files and link research
  6. Start session: cleo session start --scope epic:{{EPIC_ID}} --auto-start
  7. Complete task: cleo complete {{TASK_ID}}

Requirements Analysis

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 Structure

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]

Tier Sizing & Scope (canonical source: ADR-073 §1.1)

DO NOT redefine here. The strict definitions live in .cleo/adrs/ADR-073-above-epic-naming.md §1.1 (tier table) + §1.2 (8 invariants I1–I8) + §1.3 (lifecycle decision table).

Quick reference for decomposition:

TierScope-of-changeSizing
SagaTheme grouping ≥2 Epics across ≥2 releases≥2 child Epics
EpicOne releasable slice; ≥1 PR to main4–10 child Tasks
TaskOne atomic PR-sized change; single wave1–7 child Subtasks (or leaf); single PR
SubtaskOne commit; ≤2 files OR one module boundary1 commit; contributes to parent Task's single PR

I8 (load-bearing): A Task ships as exactly ONE PR. Multiple Subtasks contribute commits to that single PR. Subtasks never own a PR — if a unit warrants its own PR, it MUST be a Task. When decomposing, ask: "does this unit need its own PR?" → Task. "Is this a commit inside a larger PR?" → Subtask.

Above-Epic: Sagas (PM-Core V2 — ADR-088)

A Saga groups multiple Epics into a multi-release theme. Use a Saga when the work spans more than one releasable Epic and you want a stable handle for rollup/reporting. A Saga uses type='saga' (NOT label='saga') — it is a peer type discriminator at the top of the parent ladder. All IDs are stored as T####; prefixes (SG-, E-) are display-only. Saga membership uses parent_id containment (NOT task_relations.groups).

cleo saga create --title "Auth Modernization" --description "..." --acceptance "ac1|ac2|ac3|ac4|ac5"
# returns SG-id (stored as T#### with type=saga)
cleo saga add <sagaId> <epicId>          # sets epic.parent_id = sagaId (containment edge)
cleo saga members <sagaId>               # returns members via parent_id containment
cleo saga rollup <sagaId>                # aggregates child statuses + completionPct

Epic Creation

Create Epic with File Attachments

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"

Create Tasks with Dependencies

# 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 Research to Tasks

# Link existing research output to task
cleo research link T001 research-auth-patterns-20260126

# View linked research
cleo show T001  # Shows .linkedResearch array

File Attachment Patterns

When to Use --files vs Research Link

MethodUse CaseStorage
--filesInput context (specs, designs, code)Task .files array
research linkOutput artifacts (research findings)Task .linkedResearch array

Attach Files During Creation

cleo add "Implement auth" --files "spec.md,design.md"

Append Files to Existing Task

cleo update T001 --files "additional-context.md"

Hierarchy Constraints

ConstraintValueEnforcement
Max depth3epic (0) → task (1) → subtask (2)
Max active siblings8 (default)hierarchy.maxActiveSiblings
Max siblingsunlimited (default)hierarchy.maxSiblings=0
Parent must existValidatedcleo 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 Planning

WaveDescriptionExecution
Wave 0No dependenciesStart immediately
Wave 1Depends on Wave 0Parallel within wave
Wave NDepends on prior wavesConvergence points

Dependency Rules

  1. No circular dependencies (A→B→C→A invalid)
  2. Wave siblings are independent (no cross-dependencies)
  3. Convergence depends on ALL branches

Phase Assignment

PhasePurpose
setupSchema, config, structure
coreFeatures, components
testingTests, validation
polishDocs, optimization
maintenanceFixes, updates
cleo phase show                              # Current phase
cleo list --phase $(cleo phase show -q)      # Tasks in phase

HITL Clarification

Ask when:

  • Requirements ambiguous
  • Multiple valid approaches
  • Missing context
  • Scope unclear

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]

Subagent Protocol

@skills/_shared/subagent-protocol-base.md

Output Requirements

  1. MUST write decomposition to: {{OUTPUT_DIR}}/{{DATE}}_{{TOPIC_SLUG}}.md
  2. MUST append ONE line to: {{MANIFEST_PATH}}
  3. MUST return ONLY: "Decomposition complete. Manifest appended to pipeline_manifest."
  4. MUST NOT return full decomposition in response

Extended References

ReferenceContent
patterns.mdResearch, Bug, Brownfield, Refactor patterns
commands.mdComplete CLEO command reference
shell-escaping.mdEscape $ as \$ in notes
feature-epic-example.mdGreenfield feature
refactor-epic-example.mdBrownfield modernization

Anti-Patterns

Anti-PatternSolution
Too large tasksAtomic (one agent session)
Missing Wave 0At least one no-dependency task
Circular depsAnalyze data flow
Depth > 3Flatten hierarchy
Missing acceptanceAdd --acceptance
Time estimatesUse size only

Completion Checklist

  • Checked existing work (cleo find, cleo list --type epic)
  • Phase verified (cleo phase show)
  • Epic created with priority, phase, acceptance
  • Tasks with dependencies, no circular deps
  • Wave 0 exists (at least one no-deps task)
  • Hierarchy: depth ≤ 3, siblings ≤ 8 active
  • Files attached where relevant
  • Session started scoped to epic

Error Handling

ExitMeaningFix
4Not foundcleo find to verify
10Parent missingcleo exists {{ID}}
11Depth exceededFlatten (epic→task→subtask max)
12Sibling limitSplit to different parent
6ValidationEscape $ as \$, check fields

Shell Escaping: Always \$ in --notes/--description. See shell-escaping.md.


See also / References

This skill binds to the decomposition LOOM lifecycle stage. Governing ADRs:

LOOM coverage matrix: docs/skills/loom-coverage-matrix.md.

Frequently asked questions

What to verify before installation and use

What does the ct-epic-architect source document cover?

Protocol: @src/protocols/decomposition.md Type: Context Injection (cleo-subagent) Version: 3.0.0

How do I install ct-epic-architect?

The source record exposes this install command: npx skills add https://github.com/kryptobaseddev/cleo --skill "packages/skills/skills/ct-epic-architect". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: claude code, cursor, gemini cli.

Which permission-related actions were detected?

Static rules flagged write-files in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing