/wagoe:wagoe-runfrom wagoe
Boots a Wagoe app in server, worker, or REPL mode and verifies changes against the live application. Covers profile selection, port discovery, and startup diagnostics.
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.
# HTTP server, no external services (in-memory H2)
JWT_SECRET="dev-secret-at-least-32-characters-long" WAG_ENV=test clojure -M:run server
# Background worker, no HTTP listener
JWT_SECRET="…" WAG_ENV=test clojure -M:run worker
# REPL-driven, for editing while it runs
JWT_SECRET="…" WAG_ENV=test clojure -M:repl-clj # nREPL on 7888
JWT_SECRET is required and must be at least 32 characters. Startup takes
roughly 30 seconds — the system runs migrations and initialises every module —
so poll rather than assuming failure at 10.
WAG_ENV | Database | Needs installing |
|---|---|---|
test | in-memory H2 | nothing |
dev | PostgreSQL wagoe_dev on :5432 | a running PostgreSQL |
acc, prod | from environment | everything |
dev is not the zero-setup profile. Without PostgreSQL it fails after
about 40 seconds of startup with
Error on key :wagoe/db-context when building system
Caused by: FATAL: database "wagoe_dev" does not exist
That is a stack trace, not a message — if you see one, read the Caused by:
line at the bottom rather than the Hikari frames above it.
Use test to see a change working. Use dev when the change concerns
PostgreSQL specifically, and start a database first.
development, production, acceptance and testing are accepted as aliases
for the four short names. An unrecognised value throws Configuration file not found rather than silently falling back.
The server takes the configured port if free and otherwise scans a range, so the port it ends up on is a fact to read, not to guess:
| Profile | Configured | Range on conflict |
|---|---|---|
dev | 3000 | 3000–3099 |
test | 3100 | 3100–3199 |
HTTP_PORT overrides the configured port. The allocated one is logged:
HTTP server started successfully {:port 3101, :url http://0.0.0.0:3101, …}
HTTP Server port conflict resolved {:requested-port 3100, :allocated-port 3101}
Grep the log for HTTP server started successfully and take :port from
there. From a REPL:
(-> integrant.repl.state/system :wagoe/http-server .getURI str)
;; => "http://0.0.0.0:3100/"
Starting the server proves it starts. It does not prove your change works — finish the loop:
curl -s -o /dev/null -w "%{http_code}\n" http://localhost:3100/web/login # 200
curl -s http://localhost:3100/api/v1/<your-route> | head
For a page, fetch it and grep for the text or element you added. If the project
has Playwright wired up, bb e2e starts a server on 3100, runs the suite and
tears it down — use that rather than driving a browser by hand.
A change that only shows up after a request needs a request. Boot, hit the thing, read the response.
(require '[integrant.repl :as ig-repl])
(ig-repl/go) ; start
(ig-repl/reset) ; reload changed namespaces and restart
(ig-repl/halt) ; stop
reset is enough for ordinary edits. After changing a defrecord it is
not — it reuses the existing instances. Use (halt) then (go), or restart
the REPL.
Drive it from the shell without an editor attached:
clj-nrepl-eval --discover-ports
clj-nrepl-eval -p 7888 "(do (require '[integrant.repl :as ig-repl]) (ig-repl/go) :up)"
Inspect a live component instead of adding logging:
(def svc (get integrant.repl.state/system :wagoe/user-service))
(def ds (get-in integrant.repl.state/system [:wagoe/db-context :datasource]))
(jdbc/execute! ds ["SELECT * FROM users LIMIT 5"])
clojure -M:run worker boots the same system minus the HTTP surface — it logs
Starting Wagoe worker (no HTTP listener) and opens no port. Use it to check
that a background job runs without a web server in the way. Nothing to curl;
read the log.
test unless the change is about PostgreSQL.curl, and check the response, not just the status.Nothing here touches a deployed environment; WAG_ENV=prod against a real
database is a deploy concern. Config problems are bb doctor's job — if
startup fails on configuration rather than on the database, run that first.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
wagoe, clojure, repl-driven-development, server-mode, worker-mode
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