Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计未展示

brewcode%3astandards-reviewbrewcode 3astandards 审查

Agent Skill

brewcode%3astandards-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

303

周安装

13

GitHub Stars

24

下载量

106
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:brewcode%3astandards-review(brewcode 3astandards 审查)
来源仓库:https://github.com/kochetkov-ma/claude-brewcode
仓库路径:skills/brewcode%3Astandards-review
安装命令:
npx skills add https://github.com/kochetkov-ma/claude-brewcode --skill brewcode:standards-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/kochetkov-ma/claude-brewcode --skill brewcode:standards-review

简介

brewcode%3astandards-review 执行代码标准审查,优先引用而非重复造轮子。

  • 适用于检查 CLAUDE.md、rules/*.md 及 stack-specific 指南的一致性。
  • 支持在报告后追加 /simplify 以提升效率与热点逻辑优化。
  • 运行前必须加载 references/rules-review.md,否则立即终止。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Standards Review

Review Priorities

PrioritySourceFocus
1Existing codeSearch FIRST, import instead of creating
2CLAUDE.mdProject standards, conventions, patterns
3rules/*.mdStrict rules with numbers — check ALL [avoid#N], [bp#N]
4references/{stack}.mdStack-specific guidelines from this skill

Phase 0: User Confirmation

BEFORE any analysis, ask the user using AskUserQuestion tool:

"Run /simplify at the end for an additional review pass (efficiency, concurrency, hot-paths)? This will increase execution time."
OptionValue
A"Yes - run /simplify after report"
B"No - standards review only"

Remember the answer. If "Yes" - execute Phase 7 after Phase 6. If "No" - stop after Phase 6.


Input

InputExampleAction
Empty/standards-reviewBranch vs main/master
Commitabc123Single commit
Foldersrc/main/java/...Folder contents

Arguments: $ARGUMENTS

Phase 1: Detect Tech Stack

Check project root for stack indicators:

Files PresentStackReference
pom.xml, build.gradle, build.gradle.ktsJava/Kotlinreferences/java-kotlin.md
package.json with react/typescriptTypeScript/Reactreferences/typescript-react.md
pyproject.toml, setup.py, requirements.txtPythonreferences/python.md
ACTION: When stack confirmed → READ references/{stack}.md (relative to this skill directory) and use as expert guidelines.

Multi-stack: If multiple detected, read ALL matching references, process each separately.

Unknown stack: Use only project's .claude/rules/ — skip stack reference.

Phase 2: Get Files

Based on detected stack, use appropriate patterns:

StackPatternsCommand
Java/Kotlin*.java, *.ktgit diff --name-only... -- '*.java' '*.kt'
TypeScript/React*.ts, *.tsx, *.js, *.jsxgit diff --name-only... -- '*.ts' '*.tsx'
Python*.pygit diff --name-only... -- '*.py'

Commands by input type:

# Commit
git diff --name-only {COMMIT}^..{COMMIT} -- {PATTERNS} | head -50

# Branch (auto-detect main/master)
MAIN=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
git diff --name-only ${MAIN}...HEAD -- {PATTERNS} | head -50

# Folder
find {FOLDER} -type f \( {FIND_PATTERNS} \) | head -50

Phase 3: Load Context

SourceFilesCondition
Stack referencereferences/{stack}.mdBased on Phase 1 detection
Project rules.claude/rules/avoid.md, .claude/rules/best-practice.md, .claude/rules/*-avoid.md, .claude/rules/*-best-practice.md, .claude/rules/*.mdMay not exist
Project standardsCLAUDE.md, .claude/CLAUDE.mdMay not exist

Search-First Protocol

Before reviewing code: identify new utilities/helpers/patterns/abstractions → search via grepai_search, check common locations → decide based on similarity.

Common Locations by Stack:

StackSearch Paths
Java/Kotlin**/util/, **/common/, **/shared/, **/core/
TypeScript/React**/components/common/, **/shared/, **/hooks/, **/utils/
Python**/utils/, **/common/, **/lib/, **/helpers/

Similarity Decision Matrix:

SimilarityDecisionAction
90-100%REUSEImport existing
70-89%EXTENDAdd params/config to existing
50-69%CONSIDEREvaluate effort vs benefit
<50%KEEP_NEWJustified new code

Phase 4: Expert Analysis

Step 4.1: Group Files by Type

From Phase 2 file list, group by pattern matching:

Java/Kotlin:

GroupPatternFocus
entities**/entity/*.java, **/model/*.ktEntity suffix, DI, Lombok
services**/service/*.java, **/service/*.ktStream API, constructor injection
tests**/*Test.java, **/*Test.ktAssertJ, BDD comments, no logs
buildpom.xml, build.gradle, build.gradle.ktsDependencies, plugins, versions

TypeScript/React:

GroupPatternFocus
styles**/styles.ts, **/*.styled.tsTheme tokens, no hardcoded colors
components**/*.tsxHooks, functional components
tests**/*.test.tsx, **/*.spec.tsJest patterns, coverage
buildpackage.json, tsconfig*.json, vite.config.*, webpack.config.*Dependencies, scripts, bundler config

Python:

GroupPatternFocus
modules**/*.py (non-test)Type hints, docstrings
tests**/test_*.py, **/*_test.pypytest patterns
configs**/config*.py, **/settings*.pyEnvironment handling
buildpyproject.toml, setup.py, setup.cfg, requirements*.txtDependencies, tool configs

Step 4.2: Spawn Experts (haiku per group)

For each non-empty group, spawn parallel haiku agent:

Template:

Task(subagent_type="Explore", model="haiku", prompt="
## Standards Review - {EXPERT_TYPE}

**Stack:** {STACK}
**SEARCH-FIRST:** Use grepai_search for finding existing code before flagging duplicates.

**Files:** {FILE_LIST}

**Project Rules:**
{RULES_CONTENT}

**Stack Guidelines:**
{STACK_REFERENCE_CONTENT}

**Output JSON:**
{
  \"changes\": [{
    \"location\": \"file:15-20\",
    \"description\": \"...\",
    \"existing\": \"path/to/similar|null\",
    \"reuse\": \"REUSE|EXTEND|CONSIDER|KEEP_NEW\",
    \"rating\": \"good|warning|bad\"
  }],
  \"violations\": [{
    \"file\": \"path\",
    \"line\": 42,
    \"rule\": \"avoid#5|best-practice#3|stack:entity-suffix\",
    \"issue\": \"...\",
    \"fix\": \"...\",
    \"severity\": \"error|warning|info\"
  }]
}
")

Phase 5: Validation (sonnet)

Task(subagent_type="reviewer", model="sonnet", prompt="
Validate EACH finding from expert analysis.
Read actual code at file:line locations.
Verify rule actually applies in context.

**Findings:** {AGGREGATED_JSON}

**Output:** [
  {\"id\": \"1\", \"verdict\": \"CONFIRM|REJECT\", \"reason\": \"...\"}
]
")

Phase 6: Report

Create Report Directory

TIMESTAMP=$(date +"%Y%m%d-%H%M%S")
REPORT_DIR=".claude/reports/${TIMESTAMP}_standards-review"
mkdir -p "${REPORT_DIR}"

REPORT.md Structure

# Standards Review Report

**Generated:** {TIMESTAMP}
**Stack:** {DETECTED_STACK}
**Scope:** {INPUT_TYPE} - {INPUT_VALUE}
**Files Reviewed:** {COUNT}

## Summary

| Category | Count | Severity |
|----------|-------|----------|
| Violations | X | Y errors, Z warnings |
| Reuse Opportunities | X | - |
| Good Patterns | X | - |

## Violations

### Errors

| File | Line | Rule | Issue | Fix |
|------|------|------|-------|-----|
| path | 42 | avoid#5 | Description | Suggested fix |

### Warnings

| File | Line | Rule | Issue | Fix |
|------|------|------|-------|-----|

## Reuse Opportunities

| New Code | Existing | Similarity | Action |
|----------|----------|------------|--------|
| path:15-20 | util/X.java | 85% | EXTEND |

## Good Patterns Found

| File | Pattern | Description |
|------|---------|-------------|
| path | stream-api | Proper use of Stream API |

## Reuse Statistics

| Metric | Value |
|--------|-------|
| Total new code blocks | X |
| Reusable (>70%) | Y |
| Reuse rate | Z% |

## Legend

**Severity:** error (must fix), warning (should fix), info (consider)
**Reuse:** REUSE (import), EXTEND (modify existing), CONSIDER (evaluate), KEEP_NEW (justified)
**Rating:** good (exemplary), warning (suboptimal), bad (violation)

Phase 7: Simplify Pass (conditional)

Execute ONLY if user answered "Yes" in Phase 0.

After Phase 6 report is written, invoke:

Skill(skill="simplify", args="{INPUT_VALUE}")

Where {INPUT_VALUE} is the same scope used in this review (commit, branch, or folder from Phase 2).

If user answered "No" in Phase 0 - skip this phase entirely.

Error Handling

ConditionAction
No files foundExit: "No files to review for {SCOPE}"
>50 filesWarn user, suggest narrowing scope
Unknown stackContinue with project rules only
No rules foundContinue with stack reference only
All compliantReport: "All code compliant with standards"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.92%
按下载量换算37

Claude

27.52%
按下载量换算29

Cursor

19.13%
按下载量换算20

Gemini CLI

10.12%
按下载量换算11

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/kochetkov-ma/claude-brewcode --skill brewcode:standards-review 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills