ワンクリックで
dg-implement
Implement a plan from a doppelganger(dg) branch, or fix review findings. Usage: dg-implement [finding-numbers]
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Implement a plan from a doppelganger(dg) branch, or fix review findings. Usage: dg-implement [finding-numbers]
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Pre-merge checks, version bump, create PR/MR. Version bump happens BEFORE merge (on the feature branch) because master requires PRs. Usage: dg-publish
Assess an existing doppelganger issue (explore codebase, identify scope/risks/ambiguities, post assessment) or create a new structured issue. Usage: dg-issue 42 (assess) or dg-issue (create) or dg-issue <description> (create with context)
Explore codebase, create implementation plan, create feature branch, create doppelganger(dg) branch, post plan as dg branch comment. Everything lives on the dg branch from this point forward. Usage: dg-plan 42
Commit changes, and post a progress comment in doppelganger(dg). Stages files by name (never git add -A), matches existing commit style. Usage: dg-commit [optional commit message]
Run specialized review agents in parallel on a doppelganger(dg) branch (code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier), write findings, then independently assess each finding to separate genuine issues from nitpicks and false positives. Usage: dg-review [aspects]
| name | dg-implement |
| description | Implement a plan from a doppelganger(dg) branch, or fix review findings. Usage: dg-implement [finding-numbers] |
| argument-hint | [finding-numbers] |
User input: $ARGUMENTS
This skill has two modes:
git add -A or git add .. Stage files by name. Never stage secrets.update_task tool to show progress.Extract:
1,2,3)If no arguments were given → implement mode. If finding numbers → fix mode.
Read dg branch plan and comments to get complete context:
dg branch read
The plan is marked with <!-- dg-plan --> and is the body of the dg branch.
Also read any progress updates, prior review findings, assessments, inline review comments, and discussion — all of this context informs implementation.
Create tasks based on the plan's deliverables/features. Example:
Read all files mentioned in the plan. Understand the existing code before making changes.
Use the implement role subagent to implement each deliverable. Use default model role if implement is not defined.
For each deliverable in the plan, launch a implement subagent via the Agent tool. Provide each agent with:
Test coverage is part of the deliverable, not an afterthought. If the plan specifies tests for a deliverable, the feature-dev agent must implement them. If the target package lacks test infrastructure, add it.
Parallelism: If deliverables are independent (don't modify the same files), run their implement agents in parallel.
Small plans (1-2 simple deliverables): You may implement directly instead of delegating, if the changes are straightforward enough that subagent overhead isn't justified.
Update task tracking as each deliverable completes.
After all implement agents complete:
Suggest next step: /dg-commit then /dg-review for review.
ci)Read ALL dg branch comments to get full context:
dg branch read
Find the review (<!-- dg-review -->) and assessment (<!-- dg-assessment -->) comments, then extract the specific findings to fix. Also review inline review comments for any additional context or feedback. Prior progress comments and discussion may also provide useful context.
Read ALL dg branch comments AND inline review comments, find review/assessment comments, present genuine findings, and ask which to fix. Use both commands above.
If more than batch size, fix first batch and tell user to re-run.
Use the implement subagent to implement fixes. implement is a model role. If it isn't specified, then just use default.
For each finding (or batch of related findings), launch a implement subagent with:
Parallelism: If findings touch different files, run their implement agents in parallel. If findings overlap (same file/function), batch them into a single agent.
Simple fixes (typos, naming, one-line changes): You may fix these directly instead of delegating.
Defer out-of-scope items to new dg issues. Update task tracking per finding.
After all implement agents complete:
Suggest next step: /dg-commit then /dg-review for re-review.