Skills

Skills (recipes) are slash commands that define what to do. Each skill is described in a SKILL.md file with frontmatter metadata and instructions for agents. Brewcode includes 15 skills covering the full task lifecycle — from project analysis to secrets scanning.

Summary table

#SkillCommandModelPurpose
1setup/brewcode:setupopusProject analysis, template generation
2spec/brewcode:specopusSpecification creation through research
3plan/brewcode:planopusPlan creation from SPEC or Plan Mode
4start/brewcode:startopusTask execution with infinite context
5convention/brewcode:conventionopusConvention analysis and reference classes
6rules/brewcode:rulessonnetKnowledge-to-rules synchronization
7grepai/brewcode:grepaisonnetSemantic search management
8install/brewcode:installsonnetDependency installation
9teardown/brewcode:teardownhaikuPlugin file removal
10text-optimize/brewcode:text-optimizesonnetText optimization for LLMs
11text-human/brewcode:text-humansonnetAI artifact removal from code
12standards-review/brewcode:standards-reviewopusStandards compliance review
13skills/brewcode:skillsopusSkill management
14agents/brewcode:agentsopusAgent creation and improvement
15secrets-scan/brewcode:secrets-scansonnetSecrets and key scanning

setup — Project setup

opusfork

Analyzes the project structure, technology stack, test frameworks, and project agents. Generates adapted templates in .claude/tasks/templates/.

ParameterValue
Arguments[universal-template-path] (optional)
ToolsRead, Write, Glob, Grep, Bash, AskUserQuestion
Contextfork

Phases:

  1. Project scanning (setup.sh scan)
  2. Stack and pattern analysis
  3. Template generation (PLAN, SPEC, KNOWLEDGE, config)
  4. Adapted code review skill creation
  5. All artifact validation
  6. CLAUDE.md update (agent table)
/brewcode:setup

spec — Specification creation

opussession

Creates a structured specification through parallel codebase research and user dialog.

ParameterValue
Arguments[-n] <description> | <path-to-requirements>
ToolsRead, Write, Glob, Grep, Bash, Task, AskUserQuestion
Flag -nNo user questions (autonomous mode)

Process:

  1. Read and analyze input data
  2. 3-5 clarifying questions (skipped with -n)
  3. Check whether the task needs splitting
  4. Parallel research (5-10 agents simultaneously)
  5. Consolidation into SPEC.md
  6. Specification review (reviewer + fix loop)
/brewcode:spec "Implement JWT authorization with role-based model"
/brewcode:spec -n ./docs/requirements/auth.md

plan — Plan creation

opussession

Creates an execution plan (PLAN.md) with phases, dependencies, and completion criteria from a specification or Plan Mode file.

ParameterValue
Arguments[-n] [task-dir|SPEC.md|plan-file]
ToolsRead, Write, Glob, Grep, Bash, Task, AskUserQuestion
Flag -nAutonomous mode

Artifacts:

  • PLAN.md — Phase Registry (phase table)
  • phases/*.md — individual phase files
  • KNOWLEDGE.jsonl — empty file for knowledge accumulation
  • artifacts/ and backup/ — directories

Process:

  1. Determine source (SPEC or Plan Mode)
  2. Generate 5-12 phases with verification phases
  3. Quorum review (3 agents, 2/3 rule)
  4. Requirements tracing (SPEC -> phases)
  5. Quick ref update (.claude/TASK.md)
/brewcode:plan .claude/tasks/20260301_143052_auth_task/
/brewcode:plan -n

start — Task execution

opussession

Launches task execution with infinite context, automatic handoff between sessions, and failure escalation.

ParameterValue
Arguments[task-path], defaults to .claude/TASK.md
ToolsRead, Write, Edit, Bash, Task, Glob, Grep, Skill, AskUserQuestion

Mechanism:

  1. Initialization via bc-coordinator (lock, status)
  2. Task creation from Phase Registry (TaskCreate)
  3. Dependency setup (TaskUpdate)
  4. Execution loop: pending -> in_progress -> completed
  5. 2-step protocol: WRITE report -> CALL coordinator
  6. Finalization via coordinator
  7. Rule extraction (/brewcode:rules)

Failure escalation

After the 1st failure — R&D task. After the 2nd — split the phase into sub-phases. After the 3rd — model switch, reassignment, user question.

/brewcode:start
/brewcode:start .claude/tasks/20260301_143052_auth_task/PLAN.md

standards-review — Standards review

opussession

Checks code for compliance with project standards and finds duplicates. Supports Java/Kotlin, TypeScript/React, Python.

ParameterValue
Arguments[commit|branch|folder] [-p <prompt>]
ToolsRead, Glob, Grep, Task, Bash, Write, grepai_search, AskUserQuestion, Skill

Check priority: Existing code (reuse) -> CLAUDE.md -> rules/*.md -> stack reference.

Phases:

  1. Technology stack detection
  2. File list retrieval (commit/branch/folder)
  3. Context loading (rules, standards)
  4. Expert analysis (parallel haiku agents by file groups)
  5. Validation (sonnet reviewer)
  6. Report generation in .claude/reports/
  7. Optional simplify pass
/brewcode:standards-review
/brewcode:standards-review abc123
/brewcode:standards-review src/main/java/services/

convention — Convention analysis

opussession

Analyzes the project to extract reference classes, patterns, and architecture by layer. Generates convention documents in .claude/convention/.

ParameterValue
Arguments[full|conventions|rules|paths <p1,p2>]
ToolsRead, Write, Edit, Glob, Grep, Bash, Task, AskUserQuestion, Skill

Modes:

ModePhasesPurpose
full (default)P0-P8Full analysis + rules
conventionsP0-P7Convention documents only
rulesP0, P7-P8Rule extraction only
paths <p1,p2>P0-P7 (scoped)Analysis of specified paths

Output: 3 documents — reference-patterns.md, testing-conventions.md, project-architecture.md.

/brewcode:convention
/brewcode:convention rules
/brewcode:convention paths src/main/java/services,src/main/java/api

rules — Rule extraction

sonnetsession

Syncs KNOWLEDGE.jsonl or session knowledge into .claude/rules/ rule files.

ParameterValue
Arguments[list] | [<path>] | [<path> <prompt>]
ToolsRead, Bash, Task

Modes:

InputMode
listShow current rules
<path>Extract from KNOWLEDGE.jsonl file
<path> <text>Custom prompt
(empty)Extract from current session

Deduplication: 3 checks — intra-file similarity (>70% skip), cross-file antonyms, duplicates with CLAUDE.md.

/brewcode:rules list
/brewcode:rules .claude/tasks/20260301_auth_task/KNOWLEDGE.jsonl

secrets-scan — Secrets scanning

sonnetsession

Scans all git-tracked files for leaked secrets, keys, and credentials.

ParameterValue
Arguments[--fix]
ToolsRead, Task, Write, Bash, AskUserQuestion

Process:

  1. File list retrieval (git ls-files)
  2. Parallel scanning by 10 agents
  3. Result merging and deduplication
  4. Report generation with severity levels (CRITICAL/HIGH/MEDIUM/LOW)
  5. Optional interactive fixing (--fix)

Search patterns: passwords, API keys, tokens, AWS credentials, DB URLs, private keys.

/brewcode:secrets-scan
/brewcode:secrets-scan --fix
sonnetsession

Manages grepai — AI-powered code search via Ollama + bge-m3.

ParameterValue
Arguments[setup|status|start|stop|reindex|optimize|upgrade]
ToolsRead, Write, Edit, Bash, Task, AskUserQuestion

Modes:

ModePurpose
setupFull grepai installation and configuration
statusHealth check: CLI, ollama, bge-m3, MCP, index
startStart watch mode (auto-indexing)
stopStop the watch process
reindexFull reindexing
optimizeRe-analyze project + new config.yaml
upgradeUpdate grepai via brew
/brewcode:grepai setup
/brewcode:grepai status
/brewcode:grepai reindex

install — Dependency installation

sonnetfork

Interactive dependency installer for Brewcode.

ComponentTypePurpose
brewrequiredPackage manager
coreutils + timeoutrequiredTimeouts for scripts
jqrequiredJSON processor for hooks
ollamaoptionalLocal embeddings server
bge-m3optionalEmbeddings model (~1.2GB)
grepaioptionalSemantic search CLI
/brewcode:install

teardown — File removal

haikufork

Removes plugin files from the project: templates, configuration, logs, plans, grepai. Task directories and user rules are preserved.

ParameterValue
Arguments[--dry-run]
--dry-runOnly show files without deleting
/brewcode:teardown
/brewcode:teardown --dry-run

text-optimize — Text optimization

sonnetsession

Optimizes text and documentation for efficient LLM token consumption.

ParameterValue
Arguments[-l|-d] [file|folder|path1,path2]
-lLight — text cleanup only
(default)Medium — balanced restructuring
-dDeep — maximum compression

Rule categories: Claude behavior (C.1-C.6), Token efficiency (T.1-T.8), Structure (S.1-S.8), Reference integrity (R.1-R.3), Perception (P.1-P.6).

/brewcode:text-optimize CLAUDE.md
/brewcode:text-optimize -d agents/
/brewcode:text-optimize -l file1.md,file2.md

text-human — Code humanization

sonnetsession

Detects and removes AI artifacts from code and documentation: comments like “Added by AI”, unicode symbols, excessive documentation.

ParameterValue
Arguments<commit-hash|path> [custom instructions]
ToolsRead, Write, Edit, Grep, Glob, Bash, Task, AskUserQuestion

Language support: Java/Kotlin, TypeScript/JS/React, Python (separate reference files).

/brewcode:text-human 3be67487
/brewcode:text-human src/main/java/services/
/brewcode:text-human 3be67487 don't touch docs on public records

skills — Skill management

opussession

Create, improve, and list skills with activation optimization.

ModePurpose
list (default)Show all skills (global, project, plugin)
up <target>Improve a skill via skill-creator
create <prompt>Create a new skill with research
/brewcode:skills
/brewcode:skills up commit
/brewcode:skills create "semantic code search"

agents — Agent management

opussession

Interactive creation and improvement of Claude Code agents.

ModePurpose
help (default)Show help
create <description>Create a new agent
up <name|path>Improve an existing agent
/brewcode:agents create backend validator
/brewcode:agents up reviewer
/brewcode:agents .claude/agents/reviewer.md

Skill dependencies

install --> setup --> spec --> plan --> start --> rules
                       |                          |
                       +-- convention             +-- teardown
                       |
                       +-- grepai

Tip

Skills text-optimize, text-human, standards-review, secrets-scan, skills, and agents can be used independently of the core cycle — they require no prior setup.