ワンクリックで
implement-tasks
Implement tasks from a task breakdown file with parallel sub-agents, test gates, and doc updates
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Implement tasks from a task breakdown file with parallel sub-agents, test gates, and doc updates
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Fill missing type, title, and description frontmatter on documents using structured AI output
Download a web page by URL and save it as clean markdown with images
Audit for accessibility — keyboard navigation, ARIA labels, contrast, focus indicators
Produce a full dependency health report (SBOM, vulnerabilities, staleness, upgrades, licenses)
Audit error handling UX — error boundaries, silent failures, loading states, empty states
Audit for unnecessary re-renders — Zustand subscriptions, missing memoization, inline callbacks
SOC 職業分類に基づく
| name | implement-tasks |
| description | Implement tasks from a task breakdown file with parallel sub-agents, test gates, and doc updates |
| user-invocable | true |
| argument-hint | <task-file> [task-numbers] |
Execute tasks from a task breakdown file with quality gates, parallel execution where safe, and systematic documentation updates.
Dependencies field of each task. Tasks with unmet dependencies cannot run until their prerequisites complete.Before implementing, write tests that define the expected behavior:
| Task type | Test approach |
|---|---|
| Bug fixes | Write a failing test that reproduces the bug — red first, then fix to green |
| New utilities, hooks, stores | Define expected behavior as Vitest tests, then implement |
| New Tauri commands | Write Rust #[test] for the command logic, then implement |
| Refactors | Ensure existing behavior is covered by tests before changing code |
| UI components | Skip this step — write component tests after implementation (step 2) |
If the task doesn't change testable behavior (e.g., docs-only, config changes), skip this step.
For each task that runs in isolation (parallel or sequential), manage the worktree yourself rather than passing isolation: "worktree" to the Agent tool. Why: the Agent tool's worktree isolation snapshots from the session-start ref, not current main HEAD — sub-agents launched after earlier merges can't see them and re-implement duplicate work, producing avoidable merge conflicts (validated 2026-04-22 in .claude/skill-feedback.md).
Launch sequence per sub-agent:
git worktree add .claude/worktrees/agent-<short-id> main -b worktree-agent-<short-id>
The <short-id> can be derived from the task number, a hash, or any unique tag. The branch always starts from current main, so it sees every merge that has landed in this session.node_modules so the sub-agent never has to think about it (this is one of the things that confuses agents about which checkout they're in):
ln -s /Users/peter/Development/note-sage/node_modules .claude/worktrees/agent-<short-id>/node_modules
isolation parameter. Pass the absolute worktree path explicitly in the prompt under a "YOUR WORKTREE" header (do not require the agent to discover it via pwd — confirm only). Required prompt sections:
pwd once, confirm ls node_modules | head resolves, every absolute path in Read/Edit/Write must start with the worktree path, every Bash command prefixed with cd <worktree-path> && to anchor CWD. Without these guards, agents leak edits into the parent main checkout.Files field)CLAUDE.md for project conventionsgit add/git commit (the harness denies git for non-isolated agents). Instead, the agent should report back with the list of files to stage and a proposed commit message; the parent runs the commit in step 3.For each sub-agent that returned with implementation work:
git -C .claude/worktrees/agent-<short-id> add <specific files>
git -C .claude/worktrees/agent-<short-id> commit -m "<agent's proposed message>"
Stage specific files only — never git add -A.git -C <worktree-path> diff main...HEAD. Confirm only the expected files changed.git merge worktree-agent-<short-id> --no-ff. Auto-merge should usually succeed because the branch was started from current main HEAD (no stale base by construction).git worktree remove -f -f <worktree-path> && git branch -d worktree-agent-<short-id>./test-frontend — typecheck + unit + markdown round-trip/test-coverage for changed files/test-perf if the task touched startup, editor rendering, decorations, stores, or Tauri IPC hot paths (see that skill for baseline update rules)/test-rust if Rust files changed/review-code to catch convention violations/review-ui for design system compliancePause for tests requiring human judgment (visual, UX, cross-process, a11y). An unchecked PRD quality gate that no command can verify is a manual test — don't defer it silently.
Before the task counts as done:
CLAUDE.md (general docs + feature-specific docs). ✅ at the end of the task heading (e.g., ### #35 — Title ✅). If the project has an aggressive markdown formatter that strips emojis or rewrites tables (e.g. \| table escapes get unescaped, breaking rows), use git apply --cached with a small patch instead of Edit/sed — that writes directly to the git index without touching the working tree, bypassing the formatter. Validated workaround as of 2026-04-22.feedback_full_coverage.md in auto-memory..claude/skill-feedback.md if anything about the implementation flow fell short (test gate unclear, sub-agent context gap, merge friction, etc.). Format per /retrospect-skills. Both user and agent contribute./retrospect-skills tasks/<file> to batch-review feedback. If the tasks file also completes a PRD, offer /retrospect-skills prds/<prd> for the lifecycle-wide retro.