final-code-review
Skill1 starsChanged 3 months agoMITView on GitHub
Use when code needs a final pre-merge review.
In this repository17 other files it gives its agents.
- bounded-task-specificationSkill
- decision-record-traceabilitySkill
- safe-tool-actionsSkill
- skill-authoringSkill
- change-review-triageSkill
- deployment-readinessSkill
- polyglot-production-codeSkill
- repository-access-boundarySkill
- verified-deliverySkill
- accessibility-review-planningSkill
- verification-charter-designSkill
- evidence-first-researchSkill
- lightweight-threat-modelingSkill
- untrusted-content-triageSkill
- consented-voice-calibrationSkill
- final-prose-reviewSkill
- genre-aware-proseSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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
Do not use as a substitute for implementation, for an unexplored design question, or to approve a change whose required tests have not been …
- Distinctive: line 25
Read the request, acceptance criteria, repository instructions, and relevant architecture or contribution documentation.
- Distinctive: line 40
Review interfaces and data contracts: Check types, serialization, nullability, ownership, lifecycle, ordering, compatibility, versioning, …
- Distinctive: line 42
Review maintainability: Remove unnecessary wrappers, speculative abstractions, catch-all modules, duplicate policy logic, dead code, broad …
- Distinctive: line 46
Validate through the real quality loop: Run formatter, static analysis, type checks, focused regression tests, affected integration or …
- Distinctive: line 65
Do names, module locations, types, and errors make the change understandable to a maintainer who was not present for its creation?
- Distinctive: line 70
Do tests assert observable behavior and include the regression or edge case that justified the change?
- Distinctive: line 84
Before handoff, confirm that:
- Distinctive: line 86
every modified file and hunk maps to the requested behavior or an explicit required companion change.
- Distinctive: line 90
every blocking finding has a reproducible path and required corrective verification.
≈ “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
Final Code Review
Use this skill after implementation and focused tests are complete, before a human approves a change. It is a final blind-spot review for correctness, maintainability, repository fit, and honest verification. It does not replace a language-specific standard, security specialist, release owner, or the project's own acceptance criteria.
When to Use
- A feature, repair, refactor, migration, or dependency change is ready for pre-merge review.
- A change compiles or passes a narrow test but needs an independent check for structural, operational, or maintainability failures.
- A team needs a consistent final review gate that reduces common implementation defects before human review.
Do not use as a substitute for implementation, for an unexplored design question, or to approve a change whose required tests have not been run.
Prerequisites
- Read the request, acceptance criteria, repository instructions, and relevant architecture or contribution documentation.
- Inspect the final diff, source-control status, affected call sites, adjacent production code, tests, build configuration, and continuous-integration workflow.
- Identify the language version, package/dependency manifest, formatter, static checks, test runner, build command, deployment or migration boundary, and required external-state verification.
- Gather actual command output for focused tests and every required project quality gate.
Completion: the review has a defined behavior contract, an exact change set, and real evidence rather than a producer summary.
Procedure
- Reconstruct the intended behavior. State the observable behavior, affected users or callers, preserved behavior, failure modes, and explicit non-goals. Compare each changed hunk against that contract.
- Completion: every change is necessary for the requested behavior or is identified as unrelated.
- Follow data and control flow. Trace inputs through validation, domain logic, storage or network boundaries, error handling, outputs, and callers. Check empty, malformed, boundary, repeated, concurrent, delayed, and partially failed states when relevant.
- Completion: the success path and credible failure paths are understandable without relying on unstated assumptions.
- Check repository fit. Confirm that the change follows existing module boundaries, dependency direction, naming, configuration, error model, test layout, and public contract conventions. Prefer an established local pattern over a new abstraction.
- Completion: a maintainer can find the changed behavior where they would naturally expect it.
- Review interfaces and data contracts. Check types, serialization, nullability, ownership, lifecycle, ordering, compatibility, versioning, and caller-visible error behavior. Verify producers and consumers together when a contract changes.
- Completion: no caller must guess the changed interface from implementation details.
- Review maintainability. Remove unnecessary wrappers, speculative abstractions, catch-all modules, duplicate policy logic, dead code, broad refactors, narration comments, placeholder paths, debug output, and vague names. Keep comments only for non-obvious rationale or external constraints.
- Completion: the diff reads as ordinary maintained code rather than a transcript of how it was produced.
- Review safety and operations. Inspect untrusted inputs, authorization boundaries, secrets, logging, file and process boundaries, network timeouts, retries, idempotence, resource limits, concurrency, migrations, rollback behavior, and observability as applicable.
- Completion: material operational risks are tested, bounded, or explicitly escalated.
- Validate through the real quality loop. Run formatter, static analysis, type checks, focused regression tests, affected integration or contract tests, build, and any documented release check. When an external system changed, read back the exact target.
- Completion: every claimed result has a command output, receipt, or observable state behind it.
- Classify findings. Report each issue with affected behavior, evidence, severity, required correction, and test or verification needed. Separate blocking defects from optional improvements and unsupported suspicions.
- Completion: a human can act on the review without rediscovering the problem.
Decision Points
| Condition | Action |
| A required command did not run or failed | Mark the review incomplete; do not treat nearby green checks as a substitute. |
| A change introduces a new abstraction for one use | Prefer direct code unless the abstraction removes a demonstrated repeated concern. |
| A public contract changes | Inspect all producers, consumers, schemas, fixtures, documentation, and compatibility behavior in the same review. |
| A test asserts implementation details but not behavior | Request a behavior-level oracle or explain why the implementation detail is contractual. |
| A security, data-loss, authorization, migration, or public-release risk appears | Escalate to the appropriate owner or specialist before approval. |
| A finding cannot be reproduced or tied to a requirement | Label it non-blocking uncertainty rather than presenting it as a defect. |
Blind-Spot Checklist
- Does the implementation fulfill the stated behavior for both normal and failure paths?
- Do names, module locations, types, and errors make the change understandable to a maintainer who was not present for its creation?
- Is every new dependency, configuration value, file, and runtime action necessary and bounded?
- Are validation and authorization applied at the correct boundary, before side effects occur?
- Are retries, timeouts, ordering, idempotence, and resource use explicit where operations may repeat or fail?
- Did the change preserve existing public behavior unless a deliberate compatibility change is documented and tested?
- Do tests assert observable behavior and include the regression or edge case that justified the change?
- Did the required formatter, analysis, tests, build, and external read-back actually run?
Pitfalls
- Green-test tunnel vision: A passing narrow test does not prove architecture, security, compatibility, or operations are sound.
- Review by summary: Producer claims and commit messages are context, not evidence. Read the diff and execute the checks.
- Commentary as design: Long comments that narrate the change often hide a missing name, module boundary, or test.
- Abstraction inflation: More layers can make a small behavior harder to inspect, test, and reverse.
- Mock-only confidence: A mock proves a configured interaction, not necessarily that the real boundary behaves as required.
- Silent gate substitution: A build does not replace tests; tests do not replace a type check; a successful request does not replace external-state verification.
Verification
Before handoff, confirm that:
- every modified file and hunk maps to the requested behavior or an explicit required companion change;
- focused tests and all applicable repository gates ran with recorded results;
- the final diff has no unrelated churn, debug artifacts, generated noise, secrets, or local-machine assumptions;
- interfaces, errors, compatibility, and operational boundaries were reviewed at their callers and consumers;
- every blocking finding has a reproducible path and required corrective verification; and
- the result is reported as approved, requires changes, or incomplete, with evidence for that state.
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.

