review-readability
Skill0 starsChanged 2 months agoMITView on GitHub
Review Jujutsu revision changes from jj show and propose simplifications, more idiomatic code, and better consistency with surrounding patterns.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- otsaloma/agent-setuptheir own version, first seen Sep 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- otsaloma/agent-setup★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- handoffSkill
- implem-brakeSkill
- resume-handoffSkill
- review-auto-loopSkill
- review-correctnessSkill
- review-docsSkill
- review-judgeSkill
- review-testsSkill
- rust-project-maintenanceSkill
- settle-discussionSkill
- summarize-changeSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
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
- Distinctive: line 12
Follow the common review instructions: @../review-common.md
- Distinctive: line 30
Delete a special case that earns nothing: a branch, parameter or abstraction handling a state the production code cannot reach, a …
- Very specific: line 33
Use idiomatic, self-documenting interfaces.
- Distinctive: line 55
When proposing to delete code as unneeded, show what makes the state impossible: an invariant, a type, or the complete set of call sites.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Review readability of Jujutsu changes
Review the Jujutsu changes for the target revision, and propose ways to improve the code — above all by cutting its line count, and further by making it more idiomatic and consistent with the patterns the surrounding code already uses.
Follow the common review instructions: @../review-common.md
Main goals
The leading goal is to reduce the code's line count: fewer lines to read and maintain. A small increase is fine when it buys a worthwhile readability, maintainability, or consistency gain; when the trade-off is roughly even, favor fewer lines.
Keeping that as the primary goal, also make the code:
- Lower in cognitive and cyclomatic complexity
- More idiomatic and least surprising for a reader used to the language and its conventions
- Consistent with the patterns the surrounding code already establishes — error handling, logging, naming, and structural conventions — preferring the established form even when a diverging one would work
- Easier to read and navigate
- Equivalent in intent and main effects; minor implementation side effects not covered by tests (logging statements, and other incidental behavioral details) may change
The work of updating tests is never an argument against a simplification: if code can be simplified but doing so requires changing tests, make the change anyway. Prefer less test coverage over high test coverage for complex code. However, when code is shaped a certain way only because there is no other way to test it, that is a valid reason to leave it as is.
Opportunity examples
- Delete a special case that earns nothing: a branch, parameter or abstraction handling a state the production code cannot reach, a generalization with a single caller, or configurability nothing varies
- Factor similar code together
- Rely on existing standard library code rather than custom code
- Use idiomatic, self-documenting interfaces; for example, Python
__str__or RustDisplayrather than a customto_stringmethod - Rely on types rather than unenforced conventions
- Align a diverging error-handling, logging, or naming pattern with the one prevailing in the module
- Where it helps, split a large source file into smaller modules with clear responsibilities
Python specific
- Replace loops with list comprehensions or
itertoolsfunctions- the
more_itertoolsdependency can be added if it helps
- the
- Where
argparsesupports it, express type constraints and cross-argument validation (for example mutually exclusive arguments) in the parser itself rather than in checks after parsing
Rust specific
- Use combinators liberally
- the
itertoolsdependency can be added if it helps
- the
Additional instructions
Rank the items that remove the most lines first.
Anchor severity to what the code costs whoever reads it next: major for a shape that actively misleads — a name or a pattern that suggests behavior the code does not have, or density enough to hide a defect from a reader looking for one; minor for everything else, including most line count savings. Readability has no critical: code that merely reads badly still runs.
When proposing to delete code as unneeded, show what makes the state impossible: an invariant, a type, or the complete set of call sites. Without it, drop the item.
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
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.

