AGENT SKILL

python-review

Python code review specialized for AI/MLOps/agent codebases — typing (pyright), async correctness, agent-loop invariants, ML reproducibility, model serialization safety. Triggered by "review Python", "review this agent code", "review the training pipeline", or /python-review

License 许可
MIT
最近更新
2026-10-13
Stars
★ 4
Forks
1

01 前言 Front Matter

name
python-review
tools
[ "Read", "Grep", "Glob", "Bash" ]
description
Python code review specialized for AI/MLOps/agent codebases — typing (pyright), async correctness, agent-loop invariants, ML reproducibility, model serialization safety. Triggered by "review Python", "review this agent code", "review the training pipeline", or /python-review
user-invocable
true
disable-model-invocation
true

02 资源文件 2

03 SKILL.md 正文

Python Review

Systematic Python review for AI/MLOps/agent codebases. Flags correctness, typing, async, agent-loop, and reproducibility issues — not style that formatters own.

Process

  1. Static analysis (run only the tools the project already configures; never install anything into the project):

    • pyright on changed files when the project uses it (or mypy if that is the project's checker — check pyproject.toml / mypy.ini / setup.cfg).
    • ruff check on changed files when the project configures ruff.
  2. Walk checklist (see references/python-review-checklist.md):

    • Core correctness & typing, async correctness, agent-building invariants, ML reproducibility & serialization safety, packaging & environment.
  3. Report findings:

    • file:line for each issue
    • Category: correctness / security / reproducibility / performance
    • Severity: must-fix / should-fix / consider
    • Suggested fix (code snippet)

Dispatched mode (pr-review integration)

When invoked by the pr-review dispatcher, read references/python-review-checklist.md, review ONLY the changed lines in the PR diff, and return a findings list. Each finding has:

  • file — repo-relative path
  • line — NEW-file / RIGHT-side line number
  • description — 1–2 sentences
  • category — correctness / security / reproducibility / performance
  • severity — must-fix / should-fix / consider
  • reason — which checklist item flagged it

Take no external actions in dispatched mode — findings are returned as data.

Scope

Changed files only unless explicitly asked for a full-package review.

Gotchas

  • Don't flag style that black/ruff already handle.
  • Don't demand type annotations on private helpers in an untyped codebase — type the public boundaries first.
  • Respect the project's framework choices; review within them, don't rewrite.
  • Guard every static-analysis command: run it only if the repo configures it.

04 同仓库更多 Skills

ArangoGutierrez
ArangoGutierrez/claude-toolkit

update-cursor-settings

Modify Cursor/VSCode user settings in settings.json. Use when you want to change editor settings, preferences, configuration, themes, font size, tab size, format on save, auto save, keybindings, or any settings.json values.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

update-cli-config

View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

statusline

Configure a custom status line in the CLI. Use when the user mentions status line, statusline, statusLine, CLI status bar, prompt footer customization, or wants to add session context above the prompt.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

split-to-prs

Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

shell

Runs the rest of a /shell request as a literal shell command. Use only when the user explicitly invokes /shell and wants the following text executed directly in the terminal.

★ 4
ArangoGutierrez
ArangoGutierrez/claude-toolkit

sdk

Guide users building apps, scripts, CI pipelines, or automations on top of the Cursor SDK - TypeScript (`@cursor/sdk`) or Python (`cursor-sdk` / `cursor_sdk`). Use when the user mentions integrating, installing, or writing code against the Cursor SDK; says `Agent.create`, `Agent.prompt`, `Agent.resume`, `agent.send`, `run.stream`, `run.messages`, `CursorAgentError`, `@cursor/sdk`, `cursor-sdk`, or `cursor_sdk`; asks to run Cursor agents programmatically from a script, CI/CD pipeline, GitHub Action, backend service, or other code outside the Cursor IDE; wants to pick between local and cloud runtime, configure MCP servers for an SDK agent, or handle streaming, cancellation, or errors; or is wiring Cursor into an automation, bot, or REST `/v1/agents` migration. Use eagerly rather than answering from memory; the SDK surface evolves and this skill is the source of truth for the external packages.

★ 4