Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

catalog-documentation-creator目录文档创建者

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

2,472

周安装

101

GitHub Stars

5

下载量

1,179
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/event-catalog/skills --skill catalog-documentation-creator

简介

catalog-documentation-creator 将零散信息整理为标准 MDX 文档结构。

  • 自动生成服务、事件、通道等资源索引文件与节点关系图谱。
  • 遵循 Event Catalog 规范,确保 ID 一致性与版本语义化控制。
  • 输出前必须验证 YAML frontmatter 格式与引用链路完整性。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

EventCatalog Documentation Creator

Generate properly formatted EventCatalog documentation files following project conventions and best practices.

Instructions

Step 1: Locate or Create the User's Catalog

Before generating any files, ask the user: "Do you already have an EventCatalog project, or would you like to create a new one?"

If they already have a catalog:

  • Ask: "Where is your EventCatalog project?" — It could be:

- A repo they've cloned locally (e.g., ~/projects/my-catalog/) - A folder on their machine - A monorepo with the catalog in a subdirectory

  • Verify it looks like an EventCatalog project by checking for an eventcatalog.config.js file or known directories (services/, events/, domains/, etc.)
  • Read the existing structure to understand whether they use nested (domains/services/events) or flat (top-level services/, events/) organization

If they don't have a catalog yet:

  • Ask where they'd like to create it (default: current directory)
  • Run the following command to scaffold a new empty catalog: npx @eventcatalog/create-eventcatalog@latest my-catalog --empty (Replace my-catalog with the user's preferred name)
  • This creates a ready-to-use EventCatalog project with the correct structure
  • All generated documentation files go inside this new catalog directory

CRITICAL: All generated files must be written to the user's catalog directory, not just displayed. Always ask where they want resources documented — never assume.

Step 2: Understand What the User Wants to Document

Ask the user what they want to document. Common scenarios:

  • A single service and its messages
  • An event, command, or query
  • A full domain with nested services
  • A business flow across services
  • A channel (Kafka topic, RabbitMQ queue, etc.)
  • A container (database, cache, queue)

Gather this information before generating:

  • Resource name and purpose
  • Version (default to 0.0.1 for new resources)
  • Message relationships (what it sends/receives)
  • Channel routing (what channels messages flow through)
  • Containers (what databases/caches the service reads from or writes to)
  • Schema format if applicable (JSON Schema, Avro, Protobuf)

If the user points you at a codebase (not the catalog), analyze it to extract services, messages, schemas, and relationships — then generate the corresponding catalog documentation.

Step 3: Check the Existing Catalog

If the catalog directory already has resources, read the existing files to understand:

  • Naming conventions (PascalCase IDs? kebab-case?)
  • Folder structure (nested under domains or flat?)
  • Which owners/teams are already defined
  • Badge styles and patterns used
  • Schema formats in use (JSON Schema, Avro, etc.)

Match new documentation to these existing conventions.

If the user has the EventCatalog MCP server connected:

  1. Use getResources to see what already exists in the catalog
  2. Use getResource to check conventions used in existing entries (naming patterns, owner formats, badge styles)
  3. Use findResourcesByOwner to suggest consistent ownership
  4. Use getSchemaForResource to match existing schema formats

This ensures new documentation is consistent with what's already in the catalog.

Step 4: Generate the Documentation

Generate files following the resource-specific references. Consult the appropriate reference file for the resource type:

  • references/services.md — Services with sends/receives, channel routing, containers
  • references/events.md — Events with schemas, payload examples, producer/consumer code
  • references/commands.md — Commands with REST operations and schemas
  • references/queries.md — Queries with REST operations and response schemas
  • references/domains.md — Domains with subdomains, services, and business context
  • references/flows.md — Business flows with steps, branching, and external systems
  • references/channels.md — Channels with routing, protocols, and parameters
  • references/containers.md — Containers (databases, caches, queues) with data classification
  • references/ubiquitous-language.md — Ubiquitous language terms per domain (DDD glossary/dictionary)
  • references/teams-and-users.md — Teams and users (ownership)
  • references/components.md — Components (NodeGraph, Schema, Mermaid, Tabs, etc.) and resource references ([[type|Name]] wiki-style links)

Every resource file MUST include:

  • Valid YAML frontmatter between --- delimiters
  • id field matching existing catalog conventions
  • name as human-readable display name
  • version as semantic version string
  • summary as a concise 1-2 sentence description

CRITICAL: Always use index.mdx as the filename for resources (services, events, commands, queries, domains, flows, channels). Teams and users use {id}.mdx files directly. Place files in the correct folder path following the nested structure pattern:

domains/{DomainName}/services/{ServiceName}/events/{EventName}/index.mdx

Or flat structure if the catalog uses that pattern:

services/{ServiceName}/index.mdx
events/{EventName}/index.mdx

Step 5: Validate the Output

Before presenting the files to the user, verify:

  • YAML frontmatter has --- delimiters on both sides
  • All id fields are consistent (no spaces, match folder name)
  • All version fields are valid semver strings (e.g., 0.0.1)
  • All message references in sends/receives include id and optionally version
  • Channel routing uses to/from fields correctly in sends/receives
  • Schema files referenced in schemaPath actually exist or are generated
  • <NodeGraph /> component is included for architecture visualization
  • Owner IDs reference real teams/users in the catalog

Common Patterns

Documenting a Service That Processes Messages

When a user says "document my payment service that receives OrderCreated events and sends PaymentProcessed events":

  1. Generate the service index.mdx with receives and sends arrays
  2. If messages flow through channels, add to/from fields to the sends/receives
  3. Generate each event index.mdx if they don't already exist in the catalog
  4. Include <NodeGraph /> in the service body to show message flow
  5. Add example payload sections for each message
  6. Place files in the correct nested folder structure

Documenting a Domain

CRITICAL: A domain MUST have at least one service. Never create a domain without services in it. If the user describes a domain, ensure services are identified and generated for it.

When a user wants to document a full domain:

  1. Identify the services that belong to this domain. If the user hasn't specified services, ask them: "What services belong to this domain?" Do NOT create a domain without services.
  2. Generate the domain index.mdx with the services field listing every service
  3. Generate each service within the domain
  4. Generate each message referenced by the services
  5. Generate channels if the user describes messaging infrastructure
  6. Use the nested folder structure: domains/{Domain}/services/{Service}/events/{Event}/
  7. Generate a ubiquitous-language.mdx file for the domain by extracting domain-specific terms from service names, event/command names, entities, and business processes. Place it at domains/{Domain}/ubiquitous-language.mdx. See references/ubiquitous-language.md for format and examples.
  8. CRITICAL: After generating all files, verify the domain's frontmatter services field lists every service that belongs to it. Every service created under a domain MUST be referenced in the domain's index.mdx: services: - id: OrdersService - id: InventoryService - id: PaymentService If a service is nested inside the domain folder but not listed in the domain's services frontmatter, it will not appear as part of that domain. Always cross-check.

Documenting a Business Flow

When a user describes a multi-step process:

  1. Identify distinct steps (user actions, service calls, message exchanges, external systems)
  2. Generate the flow index.mdx with steps array
  3. Each step should have id, title, and appropriate type (actor, service, message, externalSystem)
  4. Connect steps with next_step or next_steps for branching

Documenting Channel Routing

When a user describes how messages flow through infrastructure:

  1. Generate channel index.mdx files with routes for channel-to-channel routing
  2. Update service sends/receives with to/from fields pointing to channels
  3. The full picture should show: Service A sends → Channel → routes to → Channel → Service B receives

Quality Checklist

  • Take your time to do this thoroughly
  • Quality is more important than speed
  • Do not skip validation steps

Before delivering documentation to the user, verify every file against this checklist:

  1. Frontmatter has valid YAML between --- delimiters
  2. id matches the folder name
  3. version is a valid semver string
  4. summary is concise and meaningful (not generic)
  5. Message relationships (sends/receives) include id
  6. Channel routing (to/from) references valid channel IDs
  7. Body includes <NodeGraph /> for visualization
  8. Schema references point to real files
  9. Folder structure follows catalog conventions
  10. No duplicate resources (checked against existing catalog)
  11. File is named index.mdx (not index.md, README.md, or anything else)
  12. Every domain has at least one service — never create an empty domain
  13. Domain services frontmatter lists every service that belongs to that domain
  14. Every domain has a ubiquitous-language.mdx file with relevant domain terms extracted from services, events, commands, and business processes

Troubleshooting

Messages Not Showing in Visualizer

If generated events/commands don't appear in the service's node graph:

  • Verify the sends/receives arrays in the service frontmatter reference the exact id of the message
  • Ensure the message has its own index.mdx file

Schema Not Rendering

If <Schema /> or <SchemaViewer /> components show errors:

  • Verify schemaPath in frontmatter points to a file that exists alongside index.mdx
  • Check the schema file is valid JSON/Avro/Protobuf

Folder Structure Not Recognized

If resources don't appear in EventCatalog:

  • Verify the file is named exactly index.mdx (not INDEX.mdx or readme.md)
  • Verify the folder is inside a recognized collection directory (services/, events/, domains/, etc.)

Channel Routing Not Visible

If channel connections don't appear in the visualizer:

  • Verify the routes field in the channel frontmatter references valid channel IDs
  • Verify the to/from fields in service sends/receives reference valid channel IDs

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.73%
按下载量换算398

Claude

32.47%
按下载量换算383

Cursor

18.23%
按下载量换算215

Gemini CLI

10.05%
按下载量换算118

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills