executing-plans
Executes implementation plans with smart task grouping. Groups related tasks to share context, parallelizes across independent subsystems.
What this skill does
# Executing Plans
**You are an orchestrator.** Spawn and coordinate sub-agents to do the actual implementation. Group related tasks by subsystem (e.g., one agent for API routes, another for tests) rather than spawning per-task. Each agent re-investigates the codebase, so fewer agents with broader scope = faster execution.
## 1. Setup
**Create a branch** for the work unless trivial. Consider git worktrees for isolated environments.
**Clarify ambiguity upfront:** If the plan has unclear requirements or meaningful tradeoffs, use `AskUserQuestion` before starting. Present options with descriptions explaining the tradeoffs. Use `multiSelect: true` for independent features that can be combined; use single-select for mutually exclusive choices. Don't guess when the user can clarify in 10 seconds.
**Track progress with tasks:** Use `TaskCreate` to create tasks for each major work item from the plan. Update status with `TaskUpdate` as work progresses (`in_progress` when starting, `completed` when done). This makes execution visible to the user and persists across context compactions.
## 2. Group Tasks by Subsystem
Group related tasks to share agent context. One agent per subsystem, groups run in parallel.
**Why grouping matters:**
```
Without: Task 1 (auth/login) → Agent 1 [explores auth/]
Task 2 (auth/logout) → Agent 2 [explores auth/ again]
With: Tasks 1-2 (auth/*) → Agent 1 [explores once, executes both]
```
| Signal | Group together |
|--------|----------------|
| Same directory prefix | `src/auth/*` tasks |
| Same domain/feature | Auth tasks, billing tasks |
| Plan sections | Tasks under same `##` heading |
**Limits:** 3-4 tasks max per group. Split if larger.
**Parallel:** Groups touch different subsystems
```
Group A: src/auth/* ─┬─ parallel
Group B: src/billing/* ─┘
```
**Sequential:** Groups have dependencies
```
Group A: Create shared types → Group B: Use those types
```
## 3. Execute
Dispatch sub-agents to complete task groups. Monitor progress and handle issues.
**Model selection:** Choose the right model for sub-agents based on task complexity:
| Model | Use for | Examples |
|-------|---------|----------|
| `opus` | Complex coding, multi-file features, architectural work | New endpoints + route components, refactors spanning multiple subsystems |
| `sonnet` | Moderate coding, straightforward features, writing | Simple CRUD endpoints, config changes, content updates |
| `haiku` | Token-intensive non-coding work, simple mechanical tasks | Reading logs, generating commit messages, reading diffs for review summaries |
Default to `opus` for coding tasks unless the work is clearly straightforward. `haiku` is not suitable for writing code — it's for lightweight tasks where expensive tokens would be wasted on simple reads and summaries.
```
Agent tool:
description: "Auth tasks: login, logout"
model: opus # or sonnet for simpler coding tasks
prompt: |
Execute these tasks from [plan-file] IN ORDER:
- Task 1: Add login endpoint
- Task 2: Add logout endpoint
Use skills: <relevant skills>
Commit after each task. Report: files changed, test results
```
**Architectural fit:** Changes should integrate cleanly with existing patterns. If a change feels like it's fighting the architecture, that's a signal to refactor first rather than bolt something on. Don't reinvent wheels when battle-tested libraries exist, but don't reach for a dependency for trivial things either (no lodash just for `_.map`). The goal is zero tech debt, not "ship now, fix later."
**Auto-recovery:**
1. Agent attempts to fix failures (has context)
2. If can't fix, report failure with error output
3. Dispatch fix agent with context
4. Same error twice → stop and ask user
## 4. Verify
All four checks must pass before marking complete:
1. **Automated tests:** Run the full test suite. All tests must pass.
2. **Manual verification:** Automated tests aren't sufficient. Actually exercise the changes:
- **API changes:** Curl endpoints with realistic payloads
- **External integrations:** Test against real services to catch rate limiting, format drift, bot detection
- **CLI changes:** Run actual commands, verify output
- **Parser changes:** Feed real data, not just fixtures
3. **DX quality:** During manual testing, watch for friction:
- Confusing error messages
- Noisy output (telemetry spam, verbose logging)
- Inconsistent behavior across similar endpoints
- Rough edges that technically work but feel bad
Fix DX issues inline or document for follow-up. Don't ship friction.
4. **Code review (mandatory):** After tests pass and manual verification is done, dispatch the `ce:code-reviewer` agent via Task tool to review the full diff against the base branch. This step is not optional.
Load relevant domain skills into the agent based on what was implemented. Evaluate which apply and include them in the agent prompt:
- `Skill(ce:architecting-systems)` - system design, module boundaries
- `Skill(ce:managing-databases)` - database work
- `Skill(ce:handling-errors)` - error handling
- `Skill(ce:writing-tests)` - test quality
- `Skill(ce:optimizing-performance)` - performance work
Handle the review verdict:
- **Must fix:** Fix all Critical and Important issues before marking complete
- **Suggestions:** Fix these too unless there's a clear reason not to
Plan execution is not done until review findings are addressed.
## 5. Commit
After verification passes, commit only the changes related to this plan:
1. Run `git status` to see all changes
2. **Stage files by name, not with `git add -A` or `git add .`** - only stage files you modified as part of this plan
3. **Leave unrelated changes alone** - if there are pre-existing staged or unstaged changes that aren't part of this work, don't touch them
4. Write a commit message that summarizes what was implemented, referencing the plan
## 6. Cleanup
After committing:
- Merge branch to main (if using branches)
- Remove worktree (if using worktrees)
- Mark plan file as COMPLETED
- Move to `./plans/done/` if applicable
Related in Productivity
gitea-workflow
IncludedOrchestrate agile development workflows for Gitea repositories using the tea CLI. Use when working with Gitea-hosted repos and asking to 'run the workflow', 'continue working', 'what's next', 'complete the task cycle', 'start my day', 'end the sprint', 'implement the next task', or wanting guided step-by-step development assistance. Keywords: workflow, orchestrate, agile, task cycle, sprint, daily, implement, review, PR, standup, retrospective, gitea, tea.
microsoft-graph-gateway
IncludedRoute Microsoft Graph work in this workspace. Use when users want to read or write Outlook mail, calendar events, contacts, OneDrive or SharePoint files, Teams, Planner, To Do, users, groups, directory data, or arbitrary Microsoft Graph endpoints from VS Code. Prefer WorkIQ for common read scenarios. Use Microsoft Graph for write actions and gap-read scenarios that need exact Graph properties, filters, permissions, or endpoints.
copilotkit
IncludedUse when building with CopilotKit — setup, development, integrations, debugging, upgrading, or contributing. Routes to the appropriate specialized skill based on the task.
wordly-wisdom
IncludedProvides calibrated decision analysis using Charlie Munger-style multiple mental models, inversion, incentive mapping, circle-of-competence checks, misjudgment audits, second-order effects, and forecast updates. Use when the user asks for an oracle take, a hard call, a decision memo, a premortem, an outside view, a red-team, a sanity-check, what am I missing, think this through, or wants a strategy, hire, investment, plan, product, partnership, or major life choice analysed. Avoid for simple factual lookups or time-sensitive legal, medical, or market questions without fresh evidence.
swain-session
IncludedSession management and project status dashboard. Owns the full session lifecycle (start/work/close/resume), focus lane, bookmarks, worktree detection, and tab naming. Also serves as the project status dashboard — shows active epics, progress, actionable next steps, blocked items, tasks, GitHub issues, and recommendations. Worktree creation is deferred to swain-do task dispatch (SPEC-195). Triggers on: 'session', 'status', 'what's next', 'dashboard', 'overview', 'where are we', 'what should I work on', 'show me priorities', 'bookmark', 'focus on', 'session info'.
gandi
IncludedComprehensive Gandi domain registrar integration for domain and DNS management. Register and manage domains, create/update/delete DNS records (A, AAAA, CNAME, MX, TXT, SRV, and more), configure email forwarding and aliases, check SSL certificate status, create DNS snapshots for safe rollback, bulk update zone files, and monitor domain expiration. Supports multi-domain management, zone file import/export, and automated DNS backups. Includes both read-only and destructive operations with safety controls.