Add a new framework integration to evlog. Every integration follows the same architecture built on the shared createMiddlewareLogger utility. This skill walks through all touchpoints. Every single touchpoint is mandatory -- do not skip any.
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versioncreate-evlog-framework-integrationExecute the skills CLI command in your project's root directory to begin installation:
Fetches create-evlog-framework-integration from hugorcd/evlog and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate create-evlog-framework-integration. Access via /create-evlog-framework-integration in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
1.0K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
1.0K
stars
Add a new framework integration to evlog. Every integration follows the same architecture built on the shared createMiddlewareLogger utility. This skill walks through all touchpoints. Every single touchpoint is mandatory -- do not skip any.
Recommended format for the pull request title:
feat({framework}): add {Framework} middleware integration
| # | File | Action |
|---|---|---|
| 1 | packages/evlog/src/{framework}/index.ts |
Create integration source |
| 2 | packages/evlog/tsdown.config.ts |
Add build entry + external |
| 3 | packages/evlog/package.json |
Add exports + typesVersions + peer dep + keyword |
| 4 | packages/evlog/test/{framework}.test.ts |
Create tests |
| 5 | apps/docs/content/2.frameworks/{NN}.{framework}.md |
Create framework docs page |
| 6 | apps/docs/content/2.frameworks/00.overview.md |
Add card + table row |
| 7 | apps/docs/content/1.getting-started/2.installation.md |
Add card in "Choose Your Framework" |
| 8 | apps/docs/content/0.landing.md |
Add framework code snippet |
| 9 | apps/docs/app/components/features/FeatureFrameworks.vue |
Add framework tab |
| 10 | skills/review-logging-patterns/SKILL.md |
Add framework setup section + update frontmatter description |
| 11 | packages/evlog/README.md |
Add framework section + add row to Framework Support table |
| 12 | examples/{framework}/ |
Create example app with test UI |
| 13 | package.json (root) |
Add example:{framework} script |
| 14 | .changeset/{framework}-integration.md |
Create changeset (minor) |
| 15 | .github/workflows/semantic-pull-request.yml |
Add {framework} scope |
| 16 | .github/pull_request_template.md |
Add {framework} scope |
Important: Do NOT consider the task complete until all 16 touchpoints have been addressed.
Use these placeholders consistently:
| Placeholder | Example (Hono) | Usage |
|---|---|---|
{framework} |
hono |
Directory names, import paths, file names |
{Framework} |
Hono |
PascalCase in type/interface names |
All integrations share the same core utilities. Never reimplement logic that exists in shared/. These are also publicly available as evlog/toolkit for community-built integrations (see Custom Integration docs).
| Utility | Location | Purpose |
|---|---|---|
createMiddlewareLogger |
../shared/middleware |
Full lifecycle: logger creation, route filtering, tail sampling, emit, enrich, drain |
extractSafeHeaders |
../shared/headers |
Convert Web API Headers → filtered Record<string, string> (Hono, Elysia, etc.) |
extractSafeNodeHeaders |
../shared/headers |
Convert Node.js IncomingHttpHeaders → filtered Record<string, string> (Express, Fastify, NestJS) |
BaseEvlogOptions |
../shared/middleware |
Base user-facing options type with drain, enrich, keep, include, exclude, routes |
MiddlewareLoggerOptions |
../shared/middleware |
Internal options type extending BaseEvlogOptions with method, path, requestId, headers |
createLoggerStorage |
../shared/storage |
Factory returning { storage, useLogger } for AsyncLocalStorage-backed useLogger() |
| Utility | Location | Purpose |
|---|---|---|
createPipelineSpies() |
test/helpers/framework |
Creates mock drain/enrich/keep callbacks |
assertDrainCalledWith() |
test/helpers/framework |
Validates drain was called with expected event shape |
assertEnrichBeforeDrain() |
test/helpers/framework |
Validates enrich runs before drain |
assertSensitiveHeadersFiltered() |
test/helpers/framework |
Validates sensitive headers are excluded |
assertWideEventShape() |
test/helpers/framework |
Validates standard wide event fields |
Create packages/evlog/src/{framework}/index.ts.
The integration file should be minimal — typically 50-80 lines of framework-specific glue. All pipeline logic (enrich, drain, keep, header filtering) is handled by createMiddlewareLogger.
import type { RequestLogger } from '../types'
import { createMiddlewareLogger, type BaseEvlogOptions } from '../shared/middleware'
import { extractSafeHeaders } from '../shared/headers' // for Web API Headers (Hono, Elysia)
// OR
import { extractSafeNodeHeaders } from '../shared/headers' // for Node.js headers (Express, Fastify)
import { createLoggerStorage } from '../shared/storage'
const { storage, useLogger } = createLoggerStorage(
'middleware context. Make sure the evlog middleware is registered before your routes.',
)
export interface Evlog{Framework}Options extends BaseEvlogOptions {}
export { useLogger }
// Type augmentation for typed logger access (framework-specific)
// For Express: declare module 'express-serve-static-core' { interface Request { log: RequestLogger } }
// For Hono: export type EvlogVariables = { Variables: { log: RequestLogger } }
export function evlog(options: Evlog{Framework}Options = {}): FrameworkMiddleware {
return async (frameworkContext, next) => {
const { logger, finish, skipped } = createMiddlewareLogger({
method: /* extract from framework context */,
path: /* extract from framework context */,
requestId: /* extract x-request-id or crypto.randomUUID() */,
headers: extractSafeHeaders(/* framework request Headers object */),
...options,
})
if (skipped) {
await next()
return
}
// Store logger in framework-specific context
// e.g., c.set('log', logger) for Hono
// e.g., req.log = logger for Express
// Wrap next() in AsyncLocalStorage.run() for useLogger() support
// Express: storage.run(logger, () => next())
// Hono: await storage.run(logger, () => next())
}
}
packages/evlog/src/hono/index.ts — Web API Headers, c.set('log', logger), wraps next() in try/catchpackages/evlog/src/express/index.ts — Node.js headers, req.log, res.on('finish'), AsyncLocalStorage for useLogger()packages/evlog/src/elysia/index.ts — Web API Headers, derive() plugin, onAfterHandle/onError, AsyncLocalStorage for useLogger()createMiddlewareLogger — never call createRequestLogger directlyextractSafeHeaders for Web API Headers, extractSafeNodeHeaders for Node.js IncomingHttpHeaderscreateMiddlewareLogger — drain, enrich, keep are handled automatically by finish()c.set() for Hono, req.log for Express, .derive() for Elysia)useLogger() — backed by AsyncLocalStorage so the logger is accessible from anywhere in the call stackfinish() in both success and error paths — it handles emit + enrich + drainfinish() so framework error handlers still workEvlogVariables for Hono)callEnrichAndDrain is internal to createMiddlewareLoggerHono: Use MiddlewareHandler return type, c.set('log', logger), c.res.status for status, c.req.raw.headers for headers.
Express: Standard (req, res, next) middleware, res.on('finish') for response end, storage.run(logger, () => next()) for useLogger(). Type augmentation targets express-serve-static-core (NOT express). Error handler uses ErrorRequestHandler type.
Elysia: Return new Elysia({ name: 'evlog' }) plugin, use .derive({ as: 'global' }) to create logger and attach log to context, onAfterHandle for success path, onError for error path. Use storage.enterWith(logger) in derive for useLogger() support. Note: onAfterResponse is fire-and-forget and may not complete before app.handle() returns in tests — use onAfterHandle instead.
Fastify: Use fastify-plugin wrapper, fastify.decorateRequest('log', null), onRequest/onResponse hooks.
NestJS: NestInterceptor with intercept(), tap()/catchError() on observable, forRoot() dynamic module.
Add a build entry in packages/evlog/tsdown.config.ts:
'{framework}/index': 'src/{framework}/index.ts',
Place it after the existing framework entries (workers, next, hono, express).
Also add the framework SDK to the external array:
external: [
// ... existing externals
'{framework-package}', // e.g., 'elysia', 'fastify', 'express'
],
In packages/evlog/package.json, add four entries:
In exports (after the last framework entry):
"./{framework}": {
"types": "./dist/{framework}/index.d.mts",
"import": "./dist/{framework}/index.mjs"
}
In typesVersions["*"]:
"{framework}": [
"./dist/{framework}/index.d.mts"
]
In peerDependencies (with version range):
"{framework-package}": "^{latest-major}.0.0"
In peerDependenciesMeta (mark as optional):
"{framework-package}": {
"optional": true
}
In keywords — add the framework name to the keywords array.
Create packages/evlog/test/{framework}.test.ts.
Import shared test helpers from ./helpers/framework:
import {
assertDrainCalledWith,
assertEnrichBeforeDrain,
assertSensitiveHeadersFiltered,
createPipelineSpies,
} from './helpers/framework'
Required test categories:
c.get('log') or req.log returns a RequestLoggerx-request-id header is used when presentlogger.set() data appears in emitted eventassertDrainCalledWith() helperassertEnrichBeforeDrain() helperassertSensitiveHeadersFiltered() helperuseLogger() === req.log (or framework equivalent)Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Registry listing for create-evlog-framework-integration matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in create-evlog-framework-integration — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Useful defaults in create-evlog-framework-integration — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
create-evlog-framework-integration is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
create-evlog-framework-integration fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
We added create-evlog-framework-integration from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: create-evlog-framework-integration is the kind of skill you can hand to a new teammate without a long onboarding doc.
create-evlog-framework-integration has been reliable in day-to-day use. Documentation quality is above average for community skills.
create-evlog-framework-integration has been reliable in day-to-day use. Documentation quality is above average for community skills.
create-evlog-framework-integration reduced setup friction for our internal harness; good balance of opinion and flexibility.
showing 1-10 of 50