map-architecture
БесплатноБез исполняемых скриптовНе проверенUse to establish the repo's architecture map the rest of the pipeline reads. Two modes: on an EXISTING codebase it scans once and persists what's there; on an…
от genkovich★ 17 звёзд на GitHubОб этом скилле
Skill: map-architecture (SDLC stage 00 — the pipeline's anchor)
The pipeline's anchor on architecture. It produces docs/architecture-map.md — the single source of "what the system is" that write-prd (constraints), architecture-design (matches against it), generate-data-model, and implement-tasks all read instead of re-discovering the code. It runs in one of two modes, auto-detected:
- Brownfield (the repo has source) → scan it once and persist the current architecture.
- Greenfield (empty / near-empty repo) → run a short, level-adaptive foundation session: pick the stack / structure / data approach / conventions with the user (defaults-heavy), fix them as the foundation + foundational ADRs, and emit a scaffold
tasks.jsonthatimplement-tasksturns into a real skeleton. Greenfield detail →./references/foundation.md.
Repo-level utility (one map serves every feature). The scan is delegated to the sdlc:explorer agent — read-only brownfield scout per ../_shared/agent-roster.md. Question phrasing → ../_shared/ask-style.md.
Як це читати (короткий вступ)
Це Step 0 SDLC-циклу — перший крок перед будь-якою фічою. Він сканує кодову базу один раз і зберігає результат у docs/architecture-map.md, щоб усі наступні кроки (write-prd, architecture-design, implement-tasks) читали цей файл, а не пересканували репо щоразу. На brownfield (є код) — сканує реальний стан. На greenfield (порожнє репо) — разом з тобою вибирає стек і конвенції, зберігає їх як фундамент, і генерує scaffold tasks.json.
Словничок термінів:
- brownfield — репо з наявним кодом (є що сканувати).
- greenfield — нове/порожнє репо (фундамент встановлюється з нуля).
- reflects_commit — git-sha, яка архітектурна карта відображає (для відстеження свіжості).
- scaffold tasks.json — набір завдань, який
implement-tasksматеріалізує у скелет проєкту. - §Frontend / UI foundation — секція карти, яка описує дизайн-систему, компоненти і токени: щоб
architecture-design/break-tasks/implement-tasksперевикористовували, а не перевинаходили UI.
Owner
Architect / Tech Lead — they own the architecture (brownfield: confirm it reflects reality; greenfield: decide the foundation).
Inputs
- (Optional) a path/scope hint (default: repo root).
- (Read, never overwrite) an authored architecture doc if present (
docs/architecture.md,ARCHITECTURE.md, rootCLAUDE.md, ADRs) — a strong input the map reconciles with, never clobbers.
Protocol
- Detect mode + freshness. If
docs/architecture-map.mdexists and is fresh (itsreflects_commit≈ current HEAD) → «map is fresh (reflects<commit>). Reuse or refresh?»; STOP on reuse. Else decide the mode: brownfield if the repo has source (modules/packages beyond config), else greenfield (empty or only scaffolding like a barego.mod/package.json).
Brownfield path (existing code)
- Read authored docs first. Any hand-maintained architecture doc / root
CLAUDE.md/ ADRs → authoritative input; reconcile with it, never overwrite. - Scan via explorer. Dispatch the
sdlc:exploreragent (subagent_type: "sdlc:explorer"—haiku/low, clean-isolated per../_shared/agent-roster.md): «Report (a) language + frameworks + versions, (b) top-level module layout + per-module layers, (c) layering / wiring conventions, (d) datastores + access, (e) inter-module comms, (f) cross-cutting conventions (errors, IDs, tests, migrations) with one cited example each, (g) 2–3 representative features as precedents, (h) if a frontend exists — the component library / design system, design tokens (colors/spacing/typography), styling approach (Tailwind / CSS-modules / styled-components / …), shared UI primitives, and a representative screen/component as the UI precedent to reuse.» Large repo → fan out per subtree. (Fallbacksubagent_type: "Explore"ifsdlc:exploreris unavailable.) - Synthesize + stamp + validate + write. Fill
./templates/architecture-map.md(C4 of what exists, module inventory, cited conventions, datastores, the Frontend / UI foundation if a frontend exists, precedent guide, constraints) with realfile:lineanchors. Recordupdated_at+reflects_commit: <short HEAD>. Validate the C4 Mermaid per../_shared/mermaid-check.md(render-parse withmmdcif available, else the structural lint; fix before committing). Write + commitmap-architecture: architecture map (reflects <commit>). Then emit the stage-handoff block per../_shared/handoff.md— What I did + Review (docs/architecture-map.md) + Run next (/clear, then/sdlc:write-prd <slug>).
Greenfield path (empty repo) → ./references/foundation.md
G2. *
Установить map-architecture в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл map-architecture?
Use to establish the repo's architecture map the rest of the pipeline reads. Two modes: on an EXISTING codebase it scans once and persists what's there; on an EMPTY/greenfield repo it runs a short, level-adaptive foundation session — picks the stack / folder structure / data approach / conventions WITH you (defaults-heavy), fixes them as the foundation + foundational ADRs, and emits a scaffold tasks.json that implement-tasks materializes into a real skeleton. Triggers on "survey the codebase", "map the architecture", "set up a new project", "bootstrap the foundation", "/sdlc:map-architecture", "вивчи кодову базу", "карта архітектури", "новий проєкт", "заклади фундамент". Output: docs/architecture-map.md (+ adr/ + scaffold tasks.json on greenfield). Records reflects_commit for staleness; reads, never overwrites, an authored architecture doc.
Как установить скилл map-architecture?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл map-architecture запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic