Command Palette

Search for a command to run...

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

architecture-scan

БесплатноБез исполняемых скриптовНе проверен

Architecture scan for evidence-backed TypeScript refactor candidates.

ivanrvpereiraот ivanrvpereira★ 19 звёзд на GitHub

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

Improve Codebase Architecture

Run an architecture scan grounded in ../coding-standards/SKILL.md. Return one ranked shortlist of refactor candidates within the scan boundary.

Scan, don’t spec. Stop at evidence-backed ownership moves. Do not edit files, run refactors, update documentation, create ADRs, estimate effort, design final interfaces, or write a tech spec. Record migration, compatibility, rollout, or backfill only as current constraints supported by repository evidence or user intent; do not design them during the scan.

1. Set the scan boundary

Use the scope supplied by the user: repository, directory, feature, module, file set, or concern. The boundary controls where candidates may be proposed. Inspect immediate callers, dependencies, composition roots, and tests outside it when needed to establish evidence; record this evidence halo, but do not form candidates for it.

When no useful scope is supplied:

  1. Inspect the repository shape and major entrypoints.
  2. Infer the scope only when the repository is small or one area clearly dominates the request.
  3. Otherwise ask one question that lets the user choose the scope.

Read ../coding-standards/SKILL.md. Search the boundary and its ancestors through the repository root for GLOSSARY.md, CONTEXT.md, CONTEXT-MAP.md, equivalent domain-language files, and decision indexes. Search repository documentation and ADR collections for decisions that name or govern the boundary. Inspect every governing source found, plus precedent in the scoped code, tests, and evidence halo.

Completion criterion: The candidate boundary and any evidence halo are explicit; the coding standards are loaded; the prescribed context and decision locations have been searched; every governing source found has been inspected; and relevant precedent has been identified or its absence recorded.

2. Build an evidence map

Use file reads and search only. Do not run tests, type checks, linters, formatters, builds, package scripts, or static-analysis commands.

Build a private evidence map of the architectural surfaces inside the boundary:

  • public and runtime entrypoints;
  • domain and application module clusters;
  • external, persistence, and process/runtime boundaries;
  • side-effect and resource-lifetime owners;
  • tests that exercise those seams.

Treat each bullet as an inventory category. For each category, record its surfaces, an equivalent group, or that it is absent or inapplicable with a reason. Group surfaces only when they share the same ownership and call-flow shape, and record representative files for the group.

For each distinct shape, trace at least one behavior from an entrypoint or direct caller through relevant boundaries and side effects, if any, to its caller-visible outcome. Inspect the existing tests at that seam or record that none were found. Record the surface or group, representative files, call path, outcome, existing test evidence, applicable standards, and findings.

Evidence beats vibes. Inspect for architectural friction: a design burden or correctness risk that is repeated, crosses a boundary, leaks into callers, obscures ownership, or prevents behavior from being tested through a real seam. An isolated code smell is local cleanup, not an architecture candidate.

For this scan, a coding-standard principle is applicable when an inventoried surface handles the concern it governs; repository-before-invention is always applicable. Account internally for each numbered principle:

  • classify it as applicable or inapplicable;
  • for each applicable principle, record the concrete code, call path, test, value, or runtime seam inspected;
  • classify each finding as local cleanup or architectural friction.

For broad scans, parallel exploration may gather observations, but final candidate formation and ranking remain one synthesis.

Completion criterion: Every inventory category is traced, represented by a recorded equivalent group, or marked absent or inapplicable with a reason; every evidence-halo excursion and deliberate exclusion is recorded; every numbered standard is accounted for; every applicable standard has inspected evidence; and every retained observation is concrete architectural friction. Unsupported observations are discarded.

3. Form, rank, and prune candidates

Architecture changes who owns an invariant, policy, translation, orchestration, side effect, resource lifetime, or runtime coordination. Turn each retained friction into an ownership move from the current owner or callers to a proposed owner. Do not design the owner’s final interface.

Rank all candidates within the scan boundary together, rather than by standards category. Rank by architectural leverage: the breadth and consequence of concrete burden or risk removed relative to the interface, indirection, or machinery introduced. Consider affected callers, behaviors, runtime ownership, and tests. When leverage is comparable, prefer

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

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

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

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

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

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

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

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

FAQ

Что делает скилл architecture-scan?

Architecture scan for evidence-backed TypeScript refactor candidates.

Как установить скилл architecture-scan?

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

Скилл architecture-scan запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

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