Analyze codebase

From ashermahonin/agentic-skills · View interactive version

Analyze codebase is an AI agent skill from the GitHub repository ashermahonin/agentic-skills. Analyze an existing repository in read-only mode to reconstruct current behavior, architecture, dependency clusters, build and test health, hotspots, tech debt, ownership boundaries, integration points, and current-vs-target gaps. Use for existing-product improvement, migration planning, code archae

How to use this skill

Skill file

Analyze Codebase

Purpose

Slow the impulse to edit until the system has been understood. Produce an evidence-backed map of what exists, how it behaves, and where change would be risky.

Inputs

Decision process

  1. Map top-level directories to responsibilities.
  2. Trace the most important runtime flows from entrypoint to persistence or external boundary.
  3. Check build, test, lint, and local run instructions without changing source files.
  4. Identify hotspots: high-change files, large modules, unclear boundaries, test gaps, risky dependencies, and fragile contracts.
  5. Compare current architecture to the requested target and write migration risks before proposing edits.
  6. Stay read-only unless the user explicitly moves the work into implementation.

Decision boundaries

Decision record

Ready when

Handoff

Hand off evidence, high-risk files, safe write boundaries, and validation commands to architecture or decomposition.

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.