rc-axum

rc-axum is a skill for Claude Code from rodolfochicone/rc-project. It costs 98 tokens per session (867 once invoked), scanned A, original, MIT.

A development guide for Axum 0.8 web APIs written in Rust. Axum is a Rust framework for HTTP services, including routes, request inputs, shared application state, middleware, and WebSockets.

In plain words
What is it for?
Use it when building or reviewing Axum routes, handlers, middleware, typed errors, CORS, timeouts, authentication, or WebSocket endpoints. It also covers HTTP tests, formatting, linting, and release builds.
Why use it?
It provides consistent patterns for separating handlers from business logic, handling errors, ordering middleware, and applying security controls. This reduces common mistakes in backend services.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter.

Part of the rc plugin — 32 skills, 2 commands, 4 agents, 5 hooks shipped together

Good fit Use it when building or reviewing Axum routes, handlers, middleware, typed errors, CORS, timeouts, authentication, or WebSocket endpoints. It also covers HTTP tests, formatting, linting, and release builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rodolfochicone/rc-project/rc-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 rodolfochicone/rc-project --skill rc-axum
Clone the repo
git clone --depth 1 https://github.com/rodolfochicone/rc-project

Made for: Claude Code.

Or install rc, the plugin that ships this one along with the rest of its 32 skills, 2 commands, 4 agents, 5 hooks.

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 rc-axum

README.md
[![agentmods](https://agentmods.dev/badge/skills/rodolfochicone/rc-project/rc-axum/github.svg)](https://agentmods.dev/skills/rodolfochicone/rc-project/rc-axum)
Your own site
<a href="https://agentmods.dev/skills/rodolfochicone/rc-project/rc-axum"><img src="https://agentmods.dev/badge/skills/rodolfochicone/rc-project/rc-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 rc-axum

Your own site · 80×15
<a href="https://agentmods.dev/skills/rodolfochicone/rc-project/rc-axum"><img src="https://agentmods.dev/badge/skills/rodolfochicone/rc-project/rc-axum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 867 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.00098 $0.00867
Opus 5 $0.00049 $0.00434
Sonnet 5 $0.00020 $0.00173
Haiku 4.5 $0.00010 $0.00087

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

Security

Grade A, and why

rc-axum 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 10d 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/stacks/rc-axum/SKILL.md · 63 lines

How it starts

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

Axum 0.8+ (Rust web API)

Opinionated guide for production Axum services (Tokio + Tower + Hyper). Target crate line: axum 0.8.x (docs verified against axum v0.8.4+). Pair with rc-sqlx for Postgres and rc-sveltekit when the front is SvelteKit.

Core workflow

  1. Map boundaries — routes vs domain vs infra; keep handlers thin.
  2. State — one AppState: Clone (pool, config, clients); inject with .with_state(...). Prefer State<T> over request-global Extension for app state.
  3. ExtractorsPath, Query, Json, State, TypedHeader as needed; fail early with typed errors.
  4. Middleware — Tower ServiceBuilder order: errors/timeouts → tracing → CORS → auth route_layer where needed.
  5. Security — bind loopback behind reverse proxy in VPS; CORS explicit origins; no secrets in logs. Read references/security.md.
  6. Testtower::ServiceExt::oneshot for HTTP; dedicated WS tests. Read references/testing.md.
  7. Lintcargo fmt, clippy -D warnings, release build. Read references/lint-tooling.md.

Reference guide

Topic File Load when
Routing, State, extractors, errors, WS references/guide.md Implementing or refactoring handlers
Auth, CORS, headers, hardening references/security.md Auth, public API, production deploy
Unit/integration tests references/testing.md Writing or fixing tests
Clippy, fmt, CI, features references/lint-tooling.md Tooling, CI, crate features

Must do

  • Use Axum 0.8 APIs (axum::serve(listener, app), Message::Text as in current WS).
  • Keep AppState cheap to clone (Arc inside if needed).
  • Return impl IntoResponse / custom error type implementing IntoResponse — never panic in handlers for expected failures.
  • Layer timeouts with HandleErrorLayer so timeout errors become HTTP responses.
  • For WebSockets: handle Close, limit message size, authenticate before upgrade when data is private.
  • Log with tracing + TraceLayer; structured fields, no tokens/passwords.

Read the full file on GitHub · 63 lines

Files

What ships with it

4 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. 10d ago First seen · 63 lines · 98 tokens per session scan A 3fad4a664f11

Subscribe to this mod's changes

rc-axum is a skill published in the GitHub repository rodolfochicone/rc-project (19 stars, last pushed 1mo ago), licensed MIT. It adds 98 tokens to every session and 867 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

rust-programming-expert

Expert-level skill for Rust programming (Rust 2024 / v1.85+). Covers memory safety, async, Axum/SQLx, CLI, and optimization in English and Indonesian.

roedyrustam/vibes-plug · 45 tokens

fluent-development

This skill should be used when the user asks to "build a fluent app", "create a servicenow app in typescript", or mentions "servicenow sdk", "now-sdk", "fluent", "scoped app as code", or "pro-code development" — or when the working directory contains a now.config.json or .now.ts files.

serac-labs/serac · 77 tokens

warp

Warp Rust web framework using filters. Covers routing, filters, rejection, WebSocket, and TLS. Use for composable, type-safe Rust APIs. USE WHEN: user mentions "warp", "rust filters", "composable rust api", asks about "warp filters", "warp rejection", "filter composition rust", "rust hyper warp", "warp websocket" DO…

claude-dev-suite/claude-dev-suite · 118 tokens

actix-web

Actix-web Rust web framework. Covers routing, extractors, middleware, state management, and WebSocket. Use for high-performance Rust APIs. USE WHEN: user mentions "actix-web", "actix", "rust web framework", "rust api", asks about "rust async web", "actix middleware", "actix extractors", "rust websocket", "high…

claude-dev-suite/claude-dev-suite · 124 tokens

axum

Axum Rust web framework by Tokio. Covers routing, handlers, extractors, middleware, and state. Use for ergonomic async Rust APIs. USE WHEN: user mentions "axum", "tokio web", "rust async api", "tower middleware", asks about "axum extractors", "axum state", "axum router", "rust websocket axum", "hyper server"…

claude-dev-suite/claude-dev-suite · 130 tokens

rocket

Rocket Rust web framework. Covers routing, fairings, guards, state, and testing. Use for type-safe, boilerplate-free Rust APIs. USE WHEN: user mentions "rocket", "rust type-safe api", "rocket guards", asks about "rocket fairings", "rocket state", "compile-time route checking", "rust web macros", "rocket testing" DO…

claude-dev-suite/claude-dev-suite · 119 tokens