architect
БесплатноЗапускает вложенные скриптыНе проверенAssess and improve codebase architecture via layered analysis and guided restructuring. Triggers on architecture review, structural assessment, design…
от steveclarke★ 37 звёзд на GitHubОб этом скилле
Architect
Evaluate whether a codebase is well-organized at the structural level. Works through layered analysis: discover values, broad sweep, deep dive, assessment, and optional planning/execution.
This is NOT code review (correctness), code simplification (cleanup), or part of
/ship (pre-PR pipeline). Those skills look at code quality and changes.
/architect looks at how the codebase is organized — modularity, coupling,
composition, framework alignment, and structural coherence.
Invocation
| Command | Behavior |
|---|---|
/architect |
Full run: teach (if needed) > sweep > deep dive > assess |
/architect --teach |
Re-run values discovery |
/architect --sweep |
Broad sweep only, skip deep dives |
/architect <target> |
Focus on a subsystem (e.g., "the dispatch system", app/models). Runs Teach if needed, then scopes sweep and deep dive to the target area only. Updates the main assessment artifact. |
Phases
- Teach — Values discovery (first run per project). Conversational.
- Sweep — Quick broad scan across 7 architectural lenses.
- Deep Dive — Parallel analysis on lenses flagged during sweep.
- Assess — Present findings, discuss with user, generate artifact.
- Plan — Phased implementation strategies (on demand).
- Execute — Invoke writing plans for restructuring (on demand).
Parse Arguments
Parse $ARGUMENTS for flags and target:
--teach— force re-run values discovery, even if config exists--sweep— broad sweep only, skip deep dives- Everything else is treated as
<target>— a subsystem to focus on (path or description)
Multiple flags can combine: --teach with a target re-discovers values then
scopes to that subsystem.
Project Detection
ARCHITECT="$HOME/.claude/skills/architect/scripts/architect.sh"
PROJECT_INFO=$("$ARCHITECT" detect)
SLUG=$(echo "$PROJECT_INFO" | jq -r '.slug')
ROOT=$(echo "$PROJECT_INFO" | jq -r '.root')
CONFIGURED=$(echo "$PROJECT_INFO" | jq -r '.configured')
If SLUG is empty, stop with: "Not in a git repository. /architect needs a
git repo to work with."
Phase 1: Teach — Values Discovery
This phase is conversational. Ask one question at a time. Wait for the answer before moving on. Do not dump all questions at once.
Skip condition: If CONFIGURED is true AND --teach was NOT passed,
skip this phase. Load existing config instead:
CONFIG=$("$ARCHITECT" config "$SLUG")
Then proceed to Phase 2 (Sweep).
If --teach was passed: Run this phase even if config exists. The new
config will overwrite the old one (uses --force).
Step 1: Auto-detect Framework
Scan the project root for framework indicators:
Gemfilewithrails— Ruby on Railspackage.jsonwithnuxt— Nuxt.jspackage.jsonwithvue— Vue.jspackage.jsonwithnextorreact— Next.js / Reactgo.mod— Gopyproject.tomlorrequirements.txtwithdjango— Djangopyproject.tomlorrequirements.txtwithflaskorfastapi— Flask / FastAPICargo.toml— Rustmix.exswithphoenix— Phoenix (Elixir)
Present the finding: "I'm detecting this as a [framework] project. Is that right, or should I know more about the stack?"
Wait for confirmation before continuing. If the user corrects, use their answer.
Step 2: Discover Architectural Philosophy
Based on the detected framework, present 3-4 schools of thought. These frame how the skill evaluates architecture — there's no single "right" answer, and the user's preference shapes what counts as a finding vs. a design choice.
For Ruby on Rails:
I'd like to understand your architectural philosophy. Here are the common schools of thought for Rails — which resonates, or is it a mix?
- The Rails Way (DHH) — Convention over configuration. Concerns for shared behavior. Fat models are fine. Majestic monolith. The framework is the architecture.
- Sandi Metz's OOP — Small objects, single responsibility. Composition over inheritance. Dependency injection. Classes under 100 lines, methods under 5 lines (aspirational, not dogma).
- Hexagonal / Clean Architecture — Ports and adapters. Domain logic independent of the framework. Dependency inversion. Rails at the edges, pure Ruby in the core.
- Pragmatic mix — Take what works from each. No dogma. The codebase serves the team, not a philosophy.
For Vue/Nuxt:
- Composition-first — Composables for everything. Thin components. Logic lives in composables, components are just templates and wiring.
- Component-centric — Components own their logic. Props down, events up. Local state preferred. Composables only for truly shared behavior.
- Store-driven — Pinia stores are the source of truth. Components render store state. Business logic lives in stores and actions.
- Pragmatic mix — Whatever fit
Установить architect в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл architect?
Assess and improve codebase architecture via layered analysis and guided restructuring. Triggers on architecture review, structural assessment, design patterns, modularity, coupling, framework alignment.
Как установить скилл architect?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл architect запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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