Command Palette

Search for a command to run...

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

architect

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

Assess and improve codebase architecture via layered analysis and guided restructuring. Triggers on architecture review, structural assessment, design…

steveclarkeот 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

  1. Teach — Values discovery (first run per project). Conversational.
  2. Sweep — Quick broad scan across 7 architectural lenses.
  3. Deep Dive — Parallel analysis on lenses flagged during sweep.
  4. Assess — Present findings, discuss with user, generate artifact.
  5. Plan — Phased implementation strategies (on demand).
  6. 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:

  • Gemfile with rails — Ruby on Rails
  • package.json with nuxt — Nuxt.js
  • package.json with vue — Vue.js
  • package.json with next or react — Next.js / React
  • go.mod — Go
  • pyproject.toml or requirements.txt with django — Django
  • pyproject.toml or requirements.txt with flask or fastapi — Flask / FastAPI
  • Cargo.toml — Rust
  • mix.exs with phoenix — 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?

  1. The Rails Way (DHH) — Convention over configuration. Concerns for shared behavior. Fat models are fine. Majestic monolith. The framework is the architecture.
  2. Sandi Metz's OOP — Small objects, single responsibility. Composition over inheritance. Dependency injection. Classes under 100 lines, methods under 5 lines (aspirational, not dogma).
  3. Hexagonal / Clean Architecture — Ports and adapters. Domain logic independent of the framework. Dependency inversion. Rails at the edges, pure Ruby in the core.
  4. Pragmatic mix — Take what works from each. No dogma. The codebase serves the team, not a philosophy.

For Vue/Nuxt:

  1. Composition-first — Composables for everything. Thin components. Logic lives in composables, components are just templates and wiring.
  2. Component-centric — Components own their logic. Props down, events up. Local state preferred. Composables only for truly shared behavior.
  3. Store-driven — Pinia stores are the source of truth. Components render store state. Business logic lives in stores and actions.
  4. Pragmatic mix — Whatever fit
Полный SKILL.md на GitHub

Установить architect в Claude Code и Claude Desktop

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

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

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

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

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

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

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

scripts/architect.sh

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 запускает скрипты?

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

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

Сравнить architect с