
Brewdoc:My Claude
- 20 installs
- 29 repo stars
- Updated August 2, 2026
- kochetkov-ma/claude-brewcode
Helps with ai & agent building tasks.
About
brewdoc:my-claude is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- brewdoc:my-claude
- AI & Agent Building
- AI-coding skill
Brewdoc:My Claude by the numbers
- 20 all-time installs (skills.sh)
- +1 installs in the week ending Aug 2, 2026 (Skillselion tracking)
- Ranked #10,459 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 brewdocmy-claudeAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 20 |
|---|---|
| repo stars | ★ 29 |
| Last updated | August 2, 2026 |
| Repository | kochetkov-ma/claude-brewcode ↗ |
What it does
Helps with ai & agent building tasks.
Files
My Claude
Generates documentation about your Claude Code installation and environment.
Mode Detection
Detect mode from $ARGUMENTS:
$ARGUMENTS value | Mode | Sub-mode |
|---|---|---|
| empty | INTERNAL | — |
ext or external (alone) | EXTERNAL | default |
ext context or external context | EXTERNAL | context-schema |
starts with r or research | RESEARCH | query = rest of args |
After detection, load the appropriate reference file:
- INTERNAL:
references/internal-mode.md - EXTERNAL:
references/external-mode.md - RESEARCH:
references/research-mode.md
vs built-in /team-onboarding
Claude Code 2.1.101 shipped /team-onboarding — a built-in slash that generates a teammate ramp-up guide from local usage. It's simpler and sufficient for basic onboarding.
Use /team-onboarding when you need: quick teammate handoff doc from your local config.
Use /brewdoc:my-claude when you need:
- Web research — current releases, forum discussions, GitHub issues (beyond static docs)
- EXTERNAL mode — architecture synthesis from official Anthropic docs
- RESEARCH mode — custom query-driven multi-source investigation
- Persistent INDEX — tracked in
.claude/brewdoc/INDEX.jsonlwith citation links
Output Directory
All generated docs go to .claude/brewdoc/my-claude/ (project-relative — required because ~/.claude/* is blocked by Claude Code's protected-path policy in headless sessions, even under bypassPermissions). Create if not exists: mkdir -p .claude/brewdoc/my-claude
Optional interactive fallback: ${BD_PLUGIN_DATA}/my-claude/ may be used when running interactively — it is NOT usable in headless claude -p sessions due to the protected-path restriction. Prefer the project-relative path everywhere.
INDEX Tracking
Append entry to .claude/brewdoc/INDEX.jsonl:
{"ts":"2026-02-28T10:00:00","mode":"internal","path":".claude/brewdoc/my-claude/20260228_my-claude-internal.md","title":"Internal Claude Setup Overview","version":"1.0"}Legacy read-only merge — if ~/.claude/brewdoc/INDEX.jsonl exists AND the new project INDEX is empty, read the legacy file once, merge its entries into .claude/brewdoc/INDEX.jsonl, and print: ℹ️ Migrated {N} entries from legacy ~/.claude/brewdoc/INDEX.jsonl (read-only; legacy file untouched). NEVER write back to the legacy path.
If an existing entry for the same mode exists: use AskUserQuestion — header: "INDEX", question: "Entry for this mode already exists (v{VERSION}). Update it?", options: "Yes, update (bump version)" / "No, create new entry".
INTERNAL Mode
Goal: Document your local Claude Code setup — CLAUDE.md files, rules, agents, skills, memories.
Sources to analyze:
~/.claude/CLAUDE.md— global instructions~/.claude/rules/*.md— global rules~/.claude/agents/*.md— global agents~/.claude/skills/— global skills- Project
CLAUDE.md(current working directory) .claude/rules/*.md— project rules~/.claude/projects/**/memory/MEMORY.md— memory files
Process: 1. Spawn 3 parallel Explore agents, one per source group: (1) global ~/.claude config, (2) project .claude config, (3) memory files 2. Aggregate findings into structured document 3. Write to .claude/brewdoc/my-claude/YYYYMMDD_my-claude-internal.md 4. Spawn independent reviewer agent to validate facts (file paths exist, content accurate) 5. Apply reviewer fixes if any 6. Add INDEX entry
Output document structure:
# Claude Code Internal Setup — {date}
## Global Configuration
### Instructions (CLAUDE.md)
### Rules ({N} rules)
### Agents ({N} agents)
### Skills ({N} skills)
## Project Configuration
### Project Instructions
### Project Rules
## Memory
### Active Memories ({N} entries)
## Summary
| Component | Count | Location |
|-----------|-------|----------|EXTERNAL Mode
Goal: Document Claude Code's hook/context/agent architecture from official sources + local analysis.
Sub-mode default: 1. Analyze local hook files for event model patterns 2. WebSearch for recent Claude Code releases and CHANGELOG 3. Spawn general-purpose agents for: official docs (code.claude.com), GitHub releases, community forums 4. Generate .claude/brewdoc/my-claude/YYYYMMDD_my-claude-external.md
Sub-mode context-schema: 1. Focus specifically on context injection schema (additionalContext, updatedInput, etc.) 2. Output: .claude/brewdoc/my-claude/external/YYYYMMDD_context-schema.md
RESEARCH Mode
Goal: Research a specific query about Claude Code using multiple sources.
Query: everything after r or research in $ARGUMENTS
Process: 1. Analyze query — divide into 2-5 source groups (official docs, GitHub, Reddit, forums, marketplaces) 2. Spawn general-purpose agents per source group in parallel 3. Aggregate with citation tracking (source URL per fact) 4. Spawn independent reviewer agent to validate facts and source reliability 5. Output: .claude/brewdoc/my-claude/YYYYMMDD_research-{slug}.md
Output structure:
# Research: {query} — {date}
## Findings
### {Source Group 1}
...
## Sources
| Fact | Source | Reliability |
|------|--------|-------------|
## Review VerdictMIT License
Copyright (c) 2025-2026 Maxim Kochetkov (kochetkov-ma)
https://github.com/kochetkov-ma/claude-brewcode
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
My Claude
Generates documentation about your Claude Code installation and environment. Supports four modes: document your local setup, analyze the external hook/context architecture, deep-dive the context injection schema, or research any Claude Code topic across the web.
Quick Start
/brewdoc:my-claude # Document your local Claude Code setup
/brewdoc:my-claude ext # Document hook/context/agent architecture
/brewdoc:my-claude ext context # Deep-dive into context injection schema
/brewdoc:my-claude r <query> # Research a specific Claude Code topicModes
| Mode | Trigger | What it does |
|---|---|---|
| Internal | no arguments | Scans ~/.claude/ and project .claude/ to document your CLAUDE.md files, rules, agents, skills, and memories |
| External | ext or external | Analyzes local hooks + searches official docs, GitHub releases, and community forums for Claude Code architecture docs |
| External (context-schema) | ext context or external context | Focuses specifically on the context injection schema (additionalContext, updatedInput, decision) |
| Research | r <query> or research <query> | Researches a specific query across official docs, GitHub, Reddit, forums, and marketplaces with citation tracking |
Examples
Good Usage
# Document everything in your local Claude Code installation
/brewdoc:my-claude
# Generate docs on hook events, agent architecture, and recent releases
/brewdoc:my-claude ext
# Understand how additionalContext and updatedInput work in hooks
/brewdoc:my-claude ext context
# Research how other projects structure their plugin hooks
/brewdoc:my-claude r plugin hook patterns and best practices
# Find out what changed in recent Claude Code versions
/brewdoc:my-claude r Claude Code changelog 2026Common Mistakes
# Wrong: using research mode for a code implementation task
/brewdoc:my-claude r implement a new hook for my project
# Research mode generates documentation, not code. Use /brewcode:start for implementation.
# Wrong: using ext when you want to document YOUR setup
/brewdoc:my-claude ext
# ext documents the external Claude Code architecture. Use no arguments for your local setup.
# Wrong: forgetting the space after r
/brewdoc:my-claude rsome query
# The prefix must be "r " or "research " (with a trailing space).Output Location
All generated files are saved to .claude/brewdoc/my-claude/ inside your current project. This is required because Claude Code's protected-path policy blocks writes to ~/.claude/* in headless sessions (including bypassPermissions mode). ${BD_PLUGIN_DATA}/my-claude/ is an optional fallback for interactive sessions only.
| Mode | Output path |
|---|---|
| Internal | .claude/brewdoc/my-claude/YYYYMMDD_my-claude-internal.md |
| External (default) | .claude/brewdoc/my-claude/YYYYMMDD_my-claude-external.md |
| External (context-schema) | .claude/brewdoc/my-claude/external/YYYYMMDD_context-schema.md |
| Research | .claude/brewdoc/my-claude/YYYYMMDD_research-{slug}.md |
Every run appends an entry to .claude/brewdoc/INDEX.jsonl for tracking. If an entry for the same mode already exists, you will be asked whether to update it or create a new one.
If a legacy ~/.claude/brewdoc/INDEX.jsonl exists from an older install, its entries are merged into the project INDEX once (read-only) and the skill prints a one-line migration notice. The legacy file is never written to.
Tips
- Re-run internal mode after changing your setup. Adding new rules, agents, or skills makes the previous internal doc stale. Re-running produces an up-to-date snapshot.
- Research mode is for documentation, not implementation. It generates a cited research report. For code tasks, use brewcode skills instead.
- External context-schema mode is useful for hook development. Before writing a new hook, run
ext contextto get a fresh reference on which channels (additionalContext, updatedInput, decision) work for which events. - Check INDEX.jsonl to find previous runs. Each entry includes timestamp, mode, path, and version, so you can track what was documented and when.
Documentation
Full docs: my-claude
External Mode Reference
Hook Event Model
When analyzing local hook files, document:
- Event types (SessionStart, PreToolUse, PostToolUse, Stop, PreCompact)
- Input schema per event
- Output schema (additionalContext, updatedInput, decision)
- permissionDecision values
Sources for Web Research
| Source | URL | Focus |
|---|---|---|
| Official docs | code.claude.com/docs | Hook schema, agent API, context injection |
| GitHub releases | github.com/anthropics/claude-code | CHANGELOG, recent features |
| GitHub issues | github.com/anthropics/claude-code/issues | Known bugs, workarounds |
| Community | reddit.com/r/ClaudeAI | User patterns, tips |
Output Structure
# Claude Code External Architecture — {date}
## Hook Event Model
### Events
### Input Schema
### Output Schema
## Context Injection Patterns
## Agent Spawning API
## Recent Changes (CHANGELOG)
## SourcesContext-Schema Sub-mode
Focus on:
additionalContext— what it does, when delivered, formatupdatedInput— mutation of tool inputsystemMessage— display in UIpermissionDecision— allow/block/ask
Output to: .claude/brewdoc/my-claude/external/YYYYMMDD_context-schema.md
Internal Mode Reference
Sources to Analyze
| Source Group | Paths | Explore Agent Focus |
|---|---|---|
| Global config | ~/.claude/CLAUDE.md, ~/.claude/rules/*.md, ~/.claude/agents/*.md, ~/.claude/skills/ | Count components, extract key rules |
| Project config | {cwd}/CLAUDE.md, {cwd}/.claude/rules/*.md, {cwd}/.claude/agents/*.md | Project-specific instructions |
| Memory | ~/.claude/projects/**/memory/MEMORY.md, ~/.claude/projects/**/memory/*.md | Active memories, topic files |
Parallel Agent Split
Spawn 3 Explore agents in ONE message: 1. Agent 1: global ~/.claude/ directory (rules, agents, skills counts + key content) 2. Agent 2: project .claude/ directory (project-specific config) 3. Agent 3: memory files (active entries, topic files)
Document Template
# Claude Code Internal Setup — {YYYY-MM-DD}
## Global Configuration
### Instructions
**File:** `~/.claude/CLAUDE.md`
{summary of key rules/frameworks}
### Rules ({N} files)
| Rule File | Purpose |
|-----------|---------|
{table of rule files}
### Agents ({N} files)
| Agent | Model | Purpose |
|-------|-------|---------|
### Skills ({N} files)
| Skill | Trigger | Purpose |
|-------|---------|---------|
## Project Configuration
**File:** `{cwd}/CLAUDE.md`
{project-specific instructions summary}
### Project Rules ({N} files)
{table}
## Memory
### Active Memories
{summary of MEMORY.md content}
### Topic Files
{list of additional memory files}
## Summary
| Component | Count | Location |
|-----------|-------|----------|
| Global rules | {N} | ~/.claude/rules/ |
| Global agents | {N} | ~/.claude/agents/ |
| Global skills | {N} | ~/.claude/skills/ |
| Project rules | {N} | .claude/rules/ |
| Memory files | {N} | ~/.claude/projects/.../ |Reviewer Checklist
- File paths referenced in document actually exist
- Agent/skill counts match filesystem counts
- No invented file names
Research Mode Reference
Query Partitioning Strategy
Divide query into 2-5 orthogonal source groups:
| Query Type | Suggested Groups |
|---|---|
| "How does X work?" | official docs, GitHub source, community usage |
| "Best practices for X" | official docs, GitHub examples, Reddit/forums |
| "Bugs/issues with X" | GitHub issues, Reddit, CHANGELOG |
| "Compare X vs Y" | official docs for each, community comparisons |
Parallel Agent Spawn
Send all agents in ONE message. Each agent receives:
- Source group name and URLs to search
- Specific aspects to focus on
- Citation format requirement
Citation Format
Each fact must have: [Source: URL] (reliability: high/medium/low)
Reliability:
- high: Official docs, official changelog
- medium: GitHub issues, verified community posts
- low: Reddit opinions, unverified claims
Output Structure
# Research: {query} — {date}
## Executive Summary
## Findings by Source
### Official Documentation
{findings with citations}
### GitHub
{findings with citations}
### Community
{findings with citations}
## Consolidated Facts
| Fact | Source | Reliability |
|------|--------|-------------|
## Conflicting Information
{if any}
## Review Verdict
{reviewer agent assessment}
## Sources
{full URL list}Self-Review Checklist (for reviewer agent)
- All facts have citations
- No contradictions between high-reliability sources
- Conflicting low-reliability claims flagged
- Query fully addressed