agentleFS
MicrosoftKnown publishermicrosoft/FluidFramework/.claude/skills/review/SKILL.md

review

Skill4.9k starsChanged 4 months agoMITView on GitHub

Review changes relative to a prior state, such as a diff, pull request, branch, commit, or working-tree changes. Use for change-focused code review and regression analysis. Do not use to assess an existing file, API, design, implementation, or other artifact without a comparison; if the request is ambiguous, ask whether the user wants a change review and what prior state to compare against.

193 other projects use a version of this.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 2 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 3 mentionsJun 2026: 21 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 2 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the microsoft/FluidFramework repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about microsoft/FluidFramework

The biggest 5 of 46 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 46

Talked about on GitHub and Hacker News (46 times).

On GitHub · 42

37 more on GitHub

Used with

Projects with it also use cso, plan-devex-review 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.
  • ayudaySkill

    cso

    Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".

    Also in 11 projects that use this

  • seek888Skill

    plan-devex-review

    Interactive developer experience plan review. Explores developer personas, benchmarks against competitors, designs magical moments, and traces friction points before scoring. Three modes: DX EXPANSION (competitive advantage), DX POLISH (bulletproof every touchpoint), DX TRIAGE (critical gaps only). Use when asked to "DX review", "developer experience audit", "devex review", or "API design review". Proactively suggest when the user has a plan for developer-facing products (APIs, CLIs, SDKs, libraries, platforms, docs). (gstack) Voice triggers (speech-to-text aliases): "dx review", "developer experience review", "devex review", "devex audit", "API design review", "onboarding review".

    Also in 9 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • ayudaySkill

    setup-deploy

    Configure deployment settings for /land-and-deploy. Detects your deploy platform (Fly.io, Render, Vercel, Netlify, Heroku, GitHub Actions, custom), production URL, health check endpoints, and deploy status commands. Writes the configuration to CLAUDE.md so all future deploys are automatic. Use when: "setup deploy", "configure deployment", "set up land-and-deploy", "how do I deploy with gstack", "add deploy config".

    Also in 11 projects that use this

  • Kit4SomeSkill

    unfreeze

    Also in 12 projects that use this

  • AICreator-WindSkill

    design-consultation

    设计合作伙伴工具。构建完整设计系统,提供专业设计建议。

    Also in 12 projects that use this

  • +1 more from seek888

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 18 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use it only when the request identifies or clearly implies changes to review, such as a diff, pull request, branch, commit, patch, or …

    line 18
  2. Distinctive:

    Do not use this skill for a general assessment of an existing file, API, architecture, design, implementation, document, or other artifact …

    line 20
  3. Distinctive:

    If "review" could mean either a general assessment or a change review, ask the user which they want.

    line 23
  4. Distinctive:

    If they want a change review but have not identified the comparison, ask what prior state or base should be used.

    line 24
  5. Distinctive:

    Do not proceed to Step 1 until the request is confirmed as a change review.

    line 25
  6. Distinctive:

    Before doing anything, ask the user:

    line 39
  7. Distinctive:

    Wait for the user's response.

    line 48
  8. Distinctive:

    Read per-file diffs in batches (~50 files or ~500 changed lines per batch, whichever is smaller):

    line 92
  9. Distinctive:

    After reading diffs, identify files where fuller context is needed — typically where the change touches a function that references shared …

    line 106
  10. Distinctive:

    If a change threads a new prop, callback, flag, or data field through a shared component or helper, read every changed call site and …

    line 114
  11. Distinctive:

    No code gate: If no executable logic files remain after exclusions (only docs/config changed), skip Breaker.

    line 118
  12. Distinctive:

    Check whether any API report files changed (names only, not content — these are excluded from diff reading in Step 3):

    line 122
  13. Distinctive:

    If any matched, flag those packages for the API Analyst (triggers extra scrutiny on release tags, breaking changes, and conventions).

    line 133
  14. Distinctive:

    All reviews cover these areas.

    line 157
  15. Distinctive:

    Before a finding can appear in the report, verify ALL of these:

    line 168
  16. Distinctive:

    If a claim depends on generic hardening advice, guessed nullability, speculative behavior, or an unverified assumption about a dependency, …

    line 175
  17. Very specific:

    If $IS_LOCAL_REVIEW is true: "This is a LOCAL review — the workspace checkout matches the code under review.

    line 251
  18. Very specific:

    Always print: Review report written to /tmp/review-report.md when writing to file.

    line 279
  19. Very specific:

    If zero findings remain after the evidence gate, use the exact summary line: 0 CRITICAL, 0 HIGH, 0 MEDIUM — No high-confidence issues found …

    line 281
  20. Distinctive:

    After severity caps and promotions:

    line 322
  21. Distinctive:

    No executable code after exclusions: Skip Breaker.

    line 342

“Common” is measured: kept by at least 6 in 10 of the 167 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
/review                              # review current branch vs its resolved target
/review my-feature-branch            # review a specific branch vs its resolved target

Spawns dedicated Breaker (correctness) and API Analyst (compatibility/conventions) sub-agents in parallel while the orchestrator performs the Inspector pass (architecture, tests, performance, security). Depth is user-selected.

Optimize for high-confidence, concise findings. Silence is better than speculation.

Scope Gate

This skill reviews a change set relative to a prior state. Use it only when the request identifies or clearly implies changes to review, such as a diff, pull request, branch, commit, patch, or working-tree changes.

Do not use this skill for a general assessment of an existing file, API, architecture, design, implementation, document, or other artifact when no comparison is requested. Handle that request directly using the relevant domain guidance instead.

If "review" could mean either a general assessment or a change review, ask the user which they want. If they want a change review but have not identified the comparison, ask what prior state or base should be used. Do not proceed to Step 1 until the request is confirmed as a change review.

Input

Target: $ARGUMENTS

Parse $ARGUMENTS:

  1. Review target (positional argument):
    • Non-empty text (e.g., my-feature-branch) -> diff that branch vs its resolved target
    • Empty -> diff current branch vs its resolved target

Step 1: Confirm Mode

Before doing anything, ask the user:

I can run a code review on your branch. Pick a depth (fastest to slowest):

  1. Skip — skip the review
  2. Quick — single-pass by orchestrator, all areas, no sub-agents
  3. Standard — full swarm: Breaker + API Analyst sub-agents + Inspector
  4. Deep — Standard + reads full changed files (not just diffs) for deeper analysis

Wait for the user's response. If they say skip, stop here.

<required> Immediately after the user picks a mode, create one task per applicable step using TaskCreate — before doing any other work. Mark each task in_progress when you start it and completed when you finish.

Tasks to create by mode:

  • Quick: Gather changes -> Read diffs -> Perform single-pass review -> De-duplicate and classify -> Report
  • Standard: Gather changes -> Read diffs -> Detect API surface changes -> Extract sections for sub-agents -> Perform review (spawn Breaker + API Analyst, run Inspector) -> De-duplicate and classify -> Report
  • Deep: Gather changes -> Read diffs and full files -> Detect API surface changes -> Extract sections for sub-agents -> Perform review (spawn Breaker + API Analyst, run Inspector) -> De-duplicate and classify -> Report</required>

Step 2: Resolve Base & Gather Changes

Read .claude/skills/comparison-base/SKILL.md and execute it before gathering changes. This is required; do not duplicate or approximate its target-selection logic in this skill. Use HEAD as $REVIEW_REF for the current branch, or pass the named review branch as its input. Retain all resolver outputs for the report and subsequent commands.

Choose the diff endpoint once and use it for the entire review:

  • Local review ($IS_LOCAL_REVIEW is true): compare $BASE_COMMIT with the working tree so staged and unstaged changes are included. Also collect untracked files with git ls-files --others --exclude-standard; treat each as a full-file addition.
  • Remote review: use the exact two-dot range $BASE_COMMIT..$REVIEW_REF. Do not switch to a three-dot diff later: that would recompute a potentially different merge-base.
git log "$BASE_COMMIT..$REVIEW_REF" --oneline

# Local review
git diff --stat "$BASE_COMMIT"
git diff --numstat "$BASE_COMMIT"
git ls-files --others --exclude-standard

# Remote review
git diff --stat "$BASE_COMMIT..$REVIEW_REF"
git diff --numstat "$BASE_COMMIT..$REVIEW_REF"

Store the PR URL (if any), target repository/branch, selected comparison commit, commit log, file list, and total $LINES_CHANGED (sum additions and deletions from --numstat; handle binary entries separately). For a local review, add every untracked file to the file list and count all of its lines as additions; detect untracked binary files separately.

Empty diff gate: Zero changed files -> report "No changes to review" and stop.

Size gate: >10,000 lines changed -> ask user to narrow scope before proceeding.

Step 3: Read Diffs and Source Files

Exclude non-reviewable files from the file list: type declarations (.d.ts), lockfiles (pnpm-lock.yaml, package-lock.json), images, fonts, binaries, .map files, and generated API report files (*.api.md).

Read per-file diffs in batches (~50 files or ~500 changed lines per batch, whichever is smaller):

# Local review (tracked files)
git diff "$BASE_COMMIT" -- <file1> <file2> ...

# Remote review
git diff "$BASE_COMMIT..$REVIEW_REF" -- <file1> <file2> ...

For local untracked files, read their full workspace contents and present them as full-file additions. They have no Git diff until staged.

Standard mode: selective full-file reads

After reading diffs, identify files where fuller context is needed — typically where the change touches a function that references shared state, calls other functions in the same file, or has fragmented hunks. Read those files in one batch using the Read tool.

Deep mode: full-file reads for all changed files

For a local review, read every changed file from the workspace so unstaged and untracked content is included. For a remote review, read the committed version using git show "${REVIEW_REF}:<file>".

Shared plumbing trap

If a change threads a new prop, callback, flag, or data field through a shared component or helper, read every changed call site and adjacent wrapper that accepts or forwards it.

Compute $LINES_REVIEWED: Count total unique lines reviewed — diff lines for diff-only files, full line counts for fully-read files. This is always >= $LINES_CHANGED.

No code gate: If no executable logic files remain after exclusions (only docs/config changed), skip Breaker. API Analyst does a reduced pass. Inspector only.

Step 4: Detect API Surface Changes

Check whether any API report files changed (names only, not content — these are excluded from diff reading in Step 3):

# Local review: also filter the untracked-file list gathered in Step 2
git diff --name-only "$BASE_COMMIT" | grep -E '\.api\.md$' || true
git ls-files --others --exclude-standard | grep -E '\.api\.md$' || true

# Remote review
git diff --name-only "$BASE_COMMIT..$REVIEW_REF" | grep -E '\.api\.md$' || true

If any matched, flag those packages for the API Analyst (triggers extra scrutiny on release tags, breaking changes, and conventions).

Step 5: Extract Sections for Sub-agents (Standard and Deep only)

Skip this step in Quick mode.

For files read in full that are >200 lines, extract only: modified functions (complete bodies), their callers (same file), and shared state. Format:

### file.ts (extracted — N lines from M total)
// Fields
#cache: Map<string, Promise<Foo>> = new Map();
// Modified: someMethod() — line 816
async someMethod(arg) { ... }
// Caller: #helperMethod — line 1118
async #helperMethod(arg) { ... }

Files <=200 lines: embed in full. Store as $EXTRACTED_SECTIONS.

Step 6: Perform Review

Review Areas

All reviews cover these areas. The mode determines whether sub-agents handle some of them.

  • Correctness — Logic bugs, null/undefined dangers, race conditions, error handling, edge cases, distributed systems concerns (op ordering, eventual consistency, merge conflicts), DDS lifecycle (attach/detach, summarization), SharedTree patterns (schema validation, tree transactions)
  • API Quality — Breaking changes, release tag correctness, naming conventions, type design, ergonomics, cross-package impact, deprecation patterns (informed by api-conventions.md)
  • Architecture — Readability, structure, API surface, stale references
  • Tests — Coverage, edge cases, assertion quality, test-code consistency
  • Performance — Algorithmic complexity, memory leaks, telemetry correctness (are events firing with the right data?)
  • Security — Injection, input validation, PII leaks, token handling

High-confidence gate

Before a finding can appear in the report, verify ALL of these:

  1. The affected code path (changed or directly impacted adjacent path) is identified.
  2. The failure mechanism or violated invariant is concrete, not hypothetical.
  3. The claimed impact is proportional to the evidence.
  4. The suggested fix addresses the exact issue.

If a claim depends on generic hardening advice, guessed nullability, speculative behavior, or an unverified assumption about a dependency, read more context or drop it.

Output format for all findings: [SEVERITY] file:line — description — suggested fix (CRITICAL, HIGH, MEDIUM).


Quick mode

The orchestrator covers all areas in a single pass, then proceeds to Step 7.

Standard and Deep mode

Two parallel tracks:

AreaOwner
CorrectnessThe Breaker (sub-agent)
API QualityThe API Analyst (sub-agent)
Architecture, Tests, Performance, SecurityThe Inspector (orchestrator)

The Breaker — owns Correctness

Think like a chaos monkey working on a distributed systems framework. Your sole focus is finding ways this code produces wrong results, crashes, or behaves unexpectedly.

You are NOT here to praise good code. You are here to BREAK things.

Your mindset:

  • "What if two clients send conflicting ops simultaneously?"
  • "What if the network dies mid-operation?"
  • "What if I attach, detach, then reattach?"
  • "What happens at the edges — empty collections, maximum sizes, zero-length ops?"
  • "What if the dependency changes or a guard was removed but its siblings weren't?"
  • "What if summarization runs while ops are in flight?"
  • "What if I call this before the container is connected?"

The API Analyst — owns API Quality

Think like a developer advocate who deeply understands TypeScript API design. Your sole focus is ensuring this code presents a clean, consistent, user-friendly API surface that follows Fluid Framework conventions.

You are NOT here to praise good code. You are here to find API design problems.

Your mindset:

  • "Would a new user understand this API from IntelliSense alone?"
  • "Does this naming follow our conventions?"
  • "Is this a breaking change? Is the release tag correct?"
  • "Are generics earning their keep or just adding noise?"
  • "Does this type design play well with others — plain data, JSON-compatible?"
  • "Will this deprecation path actually work for consumers?"
  • "Is there unnecessary complexity that could be a simpler overload?"

The API Analyst receives the contents of api-conventions.md (in this skill's directory) as part of its prompt.

Read api-conventions.md:

cat .claude/skills/review/api-conventions.md

The Inspector (orchestrator)

While sub-agents run, perform the Architecture, Tests, Performance, and Security pass yourself using full diff context and cross-file reasoning.


Spawning Sub-agents

Spawn all sub-agents in a single parallel batch using the Agent tool.

Each sub-agent prompt includes — literally pasted into the prompt text:

  1. Persona description (from above)
  2. Changed file list
  3. Full diff from Step 3 — paste the entire diff output
  4. Extracted sections from Step 5 — paste the full extracted code
  5. API conventions (API Analyst only) — paste the contents of api-conventions.md
  6. Output format: [SEVERITY] file:line — description — suggested fix
  7. Review mode instruction:
    • If $IS_LOCAL_REVIEW is true: "This is a LOCAL review — the workspace checkout matches the code under review. You may read workspace files for additional context (callers, type definitions, adjacent logic) when the embedded material is insufficient."
    • Otherwise: "This is a REMOTE review — the workspace checkout may be on a different branch. Do NOT read workspace files. ALL code you need is embedded above. Base your analysis ONLY on the diff and extracted sections provided."

Perform the Inspector pass yourself while sub-agents run. Wait for all to complete.

Step 7: De-duplicate and Classify

Classify each finding and adjust severity:

AreaMax SeverityAdjustment
CorrectnessCRITICALPromote +1 level (MEDIUM->HIGH, HIGH->CRITICAL)
API QualityCRITICALPromote +1 level (MEDIUM->HIGH, HIGH->CRITICAL)
PerformanceHIGHCap
ArchitectureHIGHCap
TestsHIGHCap
SecurityMEDIUMCap

Multi-area findings: classify in whichever area gives higher severity. Drop uncertain findings. If a concern depends on guesswork, hypothetical misuse, or hardening beyond an already-enforcing layer, omit it.

Step 8: Report

Deduplicate on file:line, sort by severity. Drop "looks correct" findings.

Output routing:

  • 5 or fewer findings: Print the full report to the terminal.
  • More than 5 findings: Write the full report to /tmp/review-report.md and print a summary to the terminal: verdict line, finding counts by area, and the file path.

Always print: Review report written to /tmp/review-report.md when writing to file.

If zero findings remain after the evidence gate, use the exact summary line: 0 CRITICAL, 0 HIGH, 0 MEDIUM — No high-confidence issues found in the current diff.

Report Template

# Code Review Report

**Target**: Branch: <branch-name>
**Base**: <target-repository>:<target-branch> at <comparison-commit>
**Mode**: quick | standard | deep
**Lines reviewed**: $LINES_REVIEWED ($LINES_CHANGED changed)

## Verdict: Approve | Approve with suggestions | Request changes

N CRITICAL, N HIGH, N MEDIUM — one-line summary of the overall assessment.

### Findings

| Sev | # | Area | File | What | Fix |
|---|---|---|---|---|---|
| :red_circle: | C1 | Correctness | file.ts:42 | Description of violation and impact | Concrete fix suggestion |
| :orange_circle: | H1 | API Quality | file.ts:80 | Description | Fix |
| :yellow_circle: | M1 | Tests | file.test.ts:12 | Description | Fix |

**By area:** Correctness: 1:red_circle:  API Quality: 1:orange_circle:  Tests: 1:yellow_circle:

### Changes Overview

Table of each changed file -> what changed and why.

### Suggestions

Optional, non-blocking improvements. Each must propose a **concrete action** — never just describe what's already there. Omit this section if there are none.

---
Generated with review (mode)

Verdict rules

After severity caps and promotions:

  • Approve: 0 CRITICAL, 0 HIGH
  • Approve with suggestions: 0 CRITICAL, 0 HIGH in Correctness/API Quality, some HIGH/MEDIUM elsewhere
  • Request changes: 1+ CRITICAL, or 1+ HIGH in Correctness/API Quality, or 3+ HIGH across other areas

Step 9: Offer Next Steps

What next?
1. Explain a specific finding
2. Fix all critical/high issues
3. Re-review after changes

Edge Cases

  • Empty diff: Report "No changes to review" and stop.
  • 10,000 lines changed: Ask user to narrow scope.

  • Comparison-base resolution issue: Follow the edge-case handling in .claude/skills/comparison-base/SKILL.md.
  • No executable code after exclusions: Skip Breaker. API Analyst reduced pass. Inspector only.
  • Sub-agent timeout: Note "Review incomplete" for that area.

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.