/autumn:routes [-p <package>] [--bin <bin>] [--user-only] [--method GET|POST|...] [--filter <pattern>]from autumn
Lists and inspects registered routes in an Autumn web framework project. Supports filtering by method, pattern, and package/binary in workspace projects.
Ships in autumn. 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.
Run autumn routes to emit a machine-readable list of all registered routes
in the current Autumn project.
Run from the project root (directory containing autumn.toml). Always use
JSON output. Include --user-only by default to hide framework internals,
but omit it when the user explicitly wants to see framework routes (actuator,
health probes, static assets, admin).
In workspace or multi-binary projects, pass -p <package> (and
optionally --bin <bin>) so autumn routes targets the correct binary;
omitting these in a workspace causes an error when multiple candidates exist.
# Single-binary project — user routes only
autumn routes --format json --user-only
# Workspace project — target a specific package
autumn routes --format json --user-only -p blog
# Multi-binary package — also specify the binary
autumn routes --format json --user-only -p api --bin server
# When user wants all routes (framework + user)
autumn routes --format json
If the user passes --method or --filter, append them to whichever form is appropriate:
autumn routes --format json --user-only --method POST --filter /posts
Capture stdout, stderr, and exit code.
When the user asks for a route diagram, use --format mermaid instead of
json; it prints a Mermaid flowchart (one subgraph per route source) that
renders directly in GitHub Markdown:
autumn routes --format mermaid --user-only
Mermaid output is not JSON: skip the JSON handling below and return stdout
verbatim inside a ```mermaid fenced block.
For --format json (the default here), parse the JSON array and present a clean table grouped by handler file or
resource:
Routes (N total):
GET /posts routes::posts::list
GET /posts/{id} routes::posts::show
POST /posts [auth] routes::posts::create
PATCH /posts/{id} [auth] routes::posts::update
DELETE /posts/{id} [auth] routes::posts::delete_post
Mark secured routes with [auth] and admin-only with [admin] if that
information is present in the JSON.
Autumn automatically mounts these — they appear when --user-only is
omitted. They do not need to be shown unless the user asks:
GET /health, GET /actuator/*, GET /live, GET /ready, GET /startupGET /static/js/htmx.min.jsautumn-admin-plugin is installedIf autumn routes fails because the project has not been compiled, tell the
user to run cargo build first, then retry.
autumn routes audit audits every route's authentication
exposure. It prints each route's classification — gated, public,
framework, or unclassified — and emits a stable-ordered (by path, then
method) JSON security manifest. It exits non-zero on any unclassified (or
omitted) route, so it can gate CI. autumn new now wires this into every
scaffolded app's .github/workflows/ci.yml by default (right after the
a11y-verify step, reusing its installed CLI), so a fresh app fails CI on day
one if a route is left unclassified.
Mark a deliberately-unauthenticated handler with the new #[public] attribute
(mirrors #[secured]) to classify it as public and clear it from the
unclassified set.
A layer can be the guard, such as RequireApiToken. Mount that group with
AppBuilder::scoped_guarded, not scoped (issue #2468). Its routes are then
gated with provenance: "declared". Do not use #[public] on them. The
audit cannot check that the layer authenticates.
A raw nest/merge router is opaque to the audit and fails it. Pair the
nest with declare_plugin_routes(...) listing what it serves. For the
generic comment router, that is
commentable::route_infos("/comments"). A route generated by
#[repository(api = ...)] cannot carry #[public]; give the repository a
policy = ..., or, for a deliberately open read-only API, set
route.api_doc.public = true on the Routes that routes![...] returns
(examples/reddit-clone/src/main.rs, public_routes).
examples/reddit-clone is in autumn's own posture fleet and is the worked
example: every route classified by hand, with a golden diff of the gate
blocking a #[secured] → #[public] change. See "Recipe: watch it block on
reddit-clone" in docs/guide/posture-gate.md.
An unclassified-route diagnostic now names the offending handler's file:line
(from file!()/line!()) alongside its module, e.g. POST /widgets (handler create_widget [myapp::widgets] at src/routes/widgets.rs:12), so it can be
jumped to directly. See docs/guide/route-auth-coverage.md for the full
default-deny posture model and how to classify gated/public/framework
routes.
The manifest (schema v3) carries four dimensions, each tagged with a provenance class:
routes (provable) — the per-route classification above.csrf (declared) — CSRF enforcement per mutating route, from config.security_headers (declared) — effective response headers, from config.authorization_policies (provable) — one (action, resource) entry per
#[authorize] binding, plus a runtime_caveat recording that which
impl Policy<R> serves the check is a boot fact the build cannot see.The audit builds the dev profile with default features unless told otherwise.
A route behind #[cfg(not(debug_assertions))] or a feature is only in the
manifest when the audit builds it, so audit the build you deploy:
autumn routes audit --release (issue #2472). The
manifest (schema v5 and later) records the build in a top-level build object, and
routes posture diff reports build_changed as a widening when two manifests
come from different builds.
Dimensions that are not yet emitted are named in the manifest's excluded
list with the class they will eventually carry. See
docs/guide/security-posture-manifest.md for the provenance rubric that
decides a dimension's class.
autumn routes audit says what the surface is. autumn routes posture says
what a change did to it:
# The pull-request gate. Exit 0 = clean or acknowledged, 1 = blocked,
# 2 = the tool could not run.
autumn routes posture diff --base base-posture.json --head security-posture.json
# The digest a release records, and the deploy-time proof.
autumn routes posture digest --manifest security-posture.json
autumn routes posture verify --manifest security-posture.json \
--expect-digest <digest> --repo owner/repo
Only widening blocks: a new public or unclassified route, a classification
downgraded, a role requirement dropped, a role added (roles are OR-ed, so one
more admits more callers), a scope removed (scopes are AND-ed), an
#[authorize] binding or policy check removed, CSRF enforcement lost, or a
security header no longer emitted. Narrowing and neutral changes annotate and
never block, a security header's value changing is reported but never
blocked, and a handler rename or a moved file produces no finding at all.
A widening is acknowledged with one pull-request comment carrying the marker
the report prints — /ack-posture <digest> ceiling=<posture> <reason>. It
means "no wider than this": it stays valid across unrelated pushes and
narrowing, and stops matching when something new widens or a constraint is
removed. A bare digest means "exactly this". The marker is also the only
escape hatch for a false positive. Nothing disables the gate.
autumn new scaffolds .github/workflows/posture-gate.yml; existing apps
adopt it with autumn upgrade --apply. See docs/guide/posture-gate.md.
When the user is debugging a 404, compare the route table with the requested path. Common mismatches:
{id}, not :idmain.rs routes![...]What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (autumn-foundation/autumn) — no native marketplace selected
npx claudepluginhub p/madmax983-autumn7 skills in this plugin
/autumn-patternsUse when writing, reviewing, or debugging Rust code in an autumn-web project; covers idiomatic patterns for testing, repositories, service layers, job design, security, error handling, and Maud templates that are not covered in the framework API reference.
/autumn-webUse when building, debugging, documenting, or upgrading Rust web applications with autumn-web, autumn-cli, or first-party Autumn crates; also use for Autumn route/model/repository/job/webhook/admin macros, AppBuilder setup, Maud + htmx server-rendered UI, Diesel async Postgres, and Autumn 0.11.x migration or release work.
/devUse when the user runs /autumn:dev, asks to start the Autumn development server, enable hot reload, or check what's running locally.
/doctorUse when the user runs /autumn:doctor, asks to audit their Autumn app's configuration, check for deployment readiness, or diagnose config problems, missing secrets, or stale migrations.
/generateUse when the user runs /autumn:generate, asks to scaffold a resource, generate a model, migration, controller, mailer, or task using the autumn CLI.
/newUse when the user runs /autumn:new, asks to create a new Autumn web application, or wants to scaffold a fresh project with the autumn CLI.
Other plugins' skills for the same job