hono
Efficiently develop Hono applications using Hono CLI, supporting features like documentation search.
npx skills add yusukebe/hono-skill --skill honoBefore / After Comparison
1 组Without Hono CLI, Hono application development required manual configuration of project structure and frequent page switching for document lookup, leading to low development efficiency. Beginners were particularly prone to getting lost in the cumbersome initialization steps.
Hono CLI simplifies project creation and management, generating a standard application skeleton with a single command. Additionally, its built-in document search function makes information readily accessible, significantly accelerating the development process and enhancing the development experience.
Hono Skill
Develop Hono applications efficiently using Hono CLI (@hono/cli).
Setup
You can use Hono CLI without global installation via npx:
npx @hono/cli <command>
Or install globally (optional):
npm install -g @hono/cli
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
# GET request
hono request [file] -P /path
# POST request
hono request [file] -X POST -P /api/users -d '{"name": "test"}'
# Request with headers
hono request [file] -H "Authorization: Bearer token" -P /api/protected
Uses app.request() internally, so no server startup required for testing.
4. Optimization & Bundling
# Bundle optimization
hono optimize [entry] -o dist/index.js
# With minification
hono optimize [entry] -o dist/index.js --minify
# Specify target (cloudflare-workers, deno, etc.)
hono optimize [entry] -t cloudflare-workers
Development Workflow
- Research: Use
hono search→hono docsto investigate APIs and features - Implement: Write the code
- Test: Use
hono requestto test endpoints - Optimize: Use
hono optimizefor production builds when needed
Guidelines
- Always search with
hono searchbefore implementing unfamiliar APIs - Use
--prettyflag withhono search(default output is JSON) hono requestworks without starting an HTTP server- Search for middleware usage with
hono search "middleware name"
User Reviews (0)
Write a Review
No reviews yet
Statistics
User Rating
Rate this Skill