/wagoe:wagoe-scaffoldfrom wagoe
Generates Wagoe modules, fields, endpoints, or adapters with correct FC/IS structure. Use when adding features or entities to an existing Wagoe project.
Ships in wagoe. 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.
None: SKILL.md is the whole skill.
The scaffolder exists because bb check enforces rules that are tedious to
satisfy by hand: core/ may not import shell, do I/O, log, throw, or hold
mutable state; every module needs ports.clj; every test needs exactly one
pyramid tag. Generated code satisfies all of them. Hand-written code usually
does not, and you find out at the gate.
bb scaffold generate --module-name product --entity Product \
--field name:string:required --field price:decimal
bb scaffold field --module-name product --entity Product --name sku --type string --unique
bb scaffold endpoint --module-name product --path /products/:id/publish --method POST \
--handler-name publish-product
bb scaffold adapter --module-name product --port IProductNotifier --adapter-name email
bb scaffold ai "product module with name, price, stock" --yes # needs an AI provider
Field spec: name:type[:values=a,b,c][:required][:unique], types string text integer decimal boolean email uuid enum date datetime json. An enum must name
its values: status:enum:values=draft,sent,paid.
--dry-run works on generate, field, endpoint and adapter — it lists
the files and writes none.
It does not work on bb scaffold ai. That path forwards everything except
--yes/-y to the AI CLI, whose options are only --root, --yes and
--help. An unknown flag lands in the parser's :errors, which the command
never reads, so --dry-run is silently discarded:
arguments: [product module with name]
errors: [Unknown option: "--dry-run"] ← ignored
bb scaffold ai "…" --yes --dry-run therefore generates files, which is the
opposite of what the flag suggests. To preview an AI-scaffolded module, run it
without --yes and read the confirmation prompt instead.
--output-dir is accepted and ignored — files land relative to the working
directory regardless (BOU-268). So cd into the project first. Running it from
the wrong directory scatters a module across whatever repository you happened to
be standing in, exits 0, and prints a success message listing files that are not
where it says.
generate producesFourteen files for one entity: schema.clj, ports.clj, core/<entity>.clj,
core/ui.clj, five under shell/ (including module_wiring.clj), an up/down
migration pair, and three tests.
The tests are real tests, not placeholders — they are tagged and they assert
something, because bb check rejects both untagged deftests and (is true).
bb scaffold integrate <module> # writes the module's config key into every resources/conf/<profile>/config.edn (--dry-run to preview)
bb migrate up # the generated migration
bb check --ci # the gates
clojure -M:test # the generated tests
integrate is advisory. It does not modify a single file. It reports what
it found and prints the steps for you to carry out:
✓ On the classpath — src/ and test/ are already on the project paths;
the module's tests run with clojure -M:test (no deps.edn/tests.edn changes).
Register the module's Integrant components:
1. Add config to resources/conf/dev/config.edn (and test)
2. Paste the printed Integrant config into your system config
So deps.edn and tests.edn need nothing — the generated paths already cover
them. What is outstanding is the Integrant registration, and you have to do
it. Running integrate and moving on leaves the module on disk, compiling,
passing the gates, and never started by the application.
Confirm with git status that you know what changed, rather than trusting the
command name.
--ci on bb check matters: without it the command reports failures and still
exits 0, so a script or an agent reads a broken project as fine.
A freshly scaffolded module passes all nine portable checks. If bb check
fails right after scaffolding, that is a framework bug worth reporting, not
something to work around — it was one until recently (BOU-267).
bb scaffold new no longer exists. New projects come from the CLI:
wagoe new my-app
--dry-run when the shape is unobvious.integrate, which writes the module's key into every
resources/conf/<profile>/config.edn. Then migrate up.bb check --ci and the tests; report both. Note that neither proves the
module is wired — a module missing its Integrant registration still
compiles, lints and passes its own tests. Confirm the config entry exists.core/, everything with side effects in shell/.The generator writes structure, not behaviour. The core functions it produces are stubs with real signatures; the HTTP handlers call the service, so the API reads and writes the table from the start. It gets you a module that compiles, migrates, tests and passes the gates — the domain logic is still yours to write.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wagoe, module-generation, code-generation, clojure, scaffolding
10 skills in this plugin
/wagoeWagoe framework (Clojure FC/IS) toolkit. Use when the user wants to add a module, entity, or feature ("add a product module with name and price"), add a field/endpoint/adapter to a module, wire a module into the app, explain a Clojure/Wagoe error or stacktrace, generate tests, write SQL from a description, configure the project, or diagnose setup issues. ALWAYS scaffold new modules with `bb scaffold` instead of hand-writing them./wagoe-debugDiagnose a failure in a Wagoe app — a 500, an exception, a stack trace, a nil where a value was expected, a field that reads back empty, or a test that fails for no obvious reason. Use when something in a Wagoe project is broken and the cause is not yet known. Works from the innermost layer outward, checks the framework's known pitfalls first, and can call bb ai explain on a stack trace./npx claudepluginhub wagoebv/wagoe --plugin wagoeOther plugins' skills for the same job