Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

create-evlog-enricher创建 evlog 丰富器

Agent Skill

create-evlog-enricher 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

15,101

周安装

605

GitHub Stars

1,184

下载量

4,888
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:create-evlog-enricher(创建 evlog 丰富器)
来源仓库:https://github.com/hugorcd/evlog
仓库路径:skills/create-evlog-enricher
安装命令:
npx skills add https://github.com/hugorcd/evlog --skill create-evlog-enricher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hugorcd/evlog --skill create-evlog-enricher

简介

为 evlog 搭建一个新的内置丰富器,包含六个强制接触点的源代码、测试和文档。

  • 丰富器遵循严格的架构:信息接口、返回上下文变异器的工厂函数、标头查找、具有覆盖控制的字段合并以及丢失数据的早期返回
  • 需要更新丰富器源代码、测试套件、内置文档、概述卡、公共技能参考和自述丰富器表
  • 所有六个接触点都是强制性的;该技能提供清单、命名约定(camelCase、PascalCase、显示名称)和带注释的模板参考
  • 测试必须涵盖标头填充、缺失标头、保留与覆盖行为以及空字符串和不区分大小写的查找等边缘情况

SKILL.md

Create evlog Enricher

Add a new built-in enricher to evlog. Every enricher follows the same architecture. This skill walks through all 6 touchpoints. Every single touchpoint is mandatory -- do not skip any.

PR Title

Recommended format for the pull request title:

feat: add {name} enricher

The exact wording may vary depending on the enricher (e.g., feat: add user agent enricher, feat: add geo enricher), but it should always follow the feat: conventional commit prefix.

Touchpoints Checklist

#FileAction
1packages/evlog/src/enrichers/index.tsAdd enricher source
2packages/evlog/test/enrichers.test.tsAdd tests
3apps/docs/content/4.enrichers/2.built-in.mdAdd enricher to built-in docs
4apps/docs/content/4.enrichers/1.overview.mdAdd enricher to overview cards
5skills/review-logging-patterns/SKILL.mdAdd enricher to the Built-in line in the Enrichers section
6README.md + packages/evlog/README.mdAdd enricher to README enrichers section

Important: Do NOT consider the task complete until all 6 touchpoints have been addressed.

Naming Conventions

Use these placeholders consistently:

PlaceholderExample (UserAgent)Usage
{name}userAgentcamelCase for event field key
{Name}UserAgentPascalCase in function/interface names
{DISPLAY}User AgentHuman-readable display name

Step 1: Enricher Source

Add the enricher to packages/evlog/src/enrichers/index.ts.

Read references/enricher-template.md for the full annotated template.

Key architecture rules:

  1. Info interface -- define the shape of the enricher output (e.g., UserAgentInfo, GeoInfo)
  2. Factory function -- create{Name}Enricher(options?: EnricherOptions) returns (ctx: EnrichContext) => void
  3. Uses EnricherOptions -- accepts {overwrite?: boolean} to control merge behavior
  4. Uses mergeEventField() -- merge computed data with existing event fields, respecting overwrite
  5. Uses getHeader() -- case-insensitive header lookup helper
  6. Sets a single event field -- ctx.event.{name} = mergedValue
  7. Early return -- skip enrichment if required headers are missing
  8. No side effects -- enrichers only mutate ctx.event, never throw or log

Step 2: Tests

Add tests to packages/evlog/test/enrichers.test.ts.

Required test categories:

  1. Sets field from headers -- verify the enricher populates the event field correctly
  2. Skips when header missing -- verify no field is set when the required header is absent
  3. Preserves existing data -- verify overwrite: false (default) doesn't replace user-provided fields
  4. Overwrites when requested -- verify overwrite: true replaces existing fields
  5. Handles edge cases -- empty strings, malformed values, case-insensitive header names

Follow the existing test structure in enrichers.test.ts -- each enricher has its own describe block.

Step 3: Update Built-in Docs

Edit apps/docs/content/4.enrichers/2.built-in.md to add a new section for the enricher.

Each enricher section follows this structure:

## {DISPLAY}

[One-sentence description of what the enricher does.]

**Sets:** `event.{name}`

\`\`\`typescript
const enrich = create{Name}Enricher()
\`\`\`

**Output shape:**

\`\`\`typescript
interface {Name}Info {
  // fields
}
\`\`\`

**Example output:**

\`\`\`json
{
  "{name}": {
    // example values
  }
}
\`\`\`

Add any relevant callouts for platform-specific notes or limitations.

Step 4: Update Overview Page

Edit apps/docs/content/4.enrichers/1.overview.md to add a card for the new enricher in the ::card-group section (before the Custom card):

  :::card
  ---
  icon: i-lucide-{icon}
  title: {DISPLAY}
  to: /enrichers/built-in#{anchor}
  ---
  [Short description.]
  :::

Step 5: Update skills/review-logging-patterns/SKILL.md

In skills/review-logging-patterns/SKILL.md (the public skill distributed to users), find the Enrichers section and add the new enricher to the Built-in: line:

Built-in: `createUserAgentEnricher()`, `createGeoEnricher()`, ..., `create{Name}Enricher()` — all from `evlog/enrichers`.

Step 6: Update README

Add the enricher to the enrichers section in packages/evlog/README.md (the root README.md is a symlink to it). Add the enricher to the enrichers table with its event field and output shape.

Verification

After completing all steps, run:

cd packages/evlog
bun run build    # Verify build succeeds
bun run test     # Verify tests pass

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.62%
按下载量换算1,741

Claude

30.3%
按下载量换算1,481

Cursor

17.1%
按下载量换算836

Gemini CLI

9.73%
按下载量换算476

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills