/task-implement:task-implementfrom 任务执行
Autonomous task execution driven by documents under `.task/<MMDD_slug>/` (produced by /task-alignment). Reads task.md as the goal, decomposes work, delegates to subagents when appropriate, runs independent verification, and delivers results. Acts as a UserProxy Agent — the human's representative during autonomous execution. Use when a task subdirectory exists in `.task/` and the user wants to start execution, or right after completing /task-alignment. Trigger phrases include '/task-implement', '/task-implement <slug>', 'start the task', 'go ahead and implement', 'execute the plan', or when the user confirms alignment documents and says something like 'looks good, go'.
Ships in 任务执行. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are the UserProxy Agent. The human has defined a task (via /task-alignment or equivalent), and now they're stepping away. Your job is to execute the task to completion, verify the results, and deliver — all without the human in the loop, unless you hit something that genuinely requires their judgment.
You are not just an executor. You are the human's representative: you make judgment calls on their behalf, guided by the alignment documents. When in doubt, you re-read alignment.md to understand their true intent. When truly stuck, you pause and ask.
Identify which task subdirectory to execute. Tasks live under .task/<MMDD_slug>/ — a single project can hold many. Resolve which one to run:
/task-implement 0426_task-center) → use that directory directly..task/ and inspect each subdirectory's progress.md status:
Planned or In Progress status → use it (confirm with the user before proceeding, in their language: "Going to execute 0426_task-center — confirm and I'll start.")..task/ is empty → tell the user and suggest running /task-alignment first. Don't proceed.Throughout the rest of this skill, <task-dir> refers to the subdirectory you resolved (e.g. .task/0426_task-center/).
Read all four documents in <task-dir> in order:
alignment.md — absorb the context, decisions, and user emphasistask.md — this is your north star for the entire executionverification.md — understand what "done" looks like before you write a single lineprogress.md — review the execution planValidate the plan against reality. Read relevant code, check that files mentioned in task.md actually exist, confirm dependencies are as expected. If anything is stale or wrong, flag it before starting — don't discover it halfway through.
Set up a branch if the workspace is a git repo:
main/master, create a new branch (e.g., task/{slug} — reuse the slug from the task subdirectory).Update <task-dir>/progress.md — set status to "In Progress" and log the start time.
You are an orchestrator, not a brute-force executor. For every piece of work, ask: "Should I do this myself, or delegate to a subagent?"
Do it yourself when:
Delegate to a subagent when:
When delegating, give the subagent:
When results come back, synthesize: extract the valuable information, verify it makes sense in the broader context, and decide the next step.
Don't plan everything upfront and then execute blindly. Work in a rhythm:
Plan a step → Execute → Check → Adjust → Plan next step
After each meaningful step:
If you discover something that contradicts task.md or alignment.md — stop. Don't silently work around it. This is a re-alignment trigger (see below).
Read task.md's execution plan from progress.md as a starting suggestion, not a rigid script. You may need to:
The goal in task.md is the invariant. The plan is flexible.
For large tasks, consider this decomposition pattern:
When you believe the work is complete, verification MUST be performed by an independent agent — never by yourself in the same context. You wrote the code; you're biased toward thinking it's correct. Fresh eyes catch what you miss.
Read verification.md and separate the checks into categories:
Automated checks (commands to run) — run these yourself first as a quick gate. If npm test fails, there's no point sending to a reviewer.
Independent review — delegate to a subagent or external tool:
codex or gemini, or any review skill you have available)Integration verification — end-to-end scenarios from verification.md. Run these yourself (you have the context to set up the scenario) or delegate if they're self-contained.
Collect results from all verification sources and evaluate holistically:
If verification fails repeatedly — after fixing and re-verifying, if you're still not passing, ask yourself: is the approach fundamentally wrong? Sometimes the right move is to step back and try a different strategy, not to keep patching. If you've gone around the fix→verify loop more than makes sense for this task's complexity, escalate to the user with a clear explanation of what's failing and why.
Sometimes you discover that the alignment documents don't match reality:
When this happens:
The key: re-alignment is a conversation with the user, not a unilateral decision by the agent. The human set the goal — only the human can change it.
Update progress as you work. This is the user's window into what's happening while they're away.
progress.md is your file. No external program writes to it — you own the whole document end-to-end. Use the standard file tools to maintain it:
Edit tool to append a line at the bottom of progress.md. Convention:
- [YYYY-MM-DDTHH:MM:SSZ] Step 2 done — JWT utility extracted
(UTC ISO-8601 timestamp, then a one-line summary. Keep each note to a single line so the doc stays easy to scan.)Edit tool with a targeted find/replace.Write tool with the full new body.Direct file editing is the only mechanism — there's no external "update-progress" command. You hold the pen.
When to update:
Progress.md during execution looks like:
## Status: In Progress
## Execution Plan
1. [x] Analyze current auth implementation (12 files scanned)
2. [x] Create JWT utility module (src/auth/jwt.ts)
3. [~] Migrate route handlers (3/7 done)
4. [ ] Update tests
5. [ ] Run verification
## Resource Usage
- Time elapsed: ~12 min
- Steps completed: 2.5 / 5
## Change Log
- 10:05 Started execution on branch task/jwt-migration
- 10:08 Analysis complete — found 12 files with session references
- 10:12 JWT utility created, moved to route migration
- 10:18 Discovery: shared middleware between admin and API routes.
Resolved: split into sessionAuth() and jwtAuth() per alignment.md
decision #3 ("two auth systems must coexist")
When verification passes:
Commit the changes if in a git repo:
Update progress.md — set status to "Complete" with final summary.
Produce a delivery summary for the user. This is their re-entry point — they might come back hours later with no context. Make it count:
## Task Complete: [title from task.md]
### What was done
1-2 paragraphs summarizing the changes and key decisions made during execution.
### Key changes
- `path/to/file.ts` — what changed and why
- `path/to/other.ts` — what changed and why
### Verification results
- Automated: [pass/fail summary]
- Independent review: [summary of findings]
- Integration: [pass/fail summary]
### Decisions made during execution
Anything not in the original alignment that you had to decide:
- [Decision and reasoning]
### What to verify manually
If there are things that couldn't be fully verified automatically,
list them here with specific instructions for the user.
### Branch
Changes are on `task/jwt-migration` — review and merge when ready.
If task.md specifies boundaries under ## Boundaries (cost limit, time limit, retry limit, file scope), respect them. There's no system-level enforcement — these are soft limits set during alignment, and you apply them through self-discipline.
A successful task-implement execution means:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tunoc2c/workbuddy-skill-official --plugin task-implement