From cannibalizer
Run cnbl gen to create hexagonal Rust stubs from a migration plan. Generates domain types, port traits, and adapter skeletons. Use when the user wants to "generate stubs", "scaffold components", or "create Rust skeletons".
How this skill is triggered — by the user, by Claude, or both
Slash command
/cannibalizer:genhaikuThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate hexagonal Rust component stubs from plan output.
Generate hexagonal Rust component stubs from plan output.
cnbl gen --input /tmp/cnbl-plan.jsonl --out-dir /tmp/cnbl-output
# Overwrite existing stubs
cnbl gen --input /tmp/cnbl-plan.jsonl --out-dir /tmp/cnbl-output --force
| Item Kind | Generated Files |
|---|---|
| DomainLogic | <repo>/src/domain/<stem>.rs -- struct stub |
| Port | <repo>/src/ports/<stem>.rs -- trait stub |
<repo>/src/adapters/<stem>_stub.rs -- impl stub | |
| Adapter | <repo>/src/adapters/<stem>.rs -- struct stub |
| Other kinds | Not scaffolded |
Each stub file includes:
A migration-notes.md is written per destination repo listing all
ported items.
Without --force, gen aborts if any output file already exists. The
error message lists all conflicting paths.
Stubs follow the hex-component-template:
See skills/cnbl/references/hex-component-template.md for the
canonical template.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub 89jobrien/bazaar --plugin cannibalizer