Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
kochetkov-ma avatar

Brewcode:Rules

  • 19 installs
  • 29 repo stars
  • Updated August 2, 2026
  • kochetkov-ma/claude-brewcode

Helps with ai & agent building tasks.

About

brewcode:rules is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.

  • brewcode:rules
  • AI & Agent Building
  • AI-coding skill

Brewcode:Rules by the numbers

  • 19 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #10,587 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/kochetkov-ma/claude-brewcode --skill brewcoderules

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs19
repo stars29
Last updatedAugust 2, 2026
Repositorykochetkov-ma/claude-brewcode

What it does

Helps with ai & agent building tasks.

Files

SKILL.mdMarkdownGitHub ↗
TARGET: Project .claude/rules/ only. NEVER ~/.claude/rules/

<instructions>

Mode Detection

Arguments: $ARGUMENTS

InputMode
listList mode
<path> <text>Prompt mode
<path-to-file>File mode
(empty)Session mode

List Mode

EXECUTE and STOP:

bash "${CLAUDE_SKILL_DIR}/scripts/rules.sh" list

File / Prompt / Session Mode

Spawn bc-rules-organizer agent via Task tool.

Prepare Knowledge by Mode

ModePreparation
fileRead KNOWLEDGE.jsonl; parse t:"❌" → avoid, t:"✅" → practice
promptExtract <path> (first arg), <prompt> (rest)
sessionExtract 5 most impactful findings: errors, fixes, patterns. Format as or

Agent Prompt Template

Update PROJECT .claude/rules/ — NEVER ~/.claude/rules/

Plugin templates: $BC_PLUGIN_ROOT/templates/rules/
Validation: bash "$BC_PLUGIN_ROOT/skills/rules/scripts/rules.sh" validate
Create missing: bash "$BC_PLUGIN_ROOT/skills/rules/scripts/rules.sh" create

Targets: avoid.md, best-practice.md, {prefix}-avoid.md, {prefix}-best-practice.md

MODE: {detected mode}
KNOWLEDGE: {prepared from table above}
DEDUP: 3-Check Protocol:
  1. Within-file similarity (>70% skip, 40-70% merge)
  2. Cross-file antonym (avoid↔best-practice — keep avoid only)
  3. CLAUDE.md duplicate (skip if in CLAUDE.md; "CLAUDE.md" forbidden as Source)
BC_PLUGIN_ROOT injected by pre-task.mjs hook.

Fallback

Agent unavailable → error: bc-rules-organizer not available — install brewcode plugin

</instructions>

Output

Forward agent report to user as-is.

Error Handling

ConditionAction
Agent unavailableError + install instructions
No knowledge found"No new rules extracted"
Plugin not foundSTOP + install instructions

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.