Implement and verify
Read the entry point's shared rules.
Input: selected issue, approved solution/criteria, release/migration decisions, verification plan, and any existing issue branch/PR or review findings. Missing approval or material scope changes return to definition.
- Inspect branch, status, and applicable instructions. Preserve unrelated changes. If the checkout is dirty or belongs to another task/session, agree a safe checkout or isolated worktree; do not stash, discard, or switch someone else's work.
- For new implementation, resolve the integration target (normally the remote default), fetch it, record the updated remote-tracking base SHA, and create a new dedicated branch before editing, such as
fix/<issue>-<slug>. For an agreed stack, use the intended parent; for an agreed combined branch (see the SDLC stacking rule), continue on it with one commit per issue. Stop if fetching fails; never use a stale baseline, integration branch, or unrelated branch. On resumption, verify ownership and base, then continue the issue branch already created instead of starting duplicate work. - Implement only the approved solution with proportionate docs/tests. When a change alters a record format or contract (task fields, log, journal, handoff, a shared rule), search every skill, agent and doc that reads or writes it, not only the files you edit, and update them in the same change. When a new rule reacts to failures or errors, check it against the failures the workflow already handles (gate gaps, retried checks, environment fixes, baseline decisions) and word it so it covers only the cases left over. Apply version/changelog updates only for agreed shipped changes, not internal-only work. When migration is needed, include the approved version-scoped descriptor from work-issue-migrations, linked from
docs/updating.md, and any required tooling; verify representative old-version fixtures or isolated copies, including repeat runs/recovery where applicable. Missing or materially changed migration decisions return to that stage and definition for approval. Never migrate live consumer projects without explicit approval. When the change prescribes Git commands or sequences (a rebase, a lease push, amerge-treepreview), add or update a scenario intests/git-scenarios.test.mjsthat runs them in a throwaway repository, so a wrong claim about Git fails a test rather than a review round. - Run relevant verification and
git diff --check; record commands, results, unavailable tools, and warnings. Refresh the issue/comments before delivery and resolve material changes with the developer. - Inspect the final diff, assess whether it needs splitting, and obtain independent review in a fresh context with only the issue, agreed solution, diff, evidence, and the project context that changes risk (for example, a single contributor). Run the reviewer on the other agent (Codex when you are Claude Code, Claude Code when you are Codex) when the session can start it, for example through the host's delegation tools. If it can't, use a fresh worker on your own agent and tell the developer, in the handoff and the PR, that the review ran on the same agent and why. Ask the reviewer to rate each finding by severity (critical, major, minor, nit) and likelihood (likely, plausible, rare), each with a concrete failure scenario. Likely critical or major findings block: fix them, re-verify and review again. Report the rest to the developer sorted by both ratings, with a recommendation to fix or accept each; accepted findings go in the PR as known limitations, not into follow-up issues unless the developer asks. After two rounds, start another open-ended round only for new likely critical or major findings; otherwise hand back with a recommendation, and the developer decides whether to continue. A diff changed after review, for example by an agreed fix, still needs review before PR delivery: scope it to the changes since the last reviewed SHA. Committing or rebasing the reviewed diff unchanged keeps its review. Do not label self-review independent review. If review is unavailable, stop before PR delivery.
Handoff: issue/solution references, branch/base/head, scoped diff, actual verification results, independent review outcome, and non-blocking findings. Return to the entry point for PR delivery only when checks/review pass; otherwise report the blocker. Commit/push/merge are not implicit in a request limited to local implementation.
Original Markdown, including metadata
--- name: work-issue-implement description: Implement and independently review an approved internal factory issue solution on its dedicated branch. Use for initial implementation or fixes to the same issue PR, not unapproved solution design. --- # Implement and verify Read the [entry point's shared rules](../work-issue/SKILL.md). **Input:** selected issue, approved solution/criteria, release/migration decisions, verification plan, and any existing issue branch/PR or review findings. Missing approval or material scope changes return to definition. 1. Inspect branch, status, and applicable instructions. Preserve unrelated changes. If the checkout is dirty or belongs to another task/session, agree a safe checkout or isolated worktree; do not stash, discard, or switch someone else's work. 2. For new implementation, resolve the integration target (normally the remote default), fetch it, record the updated remote-tracking base SHA, and **create a new dedicated branch before editing**, such as `fix/<issue>-<slug>`. For an agreed stack, use the intended parent; for an agreed combined branch (see the [SDLC stacking rule](../../../docs/sdlc.md#before-changing-files)), continue on it with one commit per issue. Stop if fetching fails; never use a stale baseline, integration branch, or unrelated branch. On resumption, verify ownership and base, then continue the issue branch already created instead of starting duplicate work. 3. Implement only the approved solution with proportionate docs/tests. When a change alters a record format or contract (task fields, log, journal, handoff, a shared rule), search every skill, agent and doc that reads or writes it, not only the files you edit, and update them in the same change. When a new rule reacts to failures or errors, check it against the failures the workflow already handles (gate gaps, retried checks, environment fixes, baseline decisions) and word it so it covers only the cases left over. Apply version/changelog updates only for agreed shipped changes, not internal-only work. When migration is needed, include the approved version-scoped descriptor from [work-issue-migrations](../work-issue-migrations/SKILL.md), linked from `docs/updating.md`, and any required tooling; verify representative old-version fixtures or isolated copies, including repeat runs/recovery where applicable. Missing or materially changed migration decisions return to that stage and definition for approval. Never migrate live consumer projects without explicit approval. When the change prescribes Git commands or sequences (a rebase, a lease push, a `merge-tree` preview), add or update a scenario in `tests/git-scenarios.test.mjs` that runs them in a throwaway repository, so a wrong claim about Git fails a test rather than a review round. 4. Run relevant verification and `git diff --check`; record commands, results, unavailable tools, and warnings. Refresh the issue/comments before delivery and resolve material changes with the developer. 5. Inspect the final diff, assess whether it needs splitting, and obtain independent review in a fresh context with only the issue, agreed solution, diff, evidence, and the project context that changes risk (for example, a single contributor). Run the reviewer on the other agent (Codex when you are Claude Code, Claude Code when you are Codex) when the session can start it, for example through the host's delegation tools. If it can't, use a fresh worker on your own agent and tell the developer, in the handoff and the PR, that the review ran on the same agent and why. Ask the reviewer to rate each finding by severity (critical, major, minor, nit) and likelihood (likely, plausible, rare), each with a concrete failure scenario. Likely critical or major findings block: fix them, re-verify and review again. Report the rest to the developer sorted by both ratings, with a recommendation to fix or accept each; accepted findings go in the PR as known limitations, not into follow-up issues unless the developer asks. After two rounds, start another open-ended round only for new likely critical or major findings; otherwise hand back with a recommendation, and the developer decides whether to continue. A diff changed after review, for example by an agreed fix, still needs review before PR delivery: scope it to the changes since the last reviewed SHA. Committing or rebasing the reviewed diff unchanged keeps its review. Do not label self-review independent review. If review is unavailable, stop before PR delivery. **Handoff:** issue/solution references, branch/base/head, scoped diff, actual verification results, independent review outcome, and non-blocking findings. Return to the entry point for PR delivery only when checks/review pass; otherwise report the blocker. Commit/push/merge are not implicit in a request limited to local implementation.