From mpazaryna-agentic-factory
Hono framework patterns for Cloudflare Workers: routing, middleware, type-safe handlers, request validation, error handling. Use when building APIs with Hono on Cloudflare.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mpazaryna-agentic-factory:cf-honoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
```typescript
import { Hono } from 'hono';
type Bindings = {
AI: Ai;
FEED_CACHE: KVNamespace;
};
const app = new Hono<{ Bindings: Bindings }>();
app.get('/health', (c) => c.text('OK'));
app.post('/summarize', async (c) => {
const { text } = await c.req.json();
const result = await c.env.AI.run('@cf/mistralai/mistral-small-3.1-24b-instruct', {
messages: [{ role: 'user', content: `Summarize: ${text}` }]
});
return c.json(result);
});
export default app;
Hono<{ Bindings: Bindings }> for type-safe c.env accessapp.get(), app.post(), app.route() for nested routesapp.use() for auth, CORS, loggingc.req.json(), c.req.query(), c.req.param()app.onError() for global error handlerFor detailed patterns, see references/hono.md.
npx claudepluginhub mpazaryna/agentic-factoryGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.
Dispatches multiple subagents concurrently for independent tasks without shared state. Use when facing 2+ unrelated failures or subsystems that can be investigated in parallel.