code-mentor
Skill4 starsChanged 40 days agoMITView on GitHub
Trigger: code review, review my code, revisa mi código, code feedback, mentor review. Mentor-style review: bugs, security, design risk.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- weininghui/skillstheir own version, first seen Oct 30, 2026
- jcerise/agent-skillstheir own version, first seen Aug 23, 2026
- dknauss/code-design-review-skillstheir own version, first seen Apr 26, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- weininghui/skills★ 1same name
- dknauss/code-design-review-skills★ 0same name
- jcerise/agent-skills★ 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 repository18 other files it gives its agents.
- api-designSkill
- changelog-maintenanceSkill
- create-readmeSkill
- database-designSkill
- dockerSkill
- frontend-design-anti-slopSkill
- frontend-engineeringSkill
- git-commitSkill
- github-essentialsSkill
- java-junitSkill
- java-springbootSkill
- java-springboot-testingSkill
- latexSkill
- solution-designSkill
- ui-componentsSkill
- update-readmeSkill
- vault-tech-noteSkill
- web-mvcSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
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 19
Do not load to debug a failure the user already reported, for linting and formatting, or for a refactor the user has already decided to …
- Very specific: line 29
Trace before claiming: Verify each bug by following the real path with realistic input.
- Distinctive: line 45
If the review scope is unclear, ask once which files or diff, then review only that.
- Distinctive: line 49
Set scope: Read the target plus the callers and config needed to judge behavior.
- Distinctive: line 51
Assess design risk: Ask only whether this will be expensive to change or will hide a defect within the next few features.
- Distinctive: line 52
Delete noise: Remove style preferences, hypothetical needs, unneeded patterns, and defect-less rewrites.
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Files
Code Mentor
Review code the way a good senior mentor does: explain the reasoning, judge the work against its real scope, and refuse to manufacture findings. The author wants to learn and ship working projects, not to reach perfect code.
Activation Contract
Load when the user asks to review, critique, or give feedback on code they wrote; asks "is this good?" before shipping or before growing a feature; or wants to understand why a design decision is a problem, not only how to fix it.
Do not load to debug a failure the user already reported, for linting and formatting, or for a refactor the user has already decided to make.
Hard Rules
- Every finding names a consequence. What breaks, what it costs, when it appears. No current consequence means it is not a finding.
- Fixed priority. Correctness bugs and security first; then design problems with a real maintenance cost. Style, naming taste, and structure preference are never findings.
- Never propose another way to write working code. "Cleaner" is not a review. A change requires wrong behavior, exposure, or demonstrated cost.
- No pattern, abstraction, or SOLID pressure. Name a pattern only when its absence causes a specific current problem: a duplicated rule already drifting, logic untestable, one change forcing edits in many places. A single-implementation interface is not a defect.
- Judge the stated scope. Small scripts and prototypes may stay simple. Missing layers, genericity, or scale features are not defects when nothing needs them yet.
- Deliver a verdict. State plainly whether the code is good enough for the current scope. Zero blockers is a valid and common result; never invent findings to look thorough.
- Trace before claiming. Verify each bug by following the real path with realistic input. Mark anything unchecked
Unverifiedand say what would confirm it. - Minimum diff. Show only the changed lines plus the reason. No rewrites of working code, no "while we are here" cleanups.
- Teach once, briefly. Explain the transferable principle where it applies. No scoring, grading, or lecture.
- Respect the author's constraints. They may know requirements you do not. Say a decision is legitimate when it is, and explain the trigger scenario when it is a real risk.
Decision Gates
| Severity | Definition | Include |
| Blocker | Wrong result, crash, data loss, security exposure | Always, with the minimal fix |
| Worth fixing | Cost that grows: a drifting duplicated rule, swallowed error, coupling that blocks the next change | Yes, with the cost named |
| Optional | Readability with no current cost | At most two lines, or omit |
| Noise | Alternative style, unused pattern, hypothetical future | Omit |
Report immediately when a security or data-integrity blocker makes the rest of the review conditional.
If the review scope is unclear, ask once which files or diff, then review only that.
Execution Steps
- Set scope. Read the target plus the callers and config needed to judge behavior. State the scope in one line.
- Hunt defects. Wrong output on realistic input, empty and boundary cases, unhandled failures, unsafe input, secrets, missing authorization, leaks. Trace every candidate.
- Assess design risk. Ask only whether this will be expensive to change or will hide a defect within the next few features. Otherwise drop it.
- Delete noise. Remove style preferences, hypothetical needs, unneeded patterns, and defect-less rewrites. What survives is the review.
- Rank and write. Order by severity, then by cost of not fixing. Explain the failure scenario, not the theory.
Output Contract
Verdict: <good enough for current scope | good enough, fix X | needs work because Y>
Blockers
- <file:line> — <what happens> — <why it matters> — <minimal fix>
Worth fixing
- <same shape, shorter>
Optional
- <at most two>
Lesson
- <one transferable idea, only if it adds value>
Not reviewed
- <scope limits and unverified assumptions>Omit empty sections instead of writing "none". One sentence of reasoning per finding; never rewrite the file.
References
references/review-examples.md: noise versus justified findings, and how the same code reads as mentor feedback.
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.

