---
name: code-review
description: "Must apply when reviewing or accepting maintained-code changes."
last-changed: "2026-08-22"
title: code-review
canonical_url: https://skilld.dev/gh/igorwarzocha/howaboua-pi-stuff/code-review
last_updated: 2026-09-24T02:47:01.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install igorwarzocha/howaboua-pi-stuff/code-review`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/code-review`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/igorwarzocha/howaboua-pi-stuff/code-review) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/code-review`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/code-review --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/code-review --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

Load an applicable codebase hygiene skill and apply it throughout.

Judge two concerns independently:

- **Intent and correctness:** the requested behavior is complete, with no unrequested behavior or regression.
- **Codebase hygiene:** ownership, contracts, execution, lifecycle, tests, and file boundaries remain coherent.

Never let one concern excuse failure in the other. Treat implementation, tests, comments, types, and documentation produced from the same premise as one evidence source. Agreement within the patch is not independent proof.

## 1. Establish scope

1. Resolve the intended base. Inspect the full diff and commit range, not only the last commit.
2. Read the request, acceptance criteria, complete changed files, affected callers, public contracts, tests, configuration, and runtime registration.
3. Trace changed behavior from a real entry point to its result or effect. Confirm tests reach the production path.
4. Record claimed behavior, missing or partial requirements, unrequested scope, and behavior that must remain stable.
5. Separate observed requirements, compatibility assumptions, and reviewer inference. Ask only when the distinction changes the verdict.

## 2. Establish evidence

Prefer:

1. explicit acceptance criteria and confirmed product decisions
2. public compatibility contracts, persisted formats, protocols, and observed external behavior
3. stable prior behavior when compatibility is required
4. independent callers or implementations with matching semantics
5. tests, comments, names, and implementation structure

Identify the one or two facts the change relies on for safety, including facts beyond direct callers. Prove each with source evidence, an unreachable failure path, an executable check, or the running artifact. Mark unproved claims as unproved.

## 3. Challenge each material claim

Choose the cheapest decisive falsifier:

- **Regression:** reproduce the failure or exact old path. Confirm the cause is removed rather than hidden by a guard, retry, fallback, or catch.
- **Boundary logic:** probe supported transitions around empty, singleton, first, last, missing, duplicate, zero, limits, and ordering.
- **Refactor or optimization:** compare observable behavior before and after on representative supported inputs. Judge differences against the contract.
- **State or lifecycle:** probe illegal order, repetition, partial failure, cancellation, retry exhaustion, cleanup, shutdown, and ownership transfer.
- **Serialization or compatibility:** round-trip real supported data. Inspect old readers, writers, stored data, and version boundaries.
- **Test:** name a plausible wrong implementation the test rejects. For regressions, demonstrate fail-before and pass-after when practical. Registration, rendering, symbol existence, type validity, and mock choreography are not evidence.
- **External integration:** verify the project-owned boundary. Use controlled real-provider evidence when compatibility itself matters. A hand-built double cannot prove an external API.

Use concrete inputs, callers, and local comparisons before fuzzing, mutation campaigns, property frameworks, generated corpora, new dependencies, or elaborate harnesses. Existing machinery earns use only when it supplies a real oracle at proportionate cost.

Challenge the proof:

- Assertions can fail and reach changed production behavior.
- Fixtures inhabit the supported contract rather than invented data.
- Filters, catches, retries, and fallbacks do not hide failure.
- Types and schemas are not mistaken for runtime proof.
- No broad ignore, unsafe cast, skipped file, weakened assertion, silent fallback, deleted useful test, or compatibility wrapper exists only to pass checks.
- No old implementation, bypass, duplicate registration, or unmigrated consumer remains.
- A green suite proves only what that suite tested.

## 4. Report

Report a finding only when a requirement or compatibility contract supports a reproducible failure, or hygiene evidence shows concrete risk from ownership, hidden behavior, lifecycle, verification, or navigation.

Each finding needs:

- severity and specific title
- primary file and symbol
- violated requirement, contract, repository rule, or hygiene principle
- trigger and execution path
- concrete consequence
- independent evidence or minimal reproducer
- smallest credible correction

Rank severity by consequence and realistic reach. Group symptoms under one cause. Reject speculative edge cases, generic best practices, style preferences, and demands for tests without a protected failure.

Lead with findings and put the strongest evidence under each. Then report checks and material residual risk. If none survive, say no material finding was established within the inspected paths and challenges. Never call the change correct.

Stay read-only during review-only work. Stop when each material claim faced a decisive challenge, further checks repeat existing evidence, or remaining uncertainty requires a product decision or unavailable external system.
