rust-axum-microservices

rust-axum-microservices is a skill for Claude Code from vaquarkhan/Fullstack-development-agent-skills. It costs 44 tokens per session (500 once invoked), scanned A, original, MIT.

A set of patterns for building HTTP microservices in Rust with Axum and Tokio, tools for creating web servers and asynchronous programs. It covers database access, middleware, consistent errors, timeouts, and safe shutdown.

In plain words
What is it for?
Use it to structure Rust services, add authentication and request tracing, connect databases, handle errors, enforce timeouts, and test handlers and integrations.
Why use it?
It helps prevent unsafe request handling, inconsistent error responses, unbounded waits, insecure database queries, and services that stop badly during deployment or failure.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the fullstack-development-agent-skills plugin — 129 skills, 10 commands shipped together

Good fit Use it to structure Rust services, add authentication and request tracing, connect databases, handle errors, enforce timeouts, and test handlers and integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices
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 vaquarkhan/Fullstack-development-agent-skills --skill rust-axum-microservices
Clone the repo
git clone --depth 1 https://github.com/vaquarkhan/Fullstack-development-agent-skills

Made for: Claude Code.

Or install fullstack-development-agent-skills, the plugin that ships this one along with the rest of its 129 skills, 10 commands.

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 rust-axum-microservices

README.md
[![agentmods](https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices/github.svg)](https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices)
Your own site
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices/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 rust-axum-microservices

Your own site · 80×15
<a href="https://agentmods.dev/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices"><img src="https://agentmods.dev/badge/skills/vaquarkhan/fullstack-development-agent-skills/rust-axum-microservices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 500 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.00044 $0.00500
Opus 5.5 $0.00018 $0.00200
Sonnet 5.5 $0.00009 $0.00100
Haiku 4.5 $0.00004 $0.00050

Measured 2mo ago against content hash e2a40bd77bc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-axum-microservices 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 2mo 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.

skill-packs/rust/axum/rust-axum-microservices/SKILL.md · 61 lines

How it starts

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

Rust Axum Microservices

Use When

  • Building Rust backend APIs with Axum and Tokio
  • Teams need memory-safe, high-throughput services with explicit error handling
  • Replacing or complementing Go/Node edge services with Rust

Workflow

  1. Structure crates: domain, application, infrastructure, api binary.
  2. Define AppState with Arc-wrapped pools and services; inject via State extractor.
  3. Map errors to IntoResponse with consistent problem JSON.
  4. Add Tower layers: trace, timeout, compression, auth.
  5. Use SQLx compile-time queries or SeaORM with migrations.
  6. Test handlers with axum::test and integration tests with testcontainers.

Required Checks

  • No unwrap/expect in request handlers
  • Timeouts on outbound HTTP and DB pool acquire
  • SQL parameterized — sqlx macros or bind parameters only
  • Graceful shutdown on SIGTERM via with_graceful_shutdown

Examples And Templates

See examples/ for side-by-side good vs bad patterns agents commonly get wrong. See templates/ for copy-paste starters aligned with this skill.

Decision Framework

  • Prefer thiserror/anyhow boundary pattern — domain errors vs internal errors.
  • Keep handlers thin; business logic in async service functions.
  • Use tracing spans with request IDs propagated from middleware.
  • Actix-web only when team already standardized — Axum + Tower is default here.

Common Rationalizations And Rebuttals

  • "unwrap is fine for prototypes." -> Panics become 500 storms under load; use Result.
  • "Clone Arc everywhere is free." -> Profile hot paths; prefer references in service layer.
  • "Blocking std::fs in async fn." -> Use tokio::fs or spawn_blocking.

Evidence Pack

  • Handler tests with mock services
  • Trace sample with request_id through DB call
  • Load test summary for target RPS
  • Graceful shutdown behavior under in-flight requests

Exit Criteria

  • Handlers return typed errors mapped to HTTP problem responses
  • Observability and timeouts configured on all I/O boundaries
  • Service passes clippy and fmt in CI

Read the full file on GitHub · 61 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. 2mo ago First seen · 61 lines · 44 tokens per session scan A e2a40bd77bc3

Subscribe to this mod's changes

rust-axum-microservices is a skill published in the GitHub repository vaquarkhan/Fullstack-development-agent-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 44 tokens to every session and 500 once invoked, about $0.0002 per session on Opus 5.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-09-07.

Related

rust-axum-microservices compared with skills from other repositories

rust-axum-microservices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-axum-microservicesvaquarkhan/Fullstack-development-agent-skillsSkill32mo agoMITA44Claude Code
azure-eventhub-rustmicrosoft/skillsSkill3.2kyesterdayMITA58Claude Code
apollo-router-plugin-creatorclidey/whodbSkill5.0kyesterdayApache-2.0A116Claude Code
azure-eventhub-rustbenjaminasterA/antigravity-awesome-skillsSkill461yesterdayMITA0Claude Code, Codex
rust-gatewayBerriAI/litellmSkill63kyesterdaynoneA70Claude Code, Codex
axumTerminalSkills/skillsSkill192yesterdayApache-2.0A94Claude Code, Codex
cloudflare-workers-multi-langsecondsky/claude-skillsSkill2456d agoMITA45Claude Code