Map Flow
Sequence diagram of one C# entry point, each hop citing a tracked call site (interface, service-locator, reflection hop unresolved; stops at Publish/Send)…
от melodic-software★ 34 звезды на GitHub
Установить Map Flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Map flow
Repository context
The current repository is both the consumer, whose convention home declares where artifacts land, and the default subject, whose tracked C# contains the entry point.
Collect with an individual Bash call, one command per call: the project root,
git rev-parse --show-toplevel. Treat a failure (not a repository, git unavailable) as an unknown
value and carry on; ${CLAUDE_PROJECT_DIR} is the resolver's --root either way. The <entry point>
argument is required: a route (with an optional leading HTTP verb), Type.Method, or a method name,
not a second repository.
Purpose
Answer "what happens when this entry point runs" from call sites in the tree. Every hop traces to a line in a tracked file. The scripts collect and render. Do not add a hop the script did not emit, and do not bind a call to a class that merely has a method of the same name.
Resolve home
Read ${CLAUDE_PLUGIN_ROOT}/reference/config.md first. This skill writes into architecture_dir
and reads no dialect key: the picture is always a mermaid sequenceDiagram.
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.
This skill never writes the consumer's root instruction file or its topic doc;
/architecture:setup apply owns both.
Build the record
"${CLAUDE_SKILL_DIR}/scripts/collect-flow.sh" \
--repo "<subject-repo>" --entry "<entry point>" --depth N \
--generated-on "<YYYY-MM-DD>" --out "<architecture_dir>/flow.json"
--depth defaults to 5. Keep the ${CLAUDE_SKILL_DIR} anchor;
${CLAUDE_PLUGIN_ROOT}/reference/config.md § Script paths
says why.
Exit 3 is a refusal whose message states the reason; nothing was written. Report the reason and stop. Do not draw a sequence from the files you can see.
The record is schema_version 1, one object per line. Each hop carries file and line of the call
site, resolution (statically-resolved, inferred, or unresolved), mechanism (why a hop is
unresolved), sync (synchronous or asynchronous), and handoff.
The shipped adapter reads tracked *.cs only. The entry is one of:
| Entry | Selects |
|---|---|
/orders/{id} |
the handler whose [Route], [HttpGet]-family attribute, or MapGet-family call carries that exact string; a route entry contains /, so a template without one ([HttpGet("{id}")]) is reached through Type.Method |
GET /orders/{id} |
the same route, where the handler takes that verb: GET, POST, PUT, DELETE or PATCH in any case, read from an Http* attribute beside the route or from the Map* name; a handler that names no verb takes any |
OrdersService.Handle |
the method Handle declared in the class OrdersService (the last two names of a dotted entry) |
Handle |
every declaration named Handle |
A Map* call is traced through the method it names as its handler, MapGet("/x", Handle) or
MapGet("/x", Type.Handle), declared in the class that holds the call, an enclosing class, or
Type. A lambda, or a name that is not exactly one declaration in the tree, is a refusal that
points at Type.Method.
More than one match is a refusal that names every site and lists these forms. Nothing else
narrows a match: overloads and same-named types in different namespaces stay ambiguous. A
[Route(...)] above a class is not composed with the routes of its methods (a limit): it names no
handler, so a route entry matches only a string written whole on one handler. An entry with no
block body (expression-bodied or abstract) is a refusal. A repository with no C# file is a
refusal. That is the result. Do not fill it from another language.
A call is followed only through its receiver's declared type, read from a parameter or local of the
enclosing method, then a field, property or primary-constructor parameter of the enclosing class,
then its in-tree base classes; a type name written at the call (Repository.Save) is its own
evidence. The script follows the call, and walks the callee, only when that type is a class in the
tree that declares the method. Never bind a call by method name alone. resolution records the
evidence:
statically-resolved: the type came from a declaration in the enclosing method or class, or is written at the call. The callee may be in another file.inferred: the type came through a base class or a declaration in another file (a partial class), or the method is declared on a base class.unresolved: anything else, never followed.mechanismsays why:
mechanism |
Cause |
|---|---|
interface |
the receiver's type is an interface: one the tree |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- scripts/collect-flow.sh
- scripts/collect-flow.test.sh
- scripts/render-flow.sh
- scripts/trace-flow.awk
FAQ
Что делает скилл Map Flow?
Sequence diagram of one C# entry point, each hop citing a tracked call site (interface, service-locator, reflection hop unresolved; stops at Publish/Send). Use for 'map flow', 'sequence diagram', 'trace this request', walk me through what happens, or dynamic diagram. Not for messages (/architecture:map-events), repos (/architecture:map-landscape).
Как установить скилл Map Flow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Map Flow запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…