simple-code-review
Skill1 starsChanged 43 days agoMITView on GitHub
Review code for security, accessibility, code quality, and performance. Reports findings by severity, does not fix unless asked.
In this repository15 other files it gives its agents.
- simple-cantoneseSkill
- simple-checkSkill
- simple-chineseSkill
- simple-cloudflareSkill
- simple-commitSkill
- simple-debugSkill
- simple-full-refactorSkill
- simple-launchSkill
- simple-orchestratorSkill
- simple-readmeSkill
- simple-refactorSkill
- simple-releaseSkill
- simple-restructureSkill
- simple-supabaseSkill
- simple-text-cleanupSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
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 21
Ask which to run, unless the user already said:
- Distinctive: line 28
If the user has no preference, run all four.
- Distinctive: line 54
No keyboard navigation or visible focus
- Distinctive: line 95
Only report issues you can point to in the code.
≈ “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
Simple Code Review
Review the code by module. The checklists cover common issues, not everything. Use judgment on what applies to this codebase, and report any obvious issue you find even if it is not listed.
Scope
Review what the user points at. If nothing is specified, review the current diff, or the files changed in this session. Ask before reviewing the whole codebase.
Modules
Ask which to run, unless the user already said:
- Security
- Accessibility
- Code Quality
- Performance
If the user has no preference, run all four.
1. Security
Goal: find serious security holes.
Frontend:
- XSS (
dangerouslySetInnerHTML, unescaped user input) - Sensitive data exposed in client code
- Hardcoded secrets, tokens, or API keys
Backend:
- SQL injection, especially raw queries built with string interpolation
- Command injection in subprocess or shell calls
- SSRF in server-side HTTP calls that use user-supplied URLs
- Insecure deserialization (
pickle,yaml.loadwithout a safe loader) - Path traversal in file operations
- Missing authentication or authorization on protected endpoints
- Insecure direct object references, such as queries not scoped to the current user
- Hardcoded secrets or credentials
2. Accessibility
Goal: find obvious issues that hurt users. Frontend only.
- Missing labels on interactive elements
- No keyboard navigation or visible focus
- Non-semantic HTML where a proper element exists
- Poor color contrast in custom styling
- Images without alt text
3. Code Quality
Goal: keep the code maintainable and consistent.
- Duplication, extract at 3 or more identical uses
- Functions or components doing too much, if you need "and" to describe it, split it
- Deep nesting, prefer early returns and guard clauses
- Magic numbers and strings without named constants
- Poor naming: vague names (
data,temp), misleading names, booleans withoutis/has/can/should - Missing error handling or error boundaries
- Boolean parameters that switch behavior, prefer two functions or components
- Files over about 500 lines
console.logor debug leftovers in production code- Code written for future needs with no present use (YAGNI)
4. Performance
Goal: find issues that seriously affect users.
- N+1 queries, especially DB calls inside loops
- Missing indexes on frequently queried columns
- Large result sets loaded without pagination
- Blocking operations in async code
- Memory leaks, such as unbounded caches or retained references
- Missing caching for repeated expensive work
- Frontend: unnecessary re-renders, oversized bundles, unoptimized images
Output
Give the total issue count, then list each issue with:
- Severity: Critical, High, Medium, Low, or Optional
- Category and
file:line - What is wrong, and why it matters
- Suggested fix
Only report issues you can point to in the code. Do not change code unless the user asks.
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.

