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

brewcode%3asetupbrewcode 3asetup 搜索

Agent Skill

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

总安装

294

周安装

12

GitHub Stars

24

下载量

95
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

brewcode%3asetup 分析项目结构并生成适配策略,辅助技术栈识别与初始化。

  • 适合新项目或遗留系统改造,自动探测语言、框架与构建工具。
  • 输出包含技术选型、目录建议和初始配置的 Adaptation Plan。
  • 依赖 setup.sh 脚本执行扫描,要求插件已正确安装并具备执行权限。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Phase 1: Project Structure Analysis

Agent: Explore | Action: Scan project and gather intelligence

Context: BC_PLUGIN_ROOT is available in your context (injected by pre-task.mjs hook).

Scan Commands

EXECUTE using Bash tool — gather project info:

bash "scripts/setup.sh" scan && echo "✅ scan" || echo "❌ scan FAILED"
STOP if ❌ — check script exists and plugin is installed.

Phase 2: Intelligence Analysis

Agent: Plan | Action: Consolidate findings and create adaptation strategy

Create Adaptation Plan

# Adaptation Plan

## Tech Stack
- Language: [Java/Node.js/Python/Go/Rust]
- Framework: [Spring Boot/Express/Django/etc]
- Build: [Maven/Gradle/npm/pip/cargo]

## Testing
- Framework: [JUnit 5/pytest/Jest/Go testing]
- Assertion: [AssertJ/Hamcrest/Chai/assert]
- Mocking: [Mockito/unittest.mock/Sinon]
- Data: [DBRider/Testcontainers/fixtures]

## Database
- Type: [PostgreSQL/MySQL/MongoDB/Redis/ClickHouse]
- Access: [JOOQ/JPA/Hibernate/Sequelize/SQLAlchemy]

## Project Agents
- agent-name: purpose (model)

## Key Patterns (from CLAUDE.md)
- Pattern 1
- Pattern 2
- Pattern 3

## Template Adaptations
- Update AGENTS section with project agents
- Add tech-specific constraints
- Customize verification checklists
- Add database-specific final review agent

Phase 3: Template Generation

Agent: developer | Action: Generate adapted template at .claude/tasks/templates/PLAN.md.template

Create Structure

EXECUTE using Bash tool:

bash "scripts/setup.sh" structure && echo "✅ structure" || echo "❌ structure FAILED"
STOP if ❌ — verify.claude/tasks directory is writable.

Copy/Update Templates

EXECUTE using Bash tool — sync templates from plugin (always overwrites if changed):

bash "scripts/setup.sh" sync && echo "✅ sync" || echo "❌ sync FAILED"
STOP if ❌ — verify plugin templates exist.
Note: Templates synced from plugin. Rules created once (never overwritten). Review skill adapted by AI.

Template Modifications

SectionAdaptation
AgentsAdd project-specific agents from .claude/agents/
Reference ExamplesFill with project's reference files (controllers, services, tests)
Phase V agentsCustomize reviewer focus for detected testing/code patterns
Final ReviewAdd project agents (db_expert, etc.) if relevant tech detected

Required Sections

Preserve universal structure. Key sections to adapt:
## Agents — Add project agents above Core Agents
## Reference Examples — R1..RN with project's canonical files
## Phases — Each phase has: Agent, Status, Context (C#), Refs (R#)
## Phase NV: Verification — 2+ agents, one checks patterns compliance
## Final Review — 3+ agents parallel
## Context Index — C1..CN task-specific files

Phase 3.5: Copy and Adapt Review Skill

Agent: developer | Action: Copy review skill template and adapt for project

Create Review Skill Directory and Copy Template

EXECUTE using Bash tool — create directory and copy review skill template:

bash "scripts/setup.sh" review && echo "✅ review" || echo "❌ review FAILED"
STOP if ❌ — verify review template exists in plugin.

Adapt Review Skill

Replace placeholders based on Phase 2 analysis:

PlaceholderSourceExample
{PROJECT_AGENTS_TABLE}.claude/agents/ scan`\db_expert \PostgreSQL \DB layer \`
{TECH_SPECIFIC_CHECKS}Detected tech stackSee Tech-Specific Checks below
{PROJECT_RULES}CLAUDE.md patternsAssertJ rules, Lombok, logging
{MAIN_AGENT}Project agent or reviewerreviewer
{TEST_AGENT}Project agent or testertester
{DB_AGENT}Project agent or sql_expertdb_expert
{CUSTOM_GROUPS}Additional review groupsSecurity, API validation
{CODEBASE_BLOCKS}Detected source patternssrc/main/**, src/test/**

Tech-Specific Checks Templates

Java/Spring:

| Category | Checks |
|----------|--------|
| DI | Constructor injection, no field injection, @RequiredArgsConstructor |
| Transactions | @Transactional scope, rollback rules, isolation levels |
| Null-safety | Optional usage, @NonNull/@Nullable, null checks |
| N+1 | Eager vs lazy loading, batch fetching, entity graphs |
| Security | @PreAuthorize, input validation, SQL injection |
| Lombok | @Value, @Builder, @Slf4j usage |

Node.js/TypeScript:

| Category | Checks |
|----------|--------|
| Async | Promise handling, unhandled rejections, async/await |
| Types | Strict null checks, type guards, generics |
| Validation | Input sanitization, schema validation (Zod/Joi) |
| Security | XSS prevention, CSRF tokens, helmet.js |
| Imports | ESM vs CJS, barrel exports, circular deps |

Python:

| Category | Checks |
|----------|--------|
| Type hints | Function signatures, return types, generics |
| Exceptions | Specific exception types, context managers |
| Async | asyncio patterns, event loop handling |
| Security | SQL parameterization, input validation |
| Style | PEP8, docstrings, comprehensions |

Go:

| Category | Checks |
|----------|--------|
| Error handling | Error wrapping, sentinel errors, error types |
| Concurrency | Goroutine leaks, channel patterns, sync primitives |
| Memory | Slice capacity, pointer semantics, defer usage |
| Security | SQL injection, input validation |
| Interfaces | Small interfaces, composition |

Validation

EXECUTE using Bash tool — verify review skill:

test -f .claude/skills/brewcode-review/SKILL.md && echo "✅ Review skill created" || echo "❌ Review skill MISSING"
grep -q "Tech-Specific\|tech-specific\|Category.*Checks" .claude/skills/brewcode-review/SKILL.md && echo "✅ Tech checks" || echo "❌ Tech checks MISSING"
STOP if any ❌ — review skill must be created before continuing.

Phase 3.6: Copy Configuration

Agent: developer | Action: Copy configuration template for runtime settings

EXECUTE using Bash tool — copy/update config template:

bash "scripts/setup.sh" config && echo "✅ config" || echo "❌ config FAILED"
STOP if ❌ — verify.claude/tasks/cfg directory exists.

Configuration Options

SettingDefaultDescription
knowledge.maxEntries100Max KNOWLEDGE.jsonl entries after compaction
knowledge.maxTokens500Max tokens in ## K block injected to agents
knowledge.priorities["❌","✅","ℹ️"]Priority order for knowledge entries
stop.maxAttempts20Stop attempts before escape mechanism triggers
agents.system[...]System agents (don't receive ## K injection)
Hooks-only architecture: No external runtime. All context management via Claude Code hooks.

Phase 4: Validation

Agent: developer | Action: Verify template structure

EXECUTE using Bash tool — ALL must pass:

bash "scripts/setup.sh" validate && echo "✅ validate" || echo "❌ validate FAILED"
STOP if any ❌ — go back to "Copy Templates" step and fix.

Validation Report

CheckStatus
PLAN template.claude/tasks/templates/PLAN.md.template
SPEC template.claude/tasks/templates/SPEC.md.template
KNOWLEDGE template.claude/tasks/templates/KNOWLEDGE.jsonl.template
Config file.claude/tasks/cfg/brewcode.config.json
Project agents[N] from .claude/agents/
Reference Examples[N] canonical files populated
Tech-specific adaptationsTesting framework, DB patterns
Review skill.claude/skills/brewcode-review/SKILL.md

Phase 5: Update Global CLAUDE.md Agents

Agent: developer | Action: Update agents section in global CLAUDE.md

Step 1: Collect Agents

EXECUTE using Bash tool:

bash "scripts/setup.sh" agents > /tmp/agents-section.md && cat /tmp/agents-section.md
Output = Ready-to-insert content. Script collects system + global + plugin agents. Internal agents (bc-coordinator, bc-grepai-configurator, bc-knowledge-manager) are automatically excluded.

Step 2: Analyze Existing CLAUDE.md

READ ~/.claude/CLAUDE.md using Read tool.

LLM Analysis — find ALL agent-related sections:

  • ## Agents, ## Agent Selection, ### Core Agents, ### Global Utility Agents
  • Any tables with columns like Agent | Model | Purpose
  • Any lists of agent names (developer, tester, reviewer, etc.)

Identify boundaries:

  • Start line number of agent section(s)
  • End line number (before next unrelated ## heading)

Step 3: Ask User

ASK USER with AskUserQuestion:

  • Question: "Found agent sections in ~/.claude/CLAUDE.md. Replace with optimized LLM-friendly format?"
  • Options:

- "Yes — replace all agent sections" - "No — keep current format"

Step 4: If YES — Replace

CRITICAL: Use EXACTLY the content from /tmp/agents-section.md. DO NOT add agents manually — the script already filters internal agents. Internal agents (bc-coordinator, bc-grepai-configurator, bc-knowledge-manager) are excluded by design.

Using Edit tool:

  1. Read /tmp/agents-section.md to get the exact replacement content
  2. Find the ## Agents — DELEGATE! section in ~/.claude/CLAUDE.md
  3. Replace that section with the EXACT content from /tmp/agents-section.md
  4. Preserve ### Global Skills subsection if it exists (append after agents table)
  5. Preserve all non-agent content

Key: LLM determines section boundaries, not grep. Content comes from script output.


Output Format

# Template Adaptation Complete

## Detection

| Field | Value |
|-------|-------|
| Arguments | `{received args or empty}` |
| Mode | `full` |

## Tech Stack

| Category | Value |
|----------|-------|
| Language | [detected] |
| Framework | [detected] |
| Testing | [framework] |
| Database | [type/access] |
| Project Agents | [N]: `agent1`, `agent2` |

## Adaptations

| Section | Changes |
|---------|---------|
| Agents | +[N] project agents |
| Reference Examples | [N] canonical files |
| Phase V | Reviewers for [tech] patterns |
| Final Review | +[db_expert/project agents] |
| Review Skill | Tech-specific checks, project rules |

## Templates

**Plan template:** `.claude/tasks/templates/PLAN.md.template`
**Review skill:** `.claude/skills/brewcode-review/SKILL.md`

## Usage

/brewcode:spec "Implement feature X"
/brewcode:review "Check null safety"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

37.83%
按下载量换算36

Claude

30.81%
按下载量换算29

Cursor

19.06%
按下载量换算18

Gemini CLI

10.11%
按下载量换算10

安全审计

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

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills