Patterns and techniques for analyzing brownfield codebases. Use when onboarding to unfamiliar code, preparing for refactoring, conducting architecture reviews, or identifying technical debt. Use when this capability is needed.
Systematically explore and understand existing codebases, including entry point discovery, dependency tracing, pattern detection, and technical debt identification.
Variables
Variable
Default
Description
ANALYSIS_DEPTH
standard
quick (5min), standard (30min), deep (1hr+)
OUTPUT_FORMAT
markdown
markdown, json, c4
INCLUDE_DEBT
true
Include technical debt assessment
INCLUDE_DIAGRAMS
true
Generate C4 diagrams
Instructions
MANDATORY - Follow the Workflow steps below in order. Do not skip steps.
Start with entry points, not random files
Trace dependencies before analyzing patterns
Document findings as you go
Red Flags - STOP and Reconsider
If you're about to:
Analyze random files without finding entry points first
Make architectural claims without tracing dependencies
Skip pattern detection before identifying anti-patterns
Report technical debt without severity classification
STOP -> Read the appropriate cookbook file -> Follow the workflow -> Then proceed
Run npx skillmds@latest add tomevault-io/codebase-analysis-4 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Patterns and techniques for analyzing brownfield codebases. Use when onboarding to unfamiliar code, preparing for refactoring, conducting architecture reviews, or identifying technical debt. Use when this capability is needed. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.