| name | hono |
| description | Efficiently develop Hono applications using Hono CLI. Supports documentation search, API reference lookup, request testing, and bundle optimization. |
Hono Skill
Develop Hono applications efficiently using Hono CLI (@hono/cli).
Setup
You can use Hono CLI:
npx hono <command>
Commands for AI
1. Search Documentation
hono search "<query>" --pretty
Search for Hono APIs and features. Use --pretty for human-readable output.
2. View Documentation
hono docs [path]
Display detailed documentation for a specific path found in search results.
Examples:
hono docs /docs/api/context
hono docs /docs/api/hono
hono docs /docs/helpers/factory
3. Request Testing
hono request [file] -P /path
hono request [file] -X POST -P /api/users -d '{"name": "test"}'
hono request [file] -H "Authorization: Bearer token" -P /api/protected
Uses app.request() internally, so no server startup required for testing.
4. Optimization & Bundling
hono optimize [entry] -o dist/index.js
hono optimize [entry] -o dist/index.js --minify
hono optimize [entry] -t cloudflare-workers
Development Workflow
- Research: Use
hono search โ hono docs to investigate APIs and features
- Implement: Write the code
- Test: Use
hono request to test endpoints
- Optimize: Use
hono optimize for production builds when needed
Guidelines
- Always search with
hono search before implementing unfamiliar APIs
hono request works without starting an HTTP server
- Search for middleware usage with
hono search "middleware name"