code-review
Skill9 starsChanged 2 months agoMITView on GitHub
Use before commit, deploy, or PR merge, or when operator asks "review this diff" / "is this safe?"; reviews diff vs spec, decisions, maintainability, scope, tests, rollback. Do NOT write or fix code — review only.
188 other projects use a version of this.
Adopted by
Most recently taken up by
- github/spec-kittheir own version, first seen Nov 23, 2026
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- mattpocock/skillstheir own version, first seen Oct 8, 2026
- rafaelob/pragmatic-agent-skillstheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- dzhng/skillstheir own version, first seen Oct 4, 2026
Used with
Projects with it also use starter, media-processing and 10 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.
ww-w-aiSkillstarter
Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).
Also in 4 projects that use this
mrgoonieSkillmedia-processing
Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.
Also in 5 projects that use this
loulanyueSkillsetup-ts-deep-modules
Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.
Also in 15 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 4 projects that use this
AWSSkillask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Also in 32 projects that use this
AWSSkillresolving-merge-conflicts
Use when you need to resolve an in-progress git merge/rebase conflict.
Also in 48 projects that use this
- +1 more from mrgoonie
- +2 more from aws
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- mattpocock/skills★ 335ksame name
- microsoft/vscode★ 196ksame name
- github/spec-kit★ 153ksame name
- shareAI-lab/learn-claude-code★ 78ksame name
- github/awesome-copilot★ 40ksame name
- langchain-ai/deepagents★ 30ksame name
- microsoft/vcpkg★ 28ksame name
- anthropics/knowledge-work-plugins★ 26ksame name
- Donchitos/Claude-Code-Game-Studios★ 26ksame name
- microsoft/onnxruntime★ 22ksame name
178 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 repository119 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/fusebase-flow-always.mdcCursor rule
- .cursor/rules/fusebase-flow-implementation.mdcCursor rule
- .cursor/rules/fusebase-flow-security.mdcCursor rule
- .cursor/rules/fusebase-flow-specs.mdcCursor rule
- .cursor/rules/fusebase-flow-validation.mdcCursor rule
- api-explorationSkill
- app-api-contract-testingSkill
- app-backendSkill
- app-business-docsSkill
- app-dev-practicesSkill
- app-e2e-testsSkill
- app-quality-patternsSkill
- app-routingSkill
- app-secretsSkill
- app-sidecarSkill
- app-ui-designSkill
- business-logic-guardianSkill
- client-vs-internalSkill
- comment-policySkill
- communicationSkill
- design-discovery-ideationSkill
- dev-debug-logsSkill
- documentation-budgetSkill
- file-uploadSkill
- find-wasted-codeSkill
- find-wasted-effortSkill
- fusebase-cliSkill
- fusebase-dashboardsSkill
- fusebase-flow-health-checkSkill
- fusebase-gateSkill
- fusebase-portal-specific-appsSkill
- git-history-diagnosticSkill
- git-workflowSkill
- handling-authentication-errorsSkill
- handoffSkill
- implementation-planningSkill
- invite-with-passwordSkill
- lightweight-laneSkill
- liveness-disciplineSkill
- managed-integrationsSkill
- mcp-gate-debugSkill
- module-size-disciplineSkill
- north-starSkill
- phase-auditSkill
- product-apps-decompositionSkill
- product-docs-firstSkill
- product-ownerSkill
- project-onboardingSkill
- release-deploy-reportingSkill
- remote-logsSkill
- repo-onboarding-context-mapSkill
- requirements-specificationSkill
- role-disciplineSkill
- security-permissions-reviewSkill
- skill-authoringSkill
- smoke-testingSkill
- task-delegationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
10
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 34
No diff exists yet (review needs concrete code)
- Very specific: line 51
Run git diff <baseline>..HEAD --stat to get changed files.
- Distinctive: line 82
Split-quality check (semantic): if the diff extracted code to satisfy the ratchet, verify the seam is a nameable responsibility.
- Distinctive: line 105
Test coverage scan (the deterministic AC-coverage map is the gate's.
- Distinctive: line 108
Meaningless assertion: only asserts "no exception" / truthy / blind snapshot-update — observed output never compared to expected.
- Distinctive: line 148
Only explicit operator authorization raises the limit.
- Distinctive: line 197
Do NOT fix code yourself; surface findings, operator + implementer fix
- Distinctive: line 198
Do NOT lock-or-redirect decisions.
- Distinctive: line 199
Do NOT block on stylistic preferences absent a lint rule.
- Very specific: line 200
Do NOT re-verify deterministic gate fields (AC↔task map, decisions-cited, lint/typecheck, TODO scan, protected paths) when a recorded gate …
- Distinctive: line 201
Do NOT enforce the comment policy (FR-22) by proposing a regex/lint gate — it's a semantic call.
- Distinctive: line 202
Do NOT judge split quality (FR-25) by line counts alone — the gate already counts lines.
“Common” is measured: kept by at least 6 in 10 of the 175 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
Purpose
Independent review of a diff against the spec contract, locked decisions, and FLOW_RULES — before commit, deploy, or merge. Distinguishes blockers (must fix) from non-blockers (should fix).
When to invoke
- Operator says "review this" / "is this safe to ship?" / "look at the diff"
- AI Developer-session gate report has been pasted and
validation-and-qaran clean — code-review is the next step before deploy - About to merge a PR (team mode)
- Major refactor in flight and operator wants midpoint review
Do not invoke when
- No diff exists yet (review needs concrete code)
- Clarifications are unresolved or scope is not yet locked — review against an incomplete contract is noise
- Operator wants the code fixed — review surfaces issues; fixes go through implementation
Required inputs
| Input | Where it lives | If missing |
| Diff | git diff <baseline>..HEAD or PR diff URL | Stop; ask which diff to review |
| Spec | docs/specs/<slug>/spec.md | Stop; review without spec is style-only and limited |
| Decisions | docs/specs/<slug>/decisions.md | Stop; cannot verify decision adherence |
| Tasks | docs/specs/<slug>/tasks.md | Stop; cannot verify scope adherence |
| CLI edition map, for Fusebase Apps work | docs/fusebase-cli-edition.md | Continue with Flow-only review, but mark app-domain review criteria unknown |
Procedure
- Trust the recorded gate verdict (review boundary). When
validation-and-qahas recorded a gate verdict ("Gate verified. Phase advances to Deploy."), trust it for the deterministic/cross-artifact fields — AC↔task map, decisions-cited-in-tasks, lint/typecheck status, TODO/FIXME/WIP scan, protected-path diff. Do not re-verify them; carry the gate's AC↔task verdict into the review's spec-alignment matrix by citation. If no gate verdict exists, route tovalidation-and-qafirst — do not absorb its checks here. - Run
git diff <baseline>..HEAD --statto get changed files. For Fusebase Apps diffs, readdocs/fusebase-cli-edition.mdand load the relevant CLI provider skills as review standards for app/runtime/domain behavior. - Semantic review per task T
<n>: read the corresponding commit (or accumulated diff). Judge:- Scope and simplicity: the change matches the intent of the
tasks.mddescription, not just the listed files, and meetsflow-skills/zoom-out/references/karpathy-guidelines.md§§2–3 (read it unless its exact body is already in context) - Decision adherence in meaning: the gate checks decisions are cited; review checks the code does what the locked decision means (cite letter+number on divergence)
- Quality-pattern ACs (QP-xx,
flow-skills/app-quality-patterns): the cited pattern's Requirement is actually met by the implementation (semantic, by reading — e.g., is the filter state really in the URL, does the delete really handle children)
- Scope and simplicity: the change matches the intent of the
- Maintainability scan:
- Type safety (no broad casts on external JSON, no
any) - Comment policy (FR-22) — see the dedicated dimension in step 4b
- Type safety (no broad casts on external JSON, no
4b. Comment-policy dimension (FR-22) — enforce in BOTH directions:
- Scope: comments this diff introduced or necessarily changed; untouched pre-existing
comments are not findings (
flow-skills/zoom-out/references/karpathy-guidelines.md§3). - Flag for removal (findings): comments that restate what the code does; rationale/diagnosis prose already recorded in a decision/ticket/memory (should be replaced by a ≤1-line pointer, not deleted outright); changelog/history narrative (it's in git); comment blocks that exist only because the surrounding file is comment-heavy ("matched density" upward).
- Verify retention (catch over-trimming): a one-line tripwire (a non-obvious
constraint an editing agent could violate) and a retrieval pointer (
(decision B2),backlog 156) must NOT have been stripped. Deleting a pointer orphans the external record (storage ≠ retrieval) — flag that as a blocker too, not just over-commenting. - Carve-out: files matching
policies/comment-policy.yml: trust_critical_globs(auth/identity/session/gate, migrations, project-derived) keep multi-line tripwires — do not flag those. Apply the rule fully to CRUD/routine code. - This is a semantic judgment (tripwire vs restate-WHAT), not a regex check — review
by reading, never propose a lint/regex gate for it. Reference:
docs/comment-policy.md. 4c. Module-size dimension (FR-25): - Growth check: did this diff grow a file past the ceiling in
policies/module-size.yml(default 800), or grow an already-over-ceiling file? The pre-commit ratchet blocks this when a baseline is committed — in warn-only installs (no baseline yet), review is the only line of defense: flag it as a blocker with the extraction remedy. - Split-quality check (semantic): if the diff extracted code to satisfy the ratchet,
verify the seam is a nameable responsibility. Observable blocker criterion: the extraction
lands in a file whose NAME does not state a responsibility (
utils2.*,helpers2.*,misc.*,extra.*,more.*-style) — no intent inference needed. Named seams are judged by reading; a poor-but-named seam is a non-blocker improvement. - Exemption check: new
exempt_globsentries or baseline edits must be operator-approved and justified (generated / vendored / data-as-code) — an agent-initiated baseline raise or exemption for ordinary source is a blocker. - Reference:
flow-skills/module-size-discipline/SKILL.md. 4d. Correctness / defect-hunt dimension — actively hunt a bug in the CHANGED logic before certifying "safe"; scope is the diff, not the whole codebase. Per changed function/branch: - Edge cases: empty/zero/one/max inputs, boundary indices, off-by-one in loops/slices, empty collections, first/last element, unicode/whitespace in string handling.
- Error & failure paths: a call inside the change throws / returns error / times out — is the failure surfaced, swallowed, or half-applied (partial write, no cleanup)?
- Concurrency / races: shared state without ordering guarantees, check-then-act (TOCTOU) windows, interleaving async handlers, retries that double-apply.
- Input validation: external input (API params, file content, env, user text) reaching the changed logic unvalidated; unchecked coercion of external JSON.
- State & lifecycle: resources closed on ALL paths incl. the error path; re-run idempotency. Verdict discipline: "no defect found" is claimable only after the hunt ran — name the top-2 suspect paths examined and why they hold (1 line each in the review summary). A found defect is a blocker when reachable on a production path; non-blocker in test/dev scaffolding.
- Test coverage scan (the deterministic AC-coverage map is the gate's; this is the semantic
half). Blocker criteria — flag any of:
- No test at all for a changed production behavior that has a testable seam.
- Meaningless assertion: only asserts "no exception" / truthy / blind snapshot-update — observed output never compared to expected.
- Tests the mock: assertions verify mock wiring, not the changed logic's outcome.
- Happy-path only where the diff itself added error/edge branches (the new branch is dead code to the suite). Each is a blocker when the changed behavior is production-path; non-blocker for dev tooling/scaffolding. Remedy: name the missing case — do NOT write the test yourself.
- Rollback safety: each commit individually revertable; no commit straddles unrelated changes.
- Output review summary in chat:
- Blockers (must fix before deploy)
- Non-blockers (improvement candidates; can be follow-up tickets)
- Spec alignment matrix (table; deterministic AC↔task statuses carried from the gate verdict by citation)
- If invoked from operator chat: end with "Review complete.
<N>blockers,<M>non-blockers. Operator decides whether to fix or proceed." Proceeding to deploy past an open blocker is not a chat-side call: it requires the per-blocker recorded waiver in the deploy handoff (release-deploy-reporting§ When to invoke) — step-4d/step-5 safety blockers especially.
Review depth and severity
Severity. BLOCKER = a mandatory-stop failure. HIGH = a serious, reachable correctness or security risk. MEDIUM = a bounded functional defect. LOW = a non-blocking improvement. These GRADE findings; they never downgrade a blocker § Failure cases already names, and a known correctness/safety blocker does not become acceptable because a review already ran once.
Depth follows the change, not habit.
| Change | Review |
| Security-relevant — code that EXECUTES on an auth, session, token, permission or CSRF path (docs, copy, tests or comments that merely mention those topics are not) | independent adversarial review of code and tests (adversarial_review tier — task-delegation § Model routing) |
| Cross-cutting — three or more slices or a shared module | independent adversarial review |
| HIGH risk — set per slice in the plan and confirmed at plan review | independent adversarial review |
| Ordinary change | focused review of the diff |
| Prose and doc claims | not per change — one consolidated claim-vs-evidence pass at final acceptance |
These are review-DEPTH triggers only. They never narrow the FR-21 Full-lane triggers or security-permissions-review's scope.
Rereview by severity. BLOCKER/HIGH correction → rereview the affected boundary. MEDIUM → focused check of that diff. LOW → the implementer's evidence, unless new evidence changes the classification. A reviewer does not reopen a fixed LOW on the same finding and the same evidence; a newly demonstrated defect is a NEW finding, not a reopened one.
Round bound. Round 1 is the initial review, round 2 the correction review — default maximum two per change.
Round accounting is durable and checked BEFORE dispatch (binding). A bound that exists only in chat cannot be checked before the next dispatch — it is unenforceable the moment the chat rolls over or a successor takes the work (docs/problem-catalog/adversarial-review-convergence/problem.md). So:
- The count lives in an artifact this work ALREADY owns —
docs/verification/<slug>-review.mdwhen a review record is persisted, otherwise the run-ledgerdocs/tmp/handoff.md§ Constraints and Guardrails. Never a new file (FR-23). - One compact line, three fields: change identity (ticket/task + reviewed SHA) · limit · rounds dispatched. Example:
T42 @ 3b1bfaa — review rounds: 1 of 2. - Read it before launching any review round, and update it as part of that dispatch. No record found for this change → this is round 1; write the line first.
- A successor agent INHERITS the count; starting a fresh session, a fresh reviewer, or a fresh chat does not reset it.
- Only explicit operator authorization raises the limit. Not the actor that declared it, not the actor that hit it, and not an agent that merely inherited it — an agent never extends a bound it is subject to.
- On exhaustion, unresolved findings stay blocked or deferred WITH their evidence, never implicitly accepted. A BLOCKER is still a BLOCKER after round 2; exhaustion returns the work for a budget or scope decision, it does not make anything shippable.
Persistent LOW work. Optional and scoped. A LOW cleanup may be one commit only when it is one independently reversible outcome; otherwise leave it parked. Persistent LOW findings go to docs/backlog/<slug>-low/README.md, indexed once in docs/backlog/index.md — an existing matching ticket wins over a new aggregate.
Persisted review record. docs/verification/<slug>-review.md SUPERSEDES the prior verdict in place (FR-18; git owns the revisions) and names the round and the reviewed SHA. Open it with a header of at most ten lines: severity counts, one line per BLOCKER and HIGH, verdict. The header is a routing aid, not the authority — read the finding body before deciding anything the header does not settle (token-economy).
Worked example
Diff for T42 adds a retry cap to sync.ts; the gate verdict is recorded.
- Step 1: cite the gate's AC↔task map; no re-verification.
- Step 3: an unrequested configurable backoff class and a reformatted untouched function fail §§2–3 → findings naming the lines that don't trace to T42.
- Step 4b: a new WHAT-restating comment on the edited line → non-blocker; comment-heavy untouched blocks elsewhere → not a finding.
- Step 4d: cap = 0 and retry after a partial write examined; both hold.
- Step 7: blockers / non-blockers classified per § Failure cases, plus the alignment matrix.
Output artifacts
| Artifact | Path / location | Mode |
| Review summary | chat output | Mode A |
| Persistent record — optional, EXCEPT it must carry the round-accounting line whenever it exists (§ Round bound); when it does not exist that line lives in the run-ledger | docs/verification/<slug>-review.md | Mode B (full) |
| Spec alignment matrix | embedded in review summary | Mode B (full, table) |
Failure cases
| Failure mode | Detection | Response |
| Diff straddles multiple unrelated changes | Commits cover code outside current ticket scope | Flag as blocker; recommend split into separate tickets |
| Locked decision contradicted by code | Decision says X, code does Y | Flag as blocker; redirect via decisions.md update OR fix code |
| AC unimplemented | Surfaced while reading the diff (the gate owns the deterministic AC↔task scan) | Flag as blocker; either add task or remove AC explicitly |
| Protected path edited without exception | Surfaced while reading the diff (the gate owns the deterministic FR-07 scan) | Flag as blocker per FR-07; require approval artifact OR revert |
| Type safety regression | New any / broad casts on external JSON introduced | Flag as blocker if production-path; non-blocker if test fixture |
| Comment-policy violation (FR-22) | WHAT-restating / duplicated-rationale / changelog comments added, or "matched density" upward in a comment-heavy file | Flag as non-blocker (note the lines); not a deploy blocker unless it obscures a real defect |
| Comment over-trim (FR-22) | A load-bearing tripwire or (decision/backlog ...) retrieval pointer was deleted | Flag as blocker — deleting the pointer orphans the external record (storage ≠ retrieval); restore it |
| Over-ceiling growth (FR-25) | Diff grows a gated file past the ceiling / grows an over-ceiling file (check policies/module-size.yml + baseline) | Flag as blocker; remedy = extract along a responsibility seam or explicit operator exemption |
| Mechanical split (FR-25) | Extraction lands in a file whose name states no responsibility (utils2/helpers2/misc/extra-style) | Flag as blocker (observable criterion — no intent inference); a named-but-debatable seam is a non-blocker improvement |
| Agent-raised baseline / exemption (FR-25) | Baseline values raised or exempt_globs widened without operator approval | Flag as blocker — exemptions are operator decisions |
| Correctness defect in changed logic | Defect-hunt (step 4d) finds a reachable edge-case / error-path / race / validation bug in the diff | Flag as blocker with a concrete failing-input → wrong-outcome scenario; production-path defects block deploy, scaffolding-only defects are non-blockers |
| Missing or meaningless tests (step 5) | Changed production behavior has no test, assertion-free tests, mock-only assertions, or happy-path-only coverage of new error/edge branches | Flag as blocker (production-path) and name the missing case; test/dev scaffolding gaps are non-blockers |
Escalation path
- Architectural concern beyond review scope (e.g., decision should have been redirected) → recommend re-opening
decisions.mdlock - Security-relevant finding → invoke
security-permissions-reviewskill - Performance-relevant finding → file follow-up backlog ticket; not in v0.1 review scope
Anti-patterns
- Do NOT fix code yourself; surface findings, operator + implementer fix
- Do NOT lock-or-redirect decisions; that's the operator's call (FR-11)
- Do NOT block on stylistic preferences absent a lint rule; flag as non-blocker
- Do NOT re-verify deterministic gate fields (AC↔task map, decisions-cited, lint/typecheck, TODO scan, protected paths) when a recorded gate verdict exists — trust it; absent a verdict, route to
validation-and-qafirst - Do NOT enforce the comment policy (FR-22) by proposing a regex/lint gate — it's a semantic call; review by reading. And don't only hunt over-commenting: a deleted tripwire/pointer is the symmetric failure (over-trim) and is a blocker.
- Do NOT judge split quality (FR-25) by line counts alone — the gate already counts lines; review checks the semantic part (is the seam a nameable responsibility), which no regex can.
- Do NOT certify "safe to ship" from scope/decision/style/size checks alone — a review without the step-4d defect hunt never looked for a bug, and "is this safe?" was the question. An empty blocker list must carry the hunt evidence (top-2 suspect paths examined).
Clean-room note
Original Fusebase Flow content. Designed after reviewing public AI coding workflow patterns; no third-party code, prompts, skill files, or hook scripts are copied. See docs/source-map.md.
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.

