api-routing
OfficialGuide for reliable API routing patterns.
Authorbitcoin-is-money
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill provides a standardized approach to building scalable and maintainable API routes by promoting route factories, consistent validation, and centralized error handling across the codebase.
Core Features & Use Cases
- Route File Structure: defines a clear directory layout for apps/api/src/routes/<context> with <context>.routes.ts, <context>.schemas.ts, and <context>.types.ts.
- Patterned Architecture: advocates factory-based route creation that consumes AppContext and returns a Hono instance, with per-file logs and explicit error handling.
- Use Case: adds new API contexts quickly while ensuring uniform validation, type safety, and error response semantics.
Quick Start
Create an auth route module with a factory like createAuthRoutes(appContext) and attach it to your Hono app.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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: api-routing Download link: https://github.com/bitcoin-is-money/bim-app/archive/main.zip#api-routing 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.