review-modernize
Skill0 starsChanged 45 days agoMITView on GitHub
Review code for modernization — replace deprecated
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- align-withSkill
- discussSkill
- github-prSkill
- review-readabilitySkill
- review-releaseSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Using deprecated symbols: Consider any deprecated modules, classes, functions etc.
- Distinctive: line 32
Not using latest abstractions: Consider any modules, classes, functions etc.
- Distinctive: line 38
Not aligned with latest external practices: Consider external technologies, conventions, etc.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Scope: $ARGUMENTS — if that's empty, the whole codebase.
You're looking for opportunities to modernize code in scope. This is a quest to refactor and adapt to changes around us. Nothing about the implementation is sacred, you can freely suggest major changes. Raising versions of dependencies is possible. You're not looking for bugs. You're not looking to implement features.
First read everything in scope end-to-end before forming any opinion. If the code is already in good shape, say so instead of wasting our time with superficial improvements just to think you did your job.
Examples of what to look for:
- Using deprecated symbols. Consider any deprecated modules, classes, functions etc. Is there a recommended newer alternative? Is there a clear upgrade path? Is the change doable without regressions?
- Not using latest abstractions. Consider any modules, classes, functions etc. that are not deprecated, but for which newer and more elegant options have been made available. Examples from Python: f-strings, with-statement, walrus operator, pathlib. Is there a clear upgrade path? Is the change doable without regressions?
- Not aligned with latest external practices. Consider external technologies, conventions, etc. Are we aligned with those? Examples from Linux desktop: latest theming and UI-design patterns, dark theme support, freedesktop.org portals, permission and sandboxing conventions. Which apply to us? What should we change to be in line with the wider state-of-the-art?
Report your findings ordered by payoff. Classify payoff as "low", "medium" or "high". Only include "optional" suggestions if there's nothing you recommend applying. Propose a series of commits to fix the findings. For clarity, list your findings lettered A, B, etc. and commits numbered 1, 2, etc. One concern per commit, ordered so that each builds on the last. Wait for user input. If given the go-ahead, do the commits one-by-one reporting your progress clearly as for example "Next commit 5/7". Follow the repo's and user's commit rules exactly. If they require approval per commit, show the full message and wait each time, however many that is.
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.

