[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVBR69APR56105S5ZQ00X7":3,"skill-same:01M7EVBR69APR56105S5ZQ00X7":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EVBR69APR56105S5ZQ00X7","plan-execute",null,"Split agents into a planner that strategizes and an executor that acts — with replanning when reality diverges.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-plan-execute\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: plan-execute\ndescription: Split agents into a planner that strategizes and an executor that acts — with replanning when reality diverges.\ncategory: ai-research\n---\n\n## Overview\n\nPlan-and-execute separates the agent into two roles: a planner that decomposes the\ntask into a step-by-step plan, and an executor that carries out each step (often a\nReAct-style loop). After each step, a replanner compares what actually happened\nagainst the plan and revises the remaining steps. The separation exists because\nplanning and acting demand different cognitive modes — the planner thinks in\ndependencies and strategy without tool-call tunnel vision, while the executor\nfocuses on the concrete mechanics of each step.\n\nThis architecture shines on multi-step tasks where the plan is non-obvious but the\nsteps are individually straightforward: research reports, data pipelines,\nmulti-stage analysis. The replanning step is what makes it robust — a pure\nplan-then-execute pipeline shatters on the first surprise, while\nplan-execute-replan adapts.\n\nThe plan is also a human interface: it's the artifact a person reviews, edits, and\napproves. That makes plan-execute the right pattern whenever a human needs to stay\nin the loop on strategy while the agent handles tactics.\n\n## When to use\n\n- Multi-step tasks (5+ steps) with dependencies between steps.\n- Tasks where a wrong early step wastes a lot of work — planning first avoids\n  thrash.\n- When you want a human-readable plan for approval before execution begins.\n- Workflows mixing very different step types (research, then code, then write-up)\n  where one executor prompt can't cover everything well.\n- Long-running tasks where you want checkpointing: the plan is the natural resume\n  point.\n- Regulated or high-stakes workflows where the plan serves as the audit record of\n  intended actions.\n\n## Core concepts\n\n- **The plan as data structure**: an ordered list of steps, each with a\n  description, expected output, and dependencies. Keep steps coarse (5–10 for a\n  typical task) — too fine and the planner micromanages; too coarse and the\n  executor is lost.\n- **Planner prompt**: given the task and any constraints, output the step list.\n  Few-shot with example plans for your domain. The planner should also state\n  assumptions and what would invalidate the plan.\n- **Executor**: takes one step plus accumulated context, executes it (tool calls as\n  needed), returns a result summary. The executor doesn't see the whole plan —\n  just its step and prior results — which keeps it focused.\n- **Replanner**: after each step, given the original plan, completed results, and\n  the latest outcome, outputs the revised remaining plan: unchanged, reordered, or\n  rewritten. This is the feedback loop that handles reality.\n- **Plan approval gate**: optional human review of the plan before execution. Cheap\n  insurance for expensive or irreversible workflows.\n- **Step results as context**: each step's summarized output feeds the next steps\n  and the replanner. Summarize aggressively — full tool dumps from step 2 will\n  drown step 8.\n- **Plan invalidation criteria**: the planner states what would break the plan\n  (\"if the API has no export endpoint, replan around manual download\"). This gives\n  the replanner something to check against.\n- **Checkpointing**: the plan plus completed step results is a complete resume\n  state. Persist it — long tasks get interrupted.\n\n## Practical workflow\n\n1. **Define the step granularity for your domain.** Write 2–3 example plans by\n   hand. If a human expert would naturally break the task this way, the\n   granularity is right.\n2. **Build the planner.** Prompt with the task, constraints, available\n   tools\u002Fcapabilities, and example plans. Output: numbered steps with expected\n   outputs. Validate plans on sample tasks before wiring execution.\n3. **Build the executor.** A focused agent (ReAct loop works well) that receives\n   one step + prior summaries and returns a structured result: what was done, key\n   outputs, issues encountered.\n4. **Build the replanner.** Trigger after each step (or only when a step reports\n   issues, to save cost). Input: original task, remaining plan, step results so\n   far. Output: revised plan or \"proceed.\"\n5. **Add the approval gate (optional).** Show the plan to a human for high-stakes\n   tasks. Allow editing the plan, not just approve\u002Freject — edited plans teach you\n   what the planner gets wrong.\n6. **Persist state.** Save plan + step results after each step. Long-running tasks\n   need resume; debugging needs history.\n7. **Instrument the loop.** Log plans, per-step results, and replans. The\n   interesting debugging question is always \"why did the replan change step 4?\" —\n   you need the history to answer it.\n\nChecklist for a plan-execute system:\n- Planner validated on sample tasks before execution wired up.\n- Replanner triggers defined (every step vs. on-issue-only).\n- Step results summarized before passing forward.\n- Human approval gate for expensive\u002Firreversible runs.\n- State persisted for resume; full plan history logged.\n\n## Common pitfalls\n\n- **Plans too detailed.** A 30-step plan for a 20-minute task means the planner is\n  doing the executor's job badly. Steps should be subgoals, not keystrokes.\n- **Replanning every step unconditionally.** Full replans after uneventful steps\n  waste tokens and can destabilize a good plan. Replan on signal (errors,\n  surprises), confirm otherwise.\n- **Executor without step context.** Giving the executor the whole plan diffuses\n  focus; giving it nothing leaves it lost. One step + prior summaries is the sweet\n  spot.\n- **No plan invalidation criteria.** Without explicit \"this would break the plan\"\n  conditions, the replanner can't distinguish drift from disaster.\n- **Treating the plan as a contract.** Plans are hypotheses. If the executor\n  treats a stale plan as mandatory, you get the worst of both worlds — rigidity\n  plus overhead. The replanner must have real authority to change course.\n- **Skipping the planner for simple tasks.** Plan-execute has overhead (3+ model\n  calls before anything happens). For 1–3 step tasks, plain ReAct is faster and\n  just as good. Route by complexity.\n- **No persistence.** A long task that can't resume after interruption. The plan\n  is a natural checkpoint — use it.\n- **Approval gate theater.** A human \"approving\" plans they don't read. Make the\n  gate meaningful: show diffs on replan, highlight risky steps, allow edits.\n","## Overview\n\nPlan-and-execute separates the agent into two roles: a planner that decomposes the\ntask into a step-by-step plan, and an executor that carries out each step (often a\nReAct-style loop). After each step, a replanner compares what actually happened\nagainst the plan and revises the remaining steps. The separation exists because\nplanning and acting demand different cognitive modes — the planner thinks in\ndependencies and strategy without tool-call tunnel vision, while the executor\nfocuses on the concrete mechanics of each step.\n\nThis architecture shines on multi-step tasks where the plan is non-obvious but the\nsteps are individually straightforward: research reports, data pipelines,\nmulti-stage analysis. The replanning step is what makes it robust — a pure\nplan-then-execute pipeline shatters on the first surprise, while\nplan-execute-replan adapts.\n\nThe plan is also a human interface: it's the artifact a person reviews, edits, and\napproves. That makes plan-execute the right pattern whenever a human needs to stay\nin the loop on strategy while the agent handles tactics.\n\n## When to use\n\n- Multi-step tasks (5+ steps) with dependencies between steps.\n- Tasks where a wrong early step wastes a lot of work — planning first avoids\n  thrash.\n- When you want a human-readable plan for approval before execution begins.\n- Workflows mixing very different step types (research, then code, then write-up)\n  where one executor prompt can't cover everything well.\n- Long-running tasks where you want checkpointing: the plan is the natural resume\n  point.\n- Regulated or high-stakes workflows where the plan serves as the audit record of\n  intended actions.\n\n## Core concepts\n\n- **The plan as data structure**: an ordered list of steps, each with a\n  description, expected output, and dependencies. Keep steps coarse (5–10 for a\n  typical task) — too fine and the planner micromanages; too coarse and the\n  executor is lost.\n- **Planner prompt**: given the task and any constraints, output the step list.\n  Few-shot with example plans for your domain. The planner should also state\n  assumptions and what would invalidate the plan.\n- **Executor**: takes one step plus accumulated context, executes it (tool calls as\n  needed), returns a result summary. The executor doesn't see the whole plan —\n  just its step and prior results — which keeps it focused.\n- **Replanner**: after each step, given the original plan, completed results, and\n  the latest outcome, outputs the revised remaining plan: unchanged, reordered, or\n  rewritten. This is the feedback loop that handles reality.\n- **Plan approval gate**: optional human review of the plan before execution. Cheap\n  insurance for expensive or irreversible workflows.\n- **Step results as context**: each step's summarized output feeds the next steps\n  and the replanner. Summarize aggressively — full tool dumps from step 2 will\n  drown step 8.\n- **Plan invalidation criteria**: the planner states what would break the plan\n  (\"if the API has no export endpoint, replan around manual download\"). This gives\n  the replanner something to check against.\n- **Checkpointing**: the plan plus completed step results is a complete resume\n  state. Persist it — long tasks get interrupted.\n\n## Practical workflow\n\n1. **Define the step granularity for your domain.** Write 2–3 example plans by\n   hand. If a human expert would naturally break the task this way, the\n   granularity is right.\n2. **Build the planner.** Prompt with the task, constraints, available\n   tools\u002Fcapabilities, and example plans. Output: numbered steps with expected\n   outputs. Validate plans on sample tasks before wiring execution.\n3. **Build the executor.** A focused agent (ReAct loop works well) that receives\n   one step + prior summaries and returns a structured result: what was done, key\n   outputs, issues encountered.\n4. **Build the replanner.** Trigger after each step (or only when a step reports\n   issues, to save cost). Input: original task, remaining plan, step results so\n   far. Output: revised plan or \"proceed.\"\n5. **Add the approval gate (optional).** Show the plan to a human for high-stakes\n   tasks. Allow editing the plan, not just approve\u002Freject — edited plans teach you\n   what the planner gets wrong.\n6. **Persist state.** Save plan + step results after each step. Long-running tasks\n   need resume; debugging needs history.\n7. **Instrument the loop.** Log plans, per-step results, and replans. The\n   interesting debugging question is always \"why did the replan change step 4?\" —\n   you need the history to answer it.\n\nChecklist for a plan-execute system:\n- Planner validated on sample tasks before execution wired up.\n- Replanner triggers defined (every step vs. on-issue-only).\n- Step results summarized before passing forward.\n- Human approval gate for expensive\u002Firreversible runs.\n- State persisted for resume; full plan history logged.\n\n## Common pitfalls\n\n- **Plans too detailed.** A 30-step plan for a 20-minute task means the planner is\n  doing the executor's job badly. Steps should be subgoals, not keystrokes.\n- **Replanning every step unconditionally.** Full replans after uneventful steps\n  waste tokens and can destabilize a good plan. Replan on signal (errors,\n  surprises), confirm otherwise.\n- **Executor without step context.** Giving the executor the whole plan diffuses\n  focus; giving it nothing leaves it lost. One step + prior summaries is the sweet\n  spot.\n- **No plan invalidation criteria.** Without explicit \"this would break the plan\"\n  conditions, the replanner can't distinguish drift from disaster.\n- **Treating the plan as a contract.** Plans are hypotheses. If the executor\n  treats a stale plan as mandatory, you get the worst of both worlds — rigidity\n  plus overhead. The replanner must have real authority to change course.\n- **Skipping the planner for simple tasks.** Plan-execute has overhead (3+ model\n  calls before anything happens). For 1–3 step tasks, plain ReAct is faster and\n  just as good. Route by complexity.\n- **No persistence.** A long task that can't resume after interruption. The plan\n  is a natural checkpoint — use it.\n- **Approval gate theater.** A human \"approving\" plans they don't read. Make the\n  gate meaningful: show diffs on replan, highlight risky steps, allow edits.\n",{"name":5,"category":24,"description":7},"ai-research","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-plan-execute",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill plan-execute",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill plan-execute",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill plan-execute","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-plan-execute\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]