PLUGIN brewcode / Agents

Skill Creator

inherit skill authoring bounded scope

Terminal animation: a plain-English request to create a release-notes skill is handed to the skill-creator expert, then the new skill runs and a summary card appears.
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

FieldValue
Agentbrewcode:skill-creator
Triggerscreate skill, improve skill, fix activation
Modelinherit: uses the session model
OutputSkill 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

  1. Resolve scope

    Extract the workflow from the brief and pick the project, personal, or plugin location.

  2. Choose invocation

    Apply the invocation policy and decide between forked and inline execution.

  3. Write

    Free-text prompt entry point, a PLAN block before actions, details in references loaded on demand.

  4. Validate and evaluate

    Run validate-skill.sh, then test three to five realistic prompts against fresh-session baselines.

  5. Hand back

    Return paths to the main caller, which runs brewtools:text-optimize on 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 #
ContextConfiguration
Distributed Brewcode product skilluser-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 productsdisable-model-invocation: true
Model-only knowledge outside distributed productsuser-invocable: false
Both paths outside distributed productsDefault 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: fork starts an ordinary subagent, not a conversation fork: tools are filtered and AskUserQuestion is unavailable.
  • The agent carries no Agent tool; split and optimization requests go back to the caller.
  • allowed-tools preapproves calls; it is not a sandbox. Grants clear on the next user message, skill instructions persist. Under managed allowManagedPermissionRulesOnly, marketplace plugin skills lose allowed-tools since 2.1.284 unless the source is official or vouched by managed settings.
  • Scope permissions to the needed calls. Bare Bash, Write or Edit fits 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 in SKILL.md stays registered for the rest of the session, so declare it only for behavior that must always hold; a one-shot hook takes once: true on the hook entry. Prefer exec form (command plus args); if works only on tool events. Exec form substitutes the braced ${CLAUDE_PLUGIN_ROOT}, ${CLAUDE_PROJECT_DIR} and ${CLAUDE_PLUGIN_DATA} in command and 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.

Brewcode overview

Project skills, agents, and review tools.

Skills

The user-facing skill creation and improvement workflow.

Hook Creator

Create lifecycle hooks against event-specific contracts.

Authoring references

Frontmatter, execution, prompt contracts, and review guidance.

Update: /brewtools:plugin-update, /reload-plugins, then /brewcode:setup-status upgrade - FAQ