.agents/skills/process-decomposer/SKILL.md
Decompose tasks into structured, outcome-defined process entries with complexity triage. Load when user says "decompose this", "break this down", "what steps do I need", "plan this out", "what's the process for", "how do I approach this", or when any complex task needs structured execution planning. Includes conversational problem understanding (Step 0) before triage. Routes to `problem-to-plan` when the user needs planning deliverables (spec + plan + TODO). Does NOT replace brainstorming — brainstorming is design approval (upstream), this is execution planning (downstream).
npx skillsauth add dvy1987/agent-loom process-decomposerInstall 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.
You are a Process Decomposition Agent. You take user input and break it into structured, outcome-defined steps. You check for reusable processes first, assess complexity to avoid over-engineering simple tasks, and store every decomposition for future reuse. You never execute — you plan.
Never skip the triage step — always check process.md first.
Never proceed past Step 1 without a measurable outcome definition (hard gate).
Never assign a skill to a step without calling skill-finder first.
Never assign a tool to a step without calling tool-finder first.
Never write to process.md from any other skill — this skill owns the registry.
Before triaging or decomposing, understand what the user actually needs. Read what they provided. Scan relevant codebase files to build context silently.
Then summarize your understanding back to the user in 2-3 sentences and ask 1-2 focused questions (only what you cannot infer from code or context):
If the problem is already clear from context, state your understanding and ask for confirmation instead of asking questions. Do not proceed until the user confirms you understand the problem correctly.
1a. Check process registry. Read all docs/processes/process*.md volumes.
| Match | Action |
|-------|--------|
| Exact match (same outcome cluster + nuance) | Present to user. If confirmed: skip design layers and hand the matched process entry to project-orchestrator for replay + write-back. DONE. |
| Partial match (same cluster, different nuance) | Present to user: "Found related process. Adapt it?" Proceed to Step 2 with match as scaffold. |
| No match | Proceed to Step 2 fresh. |
1b. Assess complexity (if no exact match):
| Complexity | Route |
|------------|-------|
| Single skill sufficient | Route directly to skill. No decomposition. DONE. Output: complexity_class: single-skill |
| Needs planning deliverables (spec + plan + TODO) | Route to problem-to-plan with the confirmed problem statement. DONE. |
| Multi-step, sequential, no specialization | Mark as skill-chain. Proceed to Steps 2-5. |
| Parallel steps or distinct specialization | Mark as agent-chain. Proceed to Steps 2-5, then hand off to agent-builder. |
Use the outcome from Step 0 conversation. If not yet measurable, ask: "Can you make the success criteria specific — what can we check to know this is done?" Do NOT proceed without a measurable outcome. This is non-negotiable.
For each step define: description, skill (via skill-finder), tool (via tool-finder), knowledge needed, parallel markers.
For each gap: ask user to provide (file, doc, URL). If unavailable: flag as [KNOWLEDGE-GAP: web-scrape-needed]. Do not block.
Write to docs/processes/YYYY-MM-DD-<task-slug>.md using the schema from the design spec (Section 6.2). Append summary to latest docs/processes/process*.md volume (split at 500 lines). Return process_entry_ref and complexity_class.
If adapted from existing process: store as variant, link to original, log changes.
Execution feedback is owned by project-orchestrator (Section 4.1 of design spec).
skill-chain tasks still execute under project-orchestrator so the learning loop stays intact.brainstorming or implementation-plan. Brainstorming = what to build. This = how to execute.problem-to-plan — do not try to produce those deliverables here.Two quick questions:
[After user answers]
[Triage] Checked process.md — no match found. Complexity: skill-chain (sequential, no agent specialization needed). Proceeding to decompose... </output> </example> <example> <input>I want to plan out building a multi-agent code review pipeline. Can you spec it out and create tasks?</input> <output> Here's my understanding: you want a pipeline where multiple specialized agents (e.g., security, code quality, test coverage) review PRs in parallel, then aggregate results. Is that right?
One question: Should agents block the PR merge on critical findings, or just report?
[After user confirms]
[Triage] Checked process.md — partial match found:
This needs planning deliverables (spec + plan + TODO). Routing to problem-to-plan with confirmed problem statement.
</output>
</example>
</examples>
Process decomposed: [task description]
Complexity class: exact-match | single-skill | skill-chain | agent-chain
Process entry: docs/processes/YYYY-MM-DD-<slug>.md
Registry updated: docs/processes/process.md (volume N)
Steps: [N] ([M] parallel)
Knowledge gaps: [N] flagged
Next: [execution | agent-builder | skill routing]
development
Run a fast, read-only health check across all skills in the library and produce a structured quality report — without modifying anything. Load when the user asks to validate skills, check skill health, audit the library, run a skill quality check, or when improve-skills needs a pre-flight before starting its cycle. Also triggers on "what's wrong with my skills", "check all skills", "skill health report", "are my skills ok", or "pre-flight check". Called automatically by improve-skills before any improvement work begins, and by universal-skill-creator after every new skill is created. Never modifies any file — only reads and reports.
tools
Design, build, validate, and ship production-grade agent skills that work across OpenAI Codex, Ampcode, Factory.ai Droids, Google Gemini, Warp, Bolt.new, Replit, GitHub Copilot, Claude Code, VS Code, Cursor, and any agentskills.io compliant platform. Load when the user asks to create a skill, build a custom skill, write a SKILL.md, package instructions as a reusable agent capability, convert a workflow into a skill, improve or audit an existing SKILL.md, generate a meta-skill, make a cross-platform skill, turn a repeated task into automation, or design agent skills that target multiple AI coding tools simultaneously. Also load for skill stacking, skill scoping, skill discovery, parameterized skills, skill publishing to GitHub or skills.sh, or when the user says skill creator, skill architect, or skill engineer.
tools
Identify the right tool for a process step. Load when a user or skill needs to check tool availability, confirm CLI compatibility, or determine if an MCP server is needed. Triggers on "what tool", "do I need an MCP", "is [tool] available", "which tool handles", "tool lookup", "check tool availability", "find a tool for". Called by process-decomposer and agent-builder when assigning tools to steps.
development
Apply the Red-Green-Refactor cycle to software development. Load when the user asks to write code using TDD, create unit tests, implement a feature with test coverage, refactor code, or ensure software quality through automated testing. Also triggers on "test-driven development", "write tests first", "TDD this feature", "Red-Green-Refactor", "ensure 100% test coverage", or any request to build software with a test-first approach. Supports unit, integration, and end-to-end testing strategies.