/wagoe:wagoefrom wagoe
Generates Clojure/Wagoe FC/IS modules, entities, fields, endpoints, and adapters via Babashka scaffold tasks. Also explains errors, generates tests and SQL, and configures projects.
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.
Wagoe ships generators and AI tools as Babashka tasks. Use them instead of hand-writing boilerplate: they generate the full FC/IS structure (core/shell/ports/schema), tests, and migrations, and keep the architecture consistent.
| User asks for | Run |
|---|---|
| New module/entity ("products with name, price") | bb scaffold ai "product module with name, price" --yes |
| Same, without an AI provider | bb scaffold generate --module-name product --entity Product --field name:string:required --field price:decimal:required |
| Preview before writing files | add --dry-run to any scaffold command |
| Wire a scaffolded module into the app | bb scaffold integrate <module> (preview with --dry-run) |
| Add an entity to an existing module (line items of an invoice) | bb scaffold entity --module-name billing --entity InvoiceLineItem --belongs-to invoice --field quantity:int:required |
| Add a field to an existing entity | bb scaffold field --module-name product --entity Product --name weight --type decimal --required |
| Add an endpoint | bb scaffold endpoint --module-name product --path "/products/:id/publish" --method POST --handler-name publish-product-handler |
| Adapter for a port | bb scaffold adapter --module-name product --port IProductNotifier --adapter-name email-product-notifier --method "notify-created:product" |
| Explain an error or stacktrace (experimental) | bb ai explain --file stacktrace.txt |
| Generate tests for a namespace (experimental) | bb ai gen-tests <path/to/file.clj> --write |
| SQL (HoneySQL) from a description (experimental) | bb ai sql "find active users with orders in last 7 days" |
| Admin entity config | bb ai admin-entity "products with name, price, status" --yes |
| Generate module docs (AGENTS.md) | bb ai docs --module <path> --type agents |
| Configure the project (DB, payments, …) | bb setup ai "PostgreSQL with Stripe payments" |
| Validate config + environment | bb doctor --all |
| Quality gates (FC/IS, deps, lint) | bb check |
| Unsure what to do next | bb guide next — error codes: bb guide error WGE-003 |
Field spec format: name:type[:values=a,b,c][:required][:unique] with types
string text integer decimal boolean email uuid enum date datetime json.
An enum must name its values: status:enum:values=draft,sent,paid.
bb scaffold generate, run bb scaffold integrate <module>. It
writes the module's key into every resources/conf/<profile>/config.edn;
that is the whole registration. With the admin UI on, generate and
entity also write each entity's admin config.
deps.edn and tests.edn need no changes; the generated paths cover them.
Then run clojure -M:migrate up and the module's tests.
bb scaffold field writes the migration and adds the field to schema.clj.bb check before committing — FC/IS violations (core/ importing
shell, doing I/O, or logging) fail CI.bb scaffold ai, bb ai *, bb setup ai) need a provider:
local Ollama (OLLAMA_URL) or one of ANTHROPIC_API_KEY, OPENAI_API_KEY,
OPENAI_BASE_URL, REPLICATE_API_TOKEN. Verify with bb doctor:env, which
names the one that would be used. Without any, fall back to the explicit
bb scaffold generate flags — no provider required.core/ = pure functions only; shell/ = all I/O. Shell → Core allowed;
Core → Shell never.clj-paren-repair <file> — never repair by hand.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/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./wagoe-deployPackage and deploy a Wagoe app — uberjar, Docker image, Kubernetes, systemd or a cloud manifest. Use when asked to build a release, containerise the app, deploy to an environment, or check a project is ready to ship. Covers the pre-deploy checks that actually catch things, the server/worker split, and the health endpoints to probe./npx claudepluginhub wagoebv/wagoe --plugin wagoeOther plugins' skills for the same job