From claude-library
Build a mental model before touching code. Use when joining large repos, legacy systems, before refactoring, or when you need to understand how a codebase is structured.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-library:architecture-archThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Purpose**: Build a mental model before touching code
Purpose: Build a mental model before touching code
Use when:
vs
/learning-codebase-mastery: Use/architecture-archwhen you need a reference document — a map of components, execution paths, and risks. Use/learning-codebase-masterywhen you want to learn and retain how specific code works through quizzes and exercises.
When user asks to understand architecture:
Ask what the target is:
Inspect codebase using search/grep and summarize:
Produce outputs in this exact format:
A) High-level overview (10 lines max)
B) Component map (bullets)
- [Component]: [responsibility]
C) Key execution paths (3-5 numbered flows)
1. [Trigger] → [Step] → [Step] → [Output]
D) Critical files list (with paths)
- path/to/file.py: [why it matters]
E) Risks / tech debt / unknowns
- [Risk]: [explanation]
/architecture_arch Focus on:
- how agent teams are instantiated
- how tools are bound
- where orchestration decisions are made
- where a Composer could plug in safely
Or:
/architecture_arch map the inference API service and show the main execution paths
npx claudepluginhub tabers77/claude_experimentsUse for "how does X work", code walkthroughs before changing something, and placement / ownership / layering questions ("where should this live", "which package owns this", "is this the right layer"). Explains subsystem architecture, runtime flow, onboarding mental models. Can critique architecture. Use why for motivation.
Explores codebases across phases: scopes target, discovers architecture/components/layers, deep-dives each perspective, then synthesizes findings with file:line evidence. Use before planning changes or orienting on unfamiliar code.