agentleFS
chrisallenlanechrisallenlane/claude-swe-workflows/skills/review-perf/SKILL.md

review-perf

Skill21 starsChanged 16 days agoMITView on GitHub

Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made.

5 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review-design, review-code and 1 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.
  • dirkkok101Skill

    review-design

    Use before /plan, after /technical-design, when user says "review design", "check the design", or when design quality is uncertain.

    Also in 3 projects that use this

  • NVIDIASkill

    review-code

    Review a code repository for concrete issues in correctness, robustness, security, maintainability, tests, and integration. Use for repository-wide or focused code review where practical engineering judgment and strict scope control matter.

    Also in 3 projects that use this

  • MicrosoftSkill

    git-commit

    Stage user-selected paths, confirm the exact staged set, and create one local Conventional Commit, or generate a commit message for staged changes without committing. Use when you want a guarded commit or a ready-to-paste message.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 7

    Distinctive

    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
  1. Distinctive:

    If the invocation or caller supplies scope, use it and skip this question.

    line 65
  2. Distinctive:

    The cross-cutting section is your synthesis: Don't just concatenate the two reviewer outputs — look for issues that span both domains.

    line 187
  3. Distinctive:

    Wait for all agents to complete before presenting the consolidated report

    line 192
  4. Distinctive:

    If an agent fails or times out, note the failure in the report and continue with other results

    line 193
  5. Distinctive:

    Not a git repository

    line 198
  6. Distinctive:

    No source files detected in scope

    line 199
  7. Distinctive:

    Only one domain applies (run the applicable reviewer)

    line 202

“Common” is measured: kept by at least 6 in 10 of the 5 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

Performance Review

Advisory-only performance review. Detects whether the project contains web content, non-web source code, or both, and dispatches the appropriate performance reviewer(s). No changes are made.

Philosophy

Measure, don't guess. Performance intuitions are unreliable. The reviewers identify structural issues and recommend what to measure, not just what to optimize.

Two domains, one workflow. Compute performance (algorithms, memory, CPU) and web performance (network latency, caching, asset delivery) are fundamentally different disciplines. This skill dispatches the right specialist(s) for the project rather than applying one lens to everything.

Diagnostic, not therapeutic. This skill identifies performance problems and recommends fixes. It does not implement them. Ask for changes directly after reviewing the findings, or use /implement with the review as context.

Workflow Overview

┌──────────────────────────────────────────────────────┐
│                 PERFORMANCE REVIEW                   │
├──────────────────────────────────────────────────────┤
│  1. Detect project type (web, non-web, or both)      │
│  2. Determine scope                                  │
│  3. Dispatch performance reviewer(s)                 │
│  4. Present consolidated report                      │
└──────────────────────────────────────────────────────┘

Workflow Details

1. Detect Project Type

Scan the project for source files to determine what performance domains apply.

Web indicators (any of these → dispatch web reviewer):

IndicatorSignal
.html, .htm, .jsx, .tsx, .vue, .svelteStrong
package.json with web framework (react, vue, next, nuxt, astro, etc.)Strong
webpack.config.*, vite.config.*, next.config.*Strong
.css, .scss, .less files (more than a few)Moderate
_headers, _redirects, vercel.json, netlify.tomlModerate
Service worker files (sw.js, service-worker.js)Strong

Non-web indicators (any of these → dispatch compute reviewer):

IndicatorSignal
.go, .rs, .c, .cpp, .java, .py, .rb, .zig source filesStrong
Existing benchmarks (*_bench*, Benchmark in test files, criterion)Strong
Database query code (SQL files, ORM usage)Moderate
Data processing pipelines (ETL, batch processing)Moderate
CLI tool entry pointsModerate

Full-stack projects will have both indicators — dispatch both reviewers.

If neither is detected: Report "No performance-relevant source code detected in this project." and abort.

2. Determine Scope

If the invocation or caller supplies scope, use it and skip this question. Otherwise, present the detected project type and ask the user:

Detected project characteristics:
  - Web content: [Yes — N files / No]
  - Source code: [Yes — N files in Go, Python, etc. / No]

Performance domains to review:
  - [x] Web performance (caching, assets, loading strategy)
  - [x] Compute performance (algorithms, memory, benchmarks)

What should I review?
  - Both domains (default)
  - Web performance only
  - Compute performance only
  - Specific directory/scope

Accept the user's selection. Default: all applicable domains, entire project.

3. Dispatch Performance Reviewers

Spawn the applicable reviewer(s) in parallel.

Web performance reviewer (if web content detected and not excluded):

Spawn a swe-web-perf-reviewer agent:

Review this project for web performance issues.
Scope: [scope]

Read all relevant files (HTML, CSS, JS, build configs, server configs)
and perform your full audit:
1. Detect tooling and environment (build tools, monitoring, server config)
2. Audit across all categories: caching, asset delivery, critical path,
   resource loading, images, JavaScript cost, CSS efficiency, network
   overhead, Core Web Vitals risk factors
3. Classify every issue by severity (CRITICAL / HIGH / LOW)

Produce your standard output format with summary, issues by severity,
caching assessment, asset delivery assessment, and tooling recommendations.

Compute performance reviewer (if non-web source detected and not excluded):

Spawn a swe-perf-reviewer agent:

Review this project for computational performance issues.
Mode: full review
Scope: [scope]

Perform your full review:
1. Identify the hot paths — where work multiplies with input size or
   frequency — and establish n and the budget for each from the repo
2. Run the project's existing benchmarks or profilers on them, if any;
   otherwise cost them as labeled static estimates
3. Report paths that are too slow for their scale, and machinery that is
   over-provisioned for it
4. Recommend measurement infrastructure only where measuring would change
   a decision at the documented scale

Produce your standard output format: hot paths, findings by severity,
over-provisioned machinery, and cold paths dismissed.

4. Present Consolidated Report

Collect all agent responses. Present a consolidated report:

## Performance Review

Scope: [what was reviewed]
Domains reviewed: [Web / Compute / Both]

### Web Performance
[web reviewer findings — or "Not applicable" if no web content]

Issues: N (X critical, Y high, Z low)

[merged findings by severity]

---

### Compute Performance
[compute reviewer findings — or "Not applicable" if no non-web source]

Issues: N (X critical, Y high, Z low)

#### Hot Paths
[per path: n, frequency, budget, cost, verdict — from the reviewer's HOT PATHS]

[merged findings by severity]

#### Over-Provisioned Machinery
[from the reviewer's OVER-PROVISIONED MACHINERY, with the simpler replacement — or "none found"]

#### Cold Paths Dismissed
[from the reviewer's COLD PATHS DISMISSED, one line each]

---

### Cross-Cutting Concerns
[Your synthesis — issues that span both domains. For example:
- Server-side rendering that is both a compute bottleneck and a web loading issue
- API response times that are both an algorithmic problem and a network latency problem
- Database queries that affect both backend throughput and frontend time-to-interactive
If no cross-cutting concerns, omit this section.]

### Suggested Next Steps
[Based on findings:
- If critical/high issues found: recommend fixing them, noting which
  domain each belongs to
- If over-provisioned machinery found: recommend `/refactor` scoped to
  that module (it changes code; this skill only recommends it)
- If no significant issues: "No significant performance issues found"
- If missing tooling: recommend specific tools (Lighthouse, benchmarking
  frameworks, profiling tools)]

The cross-cutting section is your synthesis. Don't just concatenate the two reviewer outputs — look for issues that span both domains.

Agent Coordination

  • Both reviewer agents run in parallel (they are read-only and independent)
  • Wait for all agents to complete before presenting the consolidated report
  • If an agent fails or times out, note the failure in the report and continue with other results

Abort Conditions

Abort:

  • Not a git repository
  • No source files detected in scope

Do NOT abort:

  • Only one domain applies (run the applicable reviewer)
  • Missing performance tooling (reviewers will note this in their findings)
  • A single agent fails in a dual-agent dispatch (report failure, continue)
  • Few issues found (report "no significant issues" — that's a valid outcome)

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.