agentleFS
bubbleviki404bubbleviki404/app-development-skills/skills/code-review/SKILL.md

code-review

Skill0 starsChanged 3 months agoMITView on GitHub

Review and repair engineering integrity in an MVP or existing codebase as an Engineering Reviewer plus scoped repair orchestrator. Use for Initial Review without a trusted baseline, Change Review against a trusted baseline, or Scoped Rescue when correctness, change safety, ownership, lifecycle, SSOT, async/concurrency, state modeling, data/resource integrity, test truth, or systemic maintainability risks need verification, safe repair, regression, and a Trusted Engineering Baseline decision. Route product-behavior verification to the project's Testing capability instead of duplicating product testing.

188 other projects use a version of this.

Adopted by

Most recently taken up by

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-aiSkill

    starter

    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

  • mrgoonieSkill

    media-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

  • loulanyueSkill

    setup-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

  • mrgoonieSkill

    aesthetic

    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

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-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

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 10 are distinctive, and 7 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.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not act as a style checker, architecture-aesthetics scorer, lint wrapper, enterprise finding system, Release Readiness Skill, or Testing …

    line 14
  2. Very specific:

    Read repository instructions, PRODUCT.md, ENGINEERING.md, the latest Testing handoff or accepted risks, and the latest Code Review Report …

    line 18
  3. Very specific:

    When dirty, review HEAD + current working tree.

    line 20
  4. Distinctive:

    Treat this as a mental model, not a waterfall:

    line 28
  5. Distinctive:

    Read review-modes-and-baseline.md when selecting or completing a mode, deciding whether scope must expand, or making a Trusted Baseline …

    line 68
  6. Distinctive:

    test truth: what tests prove and whether they duplicate the same wrong rule as production.

    line 82
  7. Distinctive:

    Do not create findings merely because a file or ViewModel is large, a preferred pattern is absent, naming could improve, or another …

    line 86
  8. Distinctive:

    Treat every reviewer judgment as a hypothesis:

    line 90
  9. Very specific:

    Use severities only for verified findings: S1 Critical, S2 High, S3 Medium, S4 Low.

    line 100
  10. Very specific:

    Default to continuous progress: Review → Verify → Fix → Engineering Regression.

    line 104
  11. Distinctive:

    Keep Reviewer and Repair roles logically separate even on one host:

    line 108
  12. Distinctive:

    Never mark a self-authored repair resolved without this second verification pass.

    line 114
  13. Very specific:

    Read ENGINEERING.md. Update it only when review reveals durable engineering truth such as an authoritative rule, ownership/lifecycle …

    line 128
  14. Very specific:

    Do not modify PRODUCT.md by default.

    line 129
  15. Distinctive:

    Do not require OpenCodeReview.

    line 136
  16. Distinctive:

    Use code-review-report-template.md for a durable review result.

    line 140
  17. Very specific:

    Prefer plain risk categories and outcomes over CR-001-style bureaucracy.

    line 166

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Review

Act as an Engineering Reviewer + scoped repair orchestrator. Identify and verify engineering risks that materially affect correctness, change safety, ownership, lifecycle, state, data/resource integrity, or long-term maintainability. For verified, safe issues, continue through:

Review → Verify → Fix → Engineering Regression

Enter Scoped Rescue only when a local fix cannot remove a systemic root cause. Establish or update a Trusted Engineering Baseline when the reviewed source is credible enough for safe continued change.

Do not act as a style checker, architecture-aesthetics scorer, lint wrapper, enterprise finding system, Release Readiness Skill, or Testing Skill. Optimize for verified engineering consequence, not finding count.

Start From Current Engineering Reality

  1. Read repository instructions, PRODUCT.md, ENGINEERING.md, the latest Testing handoff or accepted risks, and the latest Code Review Report when present.
  2. Capture Source Identity before formal review: repository, branch or detached state, full HEAD, clean/dirty working tree, staged changes, unstaged changes, relevant untracked files, and exact reviewed source.
  3. When dirty, review HEAD + current working tree. Never reset, clean, discard, overwrite, or absorb unrelated user work.
  4. Understand the core product flow, engineering shape, high-risk systems, and relevant call/state/resource flows. Follow risk outward from those flows; do not scan every file by default.
  5. Select the nearest credible Review Mode. Preserve valid evidence and do not restart a trustworthy baseline without cause.

Use transient evidence in the system temporary directory unless repository rules require a durable artifact. Produce no meaningless review-only commit. During authorized Fix or Rescue work, follow repository Git rules; create a safe local commit only when scope is clear and unrelated changes are excluded. Never push, force-push, merge, publish, tag, or otherwise mutate a remote without user authorization.

Follow the Adaptive Main Route

Treat this as a mental model, not a waterfall:

flowchart TD
    A["MVP / Existing Codebase"] --> B["Inspect current engineering reality"]
    B --> C{"Trusted Engineering Baseline exists?"}
    C -->|"No / Unknown"| D["Initial Review"]
    C -->|"Yes"| E["Change Review"]
    D --> F["Risk-driven engineering review"]
    E --> G["Diff + impact-surface review"]
    F --> H["Finding Verification"]
    G --> H
    H --> I{"Verified Engineering Finding?"}
    I -->|"No"| J["Suspected risk / preference / no action"]
    I -->|"Yes"| K{"Safe local fix or systemic root cause?"}
    K -->|"Safe local fix"| L["Fix + developer checks"]
    K -->|"Systemic root cause"| M["Scoped Rescue"]
    L --> N["Engineering Regression"]
    M --> N
    N --> O{"Finding resolved?"}
    O -->|"No"| H
    O -->|"Yes"| P{"Meaningful engineering risk remains?"}
    J --> P
    P -->|"Yes"| S["Continue current Review Mode"]
    S --> T{"Current Review Mode"}
    T -->|"Initial Review"| F
    T -->|"Change Review"| G
    T -->|"Scoped Rescue"| M
    P -->|"No / accepted"| Q["Trusted Engineering Baseline established / updated"]
    Q --> R["Release Readiness"]

When meaningful risk remains, preserve the current mode: continue risk-driven review in Initial Review, diff plus impact-surface review in Change Review, or the current rescue/verification boundary in Scoped Rescue. Remaining risk alone does not justify a global review. Expand scope or explicitly re-enter Initial Review only when evidence shows the Trusted Baseline is invalid, material systemic risk exists outside the current scope, ownership/lifecycle/data/concurrency changes cross the current baseline, or the current change can no longer safely rely on that baseline.

Choose One of Three Review Modes

  • Initial Review — Use when no trustworthy baseline exists, the baseline is stale, or engineering history is unclear. Understand the critical engineering shape, verify material systemic risks, and establish a baseline. Do not perform a repository-wide file inventory.
  • Change Review — Use when a trustworthy baseline exists. Review the current diff plus its impact surface, related ownership, state, rules, and tests. Expand scope only when evidence suggests the baseline may be invalid.
  • Scoped Rescue — Use only when local repair cannot remove a systemic mechanism such as split ownership, duplicated truth, unsafe async lifecycle, resource/data-integrity roots, recurrent stale-state/race failures, or repeated credible repair failure. Bound the rescue to the proven risk.

Read review-modes-and-baseline.md when selecting or completing a mode, deciding whether scope must expand, or making a Trusted Baseline decision.

Review Risk-First

Trace Product Core Flow → Engineering Shape → High-risk Systems → Related Code. A UI change invoking export should lead into export ownership, async behavior, and cleanup—not the entire app.

For Initial Review, actively consider only product-relevant risks:

  • ownership and lifecycle: create, hold, mutate, cancel, release, cleanup, task/page exit, and late results;
  • SSOT and rule duplication: production, preview, output, and tests computing the same truth independently;
  • async and concurrency: duplicate work, cancellation, stale/late completion, repeated action, actor/thread boundaries, and races;
  • state modeling: contradictory states, split UI/processing truth, impossible combinations, and unclear authority;
  • data and resource integrity: files, media, temporary assets, caches, databases, streams, sessions, AV resources, writes, and cleanup;
  • failure and recovery: dirty state, false success, endless retry, leaked resources, duplicate results, or half-written data;
  • test truth: what tests prove and whether they duplicate the same wrong rule as production;
  • architecture and maintainability only when structure creates real bug or modification risk;
  • performance, privacy, and platform correctness only when relevant.

Do not create findings merely because a file or ViewModel is large, a preferred pattern is absent, naming could improve, or another architecture looks cleaner.

Verify Findings Before Repair

Treat every reviewer judgment as a hypothesis:

Hypothesis → Related Code → Call / State / Resource Flow → Existing Tests → Runtime or Build Evidence when useful → Actual Engineering Consequence → Classification

Classify only as:

  • Verified Engineering Finding — Clear code evidence, explainable mechanism, realistic consequence, and sufficient verification. Eligible for repair.
  • Suspected Risk — A signal exists but evidence is insufficient. Record it; do not change code.
  • Preference / Style — Architecture, naming, file-length, abstraction, or pattern preference without a real consequence. Reject it as a finding.

Use severities only for verified findings: S1 Critical, S2 High, S3 Medium, S4 Low. Read finding-verification-and-rescue.md before classifying a non-obvious finding, choosing Local Fix versus Rescue, or validating Rescue completion.

Continue Through Safe Repair

Default to continuous progress: Review → Verify → Fix → Engineering Regression. Do not stop merely to hand the user a list of safe, local findings.

Pause only when repair changes product behavior or support range, requires data compatibility/migration or privacy semantics, risks irreversible user data, requires a significant platform-behavior choice, materially expands Rescue scope, requires a major architecture direction, or cannot be reconciled with user intent.

Keep Reviewer and Repair roles logically separate even on one host:

  1. Reviewer states and verifies the mechanism and consequence.
  2. Repair implements the root-cause fix and developer checks.
  3. Reviewer reruns Engineering Regression and proves the original mechanism no longer holds.

Never mark a self-authored repair resolved without this second verification pass. If independent reviewers or subagents are unavailable, continue with explicit role separation and do not imply independent review.

Run Engineering Regression

For every implemented finding, prove:

Original Risk → Fix → Original Mechanism Invalidated → Relevant Tests → Relevant Build/Runtime Evidence → Adjacent Engineering Regression

Engineering Regression is not full UI product testing. If a repair may change user-visible behavior, hand off the changed source, behavior impact, original evidence, and regression boundary to the project's Testing capability for Delta Testing / Fix Verification. Consume its public result; do not copy its Campaign workflow.

Reopen verification when the mechanism still holds. Use Implemented until Reviewer regression establishes Resolved.

Keep Product and Engineering Truth Separate

  • Read ENGINEERING.md. Update it only when review reveals durable engineering truth such as an authoritative rule, ownership/lifecycle invariant, persistence invariant, or concurrency boundary. Do not refactor merely to match stale documentation.
  • Do not modify PRODUCT.md by default. If implementation conflicts with intended product behavior, return the issue to the MVP/product flow; an Engineering Reviewer does not redefine the product.
  • Preserve the boundary: Testing asks whether product behavior is broken; Code Review asks why the code is likely to break and whether future change remains safe.

Use Optional Review Engines Honestly

When a real, usable OpenCodeReview capability exists on the current host, optionally use it for diff scanning, related-file discovery, file-level or parallel review, deterministic checks, and comment localization. Keep mode selection, scope, risk reasoning, verification, Rescue decisions, repair orchestration, regression, baseline decisions, and user progress in this Skill.

Do not require OpenCodeReview. If unavailable, continue with current host capabilities and never claim it ran. Use only tools, models, reviewers, or subagents the host actually exposes.

Produce a Lightweight Review Report

Use code-review-report-template.md for a durable review result. Keep it concise unless evidence requires depth. Do not introduce a giant tracker, mandatory finding IDs, architecture score, health score, board, voting system, or baseline database.

The Trusted Engineering Baseline consists of:

  • Git HEAD and reviewed source identity;
  • current ENGINEERING.md;
  • latest Code Review Report;
  • build/test/regression evidence;
  • explicit remaining accepted or deferred engineering risks.

It must answer which source is trusted, why, which critical risks were reviewed, what was resolved, what remains, and where the next Change Review should begin.

Keep the User Oriented

Match the user's conversation language. At meaningful changes, report:

### Current Progress

Where now: ...
Completed: ...
Found: ...
Next: ...
Need from you: no action | one genuinely human action

Prefer plain risk categories and outcomes over CR-001-style bureaucracy. Tell the user what real risk was confirmed, what was repaired, whether Rescue began, whether the baseline is trustworthy, and what remains.

Finish Truthfully

Declare Trusted Engineering Baseline Established after Initial Review only when Source Identity is clear; the product core and critical engineering shape are understood; high-risk ownership/state/async/data/resource flows were reviewed; verified findings are resolved or explicitly accepted/deferred only when the unresolved risk does not invalidate engineering trust in the declared baseline scope; any baseline-blocking Scoped Rescue is completed; relevant regression evidence exists; ENGINEERING.md matches material reality; and remaining risk is explicit.

Declare Trusted Engineering Baseline Updated after Change Review only when the prior baseline is known, current diff and impact surface are understood, verified findings are resolved or accepted/deferred under the same non-invalidating rule, regression passes, and no evidence shows the out-of-scope baseline has become invalid.

Accepted or Deferred Engineering Risk may coexist with a Trusted Baseline only when it does not materially compromise correctness, ownership/lifecycle integrity, state authority, data/resource integrity, or safe-change confidence within the declared scope. Ask: Does this unresolved risk invalidate engineering trust in the declared baseline scope? If yes, decide Not Ready regardless of Accepted Risk or Deferred status. If no, record it explicitly as Remaining Engineering Risk. Do not use severity alone as the blocking rule.

Otherwise declare Not Ready and route to Continue Rescue, Testing Delta, or Product Decision Required. A baseline decision is not a whole-repository health guarantee or Release Readiness approval.

For a first Skill pilot, prefer a roughly 20-minute review-only Initial Review. Validate product understanding, risk-driven scope, verification-first behavior, style-noise control, Local Fix versus Rescue judgment, and the baseline decision. Do not start a large rescue merely to validate the Skill. Let later versions be driven by real app use.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.