decompose

A skill for breaking a broad goal into smaller tasks arranged by their dependencies, so tasks can be reviewed and completed in a sensible order.

In plain words
What is it for?
Use it to split projects into executable subtasks, confirm the plan, track progress, and update the task structure when requirements change.
Why use it?
It turns a vague or complex request into a concrete work plan and shows which tasks can wait or run in parallel.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/rnixai/rnix/decompose
Any agent
npx skills add rnixai/rnix --skill decompose
Clone the repo
git clone --depth 1 https://github.com/rnixai/rnix

Made for: Claude Code, Codex.

Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 724 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00049 $0.00724
Opus 5 $0.00024 $0.00362
Sonnet 5 $0.00010 $0.00145
Haiku 4.5 $0.00005 $0.00072

Measured 3d ago against content hash 455536ba7ef9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

decompose scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

lib/skills/decompose/SKILL.md · 57 lines

What it actually says

Intent Decompose

使用场景

当用户给出一个高层目标或复杂意图时,使用此技能将其分解为结构化的子任务 DAG(有向无环图)。

分解规则

将高层意图分解为具体子任务时,遵循以下原则:

  1. 每个子任务用 JSON 对象表示,包含 id(短标识符)、intent(具体任务描述)、depends_on(依赖的子任务 id 列表,无依赖则为空数组)
  2. 子任务粒度适中——每个子任务应能由单个智能体独立完成
  3. 正确声明依赖关系——有数据流依赖的任务必须声明 depends_on
  4. 返回纯 JSON 数组,不要包含其他文本

示例分解结果:

[
  {"id": "design", "intent": "设计数据模型和 API 接口", "depends_on": []},
  {"id": "backend", "intent": "实现后端 API 服务", "depends_on": ["design"]},
  {"id": "frontend", "intent": "实现前端界面", "depends_on": ["design"]},
  {"id": "test", "intent": "编写集成测试", "depends_on": ["backend", "frontend"]}
]

增量更新规则

当需要在已有意图树上增量更新时:

  1. 分析新需求与现有子任务的关系
  2. 返回合并后的完整子任务列表(包括已有的和新增的)
  3. 已有子任务保持原 id 不变;新增子任务用新 id
  4. 如果新需求修改了已有子任务的目标,更新其 intent 字段
  5. 正确声明 depends_on 依赖关系

工作流程

意图从分解到完成遵循五阶段生命周期,每阶段关注"做什么 / 判断什么":

  1. 分解 — 将高层意图拆解为子任务 DAG,明确每个子任务的 id、intent 与 depends_on 依赖(遵循上方《分解规则》)。
  2. 审查 — 检查分解结果:子任务粒度是否适中、依赖关系是否完整且无环、是否覆盖原始意图的全部目标。
  3. 确认 — 在执行前批准该计划;确认即冻结当前 DAG 结构,进入执行阶段。
  4. 执行 — 按依赖拓扑顺序推进子任务:依赖已满足的节点可并行执行,未满足的等待其上游完成。
  5. 监控 — 跟踪各子任务的执行进度与状态,识别失败或漂移;失败节点会级联标记其下游依赖,必要时回到分解阶段做增量更新(见上方《增量更新规则》)。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 57 lines · 49 tokens per session scan A 455536ba7ef9

Subscribe to this mod's changes

decompose is a skill published in the GitHub repository rnixai/rnix (5 stars, last pushed 25d ago), licensed MIT. It adds 49 tokens to every session and 724 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

reflect

Review recent work, find repeated workflow patterns, and suggest reusable skills, agents, commands, config changes, or playbooks. Use when the user asks to learn from past sessions, improve recurring workflows, or identify what should be turned into reusable agent instructions.

alvinunreal/oh-my-opencode-slim · 53 tokens

codemap

Generate comprehensive hierarchical codemaps for UNFAMILIAR repositories. Expensive operation - only use when explicitly asked for codebase documentation or initial repository mapping.

alvinunreal/oh-my-opencode-slim · 34 tokens

release-notes

Draft concise release notes.

ollama/ollama · 9 tokens

length-converter

Convert between common length units (miles, km, feet, meters) using a multiplication factor.

microsoft/agent-framework · 24 tokens

background

Use when the user wants to see, inspect, cancel, or prune background agents fired during prior chain runs. Read/manage .hyperflow/background/registry.json and the per-agent output buffers at .hyperflow/background/ .md. Standalone — never auto-invoked. Trigger with /hyperflow:background, "list background agents"…

jeremylongshore/tons-of-skills-marketplace · 89 tokens