plan-and-execute-by-subagent

Plan and delegate code generation tasks to subagents in batches of five.

1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/wangbinquan/skills --skill plan-and-execute-by-subagent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plan-and-execute-by-subagent
Source: https://github.com/wangbinquan/skills/tree/main/.claude/skills/plan-and-execute-by-subagent
Command: npx skills add https://github.com/wangbinquan/skills --skill plan-and-execute-by-subagent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Orchestrates and plans large-scale code-generation tasks by distributing work to autonomous subagents to preserve context quality and output consistency.

Core Features & Use Cases

  • Distributed task execution: every 5 tasks are handled by a fresh subagent to avoid context drift.
  • End-to-end planning: extracts design documents into atomic tasks, manages dependencies, and tracks progress in PLAN.md.
  • Flexible workflow: supports creating models, services, configs, tests, and skeletons from architecture/design documents across languages and stacks.

Quick Start

Provide one or more design documents and the skill will plan tasks, spawn subagents in batches of five, and produce a traceable PLAN.md.

Frequently Asked Questions about plan-and-execute-by-subagent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate large-scale code generation across multiple modules without context drift?

Automate large-scale code generation by delegating work to subagents in batches of five tasks, maintaining clean context boundaries to prevent context drift and ensure output consistency. This approach preserves context quality during distributed task execution.

What is the best way to generate models, services, configs, and tests from a design document?

Generate models, services, configs, and tests by extracting design documents into atomic tasks and orchestrating them through subagents. The process manages dependencies and tracks progress in a detailed PLAN.md file with task statuses.

Can I use subagents to batch code generation tasks across different programming languages?

Yes, you can use subagents to batch code generation tasks across different languages and stacks. The workflow supports design-driven code generation across multiple modules, handling batch creation of files from architecture documents.

How does planning and orchestrating code generation with subagents work?

Planning code generation with subagents works by extracting design documents into atomic tasks, spawning a fresh subagent every five tasks, and outputting a traceable PLAN.md that manages dependencies and tracks task statuses throughout the workflow.

Do I need a design document to start distributed code generation tasks?

Yes, you need one or more design documents to start distributed code generation. The skill extracts these documents into atomic tasks, plans the execution, and spawns subagents in batches of five to produce the code files.