← ClaudeAtlas

forge-reviewlisted

Review code changes for Forge issues. Use this skill for independent code review with fresh context — checks diff against project conventions, finds bugs, security issues, and consistency problems. Triggers on: /forge-review, reviewing code, checking a diff, code review for an issue, reviewing PR changes. Used as a subagent by forge-code during the build+review step (before push), or standalone for manual review.
SidCorp-co/forge · ★ 4 · Code & Development · score 73
Install: claude install-skill SidCorp-co/forge
# Forge Review Code review with fresh context. This skill is deliberately run without implementation context so it catches things the author missed due to familiarity bias. Works in three modes: - **Pipeline mode** — invoked with documentId, posts findings as issue comment, advances status - **Subagent mode** — spawned by forge-code during Step 10, returns findings to caller - **Standalone mode** — `/forge-review` with no args, reviews current branch diff ## Usage ``` /forge-review <documentId> # pipeline — review + post comment + set status /forge-review # standalone — review current branch diff ``` ## Review Process > **Pull-model note:** On large issues `forge_step_start` returns a lean manifest (`bodyTruncated:true`). Fetch `acceptanceCriteria`/`description` as needed via `forge_issues.get { documentId, fields: ['acceptanceCriteria'] }` rather than assuming full body is present. ### 1. Get the Diff In pipeline mode, first make sure you're looking at the right code: `git fetch`, then check out the issue's ISS-* branch (from the check-in bundle / `sessionContext.branch`, else `git branch -r | grep ISS-XX`). Then diff the branch's **net change against the base branch** — robust no matter how many implementation/fix commits exist: ```bash git fetch origin BASE=$(git merge-base origin/<baseBranch> HEAD) git diff "$BASE"..HEAD --stat git diff "$BASE"..HEAD git log --oneline "$BASE"..HEAD ``` `<baseBranch>` comes from `forge_config → get`. Avoid `HE