Command Palette

Search for a command to run...

Назад к скиллам
скилл № 65901

Map Events

Async message topology from committed C# publish, send and consumer registrations (orphan publishers/consumers flagged; one name, two namespaces: two…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Map Events в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Map events

Repository context

The current repository is both the consumer and the default subject. Collect the project root with one Bash call, git rev-parse --show-toplevel. A failure is an unknown value; ${CLAUDE_PROJECT_DIR} is the root either way.

Purpose

Answer "who publishes which message, and who consumes it" from committed C# call sites and handler registrations. Every edge cites a file and a line. The scripts collect and render. Do not add an edge the script did not emit, and do not drop a publish whose contract type did not resolve.

The shipped adapter is the MassTransit shape: Publish<T> or Publish(new T(..)) is broadcast, Send<T> or Send(new T(..)) is point-to-point, IConsumer<T> consumes T. AddConsumer<C> and ConfigureConsumer<C> register the consumer class C; they are not messages. Inside a ReceiveEndpoint("q", ..) call, on its own line or in its block, they put C's consume edges on queue q; a registration outside it and every publish or send edge has no queue. A message is a type some publish, send, or consume names; a service or consumer class is not one. Identity is the namespace-qualified type. In-process calls are /architecture:map-flow. A cross-process hop in that trace is a hand-off to this skill.

Read: C# (MassTransit shape). Declined: Node, Go, Python, Rust, JVM, Ruby, and PHP. Their files are never read, so a message only they publish or consume is absent from the chart, not a finding.

Resolve home

Read ${CLAUDE_PLUGIN_ROOT}/reference/config.md first. This skill writes into architecture_dir. It reads no dialect key and adds none: it always writes events.md, a mermaid flowchart (dotted broadcast, solid point-to-point). The authoring-formats convention keys a dialect only for data diagrams and C4 system views. A message-topology flowchart is neither, so it follows the unkeyed mermaid rule, as the sequence flows of /planning:design (if enabled) do.

Run bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "${CLAUDE_PROJECT_DIR}" and resolve architecture_dir per ${CLAUDE_PLUGIN_ROOT}/reference/config.md "Where the config lives" and "Resolution order, per key"; never parse the root instruction file yourself.

Build the record

"${CLAUDE_SKILL_DIR}/scripts/collect-events.sh" \
  --repo "<subject-repo>" --out "<architecture_dir>/events.json"

The record is schema_version 1. Message lines start with {"id":. Edge lines start with {"from":. Finding lines start with {"kind":. A message line cites the file and line that declare the type. An edge's from is the file of the publishing, sending, or consuming call site, to is the resolved message (- when unresolved), and kind is publish, send, or consume. Findings include orphan publishers, orphan consumers, fan-out past fanout_threshold (3), competing consumers on one queue, and unresolved edges. fanout_threshold is this plugin's limit, not the broker's.

A short type name resolves through the file's namespace, its parent namespaces, and its using directives, then through the one repo type with that name. A dotted name is tried as written, then under each enclosing namespace and each using; global:: allows only the as-written match. A Publish( or Send( whose type does not resolve (a variable, an anonymous or target-typed new, an undeclared or ambiguous name, a dotted name that matches no declared type) is an edge with resolution: unresolved and an unresolved finding naming the kind, the type text or -, and file:line. It is never omitted, and an unresolved consumer is never an orphan.

Render

"${CLAUDE_SKILL_DIR}/scripts/render-events.sh" \
  --record "<architecture_dir>/events.json" --out "<architecture_dir>"

Add --unrouted-only when the invocation asked for orphans and unresolved edges only. The findings list is still written.

The script prints: events: messages=<n> publishers=<n> consumers=<n> unresolved=<n> orphans=<n> unrouted_only=<yes|no>.

The artifact's Handoff section lists one line per publish or send edge, keyed by file:line so it matches a /architecture:map-flow hop cite; map-flow reads nothing from events.md: handoff: map-events contract=<type> direction=<publish|send> file=<path> line=<n>.

Exit 1 means the record is unreadable or not one object per line. Nothing was written.

Close with the report

  • Artifacts: each path written, or none written when the run stopped before a home existed.
  • Messages: messages= from the summary. Say that identity is the resolved type.
  • Edges: publishers=, consumers=, unresolved=.
  • Findings: orphans= and the other finding kinds present.
  • Filter: unrouted_only= yes or no. Findings are listed either way.
  • Dialect: mermaid flowchart. landscape_dialect was not read. No key was added.
  • **Handof
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • scripts/collect-events.sh
  • scripts/collect-events.test.sh
  • scripts/render-events.sh

FAQ

Что делает скилл Map Events?

Async message topology from committed C# publish, send and consumer registrations (orphan publishers/consumers flagged; one name, two namespaces: two messages). Use for 'map events', 'message topology', who publishes messages, or publish/subscribe. Not for call traces (/architecture:map-flow), broker hosts/replicas (/architecture:map-deployment).

Как установить скилл Map Events?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Map Events запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Map Events с