/review-perf
Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made.
$ npx -y skills add chrisallenlane/claude-swe-workflows --skill review-perf --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/review-perf
Context preview
The summary Claude sees to decide when to auto-load this skill.
Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made.
SKILL.md
review-perf.SKILL.mdname: review-perf
description: Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made.
model: opus
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):
| Indicator | Signal | |-------------------------------------------------------------------------|----------| | `.html`, `.htm`, `.jsx`, `.tsx`, `.vue`, `.svelte` | Strong | | `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.toml` | Moderate | | Service worker files (`sw.js`, `service-worker.js`) | Strong |
**Non-web indicators** (any of these → dispatch compute reviewer):
| Indicator | Signal | |--------------------------------------------------------------------------|----------| | `.go`, `.rs`, `.c`, `.cpp`, `.java`, `.py`, `.rb`, `.zig` source files | Strong | | 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 points | Moderate |
**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
Present 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.
Scope: [scope]
Read all source files within scope and perform your full review:
1. Scan for performance-critical code, existing benchmarks, and profiling
infrastructure
2. Assess benchmark coverage and quality
3. Identify optimization opportunities (algorithmic, memory, I/O,
concurrency)
4. Check for performance regressions and missing regression detection
Produce your standard output format with findings organized by priority.
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)
[merged findings by severity]
---
### Cross-Cutting Concerns
[Your synthesis — issues that span both domains. For example:
Read more
name: review-perf description: Performance review. Detects project type and dispatches compute and/or web performance reviewers. Advisory only — no changes made. model: opus
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):
| Indicator | Signal | |-------------------------------------------------------------------------|----------| | `.html`, `.htm`, `.jsx`, `.tsx`, `.vue`, `.svelte` | Strong | | `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.toml` | Moderate | | Service worker files (`sw.js`, `service-worker.js`) | Strong |
**Non-web indicators** (any of these → dispatch compute reviewer):
| Indicator | Signal | |--------------------------------------------------------------------------|----------| | `.go`, `.rs`, `.c`, `.cpp`, `.java`, `.py`, `.rb`, `.zig` source files | Strong | | 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 points | Moderate |
**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
Present 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. Scope: [scope] Read all source files within scope and perform your full review: 1. Scan for performance-critical code, existing benchmarks, and profiling infrastructure 2. Assess benchmark coverage and quality 3. Identify optimization opportunities (algorithmic, memory, I/O, concurrency) 4. Check for performance regressions and missing regression detection Produce your standard output format with findings organized by priority.
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) [merged findings by severity] --- ### Cross-Cutting Concerns [Your synthesis — issues that span both domains. For example:
Showing the first part of this file.
A system of composable software engineering workflows for Claude Code. Plan projects, implement tickets, and run quality passes — from a single ticket to a multi-batch project, using the same layered architecture.
Repo: chrisallenlane/claude-swe-workflows
Other skills on claude-swe-workflows.
- /bug-fix
Bug-fixing workflow that coordinates diagnosis, test-driven reproduction, root-cause analysis, and targeted fixes. Use when the user wants to fix a bug with thorough investigation and regression testing.
Open skill - /bug-hunt
Proactive bug-hunting workflow. Assesses codebase risk through complexity, coverage, and structural analysis, then spawns focused investigators that write reproducing tests to validate suspected bugs. Thoroughness over speed. Advisory only — produces findings and proposes
Open skill - /implement-batch
Multi-ticket batch workflow. Takes a batch of tickets, plans execution order, implements each via /implement in autonomous mode, runs cross-cutting quality passes, and presents results for final review.
Open skill - /implement-project
Full-lifecycle project workflow. Takes batched tickets, implements via /implement-batch, runs smoke tests, then executes a comprehensive quality pipeline (refactor, review-arch, review-test, tidy-docs, review-release). Maximizes autonomy with andon cord escape.
Open skill - /implement
Iterative development workflow that coordinates implementation, refactoring, QA, and documentation agents to complete features systematically. Use when the user wants a full development workflow with quality checks.
Open skill - /lead-bug-hunt
Autonomous bug-elimination loop. Iteratively invokes /bug-hunt and /implement-batch until findings converge below an operator-specified severity floor. At termination, runs /review-test scoped to the run's new reproducing tests and fixes quality issues above the floor.
Open skill

