{"data":{"slug":"discovered-81dd53dcb4fc298f0a24050cb3200ec61b72e91d50901fa3","title":"Code Review under Andino Workflow","summary":"Review a change against its spec and the repository's standards, ensuring it meets both the requested functionality and documented engineering practices.","url":"https:\/\/skillshunter.net\/skills\/discovered-81dd53dcb4fc298f0a24050cb3200ec61b72e91d50901fa3","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-81dd53dcb4fc298f0a24050cb3200ec61b72e91d50901fa3","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-81dd53dcb4fc298f0a24050cb3200ec61b72e91d50901fa3.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-81dd53dcb4fc298f0a24050cb3200ec61b72e91d50901fa3\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"A change must be pinned to exact bytes, and the reviewer must have read access to the repository or the pasted material. The requirement source should be identified, and tests may require a disposable directory outside the repository.","instructions":"---\nname: andino-code-review\ndescription: Use when reviewing a pull request, branch, commit range, work in progress (including untracked files), pasted diff or agent handoff; when asking someone else to review a change; or when responding to review feedback. Operates under Andino Workflow governance.\n---\n\n# Review a change against its spec and the repository's standards\n\nInternal method ID: `andino-code-review` (alias: `code-review`).\n\n> **Andino Workflow Member Skill**\n> Operates under Andino Workflow: proportional investigation, evidence-based\n> decisions, one durable checkpoint and clean handoff. Do not invoke the workflow\n> recursively. Loading this resource changes neither tools nor permissions.\n\n## Purpose\n\nDecide whether a change is ready by reading the bytes that will ship and answering two\nseparate questions: does it do what was asked (**Spec**), and does it meet the repository's\ndocumented standards and sound engineering (**Standards**)? A change can pass one and fail\nthe other, so each gets its own verdict and neither masks the other. The same method\nprepares a change for someone else's review and decides what to do with feedback on your\nown change.\n\n## Trigger and non-trigger\n\nUse it for an identifiable change: a commit, range, branch, pull request, work in progress\nwith its untracked files, a pasted diff or a handoff from another agent; for a review\nrequest; and for review feedback you must act on. Conceptual design advice, a standalone\ncosmetic sweep and a request only to format code belong elsewhere.\n\nReviewing is read-only: the reviewed checkout ends exactly as it started. Editing starts\nonly in [Respond to review feedback](#respond-to-review-feedback), with authority to change\nthe code.\n\n## Select a resource, not a second lifecycle\n\n| Current need | Resource | Exclusion |\n| --- | --- | --- |\n| Write the brief for an independent reviewer | [requesting-review](resources\/requesting-review.md) | Reviewing the change yourself |\n| Act on review comments as the author | [receiving-review](resources\/receiving-review.md) | Writing a review |\n| Name a structural remedy; judge change size, dead code or dependencies | [review-craft](resources\/review-craft.md) | Formatting that tooling enforces |\n| Security or performance triggers in the diff | [checklists](resources\/checklists.md) | A full audit: use `andino-security-and-hardening` or `andino-performance-optimization` |\n| A complete review with its proof | [worked-example](resources\/worked-example.md) | None |\n\n## Prerequisites\n\nA change you can pin to exact bytes; read access to the repository or the pasted material;\nthe requirement source when one exists. Running tests needs a disposable directory outside\nthe repository.\n\n## Procedure\n\n### 1. Pin the change and the starting state\n\nRecord the starting state before anything else; step 7 compares against it.\n\n```bash\ngit rev-parse HEAD && git branch --show-current && git status --short\n```\n\n| Request | Review boundary |\n| --- | --- |\n| Commit or explicit endpoints | Resolve both to SHAs and inspect `git diff <base> <head>`. For one commit, use its requested parent comparison or its patch. |\n| Branch or pull request | Resolve target and head to SHAs. Review `git diff <target>...<head>` (merge base to head) and list `git log --oneline <target>..<head>`. Use the PR target when known; otherwise ask for the fixed point. |\n| Work in progress | Capture the requested layers with `git diff --cached`, `git diff` and `git ls-files --others --exclude-standard`, and read each in-scope untracked file. Include committed branch changes when the scope includes them. |\n| Pasted diff or excerpts | Review the supplied bytes and report the missing context that affects the verdict. |\n\n- Use the three-dot form for branches: a two-dot diff shows the target's later commits as\n  reversed changes that the branch never made.\n- Inspect the final effective content as well as layer-specific changes when the request\n  calls for them. Keep local edits outside a committed-only verdict. Separate out-of-scope\n  material from in-scope bytes you could not inspect.\n- Read other revisions with `git show <rev>:<path>`, `git diff` and `git log`. In the\n  reviewed checkout run no `checkout`, `switch`, `stash`, `reset`, `commit` or `merge`, and\n  edit no file.\n- Resolve an ambiguous boundary from the request and the repository; ask when competing\n  boundaries would change the review.\n\nDone when both ends resolve to SHAs (or the WIP layers are captured), the diff is non-empty\nor the empty diff or unresolved ref is reported before any verdict, and the starting state\nis recorded.\n\n### 2. Find the requirement and standards sources\n\nSpec sources, in this order; the first match is the requirement and later ones add context:\n\n1. the request itself, or a path the user named;\n2. issue references in commit messages or the branch name, read from the repository's\n   tracker or issue files;\n3. spec or plan files under `docs\/`, `specs\/` or similar that match the feature.\n\nWith none found, ask. If there is none, mark Spec UNVERIFIED and judge the behavior against\nexisting contracts and the reasonable expectations in step 4.\n\nStandards sources: `CONTRIBUTING*`, `CODING_STANDARDS*`, `AGENTS.md` and `CLAUDE.md`,\ndecision records and ADRs, and lint or format configuration. Note what tooling already\nenforces; the review leaves those points to the tooling. Read the change description too:\nits first line stands alone and its body says why.\n\nDone when every source is listed by path for the Scope line, or its absence is recorded.\n\n### 3. Read the tests and gather evidence from the reviewed bytes\n\n- Read the affected tests before the implementation. For each, write down what it observes\n  and which wrong implementation would still pass it.\n- Check the author's verification story: what ran, what passed, what was only claimed.\n- Run tests and probes on the reviewed bytes. When the checkout is not exactly the reviewed\n  snapshot (another branch checked out, uncommitted or untracked edits outside the scope),\n  export the head to a disposable directory and work there:\n\n  ```bash\n  tmp=$(mktemp -d) && git archive <head> | tar -x -C \"$tmp\"\n  # run the suite and probes inside \"$tmp\"; rm -rf \"$tmp\" when done\n  ```\n\n  For a work-in-progress review the working tree is the snapshot; use it read-only.\n- **Mutation probe.** In the disposable copy, flip one condition the change adds (`>=` to\n  `>`, drop a negation, `and` to `or`), run the suite, then restore. A mutant that stays\n  green is a missing test: name the input that would catch it.\n\nDone when every test result you will cite came from the reviewed bytes and each test's blind\nspot is written down.\n\n### 4. Spec pass\n\n- Trace each requirement to implementation and tests. Check preserved caller behavior,\n  boundaries, failure paths and state transitions.\n- Classify each Spec finding as **missing or partial**, **implemented wrong**, or **not\n  asked for** (scope creep), and quote the requirement ID or line.\n- Flag deviations from the plan for the author to confirm, and problems in the plan itself.\n- The spec is a vision document. Where it is silent, a reasonable user's expectation is a\n  requirement, judged by its effect on that user. Ask of every state-changing path:\n  - the same request arrives twice (retry, double submit, replayed event);\n  - two requests arrive at once;\n  - the operation fails halfway, and what state is left;\n  - empty, zero, boundary, oversized or wrong-type input;\n  - a caller who is not the owner, or not signed in.\n\nDone when every requirement is marked met, partial, missing or wrong, and every\nstate-changing path has an answer to each of the five questions.\n\n### 5. Standards pass\n\n- Documented rules first. Cite the file and rule for each breach.\n- Then, in proportion to the change:\n  - correctness;\n  - readability: could it be fewer lines, does each abstraction earn its complexity, is\n    there a clever trick to simplify;\n  - architecture: does a refactor reduce complexity or only relocate it, does feature logic\n    leak into a shared module, does a near-duplicate replace an existing canonical helper,\n    is a type boundary explicit or hidden behind a silent fallback, does the change grow an\n    already-large file instead of decomposing it;\n  - security and performance, using the [checklists](resources\/checklists.md);\n  - production readiness when relevant: migration, backward compatibility, docs.\n- Follow affected callers or data across boundaries to confirm reachability.\n- Smells are judgement calls. A documented repo standard that endorses a pattern overrides\n  the smell, and a smell alone never blocks. Offer the named remedy from\n  [review-craft](resources\/review-craft.md) when you flag one.\n\nRun the Spec pass, then the Standards pass, inline. Independent passes in separate contexts\nhappen only under the delegation contract and the user's authorization.\n\nDone when every documented rule has been checked against the diff and each Standards finding\nnames its rule or principle.\n\n### 6. Filter before reporting\n\n- Check whether a caller, guard, contract or test already rules the candidate out.\n- Tie each finding to changed behavior, or to a pre-existing issue the change makes\n  reachable or materially worse. A defect in code the change neither touches nor exposes\n  goes under \"Pre-existing, outside this change\".\n- Separate a confirmed defect from missing evidence. Report a suspicion as unverified, with\n  the check that would settle it.\n- Name a focused reproduction or regression assertion when it would resolve uncertainty or\n  prevent recurrence.\n- Zero findings is a valid result.\n\nDone when each remaining finding carries its trigger, consequence and evidence.\n\n### 7. Report and leave the repository as found\n\nWrite the report in the [Output](#output) shape. Rerun the state command from step 1 and\ncompare it with the starting state; restore anything you changed and report any difference.\n\nDone when the report is written and the end state equals the start state.\n\n## Request a review\n\nUse before merging, after a major feature, after each task in multi-agent work, or when\nstuck. Read [requesting-review](resources\/requesting-review.md) and build the brief from it:\npinned SHAs or the exact patch with the contents of new files; requirement and standards\npointers; sensitive or unrelated files named as excluded, never their contents; the\ndecisions the reviewer should rule on; checks already run, separate from checks to run.\nDispatch an independent reviewer only under the delegation contract. Otherwise hand over\nthe brief, or run this procedure on your own change and label it a self-review.\n\n## Respond to review feedback\n\nRead [receiving-review](resources\/receiving-review.md) before replying or editing. In short:\nread everything, restate each item, verify each claim against the code, judge it for this\ncodebase, reply, then implement. Clarify unclear items before implementing anything they\ntouch. A decision the owner already made outranks a reviewer's preference: take the\nquestion to the owner and leave the code as decided. Push back once with evidence, then\nescalate. Each fixed defect gets a regression test that fails on the old code, and the full\nsuite runs at the end.\n\n## Rules for every review\n\n### Approval standard\n\nApprove a change that clearly improves the code's health, even when it is not how you would\nhave written it. Block on defects: unmet requirements, regressions, security or data-loss\nrisks, broken documented rules. Keep suggestions and nits optional. Blockers are fixed\nbefore merge, not promised for a follow-up; record agreed follow-ups in the review and\ncreate tracker items only with authority.\n\n### Honesty\n\n- Evidence before a verdict: a \"looks good\" without reading and checking helps no one.\n- State a real issue at its real severity; a production bug is not \"a minor concern\".\n- Quantify when you can (\"one extra query per item\"), rather than \"could be slow\".\n- Push back on approaches with clear problems and propose the alternative. When the author\n  has full context and overrides a non-blocking point, accept it.\n- Comment on the code, not the person.\n\n### Presumptive blockers\n\nSurface each of these and propose the simpler design. It becomes `[REQUIRED]` when the\nchange makes the structure worse: a refactor that relocates complexity instead of reducing\nit; a file pushed past about 1000 lines without decomposition; feature logic added to a\nshared module; a near-duplicate of an existing canonical helper; a silent fallback that\nhides an unclear invariant.\n\n## Shortcuts that weaken reviews\n\n| Shortcut | Reality |\n| --- | --- |\n| \"The tests pass, so it works\" | Tests show what they observe. Read what each observes and probe with a mutant. |\n| \"I ran the suite in my checkout\" | A checkout holding other edits tests other bytes. Run on the reviewed head. |\n| \"The spec says nothing about retries\" | Silence is not permission. Judge the effect on a reasonable user. |\n| \"It's a small diff\" | Small diffs still grow large files and bolt branches onto unrelated flows. Judge the resulting structure. |\n| \"AI-generated code is probably fine\" | It is confident and plausible when wrong, so it needs the same evidence. |\n| \"We'll clean it up later\" | Blockers are fixed before merge; optional items stay optional. |\n| \"The refactor makes it cleaner\" | Count the concepts a reader must hold. Moving them is not removing them. |\n| \"It's just a version bump\" | A bump is behavior you did not write. Read the changelog and the lockfile diff. |\n| \"Switching branches to compare is harmless\" | It changes the reviewed checkout. Read other revisions with `git show`. |\n\n## Red flags\n\n- A verdict with no requirement source and no UNVERIFIED Spec.\n- Test results that came from a checkout holding other edits.\n- The repository left on another branch, with a new stash, or with edited files after a review.\n- A two-dot branch diff reported as the change.\n- Findings without severity, or a blocker buried under nits.\n- A smell reported as a blocker against a documented repo standard that endorses the pattern.\n- A pre-existing defect in untouched code reported as this change's blocker.\n- A bug fix with no regression test.\n- A bulk dependency bump with no changelog review or lockfile diff.\n- \"LGTM\" with no evidence of what was read or run.\n\n## Ownership and permission boundary\n\nAndino coordinates selection, progress tracking and durable checkpoints; this skill owns its\nprocedure and verification criteria. A review reads and runs. Editing code, committing,\nposting review comments and dispatching a reviewer need the user's authorization, and a\ndispatched reviewer also needs the delegation contract. A reviewer starts no subagents of\nits own; it reviews a large change in passes and says so.\n\n## Output\n\nReport in this order:\n\n- **Scope**: the reviewed snapshot (base...head SHAs, or the WIP layers), the requirement and\n  standards sources, and excluded material.\n- **Verdict**: overall CHANGES REQUESTED, UNVERIFIED or NO BLOCKERS FOUND; Spec and Standards\n  each PASS, FAIL or UNVERIFIED; one line with the finding count and the worst issue per axis.\n- **Findings**, most severe first and one per root cause: `[SEVERITY] Axis \u00b7 file:line \u00b7\n  title`, then the trigger or input, the consequence, the evidence (observed run or\n  reasoning), the smallest practical remedy and the test that would catch it.\n  Cross-reference the other axis when it is affected. Say so when there are none.\n- **Tests**: what the existing tests observe, mutants that stayed green, missing tests.\n- **Checked and sound**: behaviors you verified as correct, one line each, only what you\n  checked.\n- **Pre-existing, outside this change**: defects in code the change neither touches nor\n  exposes, one line each, or \"none\".\n- **Verification and limits**: what ran (command and observed result), what was only read,\n  what others reported; the starting and ending repository state; evidence a verdict still\n  needs.\n- **Declined to Judge**: material you set aside and why, or \"none\".\n\n| Prefix | Impact |\n| --- | --- |\n| `[CRITICAL]` | Blocker with severe harm, such as an exploitable security break or unrecoverable data loss. |\n| `[REQUIRED]` | Blocker: a concrete regression, unmet requirement or enforceable project rule. |\n| `[SUGGESTION]` | Optional improvement with a specific benefit and a proportionate remedy. |\n| `[NIT]` | Optional cosmetic correction. At most three per review. |\n\nA confirmed blocker fails its axis. A material evidence gap without a confirmed blocker\nleaves the axis UNVERIFIED. Overall: CHANGES REQUESTED for any blocker, UNVERIFIED for a\nremaining material gap, NO BLOCKERS FOUND for completed coverage without blockers. Lead with\nwhat matters: one structural problem outranks ten nits.\n\n## Verification\n\nBefore sending the review:\n\n- [ ] Scope names exact SHAs or WIP layers and every requirement and standards source.\n- [ ] Every requirement has a mark; every state-changing path has answers to the five\n      questions.\n- [ ] Every documented rule was checked; a smell a repo rule endorses is not a finding.\n- [ ] Every finding has a severity, anchor, trigger, consequence, evidence and remedy.\n- [ ] Every test result came from the reviewed bytes; mutants and missing tests are listed.\n- [ ] Pre-existing defects are separate from this change's findings.\n- [ ] Ran, read and reported-by-others are separate, and nothing is claimed that was not done.\n- [ ] Both axis verdicts and the overall verdict follow the rules in Output.\n- [ ] The repository's end state equals its start state.\n\n## Worked example and anti-pattern\n\n[worked-example](resources\/worked-example.md) reviews a refund change whose order update and\naudit insert commit separately: one `[REQUIRED]` Spec finding with its trigger, a runnable\nSQLite proof of the partial write and of the fix, both axis verdicts, the missing failure\ntest, and how the author receives the finding.\n\nAnti-pattern: \"Looks good, 9 tests pass\", written after running the suite in a checkout that\nheld someone's uncommitted draft, with no requirement cited, no mutant tried, and the branch\nswitched to `main` to compare files and left there.\n\n## Fallback\n\n- Pasted diff only: review the bytes; list the context you lacked and the verdicts it leaves\n  UNVERIFIED.\n- No runnable tests, or no permission to run them: say so under Tests; the affected axis is\n  UNVERIFIED unless reading settles the question.\n- No spec: Spec is UNVERIFIED; existing contracts and the five questions still apply.\n- No git: inspect files read-only and compare the end state by file listing and content\n  hashes.\n\n## Local resources\n\n- [requesting-review](resources\/requesting-review.md): when to ask, the brief, the reviewer\n  template.\n- [receiving-review](resources\/receiving-review.md): the reception steps, trust and order,\n  reply style, pushback, disagreement order, GitHub replies.\n- [review-craft](resources\/review-craft.md): change size and splitting, smells and remedies,\n  dead code, dependencies.\n- [checklists](resources\/checklists.md): security and performance triggers; path containment\n  and negative caching in full.\n- [worked-example](resources\/worked-example.md): a full review with a runnable proof.\n- For depth: `andino-security-and-hardening` and `andino-performance-optimization`.\n\n## Provenance\n\nAdapted from these sources under the MIT license; notices are in\n[references\/license.md](references\/license.md):\n\n- `addyosmani\/agent-skills:skills\/code-review-and-quality` at commit e997ac5 (Addy Osmani)\n- `mattpocock\/skills:skills\/engineering\/code-review` at commit 6f7f783 (Matt Pocock)\n- `obra\/superpowers:skills\/requesting-code-review` and `skills\/receiving-code-review` at\n  commit 22f0b46 (Jesse Vincent)\n","use_cases":["Review a pull request or branch for compliance with repository standards","Act on review feedback for a change","Prepare a change for an independent reviewer","Verify that a change meets its specification and engineering standards"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/andinoferdi\/andino-skills\/blob\/639c62b294a835b77a167cc4af1aa1f306d0cc45\/skills\/andino-workflow\/skills\/code-review\/SKILL.md","source_commit":"639c62b294a835b77a167cc4af1aa1f306d0cc45","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T10:50:24.000000Z","updated_at":"2026-11-30T06:51:23.000000Z","seo_title":"Code Review under Andino Workflow","seo_description":"Review a change against its spec and the repository's standards, ensuring it meets both the requested functionality and documented engineering practices.","seo_keywords":["code review","Andino Workflow","spec compliance","engineering standards","pull request review"]}}