# Plan Decompose Orchestrate

> Turn a flat plan into a dependency graph of small, test-first tasks before any code is touched.

Plan Decompose Orchestrate is a free AI agent skill on Agensi by kktestdev, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [kktestdev](https://www.agensi.io/creators/supakit-kitjanabumrungsak)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Uses: 1
- Version: 1.0
- Last updated: 2026-10-23
- Security: scan passed (2026-10-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/plan-decompose-orchestrate
- Tags: ai-agents, tdd, debugging, orchestration, git-worktree

## About this skill

Stop shipping code that breaks in production because a step was rushed or a dependency was missed. This skill transforms flat to-do lists into high-integrity execution graphs by enforcing a strict implement-test-review triad for every single task. It eliminates the "it works on my machine" syndrome by requiring deterministic reproduction and root-cause analysis for every bug.

### What it does
- **Plan decomposition** breaks every task into an explicit Implement, Test, and Review triad to ensure 100% completion.
- **Dependency mapping** analyzes task relationships to determine the optimal parallel or sequential execution shape.
- **Deep-down debugging** follows a 7-step root-cause protocol that prevents patching symptoms and stops recurring bugs.
- **Two-pass review** validates both functional spec-compliance and underlying code quality for every change.
- **Orchestration management** identifies when to use git worktrees for isolated parallel development to prevent file clobbering.

### How it works
1. **Trigger** the skill by asking to "plan first" or "วางแผนก่อน" before starting any multi-file implementation.
2. **Decompose** the initial requirements into the implementation-test-review triad, mapping each to actual source code.
3. **Orchestrate** the execution by defining which tasks run in parallel and which require sequential pipelines.
4. **Execute** the plan, switching to the root-cause debugging protocol immediately if any test fails.

### Frameworks & tools
Works with any language or framework. It integrates with git for worktree isolation and standard testing runners for deterministic validation.

### Why this beats prompting it yourself
Standard LLM plans are usually just a list of features to build. This skill forces the agent to define how it will prove the code works and how it will review its own quality before a single line of code is written, drastically reducing technical debt.

### Use cases
- Migrating complex logic across 2+ files where state dependencies are high.
- Investigating intermittent or flaky test failures that require a systematic trace.
- Designing new features from scratch using a TDD (Test-Driven Development) workflow.
- Managing multi-agent task distribution where parallel work might conflict.

### Known limitations
Not recommended for trivial one-line edits or purely informational queries. Requires access to the codebase to verify signatures before planning.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Plan Decompose Orchestrate skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from a standard 'plan and execute' prompt?

While standard prompts provide a list of steps, this skill enforces a strict "Implement-Test-Review" triad for every task, ensuring that no code is marked complete until it is verified and peer-reviewed by the agent. It proactively maps dependencies to prevent the common logic errors that occur when AI agents rush through sequential tasks.

### Which AI agents or development environments are compatible with this skill?

This skill is platform-agnostic and compatible with any AI agent that has file-system access and a terminal. It is optimized for environments where the agent can utilize git and language-specific test runners to validate its own work.

### How does the 'Deep-down debugging' feature handle unexpected errors during implementation?

The skill uses a 7-step root-cause protocol that moves beyond surface-level fixes by requiring the agent to reproduce the bug deterministically before attempting a solution. If a test fails during execution, the agent automatically pivots to this debugging mode to identify and fix the underlying issue rather than just patching the symptom.

### Can this skill handle large-scale refactoring across multiple directories?

Yes, the orchestration layer is designed to manage complex, multi-file changes by utilizing git worktrees. This allows the agent to isolate parallel development tasks, preventing the file clobbering and state conflicts that typically occur when an agent tries to edit multiple dependent files at once.

### What exactly is included in the purchase of this skill?

You receive the complete orchestration logic, the structured plan-decomposition templates, and the 7-step root-cause debugging protocol. The package also includes documentation on how to trigger the 'plan first' workflow and integrate it into your existing agentic routines.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
