H

hono

by @yusukebev
4.5(31)

使用Hono CLI高效开发Hono应用,支持文档搜索等功能。

hono-frameworkweb-apiedge-computingtypescriptbackend-developmentGitHub
安装方式
npx skills add yusukebe/hono-skill --skill hono
compare_arrows

Before / After 效果对比

1
使用前

在没有Hono CLI时,Hono应用开发需要手动配置项目结构,查找文档也需频繁切换页面,开发效率低下。初学者尤其容易迷失在繁琐的初始化步骤中。

使用后

Hono CLI简化了项目创建和管理,一键生成标准应用骨架。同时,内置文档搜索功能让信息触手可及,显著加速开发流程,提升开发体验。

SKILL.md

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

  1. Research: Use hono searchhono docs to investigate APIs and features
  2. Implement: Write the code
  3. Test: Use hono request to test endpoints
  4. Optimize: Use hono optimize for production builds when needed

Guidelines

  • Always search with hono search before implementing unfamiliar APIs
  • Use --pretty flag with hono search (default output is JSON)
  • hono request works without starting an HTTP server
  • Search for middleware usage with hono search "middleware name"

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量6.7K
评分4.5 / 5.0
版本
更新日期2026年5月23日
对比案例1 组

用户评分

4.5(31)
5
35%
4
52%
3
13%
2
0%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年5月23日