Request-Response Lifecycle - Hooks & Middleware Chain
CommunityControl request flow with custom logic.
AuthorGoldziher
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill allows developers to intercept and modify requests and responses at various stages of the HTTP lifecycle, enabling custom logic for cross-cutting concerns without altering core handler code.
Core Features & Use Cases
- Extensible Lifecycle: Provides five key hook points:
onRequest,preValidation,preHandler,onResponse, andonError. - Custom Logic Injection: Implement logging, authentication, data transformation, error handling, and more.
- Use Case: Automatically log every incoming request's method and path, enrich responses with a calculated duration, and standardize error responses before they are sent to the client.
Quick Start
Register an onRequest hook to log the incoming request method and path.
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: Request-Response Lifecycle - Hooks & Middleware Chain Download link: https://github.com/Goldziher/spikard/archive/main.zip#request-response-lifecycle-hooks-middleware-chain 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 471,000+ vetted skills library on demand.