PLUGIN brewcode / Agents
On this page
Skill Creator
inherit skill authoring bounded scope
Illustrative animation: ask in plain English, hand-off to skill-creator, run the new skill, summary card. Names and numbers come from an invented demo project.
View agent file on GitHub (opens in a new tab)
Quick reference
| Field | Value |
|---|---|
| Agent | brewcode:skill-creator |
| Triggers | create skill, improve skill, fix activation |
| Model | inherit: uses the session model |
| Output | Skill directory, artifact list, validator and evaluation results, open questions |
Skill Creator turns a proven workflow into a reusable Claude Code skill, improves an existing one, or applies confirmed review findings. It follows the closest well-built skill in the repository, writes SKILL.md plus only the references and scripts the workflow needs, then validates and evaluates the result.
When to use
- Capture a proven workflow as a reusable skill.
- Add a skill with deterministic scripts and supporting references.
- Fix wrong frontmatter, tool assumptions, or invocation behavior.
- Apply independently confirmed review findings to a skill.
Example
Create one project skill for database migrations. Own .claude/skills/db-migration/.
Follow the existing migration workflow and project test commands. Require explicit
invocation; return artifact paths, validator verdict, and output-evaluation evidence.
Expected result: a SKILL.md and the needed references, scripts and tests. Logs stay in a report file; the return names written artifacts, validation results, and unresolved decisions.
How it works
- Resolve scope
Extract the workflow from the brief and pick the project, personal, or plugin location.
- Choose invocation
Apply the invocation policy and decide between forked and inline execution.
- Write
Free-text prompt entry point, a PLAN block before actions, details in references loaded on demand.
- Validate and evaluate
Run
validate-skill.sh, then test three to five realistic prompts against fresh-session baselines. - Hand back
Return paths to the main caller, which runs
brewtools:text-optimizeon them.
It refuses briefs over about 5 files or 10 steps and returns a split proposal. It does not spawn agents or run its own optimization; the main caller does (delegation). Generic refusals: scope guard.
Invocation policy #
| Context | Configuration |
|---|---|
| Distributed Brewcode product skill | user-invocable: true and disable-model-invocation: true (exceptions: brewdoc:publish, brewtools:text-optimize, brewtools:text-human, each disable-model-invocation: false) |
| User-only skill outside distributed products | disable-model-invocation: true |
| Model-only knowledge outside distributed products | user-invocable: false |
| Both paths outside distributed products | Default behavior |
The distributed-product rule is repository policy, stricter than upstream defaults. Evaluate output through explicit invocation; Claude Code publishes no automatic-activation percentage.
Execution and tools #
- A skill with
context: forkstarts an ordinary subagent, not a conversation fork: tools are filtered andAskUserQuestionis unavailable. - The agent carries no
Agenttool; split and optimization requests go back to the caller. allowed-toolspreapproves calls; it is not a sandbox. Grants clear on the next user message, skill instructions persist. Under managedallowManagedPermissionRulesOnly, marketplace plugin skills loseallowed-toolssince 2.1.284 unless the source is official or vouched by managed settings.- Scope permissions to the needed calls. Bare
Bash,WriteorEditfits only a user-invoked skill with open-ended shell or write paths. ${CLAUDE_SKILL_DIR}is a load-time substitution, not an environment variable for hooks or agents.- A
hooks:block inSKILL.mdstays registered for the rest of the session, so declare it only for behavior that must always hold; a one-shot hook takesonce: trueon the hook entry. Prefer exec form (commandplusargs);ifworks only on tool events. Exec form substitutes the braced${CLAUDE_PLUGIN_ROOT},${CLAUDE_PROJECT_DIR}and${CLAUDE_PLUGIN_DATA}incommandand in each arg; shell form receives them as exported environment variables, so double-quote them ("$CLAUDE_PLUGIN_ROOT/x.sh"; single quotes stay literal).${CLAUDE_SKILL_DIR}is unavailable in a hook command.
Validation and references #
The bundled validator checks frontmatter (opening --- on line 1), naming (no trailing or double hyphen), prompt contract and structure, and warns on an unquoted description holding : or # and on braced CLAUDE_* tokens named in prose; a pass complements evaluation but does not prove the workflow works. Confirmed fixes need another run.
References under brewcode/skills/skills/references/ hold the frontmatter catalog, execution model, design patterns, activation troubleshooting, prompt contract and review checklist, refreshed through Claude Code 2.1.309. A typed mid-message /name lets the model run a user-only skill for that message; personal and project skills are absent from cloud sessions. The agent checkpoints artifact paths in its report directory; maxTurns is a loop stop, so partial work resumes from evidence.
Related
Brewcode overview
Skills
Hook Creator
Authoring references
Update: /brewtools:plugin-update, /reload-plugins, then /brewcode:setup-status upgrade - FAQ