Map Deployment
C4 deployment view of committed infrastructure: which containers sit on which declared nodes, per environment, and what differs between two environments. Use…
от melodic-software★ 34 звезды на GitHub
Установить Map Deployment в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Map deployment
Repository context
The current repository is both the consumer, whose convention home declares where artifacts land, and the default subject, whose tracked IaC declares the topology.
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.
Purpose
Answer "where does this run, and what is different about that environment" from committed infrastructure as code. Every node traces to a named file. The scripts collect and render. Do not draw a node the script did not emit, and do not describe a live cloud. This is the C4 deployment view; each environment is its own deployment environment in the diagram.
Resolve home and dialect
Read ${CLAUDE_PLUGIN_ROOT}/reference/config.md first. This skill writes into architecture_dir.
It does not read landscape_dialect and adds no dialect key: the diagram dialect is
diagram_dialect.system from the authoring-formats topic doc. likec4 writes deployment.md with
one fenced likec4 block, c4-plantuml with one fenced plantuml block. Mermaid is not offered.
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.
Resolve diagram_dialect.system by restating this ladder, then running the resolver rather than
parsing the topic doc yourself. The ladder is a resolution order, not a task list:
1. Anchor at the repository root: `${CLAUDE_PROJECT_DIR}` when set, otherwise
`git rev-parse --show-toplevel`. Never a CWD-relative read.
2. Resolve the convention home `<home>` with the bundled resolver above. Never hand-parse the root
file.
3. The printed home is repo-relative: join it to the root, then pass
`<root>/<home>/authoring-formats/README.md` to the resolver.
4. Layer order is one layer deep: an explicit `--dialect` argument, then the team convention doc.
There is no personal override.
5. `diagram_dialect.system` has no default. Allowed values are `likec4` and `c4-plantuml`. When it
is unset, emit no C4 deployment view. The record is still written.
6. Degrade soft, and say so. No pointer, no doc, no key, or an unrecognized value (mermaid
included) each resolve to emitting nothing. The resolver names the cause on stderr. Do not
hard-fail and do not ask the operator to create the surface mid-task.
7. Report provenance: the key, the value, and the layer (`argument`,
`team convention doc <path>`, or `unset (no C4 view emitted)`).
bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-diagram-dialect.sh" --kind system \
--formats "<root>/<home>/authoring-formats/README.md"
Omit --formats when no convention home resolved. Stdout is likec4, c4-plantuml, or none.
An explicit --dialect likec4|c4-plantuml on the invocation wins and the resolver is not required.
This skill never writes the consumer's root instruction file or its topic doc.
Build the record
"${CLAUDE_SKILL_DIR}/scripts/collect-deployment.sh" \
--repo "<subject-repo>" --out "<architecture_dir>/deployment.json" \
--generated-on "<YYYY-MM-DD|unknown>" \
--containers "<architecture_dir>/containers.json"
Pass --generated-on from git -C <root> log -1 --format=%cs, or unknown when that fails.
Omit --containers when containers.json is not already in the architecture directory; when
present it must be schema_version 1, and an unreadable catalog refuses the run. Pass --live only
when the invocation asked for live state. The script does not call a cloud API.
Shipped readers, every one that is present:
- Docker Compose (
compose.yaml,docker-compose.yml, andcompose.<env>.yaml). The environment is the filename suffix ofcompose.<env>.yaml, otherwise the parent directory name (deploy/<env>/compose.yaml), anddefaultfor a file at the repository root. A base file and itscompose.override.yaml, or the files a tracked.envCOMPOSE_FILElists, merge in Compose merge order into one environment named for the directory: scalars (image,replicas) are overridden,portsandnetworksappend without duplicates,environmentmerges by key. Any other file beside them (a variant with no listed order, an override with no base, a second base) or a!resetor!overridetag is refused by name ascompose-not-mergeable:<file>, never guessed. Environment-per-directory layouts are unaffected. Each service is a compute node, and its placement names it incompute. - Kubernetes manifests whose
kindis Deployment, StatefulSet, DaemonSet, Service, or Ingress. Each container of a workload, a sidecar included, is its own placement, and every contai
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- reference/iac-dialect-gotchas.md
- scripts/azure-reader.awk
- scripts/cloudformation-reader.awk
- scripts/collect-deployment.sh
- scripts/collect-deployment.test.sh
- scripts/deployment-diff.awk
- scripts/pulumi-reader.awk
- scripts/render-deployment.sh
- scripts/terraform-reader.awk
- scripts/yaml-rows.awk
FAQ
Что делает скилл Map Deployment?
C4 deployment view of committed infrastructure: which containers sit on which declared nodes, per environment, and what differs between two environments. Use for 'map deployment', 'deployment diagram', 'what is different in production', IaC topology, or where does this container run. Not for live cloud inventory, cost, or runtime health.
Как установить скилл Map Deployment?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Map Deployment запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…