evlog
Skill1 starsChanged 3 months agoMITView on GitHub
Build, review, debug, configure, migrate, or plan evlog TypeScript logging with current docs. Use for evlog, initLogger, createLogger, createRequestLogger, useLogger, log.set, createError, parseError, withEvlog, createEvlog, drain pipelines, Axiom/Sentry/PostHog/OTLP/fs adapters, sampling, redaction, catalogs, log.audit, createAILogger, client HTTP drains, @evlog/cli map/doctor/init, Nuxt/Next/Nitro/TanStack Start/Hono/Express/Elysia integrations, and wide-event observability.
In this repository81 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- base-uiSkill
- better-authSkill
- brainstormSkill
- bullmqSkill
- bunSkill
- clickhouseSkill
- clone-to-tempSkill
- compound-uiSkill
- copywritingSkill
- create-durable-planSkill
- d3Skill
- date-fnsSkill
- decimal-jsSkill
- deduplicateSkill
- design-engineerSkill
- designSkill
- drizzle-ormSkill
- effectSkill
- elysia-architectureSkill
- elysiaSkill
- feedsmithSkill
- grokSkill
- handoffSkill
- heyapiSkill
- impitSkill
- intlayerSkill
- jsdocSkill
- kafkaSkill
- kill-legacySkill
- legend-stateSkill
- loopSkill
- mantine-hooksSkill
- mobbinSkill
- motionSkill
- oxfmtSkill
- oxlintSkill
- permixSkill
- plain-languageSkill
- playwrightSkill
- react-boundariesSkill
- react-emailSkill
- reactSkill
- reorganizeSkill
- researchSkill
- schema-dtsSkill
- sentrySkill
- seoSkill
- setup-competitors-mdSkill
- setup-copywriting-mdSkill
- setup-icp-mdSkill
- setup-project-mdSkill
- simplify-layoutSkill
- storybookSkill
- subagentsSkill
- tailwindSkill
- tailwind-variantsSkill
- takumiSkill
- tanstack-chartsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill when work touches evlog — wide events, structured errors, drains, sampling, audit trails, AI SDK telemetry, client logging, …
- Very specific: line 24
Prefer one wide event per unit of work (log.set then auto-emit or manual emit) over many info lines in the same request/job.
- Very specific: line 26
Use the right mode: log.* for one-shots.
- Very specific: line 28
After emit (or sampled drop), the logger is sealed—post-response set is ignored.
- Distinctive: line 35
Prefer the repo's existing checks.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
evlog
Use this skill when work touches evlog — wide events, structured errors, drains, sampling, audit trails, AI SDK telemetry, client logging, or @evlog/cli map coverage scoring.
Workflow
- Inspect the local logging surface before changing code:
- Package versions for
evlog, optional@evlog/cli, framework peers, and drain destinations in use. - Integration path: Nuxt/Nitro module, Next
createEvlog/withEvlog, TanStack Startevlog/nitro/v3, Hono/Express/Fastify/Elysia middleware, standaloneinitLogger, Workers, etc. - Patterns: scattered
console/pinolines vslog.setwide events,createError({ why, fix }), audits, AI wraps, client ingest.
- Package versions for
- Refresh docs when versions or APIs are unclear. Start from source-map.md.
- For install, three logging modes,
initLogger, and core APIs, use setup-core.md. - For wide-event design, sealing/
fork, structured errors, catalogs, and redaction, use wide-events-errors.md. - For framework wiring and adapter choice, use frameworks-adapters.md.
- For pipelines, sampling, audit, AI, client logs, and
evlog map/CI, use cli-advanced.md.
Implementation Judgment
- Prefer one wide event per unit of work (
log.setthen auto-emitor manualemit) over many info lines in the same request/job. - Group context into nested objects (
user,cart,payment) with meaningful keys—not flatuserId/cartIdsoup or a genericdatabag. - Use the right mode:
log.*for one-shots;createLogger/createRequestLoggerwhen you own the lifecycle; frameworkuseLogger/req.log/c.get('log')when middleware owns create+emit. - Throw
createError({ message, status, why, fix, link?, code?, internal? })instead of bareError. Parse on clients withparseError. - After emit (or sampled drop), the logger is sealed—post-response
setis ignored. Uselog.fork(where available) for intentional background child events. - Libraries and shared packages: use
createLogger/ accept a logger; do not callinitLoggerand force a drain on the host. - Production: wrap adapters in
createDrainPipeline(batch + retry); enable head+tail sampling; keep errors and money/auth paths. - On Nuxt/Nitro/Next/TanStack Start, run
bunx @evlog/cli map(ornpx @evlog/cli map) before large logging refactors—fix FIX FIRST first. Pin CLI version in CI.
Verification
Prefer the repo's existing checks. For meaningful evlog changes, include the relevant subset:
- Hit a route/job locally and confirm one wide event with expected nested fields (pretty in dev).
- Force a
createErrorpath and confirmwhy/fixin logs and clientparseError. bunx @evlog/cli map/doctorwhen changing entry-point coverage or setup.- Drain smoke (Axiom/Sentry/fs NDJSON) when changing pipelines; flush on shutdown.
- Sampling config check: errors and
keeprules still retained in production-shaped config. - Typecheck for
RequestLogger, typed fields, and catalog imports.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

