axum-core-router
OfficialBuild correct Axum routes without panics
Software Engineering#version compatibility#middleware ordering#axum router#routing composition#404 vs 405#path syntax migration#nest merge fallback
AuthorImpertio-Studio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents Axum router startup panics and routing bugs caused by version-specific path syntax and incorrect composition of routes, nests, merges, fallbacks, and middleware layers.
Core Features & Use Cases
- Axum 0.7 vs 0.8 path-syntax safety: correctly migrate from :id and *path to {id} and {*path}, avoiding the deliberate 0.8 startup panic.
- Correct routing composition: choose between .route, .nest, .merge, and service mounting (nest_service) so handlers land at the right paths and methods.
- Correct 404 vs 405 behavior: ensure unmatched paths return 404 while wrong-method requests return 405 using the right fallback strategy.
- Middleware placement without surprises: apply .layer vs .route_layer so middleware runs on the intended requests (and never turns real 404s into auth errors).
Quick Start
Ask: “Generate an Axum 0.8 Router that mounts a sub-router under /api/v1, uses correct {id}/{*path} syntax, separates 404 and 405 handling, and places auth with route_layer and logging with layer, then explain any panics to avoid.”
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: axum-core-router Download link: https://github.com/Impertio-Studio/Axum-Claude-Skill-Package/archive/main.zip#axum-core-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.