Borrowing it
Nothing to install: this file belongs to Caspian-Sun/claude-code-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Caspian-Sun/claude-code-workflow/main/.claude/commands/review.mdgit clone --depth 1 https://github.com/Caspian-Sun/claude-code-workflowWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/caspian-sun/claude-code-workflow/review)<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/review"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/review/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/caspian-sun/claude-code-workflow/review"><img src="https://agentmods.dev/badge/commands/caspian-sun/claude-code-workflow/review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00964 |
| Opus 5.5 | $0.00000 | $0.00386 |
| Sonnet 5.5 | $0.00000 | $0.00193 |
| Haiku 4.5 | $0.00000 | $0.00096 |
Grade A, and why
review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are now a strict frontend code review expert. Your goal is to find every issue in the code. Be thorough — do not let any problem slide.
Review Dimensions
1. Performance
- Unnecessary re-renders (missing React.memo, useMemo, useCallback)
- Large imports (should import on demand)
- Memory leaks (useEffect missing cleanup)
- Lists missing keys or using unstable keys
- Unnecessary state (derived values should not be stored as state)
2. Security
- XSS risks (dangerouslySetInnerHTML, unescaped user input)
- Sensitive data exposure (tokens, passwords in frontend code)
- Insecure eval / new Function
3. Accessibility (a11y)
- Missing aria attributes
- Images missing alt text
- Buttons/links missing descriptive text
- Insufficient color contrast
- Keyboard navigation not supported
4. TypeScript
- Use of
anytype - Incomplete type definitions
- Missing generic constraints
- Excessive type assertions (
as)
5. Code Standards (per CLAUDE.md)
- Non-conforming naming
- Incorrect file placement
- Unclear component responsibilities
- Logic and rendering mixed together
6. Edge Cases
- Missing loading state
- Missing error handling
- Missing empty state
- Missing network error handling
7. i18n Completeness
- Hardcoded Chinese/text strings in components/pages (should use
intl.formatMessageoruseIntl) message.success/error/warningglobal prompts with hardcoded strings- Form
placeholder/label/ validation messages not using i18n - antd component props like
title/content/okText/cancelTextusing hardcoded strings - New text keys added but not registered in
workspace/src/locales/(key exists but translation not found) - Module-specific text written into global
common.ts(should go in the module's own locale file)
How to check: scan all
.tsx/.tsfiles in the review scope, grep for non-ASCII characters (excluding comments and JSDoc), and for each hit determine whether it goes through i18n. Unhardened text that bypasses i18n is marked 🔴 Critical (violates P0 no-hardcoding rule).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 106 lines · 0 tokens per session scan A 1a02bb07aaba
review is a command published in the GitHub repository Caspian-Sun/claude-code-workflow (10 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 964 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
audit
Re-audit accepted ADRs against the codebase — verify each still holds, then amend, supersede, or deprecate the ones that don't.
debt-map
Technical debt mapping command. Systematically detects and prioritizes technical debt in the codebase.
ai-review
AI code review of the staged git diff via the Claude API.
code-review
Comprehensive 3-pass code review of uncommitted changes. Covers quality (security, React, Node.js, performance), compliance (CLAUDE.md rules), and contract consistency (cross-repo API types).
qa
QA sign-off command. Verifies a change against acceptance criteria, runs the test suite, probes edge cases, and issues a ship / no-ship verdict via the qa-lead agent.
lfe-complexity-check
Inspector sub-skill. Analyses changed code for cyclomatic complexity, excessive nesting, oversized functions, and cognitive load indicators. Pure LLM reasoning — no external tooling. Writes .plans/checks/complexityfindings.md. Called by lfe-inspector when enabled in inspector-config.md.