/wagoe:wagoe-debugfrom wagoe
Diagnoses failures in Wagoe apps: 500s, exceptions, stack traces, nil values, empty fields, or failing tests. Works from innermost layer outward and checks framework-specific pitfalls first.
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.
Most Wagoe bugs are one of a handful of shapes. Check those before reasoning from first principles — it is usually faster, and the symptoms are distinctive.
| Symptom | Look at |
|---|---|
A field reads back nil for no reason | snake_case / kebab-case mismatch |
| A new field is missing or rejected | schema, column and persistence transform out of sync |
| Generic 500 with "Exception reached HTTP boundary" | ex-info without :type in ex-data |
A route answers at /api/v1/api/…, or not at all | module routes wrote the prefix themselves, or returned a flat vector instead of a {:api :web :static} contribution |
No matching method on a Java call | static vs instance interop |
Unable to resolve symbol for your own fn | private helper defined below its caller |
kebab-case everywhere in Clojure; snake_case only at the database boundary;
camelCase only at the API boundary. Use :created_at internally and the
lookup silently returns nil — no error, no warning, just a missing value. In a
test it shows up as:
Expected: #<java.time.Instant … 2026-01-01T00:00:00Z>
Actual: -#<java.time.Instant …> +nil
That +nil against a concrete expected value is the signature. Note the
quality gates do not catch this — bb check passes on a project with this
defect, because a wrong keyword is still a valid keyword. Only a test that
exercises the value finds it.
Do not debug through the whole stack. Find the innermost layer that is wrong:
;; in the REPL, after (go)
(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"])
Reload with (reset). After changing a defrecord, (reset) is not enough —
it reuses the old instances. Use (halt) then (go).
A generated project ships no logback config, so there is no log file to
tail. Logback falls back to console, which means the stack trace is in the
terminal running clojure -M:run or in the REPL — not on disk. Looking for a
file and finding none is not evidence that nothing was logged.
find . -name "logback*.xml" # nothing? then logs are on the console
In the Wagoe framework repository itself, resources/logback.xml writes to:
logs/wagoe.log | application, including stack traces |
logs/audit.log | audit trail |
logs/security.log | security events |
tail -100 logs/wagoe.log | grep -A 10 "ERROR"
If a project has added its own logback config, read that file for the path rather than guessing.
println goes to stdout, not to any log file — and should come out before
committing.
bb ai explainbb ai explain --file stacktrace.txt
cat stacktrace.txt | bb ai explain
It needs an AI provider:
bb doctor:env # names the provider that would be used, or says none is set
The failure modes are readable now (BOU-280). With nothing configured it says
so and lists the variables to set; a rejected key says the key was rejected
rather than printing the request map; an exhausted balance is distinguished
from rate-limiting, because the advice differs. If you see a raw stack trace
from bb ai, that is a bug worth filing, not a configuration hint.
This is an accelerator, not the method. The symptom table and layer isolation above work with no provider at all.
bb ai explain on the trace — provider permitting.bb check and the test suite catch structural problems: FC/IS violations,
missing ports, untagged tests, lint. They do not catch logic errors, and as
above they do not catch case mismatches. A green bb check on a broken app is
normal and means nothing about correctness.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-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