create-evlog-framework-integration
Installation
SKILL.md
Create evlog Framework Integration
Add a new framework integration to evlog. The recommended path is the manifest mode built on defineFrameworkIntegration from evlog/toolkit — for any framework with a request/response middleware shape (Hono, Express, Elysia, Fastify, …). For frameworks with a fundamentally different lifecycle (NestJS interceptors, SvelteKit handle hooks, Next.js App Router) you'll fall back to the lower-level createMiddlewareLogger.
Two paths
- Manifest mode (preferred, ~30 lines of glue) — call
defineFrameworkIntegration({ name, extractRequest, attachLogger, storage? })once at module level, then write a tiny middleware that callsintegration.start(ctx, options)and runs the framework'snext()insiderunWith. Reference implementations:packages/evlog/src/{hono,express,elysia,fastify}/index.ts. - Custom mode — use
createMiddlewareLoggerdirectly when the framework's lifecycle doesn't fit a standard middleware (NestJS, Next.js, SvelteKit). All current built-ins for those frameworks live underpackages/evlog/src/{nestjs,next,sveltekit}/.
Manifest mode covers ~80% of integrations and reduces glue from 50–80 lines to ~30. Use custom mode only when you can't extract a request synchronously at the start of the lifecycle.
PR Title
Recommended format for the pull request title:
feat({framework}): add {Framework} middleware integration