Skip to main content
skill CX Codex

domain-web — Claude Code skill: what it does, how to install

A Rust web-service skill covering async handlers, shared state, errors, extractors, and middleware. Use it when a project contains Cargo.toml.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add actionbook/rust-skills --skill domain-web -a claude-code
Open on GitHub

What domain-web does

domain-web gives an agent design rules for Rust web services. It covers HTTP, REST APIs, GraphQL, WebSocket, routers, handlers, extractors, authentication, JWT, sessions, CORS, and rate limiting. The skill targets projects matched by **/Cargo.toml.

Its guidance covers async execution, shared application state, and request lifetimes. It recommends Arc<T> or Arc<RwLock<T>>, type-driven input validation, IntoResponse for errors, and Tower layers for middleware. The material compares axum, actix-web, warp, and rocket, and names crates such as reqwest, serde_json, jsonwebtoken, sqlx, and diesel.

A blocking handler conflicts with the skill’s async rule, so CPU-heavy work belongs in spawn_blocking. Check that boundary before extending the route layer.

What it helps with

  • design a Rust HTTP service
  • choose a pattern for shared application state
  • inspect handlers and request extractors
  • return a consistent error response
  • build middleware with Tower layers

Example prompts for the agent

  • Design a Rust REST API for this project with Cargo.toml; choose a suitable framework and lay out the routes.
  • Review these web handlers for blocking work, missing Send + Sync, and unsafe shared-state patterns.
  • Add request validation and a shared IntoResponse error type while keeping the handlers async.

How to install domain-web

1Skills CLI (Vercel)

npx skills add actionbook/rust-skills --skill domain-web -a claude-code

2Manually: put the files in place

~/.claude/skills/domain-web/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/domain-web/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about domain-web

How do I install domain-web in Claude Code?

Run npx skills add actionbook/rust-skills --skill domain-web -a claude-code, then run npx skills add actionbook/rust-skills --skill domain-web -a claude-code again and check ~/.claude/skills/domain-web/SKILL.md.

What does domain-web do?

The skill guides Rust web-service design around async handlers, shared state, extractors, errors, and middleware. It also maps common tasks to relevant frameworks and crates.

Why does it recommend Arc for shared state?

Handlers may run on different threads, so shared state needs to be thread-safe. Mutable shared state uses Arc<RwLock<T>>.

Similar skills

Everything for Backend and APIs →

From the same set33

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor