create-evlog-enricher

Scaffold a built-in evlog enricher with six integration touchpoints.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/zhcndoc/evlog --skill create-evlog-enricher-zhcndoc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-evlog-enricher
Source: https://github.com/zhcndoc/evlog/tree/main/.agents/skills/create-enricher
Command: npx skills add https://github.com/zhcndoc/evlog --skill create-evlog-enricher-zhcndoc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enables teams to scaffold a new built-in evlog enricher that adds derived context to events, ensuring consistent, structured enrichment across the pipeline.

Core Features & Use Cases

  • Defines a typed output interface EvlogEnricherInfo
  • Provides a factory function createEvlogEnricher(options?) that returns (ctx: EnrichContext) => void
  • Uses helpers like getHeader() and mergeEventField() to safely merge data with overwrite control
  • Includes tests, documentation, and a references template to guide implementation

Quick Start

Scaffold and wire up a new enricher following the six touchpoints outlined in this skill to integrate with evlog.

Frequently Asked Questions about create-evlog-enricher

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add derived context to logging events in TypeScript?

To add derived context to logging events, you scaffold an evlog enricher using a factory function that returns a typed context handler. This approach safely augments events with structured data across your pipeline.

What is an evlog enricher and when do I need one?

An evlog enricher is a module that augments logging events with derived contextual data. You need one when you must consistently merge structured information, such as extracted headers, into event fields without side effects.

How do I safely merge contextual data into event fields without overwriting existing values?

You safely merge contextual data into event fields using built-in helper utilities that provide overwrite control. The enricher uses a merge function to ensure non-side-effect mutations when adding derived context.

Does scaffolding a new logging enricher require writing tests and documentation?

Scaffolding a logging enricher requires completing six mandatory touchpoints across source, tests, docs, and references. This ensures a complete integration workflow with an Info interface and factory function.

Can I extract HTTP headers and add them to my structured logging pipeline?

You can extract HTTP headers and add them to your logging pipeline using a dedicated helper function. The enricher utility safely pulls header data and merges it into your event context.