Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.json that implement-tasks turns 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, root CLAUDE.md, ADRs) — a strong input the map reconciles with, never clobbers.

Protocol

  1. Detect mode + freshness. If docs/architecture-map.md exists and is fresh (its reflects_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 bare go.mod / package.json).

Brownfield path (existing code)

  1. Read authored docs first. Any hand-maintained architecture doc / root CLAUDE.md / ADRs → authoritative input; reconcile with it, never overwrite.
  2. Scan via explorer. Dispatch the sdlc:explorer agent (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. (Fallback subagent_type: "Explore" if sdlc:explorer is unavailable.)
  3. 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 real file:line anchors. Record updated_at + reflects_commit: <short HEAD>. Validate the C4 Mermaid per ../_shared/mermaid-check.md (render-parse with mmdc if available, else the structural lint; fix before committing). Write + commit map-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. *

Полный SKILL.md на GitHub

Установить map-architecture в Claude Code и Claude Desktop

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

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

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

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

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

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

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

references/foundation.mdtemplates/architecture-map.md

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), без исполняемых скриптов.

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

Сравнить map-architecture с