agentleFS
diegoferigodiegoferigo/dotfiles/.github/skills/code-review/SKILL.md

code-review

Skill4 starsChanged 21 days agoMITView on GitHub

Reviews pull requests, diffs, and branches in this repo, with attention on findings that are high-signal instead of already owned by CI. Use whenever the user asks for a review, a re-review, or a sanity check of code or docs changes.

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • PydanticSkill

    add-new-model

    Add support for a newly-released language or image generation model in pydantic-ai (e.g. openai:gpt-5.6, anthropic:claude-sonnet-5, openai:gpt-image-2). Use when a provider ships a new model id and you need to wire literals, profile flags, adapters, and tests to recognize it. Handles SDK-lag, gateway list conventions, capability probing, and direct image-model geometry.

    Also in 9 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • Microsoft AzureSkill

    azsdk-common-apiview-feedback-resolution

    Analyze and resolve APIView review feedback on Azure SDK PRs. **UTILITY SKILL**. USE FOR: APIView comments, API review feedback, SDK API surface changes. DO NOT USE FOR: general code review, non-APIView feedback. INVOKES: azure-sdk-mcp:azsdk_apiview_get_comments, azure-sdk-mcp:azsdk_customized_code_update, azure-sdk-mcp:azsdk_typespec_delegate_apiview_feedback, azure-sdk-mcp:azsdk_run_typespec_validation, azure-sdk-mcp:azsdk_package_generate_code.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    azsdk-common-generate-sdk-locally

    Generate and finalize Azure SDKs locally from TypeSpec, including build, checks, tests, changelog, metadata, and version updates by default. WHEN: "generate SDK locally", "build SDK", "run SDK tests", "run CI checks", "validate package", "run checks", "update changelog", "fix SDK build errors", "resolve SDK generation errors", "customize TypeSpec", "rename SDK client", "rename SDK model", "hide operation from SDK", "fix analyzer errors", "resolve customization drift", "create subclient", "update metadata", "update version". INVOKES: azsdk_verify_setup, azsdk_package_generate_code, azsdk_package_build_code, azsdk_package_run_check, azsdk_package_run_tests, azsdk_customized_code_update, azsdk_package_update_changelog_content, azsdk_package_update_metadata, azsdk_package_update_version.

    Also in 6 projects that use this

  • +4 more from dzhng
  • +2 more from Azure

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 184 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before judging a line, establish what the change is trying to do and whether the repo already documents a decision about it.

    line 15
  2. Distinctive:

    Do not anchor on the edited lines.

    line 27
  3. Distinctive:

    When reviewing docs-only changes, still verify the described behavior against the code instead of assuming the prose is correct.

    line 49
  4. Very specific:

    Keep each finding self-contained.

    line 63

“Common” is measured: kept by at least 6 in 10 of the 184 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Reviewing changes in dotfiles

Review for real defects, stale docs, and behavior drift, not for nits. Read AGENTS.md first, especially the repo structure, Python style, architecture, agent-skills, and testing sections, then treat pixi.toml and .pre-commit-config.yaml as the other sources of truth for what the toolchain runs.

Understand intent first

Before judging a line, establish what the change is trying to do and whether the repo already documents a decision about it. Read the issue, PR description, and relevant comments when they exist, then check whether AGENTS.md already fixes the expected behavior, invariants, or workflow.

Hold every finding to evidence from the code or docs. A diff can be internally clean and still be the wrong change if it breaks a documented invariant or leaves the docs behind.

What CI already owns

CI and hooks own ruff, pyright, shellcheck, tombi, mdformat, and pytest. Do not spend review comments on issues those checks should catch. CI runs pixi run hooks, pixi run test, gitleaks for known secret patterns, and a Codespaces bootstrap job. Skip cosmetic nits and formatting.

The review should add value where automation is weak: semantics, drift from the repo's documented workflow, stale architecture docs, broken rollback behavior, ownership mistakes, unsafe secret handling, and misleading tests.

Zoom out beyond the diff

Do not anchor on the edited lines. Check the surrounding workflow and the untouched consumers that still rely on the changed behavior.

In this repo, always check these surfaces when they are relevant:

  • AGENTS.md stays in sync with the code, especially the repo tree, key components table, CLI behavior, and test list.
  • Behavior-neutral refactors stay behavior-neutral. Flag any hidden behavior change, reordered side effect, or loss of guard/rollback semantics.
  • Secrets are never printed, committed, or echoed in review evidence. Redact values and treat accidental disclosure risk as a top-severity finding.
  • Rollback and ownership semantics stay intact. A change that skips a backup, loses manifest ownership, clobbers a .local backup, or weakens uninstall or update safety is a serious bug.
  • Tests clone committed HEAD, not the working tree. If a test change assumes unstaged code, or a code change claims coverage without the needed commit, flag it.
  • .local/bin/dotfiles is a single-file pixi exec shebang script. Check startup, dependency assumptions, and CLI entry-point behavior as one unit.
  • Install and update flows stay idempotent. Re-running bootstrap, --update, secret apply, or uninstall should not duplicate work, drift state, or degrade backups.

Where to apply judgment

Focus on defects a static check will miss:

  • Contradictions with AGENTS.md, pixi.toml, or .pre-commit-config.yaml.
  • Partial doc updates that leave the architecture or test strategy stale.
  • Incorrect backup, restore, sparse-checkout, autostash, secret, or manifest logic.
  • Refactors that claim no behavior change but alter prompts, rollback order, state ownership, exit status, or what gets written to $HOME.
  • Tests that assert the wrong contract, miss the risky path, or stop proving the documented behavior.

When reviewing docs-only changes, still verify the described behavior against the code instead of assuming the prose is correct.

Severity levels

  • blocker: secret exposure risk, data loss, broken rollback or ownership semantics, false or dangerous docs, or a change that can leave a machine unrecoverable.
  • major: wrong behavior, broken idempotence, stale AGENTS guidance, invalid test coverage claims, or a regression likely to affect normal bootstrap or update use.
  • minor: real but limited correctness or maintainability issue that CI does not own.

Output format

Report only findings worth action. Use this shape for each one:

- [severity] path/to/file:line - finding Evidence: short quote or concrete behavior, plus the source of truth it contradicts.

Keep each finding self-contained. Include file:line, evidence, and severity. Skip padding, praise, and nits CI already owns.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.