josealvaradoo/battery-api/hono-handlers
Claude Code and agent skill by josealvaradoo/battery-api
- community
Checking that the SKILL.md file is still in the repository.
Create perfect handlers for hono following the project styleguide.
Install
npx vskill@latest install josealvaradoo/battery-api/hono-handlersSKILL.md
Hono Handler Skill
Add a handler for hono following the project styleguide. The handler should be responsible for handling HTTP requests and responses, and should delegate business logic to the domains layer. The handler should also handle any necessary validation and error handling. The handler must follow the Hono framework and not pass Request/Responses objects to the domains.
When to use
Use this skill when you need to create a new endpoint for the API or when you need to update an existing endpoint. The handler is the entry point for the API and is responsible for handling the HTTP requests and responses, so it's important to follow the project styleguide to ensure consistency and maintainability.
How to use
When asked to add or edit any handler:
- Create a new file in the
handlers/directory with the name of the handler if it's necessary, in camelCase (e.g.,getOffersHandler.ts). - Create a typescript class if it's necessary with the name of the handler, in PascalCase (e.g.,
GetOffersHandler). - Add a method to the class that will handle the HTTP request, in camelCase (e.g.,
handle). - Add validation for the request parameters if necessary, using a validation library or custom validation logic.
- Do use domain services to handle the business logic, and do not pass Request/Responses objects to the domains.
- Return a json response with the appropriate status code and data.
Template
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdocs/skills/hono-handlers/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/josealvaradoo/battery-api/hono-handlers)