http-actix-axum

http-actix-axum is a skill for Claude Code from pedromneto97/custom-skills. It costs 99 tokens per session (1,921 once invoked), scanned A, original, MIT.

A set of HTTP API guidelines for Rust web backends built with actix-web or axum. HTTP APIs are interfaces that let software exchange requests and responses over the web.

In plain words
What is it for?
Designing REST endpoints, returning standard error details, configuring security headers and CORS, compressing responses, and versioning APIs.
Why use it?
It helps avoid inconsistent URLs, status codes, error responses, security settings, and API versioning choices.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Designing REST endpoints, returning standard error details, configuring security headers and CORS, compressing responses, and versioning APIs.

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

Made for: Claude Code.

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 http-actix-axum

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedromneto97/custom-skills/http-actix-axum"><img src="https://agentmods.dev/badge/skills/pedromneto97/custom-skills/http-actix-axum.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,921 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.00099 $0.01921
Opus 5 $0.00049 $0.00960
Sonnet 5 $0.00020 $0.00384
Haiku 4.5 $0.00010 $0.00192

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

Security

Grade A, and why

http-actix-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 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/http-actix-axum/SKILL.md · 226 lines

How it starts

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

HTTP Best Practices — actix-web / axum

1. Resource Naming

Rule Good Bad
Plural nouns /orders, /users /order, /getOrders
Lowercase + hyphens /order-items /orderItems, /Order_Items
Hierarchical nesting /orders/{id}/items /order-items?orderId={id}
No verbs in path POST /orders POST /createOrder
Filter / sort in query /orders?status=pending&sort=created_at /pending-orders

Max nesting depth: 2 levels (/resource/{id}/sub-resource). Avoid deeper hierarchies.


2. API Versioning

Prefix at the router level. Handlers are version-agnostic.

actix-web

// inbound/src/http/router.rs
pub fn configure(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("/api/v1")
            .service(web::scope("/orders")
                .route("",      web::get().to(list))
                .route("",      web::post().to(create))
                .route("/{id}", web::get().to(get_one))
                .route("/{id}", web::put().to(update))
                .route("/{id}", web::delete().to(delete)),
            ),
    );
}

axum

// inbound/src/http/router.rs
pub fn build_router() -> Router {
    Router::new()
        .nest("/api/v1", Router::new()
            .nest("/orders", Router::new()
                .route("/",    get(list).post(create))
                .route("/:id", get(get_one).put(update).delete(delete)),
            ),
        )
}

3. HTTP Status Codes

Operation Method Success Error cases
Fetch one GET 200 404 if not found
Fetch list GET 200 Empty list → 200 [], never 404
Create POST 201 + Location header 400, 422
Full replace PUT 200 404, 422
Partial update PATCH 200 404, 422
Delete DELETE 204 No Content 404
Async action POST 202 Accepted
Bad input 400 Bad Request
Unauthenticated 401 Unauthorized
Forbidden 403 Forbidden
Conflict (duplicate) 409 Conflict
Business rule violated 422 Unprocessable Entity
Server fault 500 Internal Server Error Never leak stack traces

Read the full file on GitHub · 226 lines

Files

What ships with it

6 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 · 226 lines · 99 tokens per session scan A edbefccba0fe

Subscribe to this mod's changes

http-actix-axum is a skill published in the GitHub repository pedromneto97/custom-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 99 tokens to every session and 1,921 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-31.