From capability-workbench
Route and orchestrate agent skill and plugin lifecycle work. Use when work involves agent skills, plugins, marketplace packages, capability acquisition, synthesis, creation, installation, packaging, audit, or context-density optimization.
How this skill is triggered — by the user, by Claude, or both
Slash command
/capability-workbench:capability-workbenchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this as the first stop for agent capability work. Decide the output shape, call the narrow sibling skill, and keep validation complete. Treat installation or cache refresh as an explicit activation step, not as an automatic side effect of every synthesis.
Use this as the first stop for agent capability work. Decide the output shape, call the narrow sibling skill, and keep validation complete. Treat installation or cache refresh as an explicit activation step, not as an automatic side effect of every synthesis.
From this skill directory, the plugin root is ../...
../../scripts/../../references/../capability-synthesizer, ../capability-portfolio-architect, ../skill-factory, ../skill-trigger-metadata, ../skill-installer-vetter, ../plugin-factory, ../capability-auditor, ../capability-reality-repairPrefer bundled scripts when they fit. Use system skills only as source references or fallbacks.
Choose one primary mode before making changes:
| Capability situation | Use | Output |
|---|---|---|
| Build well-vetted skill or plugin from references | capability-synthesizer | Reports plus final skill/plugin |
| Redesign skill/plugin architecture: split, merge, delete, move, router, cross-plugin overlap, reference extraction, script extraction, shared capability extraction, or boundary changes | capability-portfolio-architect | Portfolio decision ledger plus structural refactor plan |
| Create or refactor one skill | skill-factory | Skill folder and validation |
| Design, audit, or debug skill names/descriptions and trigger metadata | skill-trigger-metadata | Trigger-ready frontmatter and prompt boundary examples |
| Find, vet, install, or update skills | skill-installer-vetter | Provenance, vetting, install state |
| Create, update, install, or publish agent marketplace plugin | plugin-factory | Plugin folder, marketplace entry when needed, validation, optional visibility proof |
| Review safety, coverage, validation, token cost, or prompt contracts | capability-auditor | Structured audit and fixes or recommendations |
| Repair a false, stale, or broken skill/script/plugin/MCP contract discovered during work | capability-reality-repair | Updated source of truth plus validation proof |
If the request spans modes, sequence them explicitly. Typical full lifecycle:
capability-synthesizer -> optional capability-portfolio-architect -> skill-factory or plugin-factory -> capability-auditor -> optional install/visibility gate.
If context-density or an audit shows overlap, cross-plugin responsibility duplication, missing boundaries, overloaded skills, stale skills, or repeated deterministic procedures hidden in prose, route through capability-portfolio-architect before editing. Token reduction is a signal, not a substitute for a structural decision ledger.
If a capability artifact contradicts live behavior while any workflow is running, interrupt the normal route with capability-reality-repair, fix the stale source, validate it, then resume the original workflow.
Bind the primary target and delivery surface before editing. If the user names a skill or plugin with $... or @..., treat that named capability as the thing to create, synthesize, strengthen, install, or package. Then decide where the source artifact should live from the latest user message, repo instructions, and workspace shape. A current plugin/skill source repository can be the target surface when the request is to create or improve artifacts in that repository. Do not install, cache-refresh, or write global agent state unless the user asks for installed/global use or the selected lifecycle step explicitly requires activation proof.
repo-local for source artifacts that belong in the current repository or an explicitly named repository path. This can come from the latest user message, applicable repo instructions, or a workspace profile showing a plugin/skill source tree. Use global-codex only when the user wants an installed personal/global capability, when no source repository is selected and the requested artifact is meant for the user's agent marketplace, or when the lifecycle step is explicitly install/update. Record the rationale in local_request_evidence for repo-local work. Keep install_required=false when the task is source creation, repo improvement, audit, or reference-only output.
python3 ../../scripts/synthesis/install_scope_gate.py --template > <output-dir>/install-scope.json
python3 ../../scripts/synthesis/install_scope_gate.py <output-dir>/install-scope.json
new-skill, augment-existing, plugin-pack, well-vetted synthesis, distillation, strengthening, or marketplace capability work, default to external-broad. Use local-only only when the user explicitly requests it, the task is a tiny project-local patch, network/search is unavailable, or safety constraints block external inspection. Record the reason if external discovery is skipped.<output-dir>/external-discovery-ledger.json with:
python3 ../../scripts/synthesis/external_discovery_gate.py --template > <output-dir>/external-discovery-ledger.json
python3 ../../scripts/synthesis/external_discovery_gate.py <output-dir>/external-discovery-ledger.json
The synthesis is not complete unless this gate validates broad external discovery or explicitly marks partial/skipped status.python3 ../../scripts/capability_inventory.py --query "<topic>" --json
python3 ../../scripts/synthesis/audit_skill_candidate.py <candidate-skill-dir> --output candidate-audits.json
python3 ../../scripts/context/context_density_audit.py <skill-or-plugin-dir> --json --top 20
python3 ../../scripts/portfolio/portfolio_architecture_audit.py <plugin-dir> --json
python3 ../../scripts/portfolio/portfolio_architecture_audit.py plugins --json
../../references/plugin-icon-system.md. The default
generation path is the system $imagegen skill producing
assets/icon.png; deterministic helpers only prepare the prompt contract
and wire the manifest. Skip generation only when a user-supplied or
authorized brand asset is already the better source.skill-trigger-metadata: use task context, artifacts, source evidence, and agent decision points. Do not reduce trigger behavior to literal user phrases except for target binding, installation consent, permissions, or exact behavior-preserving commands.install_required=true. Re-run install_scope_gate.py --final for complete outputs.For a skill: run ../../scripts/skill/quick_validate.py <skill-dir> and any resource tests.
For a plugin source artifact, always validate the manifest:
python3 ../../scripts/plugin/validate_plugin.py <plugin-dir>
When install_required=true, also run install/visibility proof:
python3 ../../scripts/plugin/ensure_local_plugin_installed.py <plugin-dir>
python3 ../../scripts/plugin/ensure_local_plugin_installed.py <plugin-dir> --check-only
For complete outputs, run:
python3 ../../scripts/synthesis/install_scope_gate.py <output-dir>/install-scope.json --final
For installed marketplace-backed plugin handoff, include Codex app View and Share deeplinks (Codex only) using the installed marketplace path. For source-only repository work, report the plugin path and validation proof instead.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub xopoko/plug-n-skills --plugin capability-workbench