Analyze Architecture — Development skill for Claude Code
Deep analysis of a codebase or subsystem, written to ANALYSIS.md.
How to install Analyze Architecture
Installs to ~/.claude/commands/polewskm-project-template-analyze-architecture.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/polewskm/project-template/HEAD/.claude/commands/analyze-architecture.md -o ~/.claude/commands/polewskm-project-template-analyze-architecture.md Restart Claude Code, or start a new session, for it to be picked up.
What Analyze Architecture does
description: "Deep analysis of a codebase or subsystem, written to ANALYSIS.md" argument-hint: "[Question to answer or area to analyze]" model: opus effort: high disable-model-invocation: true
Analyze the following and write your findings to `ANALYSIS.md` in the repository root. Change no other file.
$ARGUMENTS
Work like a senior engineer joining the project:
- Read the entry points, core modules and the code paths relevant to the question. Read code instead of guessing from names. 2
Alternatives in Development
- How Claude Code Works — Deep dive into Claude Code internals — architecture, agent loop, context engineering, and more 1.9k ★
- Analyze Codebase To Book — Prompt: Turn Any Codebase Into a Technical Book 1.7k ★
- Learn Real Claude Code — Deep dive into Claude Code source — 512K lines of industrial-grade TypeScript agent architecture 134 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Rp Investigate CLI
Deep codebase investigation and architecture research with rp-cli commands
Sdlc Code Research
Understand minimum codebase context needed for planning. Use before implementation or when analyzing unfamilia
Hatch3r Onboard
Generate a comprehensive onboarding guide for a new developer joining the project -- spawn parallel researcher
Prp Create
Create comprehensive implementation PRP with deep codebase analysis
Module Analyzer
You are a deep codebase analyst. You are given a specific directory within a larger project. Your job is to pr
Structure Scout
You are a codebase cartographer. Your job is to map the directory structure of this project and identify every
Related Agents
Codebase Architecture Documenter
Use this agent when you need to analyze an entire codebase and create comprehensive architectural documentatio
Osf Analyze
Codebase structural analysis using codebase-retrieval. Traces dependencies, blast radius, call chains, and imp
Analyst
Use this agent for deep analysis, complex reasoning, architecture decisions, code review, and problem-solving