Skip to content
Back to skills

Analyze Codebase

ASecurity

Map an unfamiliar codebase — entry points, module boundaries, and key data flows — and return a concise summary. Use when onboarding to a new repo or before a large refactor. Produces verbose exploration, so it runs forked.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
ai-agentsbashapi

Works with

  • api

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add craigforr/cert-anthropic-2026 --skill analyze-codebase --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Analyze Codebase?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Analyze Codebase
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/craigforr-analyze-codebase/badge)](https://www.skillsdirectory.com/skills/craigforr-analyze-codebase)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: analyze-codebase
description: >-
  Map an unfamiliar codebase — entry points, module boundaries, and key data
  flows — and return a concise summary. Use when onboarding to a new repo or
  before a large refactor. Produces verbose exploration, so it runs forked.
context: fork
allowed-tools: Read, Grep, Glob
argument-hint: "[directory or subsystem to analyze, e.g. src/api]"
---

# analyze-codebase

Analyze the codebase (or the subsystem named in `$ARGUMENTS`) and return a short
structured summary to the main session.

`context: fork` runs this skill in an isolated sub-agent context so the many
`Read`/`Grep`/`Glob` results do NOT pollute the main conversation — only the
final summary comes back. `allowed-tools` restricts it to read-only exploration
(no `Write`, `Edit`, or `Bash`), so it can never modify the tree.

## Steps

1. Use `Glob` to inventory the structure; identify entry points and config.
2. Use `Grep` to find where execution starts and how modules reference each other.
3. Use `Read` to follow the 3–5 most important files and trace key data flows.

## Output (return only this to the main session)

- **Overview**: what the code does, in 2–3 sentences.
- **Entry points**: files where execution begins.
- **Module map**: the main modules and their responsibilities.
- **Key data flows**: how a request / job moves through the system.
- **Risks / unknowns**: anything surprising or worth a closer look.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.