code-review-compliance

code-review-compliance is a command for Claude Code from 854771076/oh-my-claude-roles. It costs 15 tokens per session (475 once invoked), scanned A, original, MIT.

A command that checks TypeScript and Next.js code against a company’s required coding, security, testing, and project rules. TypeScript adds types to JavaScript, while Next.js is a framework for building web applications.

In plain words
What is it for?
Use it to review selected files, group problems by severity, suggest concrete changes, and decide whether the code meets the company’s merge standard.
Why use it?
It identifies rule violations that could block a code merge, including unsafe data handling, weak type checks, incorrect server or client code, and missing tests.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to review selected files, group problems by severity, suggest concrete changes, and decide whether the code meets the company’s merge standard.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/854771076/oh-my-claude-roles/code-review-compliance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/854771076/oh-my-claude-roles

Made for: Claude Code.

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

agentmods badge for code-review-compliance

README.md
[![agentmods](https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/code-review-compliance/github.svg)](https://agentmods.dev/commands/854771076/oh-my-claude-roles/code-review-compliance)
Your own site
<a href="https://agentmods.dev/commands/854771076/oh-my-claude-roles/code-review-compliance"><img src="https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/code-review-compliance/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.

agentmods 80×15 button for code-review-compliance

Your own site · 80×15
<a href="https://agentmods.dev/commands/854771076/oh-my-claude-roles/code-review-compliance"><img src="https://agentmods.dev/badge/commands/854771076/oh-my-claude-roles/code-review-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 475 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00475
Opus 5 $0.00008 $0.00237
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00002 $0.00047

Measured 12d ago against content hash f2d4da720137, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

code-review-compliance 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 12d 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.

packages/fullstack/TypeScript/v1.0.0/commands/code-review-compliance.md · 41 lines

What it actually says

基于 TypeScript + Next.js 企业级规范做代码合规性审查

审查范围: $ARGUMENTS

执行步骤:

  1. 读取待审查的所有文件,逐一检查
  2. 按照以下维度检查:
    • 技术栈合规: 是否使用了规范禁止的替代方案,是否遵循唯一首选技术栈
    • 类型安全: 是否开启严格模式,是否存在 any,是否正确使用 Zod 类型校验
    • 命名规范: 文件、变量、函数、组件命名是否完全符合规范
    • Next.js 规范: 是否正确区分服务端/客户端组件,数据请求方式是否正确,环境变量前缀是否正确
    • 安全规范: 权限校验是否在服务端,是否存在 SQL 注入/XSS/CSRF 风险
    • 测试规范: 是否为新功能编写了对应测试,覆盖率是否达标
    • 工程规范: 代码符合 ESLint/Prettier 规则,提交信息符合 Conventional Commits
  3. 输出审查报告:
    • 列出所有不符合规范的问题,按严重程度分类
    • 为每个问题提供具体的修改建议
    • 给出最终是否符合合并标准的结论

检查要点:

  • 严格按照规范强制执行所有规则,不放宽标准
  • 问题描述清晰,提供可执行的修改方案
  • 区分强制规则违反和建议优化项,明确说明哪些问题必须修复才能合并

---

所有命令已生成完成,你可以将这些命令添加到 Claude Code 的 `.claude/commands 目录中即可使用。如果你需要创建可导入的技能包,可以使用以下命令:

/skill-create TypeScript + Next.js 企业级全栈开发规范

来创建完整技能包,包含上述所有命令。
Changes

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.

  1. 12d ago First seen · 41 lines · 15 tokens per session scan A f2d4da720137

Subscribe to this mod's changes

code-review-compliance is a command published in the GitHub repository 854771076/oh-my-claude-roles (22 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 475 once invoked, about $0.0001 per session on Opus 5. 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-30.