josealvaradoo/battery-api/hono-errors

Claude Code and agent skill by josealvaradoo/battery-api

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Create perfect error for hono following the project styleguide.

Install

npx vskill@latest install josealvaradoo/battery-api/hono-errors

SKILL.md

Hono Errors Skill

Add a new error for hono following the project styleguide. The error should define the custom error classes used in the application, and should also handle any necessary validation and error handling. The error must follow TypeScript best practices and should be designed to work seamlessly with the domains and handlers layers.

When to use

Use this skill when you need to define a new custom error class for the application. Custom errors are useful for providing more specific error messages and handling specific error cases in the domains and handlers layers, so it's important to follow the project styleguide to ensure consistency and maintainability.

How to use

When asked to add or edit any error:

  1. Create a new file in the models/(model)/errors.ts if it's necessary.
  2. Create a typescript class which extends from Error and add a message in its constructor.
Template
typescript
export class OffersNotFoundError extends Error {
constructor() {
super("Offers not found");
this.name = "OffersNotFoundError";
}
}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/josealvaradoo/battery-api/hono-errors/badge)](https://verified-skill.com/skills/josealvaradoo/battery-api/hono-errors)

Something wrong with this skill or its page? Tell us.