Command Palette

Search for a command to run...

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

codebase-architecture

БесплатноЗапускает вложенные скриптыНе проверен

Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding. Use when asked to "design the…

mblodeот mblode★ 230 звёзд на GitHub

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

Codebase Architecture

Decide a TypeScript codebase's structure, improve it where change has become expensive, and make it hold. The target is a codebase a reader can hold in their head: few surfaces, one canonical way to do each job, and behaviour where you would first look for it.

  • IS: folder structures, module interfaces, request context and middleware pipelines, frontend/backend boundaries; architecture briefs; domain language and decision records; domain-informed deepening; guardrail tooling, CI gates, and agent wayfinding.
  • IS NOT: scaffolding a new repo (scaffold-nextjs for a Next.js turborepo, scaffold-cli for a TypeScript CLI), multi-tenant domain/isolation/routing (multi-tenant-architecture), the content of AGENTS.md itself (agents-md), a plan for one feature (planning), a diff-scoped cleanup pass (tidy), structural review of a local diff (tidy), a product's own verify CLI, doctor command, and feature map (app-verification, call it by name), or an end-to-end agent-readiness build or audit across instructions, verification and CI (agent-ready-repo).

Contents

  • Modes
  • References
  • Design mode (new codebase)
  • Deepen mode (existing codebase)
  • Harden mode (make it stick)
  • Validation loop
  • Output template
  • Gotchas
  • Related skills

Modes

Pick by the problem, not by the artifact, and say which you picked.

Mode You are here when Output
Design Starting a new app, service, or surface, and the structure is not decided yet An architecture brief
Deepen The code works, but change is expensive: concepts scattered, seams leaking, one idea under three names Ranked opportunities, then one migrated slice
Harden The structure is decided and keeps decaying, or agents keep doing the wrong thing in this repo Wired checks, markers, and recipes

Modes compose, and running more than one is normal. Design ends in Harden, because a contract with no check is a suggestion. Deepen ends in Harden, so the new seam cannot decay back. Harden runs alone when the structure is already right and only the enforcement is missing, which is the common case in a repo that agents work in.

When two look equally right, prefer Deepen. "Agents keep using the old pattern" sounds like Harden, but if the cause is one concept living in two places, quarantine only freezes the duplicate: Deepen deletes it and Harden holds the line until that lands. Harden alone is right when the old thing genuinely has to stay.

When you cannot write to the repo (no checkout, read-only request, or a question rather than a change), each mode's output degrades to its plan: the brief, the ranked opportunities, or the named checks with their rungs. Say which checks remain unproven, since none of them are wired.

As simple as possible, no simpler. Every mode cuts: surfaces in Design, concepts in Deepen, dual paths and dormant config in Harden. The floor does not get cut: validation at trust boundaries, error handling that prevents data loss, security, accessibility, observability on anything deployed, and whatever was explicitly asked for. A simplification that reaches one of those is a bug. Where a corner is cut on purpose, mark it with its ceiling and upgrade path rather than leaving the next reader to guess whether it is finished.

Copy this to track progress, and delete the lines for modes you are not running:

Codebase architecture progress:
- [ ] Modes chosen and stated (Design / Deepen / Harden)
- [ ] Design: assumptions stated, repo shape, every contract names its check, brief written
- [ ] Deepen: git hot spots, glossary, ranked opportunities with paths, one slice migrated
- [ ] Harden: existing checks surveyed, checks picked by failure, each landed green and proven to bite
- [ ] Validation loop run for the modes used; evidence recorded, N/A items named

References

Load only when the condition applies.

Reference Mode Read when
references/vocabulary.md All Before naming a module, interface, seam, or adapter in any output; it defines the deletion test
references/stack-defaults.md Design Choosing libraries, tooling, or deploy targets
references/api-design.md Design, Deepen Designing endpoints, module interfaces, request context, error shapes, or forwarded credentials
references/distributed-correctness.md Design, Deepen The work provably touches an external system, webhook, retry, audit trail, or money. In Deepen you can grep for it; in Design it is a question about requirements, so confirm before loading rather than inferring it from the product's domain
references/brief-conventions.md Design Writing the conventions, testing, quality-bar, or rollout and rollback sectio
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

evals/evals.jsonevals/evaluation-scenarios.mdevals/files/billing/checkoutHandler.tsevals/files/billing/invoiceHandler.tsevals/files/billing/invoiceRepository.tsevals/files/billing/invoiceService.tsevals/files/welcome/repo-structure.mdreferences/agent-runtime.mdreferences/api-design.mdreferences/brief-conventions.mdreferences/contagion-markers.mdreferences/deepening-existing.mdreferences/distributed-correctness.mdreferences/domain-language.mdreferences/enforcement-ladder.mdreferences/guardrail-tooling.mdreferences/stack-defaults.mdreferences/verification-tiers.mdreferences/vocabulary.mdreferences/wayfinding.md

FAQ

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

Designs module interfaces, deepens shallow modules, and installs enforceable repository guardrails and agent wayfinding. Use when asked to "design the architecture", "simplify our modules", "find shallow modules", "harden the repo", "gate an unattended agent fix job", or "triage alerts with an agent".

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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