agentleFS
jscott3201jscott3201/yet-more-skills/skills/python-review/SKILL.md

python-review

Skill4 starsChanged 2 months agoApache-2.0View on GitHub

Use to review a Python patch for reachable correctness, resource-lifetime, testing, typing, packaging, or native-boundary defects. Not a request for a rewrite, style-only critique, or an extra approval gate.

8 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use go-review.

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.
  • TheKREATORSSkill

    go-review

    Comprehensive Go code review for idiomatic patterns, concurrency safety, error handling, and security. Invokes the go-reviewer agent.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow the repository's existing review and delivery rules.

    line 9
  2. Distinctive:

    Read the patch, relevant original code, tests, Python floor, environment and dependency declarations.

    line 13
  3. Distinctive:

    Prefer a minimal fix plus regression test.

    line 29
  4. Distinctive:

    Read review examples for the evidence bar.

    line 33

“Common” is measured: kept by at least 6 in 10 of the 7 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

Python Correctness Review

Follow the repository's existing review and delivery rules. Remain read-only unless asked to repair code. Review the changed behavior and its callers; do not expand a bounded patch into a redesign or add an approval cycle.

Establish the real execution context

Read the patch, relevant original code, tests, Python floor, environment and dependency declarations. Confirm whether the consumer runs a script, source checkout, editable package, installed wheel, or embedded/native extension. A module import resolving to the wrong copy can invalidate an otherwise convincing test report.

Identify input domain, normal and exceptional exits, state transitions, resource ownership, and observable return/exception contracts. Trace at least one reachable failure path before raising a defect. Separate source evidence, reproductions, hypotheses, and unrun checks.

Review semantics before style

Look for truthiness replacing missing-value handling, bool/int or datetime/date confusion, mutable defaults and shared state, lossy numeric conversions, unbounded queues/caches, leaked files/tasks, swallowed cancellation, and invalid retry assumptions. Check error context without exposing secrets. Type annotations, successful imports, and high line coverage are not runtime guarantees.

For async work, trace loop affinity, every background task, cancellation after external side effects, and teardown. For worker pools, examine process creation and object serialization, shared-state synchronization, and multiplicative parallelism. Do not assume the GIL supplies application locking or that free-threading support implies subinterpreter compatibility.

For PyO3 work, inspect the Rust implementation and stubs together: owner lifetime, borrow guards, callbacks under locks, detach boundaries, exception mapping, returned awaitable type, interpreter finalization, and installed-wheel behavior. Use the relevant pyo3 specialist when present; a generic unsafe-code checklist does not replace boundary reasoning.

Judge evidence and propose the smallest repair

Ask whether a failing regression would detect the alleged problem. A round trip through the same native implementation is not an independent oracle. Check no-tests/all-skipped outcomes, development-only dependencies hiding packaging errors, and ordinary CPython being mislabeled as a free-threaded run. Run focused reproductions only when permitted and safe.

Prefer a minimal fix plus regression test. Do not recommend broad except/pass, new blanket retries, blanket ignore rules, unsolicited framework swaps, or suppression of failing native checks. Performance claims need comparable measurements, not intuition about Python versus Rust.

Return only actionable findings with severity under the existing rubric, location, trigger, impact, evidence, and proposed correction. State no findings when appropriate, together with coverage limits. Do not manufacture an issue to fill a review template.

Read review examples for the evidence bar.

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.