analyze-code-structure
Examine code organization and identify structural patterns. Use when reviewing module design or understanding architecture.
npx skills add majiayu000/claude-skill-registry --skill analyze-code-structure-homericintelligence-projectodyssey-3 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Analyze Code Structure Examine code organization, dependencies, and architectural patterns to understand how modules are organized. ## When to Use - Reviewing module design before implementation - Understanding how components connect - Identifying structural improvements needed - Planning refactoring strategies ## Quick Reference ```bash # Analyze Python file structure python3 << 'EOF' import ast import sys def analyze_structure(filepath): with open(filepath) as f: tree = ast.parse(f.read()) classes = [n.name for n in ast.walk(tree) if isinstance(n, ast.ClassDef)] functions = [n.name for n in ast.walk(tree) if isinstance(n, ast.FunctionDef)] print(f"Classes: {classes}") print(f"Functions: {functions}") analyze_structure(sys.argv[1]) EOF ``` ## Workflow 1. **Identify module components**: List classes, functions, and major imports 2. **Map dependencies**: Trace how modules import and reference each other 3. **Analyze layers**: Categorize code into logical layers (interface, business logic, persistence) 4. **Document patterns**: Note recurring architectural patterns (factory, singleton, observer) 5. **Propose improvements**: Identify coupling issues or missing separation of concerns
- When to Use
- Quick Reference
- Workflow
- Output Format
- References
Analyze Python file structure python3 << 'EOF'
What does the analyze-code-structure skill do?
Examine code organization and identify structural patterns. Use when reviewing module design or understanding architecture.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill analyze-code-structure-homericintelligence-projectodyssey-3 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
