axum-docs

axum-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 36 tokens per session (1,611 once invoked), scanned A, original, MIT.

Reference material for Axum 0.8.x, a Rust framework for building web servers and APIs. It covers routes, request data, middleware, shared state, WebSockets, server-sent events, and testing.

In plain words
What is it for?
Use it when creating routes, reading request data, returning responses, adding Tower middleware, managing application state, handling live connections, or testing Axum services.
Why use it?
It gives coding agents the framework-specific details needed to write or explain Axum code correctly, without searching through documentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating routes, reading request data, returning responses, adding Tower middleware, managing application state, handling live connections, or testing Axum services.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/axum
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pledgeandgrow/pledge-skills --skill axum
Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for axum-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/axum/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/axum)
Your own site
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/axum"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/axum/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for axum-docs

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/axum"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/axum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01611
Opus 5 $0.00018 $0.00805
Sonnet 5 $0.00007 $0.00322
Haiku 4.5 $0.00004 $0.00161

Measured 12d ago against content hash ed66bd1c743a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axum-docs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/axum/SKILL.md · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Axum 0.8.x — Rust Web Framework

Overview

Axum is a ergonomic and modular web framework built with Tokio, Hyper, and Tower. It provides a macro-free API for routing, declarative request parsing via extractors, predictable error handling, and seamless integration with the Tower ecosystem of middleware and services.

Key Principles

  • Macro-free routing: Routes are defined via Router::new().route(path, method_router).
  • Extractors: Request parsing is done via types implementing FromRequest / FromRequestParts.
  • IntoResponse: Anything implementing IntoResponse can be returned from handlers.
  • Tower integration: No bespoke middleware system — uses tower::Service and tower::Layer directly.
  • Type-safe state: State is threaded through the type system via Router<S> and with_state().
  • Infallible by design: All services must have Infallible as their error type — errors become responses.

Skill File Structure

File Contents
SKILL.md This file — overview, quick reference, feature flags
getting-started.md Installation, Hello World, project setup, Cargo dependencies
api.md Full API reference: Router, routing, handlers, extractors, responses, middleware, error handling, state, serving
guides.md Testing, deployment, Tower middleware integrations, best practices, examples

Quick Reference

Hello World

use axum::{routing::get, Router};

#[tokio::main]
async fn main() {
    let app = Router::new().route("/", get(|| async { "Hello, World!" }));
    let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
    axum::serve(listener, app).await.unwrap();
}

Routing

use axum::{Router, routing::{get, post, delete}};

let app = Router::new()
    .route("/", get(root))
    .route("/users", get(list_users).post(create_user))
    .route("/users/{id}", get(show_user).delete(delete_user))
    .route("/assets/{*path}", get(serve_asset));

Read the full file on GitHub · 211 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 211 lines · 36 tokens per session scan A ed66bd1c743a

Subscribe to this mod's changes

axum-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 1,611 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.