presentation-layer
CommunityImplement consistent Rust DDD API layers with Axum conventions.
Authornftug
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill eliminates inconsistent implementation of the presentation (API) layer in this Rust DDD book manager project by enforcing the repository's established Axum-based conventions, reducing architectural drift and boilerplate when adding or modifying API endpoints.
Core Features & Use Cases
- Standardized Handler Implementation: Guides you to keep handlers free of business logic, only interacting with the AppRegistry to call application use cases and pass DTOs.
- Consistent Auth and Error Handling: Provides patterns for implementing both required and optional OIDC authentication, plus centralized API error mapping to consistent HTTP responses.
- Reference Implementation Templates: Includes concrete examples of existing book and user endpoint patterns to use as templates for new features. Use case: When adding a new endpoint to allow users to reserve books, this Skill ensures your implementation matches the existing patterns for routing, authentication, and error handling used by other endpoints like POST /api/books/{id}/checkouts.
Quick Start
Use the presentation-layer skill to implement a new authenticated endpoint for reserving books in the api crate following the repository's existing Axum and auth patterns.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: presentation-layer Download link: https://github.com/nftug/rust-ddd-book-manager/archive/main.zip#presentation-layer Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 537,000+ vetted skills library on demand.