code-review-and-quality
Skill2 starsChanged 40 days agoMITView on GitHub
Use when reviewing Android code (own or others'). Five-axis review framework: Correctness, Readability, Architecture, Security, Performance. Categorized findings with Kotlin/Compose-specific checks.
81 other projects use a version of this.
Adopted by
Most recently taken up by
- thistleknot/skillstheir own version, first seen Nov 8, 2026
- xuweizhengo/skills-hubtheir own version, first seen Nov 8, 2026
- ishandutta2007/Awesome-Agent-Skillstheir own version, first seen Nov 8, 2026
- enes-alatas/spooltheir own version, first seen Nov 8, 2026
- MMACABRE/SKILLStheir own version, first seen Nov 8, 2026
- gopalparashar421/agent-skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use modern-web-guidance, minimalist-ui and 3 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
JetBrainsSkillmodern-web-guidance
Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.
Also in 3 projects that use this
AnasX7Skillminimalist-ui
Clean editorial-style interfaces. Warm monochrome palette, typographic contrast, flat bento grids, muted pastels. No gradients, no heavy shadows.
Also in 5 projects that use this
GitHubSkillconventional-commit
Prompt and workflow for generating conventional commit messages using a structured XML format. Guides users to create standardized, descriptive commit messages in line with the Conventional Commits specification, including instructions, examples, and validation.
Also in 3 projects that use this
GSA-TTSSkillarchitecture-decision-records
Load when a user wants architecture decision records (ADRs) drafted from requirements or a design discussion, asks which decisions need an ADR, or wants an ADR draft reviewed for one-sided trade-offs, weak alternatives or missing requirement links. Not for setting up a project's whole documentation system (project-documentation-system).
Also in 3 projects that use this
AnasX7Skilldesign-taste-frontend
Anti-slop frontend skill for landing pages, portfolios, and redesigns. The agent reads the brief, infers the right design direction, and ships interfaces that do not look templated. Real design systems when applicable, audit-first on redesigns, strict pre-flight check.
Also in 6 projects that use this
Other versions81 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 81
- addyosmani/agent-skills★ 114ksame name
- sanity-io/sanity★ 6.4ksame name
- ollaya-dev/ollaya★ 1.4ksame name
- SkafteNicki/dtu_mlops★ 806same name
- epam/ai-dial-chat★ 501same name
- shashankswe2020-ux/whoop-mcp★ 174same name
- muratgur/ordinus★ 111same name
- enes-alatas/spool★ 48same name
- vinvcn/addyosmani-agent-skills-zh★ 46same name
- jmxt3/gitscape.ai★ 33same name
71 more not listed
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 repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibilitySkill
- android-architectureSkill
- android-background-workSkill
- android-data-persistenceSkill
- android-device-testingSkill
- android-e2e-verificationSkill
- android-ui-engineeringSkill
- api-and-interface-designSkill
- ci-cd-and-automationSkill
- code-simplificationSkill
- constraint-driven-developmentSkill
- context-engineeringSkill
- debugging-and-error-recoverySkill
- deprecation-and-migrationSkill
- documentation-and-adrsSkill
- doubt-driven-developmentSkill
- git-workflow-and-versioningSkill
- idea-refineSkill
- incremental-implementationSkill
- interview-meSkill
- observability-and-instrumentationSkill
- performance-optimizationSkill
- planning-and-task-breakdownSkill
- security-and-hardeningSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- spec-driven-developmentSkill
- test-driven-developmentSkill
- using-agent-skillsSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 74 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
After completing a feature (final quality gate)
- Distinctive: line 22
Skip when: Not reviewing code (this is a review skill, not a writing skill).
- Distinctive: line 38
Do test names describe behavior?
- Distinctive: line 53
Do Room queries match the schema?
- Distinctive: line 81
No nested callbacks (use coroutines)
- Distinctive: line 90
No business logic in Composables
- Distinctive: line 101
No hardcoded secrets, API keys, or passwords
- Very specific: line 104
No logging of sensitive data (Log.d with tokens, passwords)
- Very specific: line 126
Keep verification honest: If the project uses dependency locking or gradle/verification-metadata.xml, regenerate them with Gradle (never …
- Distinctive: line 175
No tests in the PR
“Common” is measured: kept by at least 6 in 10 of the 74 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 Review and Quality
Overview
Review code across five axes: Correctness, Readability, Architecture, Security, and Performance. The approval standard: "Approve when it definitely improves overall code health of the system." Every finding is categorized and actionable.
When to Use
- Reviewing a pull request (own or teammate's)
- Self-review before creating a PR
- Requested code quality check on a specific file or module
- After completing a feature (final quality gate)
Skip when: Not reviewing code (this is a review skill, not a writing skill).
Core Process
Step 1: Understand Context
- Read the PR description — what problem does it solve?
- Read the spec or ticket — does the PR match the stated goal?
- Check the diff size — target ~100 lines, flag >1000 lines for splitting
Step 2: Review Tests First
- Start with test files — they reveal the intended behavior
Check for:
- Are critical paths tested?
- Are edge cases covered (null, empty, error, boundary values)?
- Do test names describe behavior?
- Are tests independent (no shared mutable state)?
- Would a test fail if the new behavior regressed?
Answer the last question by experiment, not by reading: invert one condition the change adds (drop a
!, swap&&for||, flip a>=), run that module's tests (./gradlew :module:testDebugUnitTest), then restore the file. A mutation that stays green is a finding — name the missing test case. For a project-wide mutation score, seeconstraint-driven-development.
Step 3: Five-Axis Review
Axis 1: Correctness
- Verify behavior matches intent:
- Does the code handle all states? (loading, success, error, empty)
- Are nulls handled safely? (no
!!, proper?.chains) - Are coroutines structured correctly? (proper scope, cancellation)
- Are lifecycle-aware collections used? (
collectAsStateWithLifecycle) - Do Room queries match the schema?
- Are migrations correct and tested?
Axis 2: Readability
- Kotlin-specific readability:
// GOOD: idiomatic Kotlin
val activeTask = tasks.firstOrNull { !it.completed }
?: return TaskListUiState.Empty
// BAD: Java-style
var activeTask: Task? = null
for (task in tasks) {
if (!task.completed) {
activeTask = task
break
}
}
if (activeTask == null) return TaskListUiState.Empty- Check for:
- Clear naming (functions describe actions, variables describe content)
- Appropriate use of
whenexpressions,let/also/apply, extension functions - Functions under ~40 lines
- Sealed classes/interfaces for exhaustive state handling
- No nested callbacks (use coroutines)
Axis 3: Architecture
- Verify layer boundaries:
- UI layer only calls ViewModel (never Repository/DAO directly)
- Domain layer has no Android dependencies
- Data layer implements domain interfaces
- Feature modules don't depend on each other
- No business logic in Composables
- Check for:
- Proper use of
@Inject constructor(not field injection) StateFlowexposed from ViewModel (notMutableStateFlow)- Repository pattern for data access
- Single source of truth (local DB for offline-first)
- Proper use of
Axis 4: Security
- Check for:
- No hardcoded secrets, API keys, or passwords
- Input validation for user-provided data
- Proper intent validation (exported components)
- No logging of sensitive data (
Log.dwith tokens, passwords) - Secure storage (EncryptedSharedPreferences for sensitive data)
- See
security-and-hardeningfor comprehensive checklist
Axis 5: Performance
- Check for:
- N+1 query patterns in Room
- Unbounded data loading (should use Paging3 for large datasets)
- Unnecessary recompositions in Compose (unstable parameters, lambda allocations)
- Heavy work on main thread (use
withContext(Dispatchers.IO)) - Memory leaks (Activity/Context references in singletons)
- See
performance-optimizationfor comprehensive checklist
Dependency Upgrades
An upgrade is a behavior change you didn't write. The riskiest ones are bulk "bump deps" PRs. Review them with the same discipline:
- Read the changelog, not just the version. A "patch" can change behavior; a major bump (Kotlin, AGP, Compose BOM, Room) needs its migration notes read and the breakage found.
- One dependency per change (or one tightly related group, e.g. a BOM and its artifacts). When a bulk bump breaks the build, you've lost which one did it.
- Let the tests decide. Green suite before and after. If coverage around the dependency's behavior is thin, that gap is the finding — add a test first.
- Mind the transitive graph. Review the resolved diff, not just
gradle/libs.versions.toml:./gradlew :app:dependencies --configuration releaseRuntimeClasspathbefore and after. One direct bump can move dozens of transitive versions — and can raise your effectiveminSdkorcompileSdk. - Keep verification honest. If the project uses dependency locking or
gradle/verification-metadata.xml, regenerate them with Gradle (never hand-edit) and review their diff. For supply-chain risk, followsecurity-and-hardening.
Step 4: Categorize Findings
- Use severity categories:
| Category | Description | Action Required |
| Critical | Security vulnerability, data loss, crash | Must fix before merge |
| Important | Missing tests, architecture violation, bug risk | Should fix before merge |
| Suggestion | Better Kotlin idiom, readability improvement | Optional, author's discretion |
| Nit | Formatting, naming preference | Optional |
| FYI | Context or explanation, no action needed | Informational |
- Format findings:
**[Critical]** `TaskRepository.kt:45` — API key hardcoded in source.
Move to `local.properties` and access via `BuildConfig`.
**[Important]** `TaskListViewModel.kt:23` — Uses `GlobalScope.launch`.
Use `viewModelScope.launch` for proper lifecycle management.
**[Suggestion]** `TaskMapper.kt:12` — Could use `copy()` instead
of manual field mapping for partial updates.Step 5: Verify Build and Tests
- Before approving:
./gradlew testpasses./gradlew assembleDebugbuilds./gradlew linthas no new warnings./gradlew detektpasses (if configured)
Common Rationalizations
| Shortcut | Why It Fails |
| "LGTM" without reading the code | Rubber-stamp reviews miss bugs. They also train teammates to skip reviews. |
| "I'll clean it up later" | Later never comes. Fix it now or create a tracked issue. |
| "It works, so it's fine" | Working code with poor architecture becomes non-working code during the next change. |
| "The author knows best" | Fresh eyes catch blind spots. That's the point of review. |
| "It's just a small change" | Small changes in the wrong layer create architectural debt. |
| "It's just a version bump" | A bump is a behavior change you didn't write. Read the changelog; semver doesn't guarantee no breakage. |
| "The tests cover it" | Prove it — mutate the new condition and see if anything goes red. |
Red Flags
- PR over 1000 lines without justification
- No tests in the PR
- Tests that only cover happy path
!!(non-null assertion) without justificationGlobalScopeusage- Mutable state exposed from ViewModel
- Business logic in Composables
- Feature module depending on another feature module
- Secrets or API keys in source code
@Suppressannotations without explanatory comments- A bulk "bump dependencies" PR with no changelog review and no per-dependency isolation
verification-metadata.xmlor lockfiles hand-edited or merged without reviewing their diff
Verification
- All five axes reviewed (Correctness, Readability, Architecture, Security, Performance)
- Tests reviewed first (coverage, edge cases, naming) — at least one new condition mutated to confirm a test catches its regression
- Dependency upgrades reviewed against changelogs, isolated per dependency, with the resolved-dependency diff checked
- Findings categorized (Critical, Important, Suggestion, Nit, FYI)
- Critical findings resolved before approval
./gradlew testpasses./gradlew assembleDebugbuilds./gradlew lintclean- PR size reasonable (~100 lines, flagged if >1000)
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.

