Claude Code Node.js Backend Skill for Domain Error Mapping
Keep transport details at the edge of an Express or Fastify API so an injected repository can exercise business rules in isolation.
中文Install in Claude Code
Start with a Node.js API and identify its existing route, service and test conventions. Use a replaceable data source for the example.
- Get the complete `skills/nodejs-backend` directory from the pinned revision.
- Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/nodejs-backend/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.
Example task
Design coverage for `GET /books/:id` using an in-memory repository with only `bk-17`. Include the case for an absent book ID.What to check
The existing book produces HTTP 200 and the missing book produces HTTP 404. A service test can verify lookup behavior without starting the web server.
Original SKILL.md on GitHub · Updated
Frequently asked question
Where is the database adapter wired in?
Inject it at the application composition root, where the service and HTTP layer are assembled.