This kicks in when you're building web services in Rust, whether that's REST APIs, GraphQL endpoints, or WebSocket servers. It covers the domain constraints that matter for web development: why handlers must be async (blocking one task blocks many requests), how to manage shared state with Arc and RwLock, and proper request lifecycle patterns. You get framework comparisons between axum, actix, warp, and rocket, plus the critical patterns like extractors for parsing requests and IntoResponse for unified error handling. The focus is on tracing down from web-specific constraints (stateless HTTP, concurrency, latency SLAs) to concrete Rust implementations. Most useful when you need to understand why web frameworks work the way they do, not just copy-paste handler examples.

skills.sh installs
3.4K
GitHub stars
1.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add actionbook/rust-skills --skill domain-web --agent claude-code

Installs into .claude/skills of the current project.

Files

Web Domain

Layer 3: Domain Constraints

Domain Constraints → Design Implications

Domain RuleDesign ConstraintRust Implication
Stateless HTTPNo request-local globalsState in extractors
ConcurrencyHandle many connectionsAsync, Send + Sync
Latency SLAFast responseEfficient ownership
SecurityInput validationType-safe extractors
ObservabilityRequest tracingtracing + tower layers

Critical Constraints

Async by Default

RULE: Web handlers must not block
WHY: Block one task = block many requests
RUST: async/await, spawn_blocking for CPU work

State Management

RULE: Shared state must be thread-safe
WHY: Handlers run on any thread
RUST: Arc<T>, Arc<RwLock<T>> for mutable

Request Lifecycle

RULE: Resources live only for request duration
WHY: Memory management, no leaks
RUST: Extractors, proper ownership

Trace Down ↓

From constraints to design (Layer 2):

"Need shared application state"
    ↓ m07-concurrency: Use Arc for thread-safe sharing
    ↓ m02-resource: Arc<RwLock<T>> for mutable state

Sponsors

Details

Repository
github.com/actionbook/rust-skills
Categories
Backend & APIs, Security, Rust
First seen
May 16, 2026

More from actionbook/rust-skills

All 38
1openai avatarcli-creatoropenai/skillsBuild a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user 3.3Kskills.sh installs
2gogf avatargoframe-v2gogf/skillsGoFrame v2 development skill. Use only when the target Go project uses or is explicitly adopting GoFrame v2: the nearest go.mod requires github.com/gogf/gf/v2, 3.3Kskills.sh installs
3browser-use avatarcloudbrowser-use/browser-useDocumentation reference for using Browser Use Cloud — the hosted API and SDK for browser automation. Use this skill whenever the user needs help with the Cloud 3.3Kskills.sh installs
4rorkai avatarasc-apple-adsrorkai/app-store-connect-cli-skillsUse when managing Apple Ads with asc, including auth, org lookup, campaigns, ad groups, ads, keywords, reports, raw API calls, and safe live testing.3.2Kskills.sh installs
5dpearson2699 avatarswift-securitydpearson2699/swift-ios-skillsUse when working with iOS/macOS Keychain Services (SecItem queries, kSecClass, OSStatus errors), biometric authentication (LAContext, Face ID, Touch ID), Crypto3.2Kskills.sh installs
6getsentry avatardjango-perf-reviewgetsentry/skillsDjango performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset performance", "database pe3.1Kskills.sh installs