headyai/heady-staging/heady-task-decomposition

Claude Code and agent skill by headyai/heady-staging

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install headyai/heady-staging/heady-task-decomposition

SKILL.md

The same SKILL.md was published earlier as headysystems/heady-testing/heady-task-decomposition.

Heady Task Decomposition Engine

When to Use This Skill

Use this skill when you need to:

  • Break complex tasks into manageable subtasks using LLM
  • Score subtasks against agent/swarm capabilities via CSL gates
  • Build and execute dependency graphs (DAGs)
  • Run independent subtasks in parallel with concurrency control
  • Route subtasks to the optimal swarm based on semantic alignment

Architecture

Complex Task
→ LLM Decomposition (structured prompt)
→ Subtask Array with types and dependencies
→ CSL Scoring: cos(subtask_embedding, swarm_capability_embedding)
→ Dependency DAG Construction
→ Topological Sort (Kahn's algorithm, cycle detection via DFS)
→ Parallel Execution (respecting dependencies, maxParallel=fib(6)=8)
→ Result Aggregation

Instructions

1. Subtask Types

Map to swarm capabilities:

  • research → research-swarm
  • coding → coding-swarm (JULES)
  • data → data-swarm
  • reasoning → reasoning-swarm
  • synthesis → synthesis-swarm
  • validation → governance-swarm
  • retrieval → memory-swarm
  • integration → integration-node
  • planning → strategic-layer
  • communication → communication-swarm
2. CSL Scoring (phi-gated, not hard threshold)
javascript
const score = cosineSimilarity(subtaskEmbedding, swarmCapabilityEmbedding);
const gatedScore = cslGate(score, score, CSL_THRESHOLDS.LOW);
// Smooth sigmoid transition around threshold ≈ 0.691

Minimum assignment threshold: CSL_THRESHOLDS.LOW ≈ 0.691

3. Dependency DAG
  • Build: extract dependsOn from each subtask
  • Validate: DFS cycle detection → reject circular dependencies
  • Sort: Kahn's topological sort for execution order
  • Layers: group subtasks by dependency depth for parallel batching
4. Parallel Execution
  • Max concurrent: fib(6) = 8
  • Max subtasks per decomposition: fib(10) = 55
  • Per-subtask retry: configurable with phi-backoff
  • Timeout: phi-scaled per subtask type
5. LLM Decomposition Prompt

Structure the decomposition prompt to return:

json
[{
"id": "subtask_1",
"description": "...",
"type": "coding",
"dependsOn": [],
"estimatedComplexity": "medium"
}]

Evidence Paths

  • section2-agent-orchestration/modules/task-decomposition-engine.js
  • section2-agent-orchestration/modules/swarm-coordinator.js

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/headyai/heady-staging/heady-task-decomposition/badge)](https://verified-skill.com/skills/headyai/heady-staging/heady-task-decomposition)

Something wrong with this skill or its page? Tell us.