Agent Skillspydantic/monty › review-usability

review-usability

GitHub

针对LLM生成的Python代码进行可用性审查,通过对比CPython与Monty引擎在常见用法下的执行结果,识别静默差异或行为分歧,确保兼容性和正确性。

.agents/skills/review-usability/SKILL.md pydantic/monty

Trigger Scenarios

需要检查分支对LLM常用Python模式的支持情况 寻找与CPython行为不一致的潜在Bug

Install

npx skills add pydantic/monty --skill review-usability -g -y
More Options

Non-standard path

npx skills add https://github.com/pydantic/monty/tree/main/.agents/skills/review-usability -g -y

Use without installing

npx skills use pydantic/monty@review-usability

指定 Agent (Claude Code)

npx skills add pydantic/monty --skill review-usability -a claude-code -g -y

安装 repo 全部 skill

npx skills add pydantic/monty --all -g -y

预览 repo 内 skill

npx skills add pydantic/monty --list

SKILL.md

Frontmatter
{
    "name": "review-usability",
    "description": "Check whether the common Python code an LLM would plausibly write still works on this branch, testing real cases in .\/playground against CPython. Use to find behaviour that diverges from CPython or trips up ordinary idiomatic code."
}

Usability review

Monty exists so LLMs can write Python that calls tools. Real usage is therefore the most common patterns, not exotic corners — and a divergence in a common pattern is the worst kind of bug, because the model has no way to know it must write something else.

Think hard on this one.

git diff origin/main...HEAD
  1. For each feature the branch touches, list the idioms a model reaches for first — the obvious method, argument form, combination with another builtin. Include ones the branch does not handle; that's where the gaps are.

  2. Write real test files in playground/ (see python-playground), named recognisably.

  3. Run each under both and diff:

    uv run playground/test_thing.py        # CPython
    cargo run -- playground/test_thing.py  # Monty
    
  4. Prioritise silent divergence — same code, different result — over a clean AttributeError. A missing feature that raises is recoverable; a wrong answer isn't.

An undocumented divergence is also a ./limitations/ finding.

Report

Per divergence: the code, CPython's output, Monty's output, how likely a model is to write it. Then unsupported-but-common idioms with the error the user sees, and briefly what worked — it bounds the review. Leave the playground files in place.

Report only, unless the user asks for fixes.

Version History

  • 026b383 Current 2026-08-20 09:39

Same Skill Collection

.agents/skills/fastmod/SKILL.md
.agents/skills/fix-pr-comments/SKILL.md
.agents/skills/python-playground/SKILL.md
.agents/skills/review-general/SKILL.md
.agents/skills/review-security/SKILL.md
.agents/skills/review-verbosity/SKILL.md
.agents/skills/writing-style/SKILL.md

Metadata

Files
0
Version
026b383
Hash
2700f9a4
Indexed
2026-08-20 09:39

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 21:09
浙ICP备14020137号-1 $방문자$