/workbench-kit:generate-workbenchfrom workbench-kit
Second step after interview-for-personalizing. Takes a target repo location or git URL and a .persona/ draft, then scaffolds a minimal workbench (persona-composed AGENTS.md + AGENTS.overlay.md + codebases.yaml + empty docs/) and discards .persona/. The engine (skills+utils) comes from the installed plugin, so the generated repo stays minimal. Use this whenever the user is ready to create their workbench repo from a persona, or asks to generate/scaffold a workbench.
Ships in workbench-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Bootstrap step 2. Turn a .persona/ draft into a real, minimal workbench repo.
The mechanical part — laying the scaffold and composing AGENTS.md from the framework
core + the persona overlay — is deterministic and identical every time, so it lives in
a bundled script: scripts/compose.sh. Your job in this skill is the judgment
around it: get the target repo, locate the framework core, run the script, then clean
up and hand off. Don't re-derive the scaffolding by hand — call the script.
.persona/ (the contract from interview).persona/overlay.md — filled AGENTS.overlay.md (the 7 persona cells).persona/meta.yaml — repo: owner/name or path: …, plus language:.persona/codebases.yaml — (optional) initial work targetsIf .persona/ is absent, run interview-for-personalizing first — don't invent a persona.
Obtain the target repo from .persona/meta.yaml.
repo: owner/name → create it if needed (gh repo create owner/name --private),
then clone, or use an existing local clone. Confirm with the user before creating
anything remote — repo creation is outward-facing.path: … → use that local directory (init git if empty).Locate the inputs — both bundled in this plugin (so it works when installed).
scaffold/ (with AGENTS.core.md, AGENTS.overlay.md, templates, empty docs,
codebases.yaml) ships inside this bootstrap plugin at ${CLAUDE_PLUGIN_ROOT}/scaffold/.
No cross-plugin lookup is needed.
Run the compose script:
"${CLAUDE_PLUGIN_ROOT}/skills/generate-workbench/scripts/compose.sh" \
--persona <.persona dir> \
--core "${CLAUDE_PLUGIN_ROOT}/scaffold/AGENTS.core.md" \
--scaffold "${CLAUDE_PLUGIN_ROOT}/scaffold" \
--out <target repo>
It lays templates/ .github/ docs/(empty) codebases.yaml, writes AGENTS.overlay.md
from the persona, and composes AGENTS.md = core + overlay (inline). It does not
copy the engine — that's the plugin's job.
The script self-checks: it rejects an empty/half-filled .persona/ up front, and
after composing it asserts post-conditions (AGENTS.md has both core+overlay markers,
overlay/docs/codebases present, engine not copied, CLAUDE.md real file matching
AGENTS.md) — failing
loudly. So you don't eyeball the result; if compose.sh exits 0, the workbench is
well-formed. If it exits non-zero, read the FAIL lines and fix the input.
Discard .persona/ — it's temporary scratch; its content now lives in the repo.
Commit and hand off. Make the initial commit (in the user's output language per
the persona), then point the user to the installed task-start skill: Claude Code
uses /workbench:task-start <issue> and Codex uses $task-start with the issue ID.
Remind them the workbench plugin must be installed/enabled for engine commands.
my-workbench/
AGENTS.md composed: framework core + your persona (do not edit directly)
AGENTS.overlay.md your rules — edit here, then recompose
CLAUDE.md real file matching AGENTS.md for cross-platform discovery
codebases.yaml your targets (or empty template)
docs/ empty knowledge skeleton (index + empty anchor tables + log)
templates/ .github/ profile defaults you can tune
No utils/, skills/, or bin/ — the engine is the installed workbench plugin.
That's the whole point: your repo carries only your stuff.
AGENTS.overlay.md) is how rules change later, and how
framework upgrades flow in (the script re-reads the plugin's new core).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yoogomja/workbench-kit --plugin workbench-kit3 skills in this plugin
/interview-for-personalizingFirst step of bootstrapping a new workbench. Through a divergence-first, gap-based interview, draw out the user's persona (language, slug style, required issue elements, PR skeleton, label scheme, harvest fields, gate toggles) and draft it into a temporary .persona/ scratch that generate-workbench consumes. Use this whenever the user wants to set up, create, or personalize a workbench, or talks about "their own rules / conventions" for one — even if they don't say the word "interview". Precedes generate-workbench; together they are the bootstrap flow./upgrade-workbenchUse when an existing generated, embedded-engine, staged, or current workbench must be diagnosed, upgraded, migrated, or have its embedded engine removed.