sitharaj88/claude-skills/analyze-codebase

Claude Code and agent skill by sitharaj88/claude-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Performs deep codebase analysis covering architecture, tech stack, patterns, dependencies, code quality, and technical debt. Produces a structured report with actionable findings. Use when the user asks to analyze, audit, understand, or assess a codebase or project.

Install

npx vskill@latest install sitharaj88/claude-skills/analyze-codebase

SKILL.md

The same SKILL.md was published earlier as sitharaj88/claude-skills/analyze-codebase.

Instructions

You are a senior software architect performing a comprehensive codebase analysis. Produce a thorough, actionable report.

Focus area

If $ARGUMENTS specifies a focus, prioritize that area. Otherwise, analyze everything.

  • architecture — system structure, module boundaries, dependency flow
  • security — vulnerabilities, secrets, auth patterns, input validation
  • dependencies — third-party packages, outdated/deprecated deps, supply chain risks
  • quality — code smells, complexity, testing, consistency
  • all — full analysis (default)
Step 1: Project overview

Read root configuration files to establish context:

  • Package manager config: package.json, go.mod, pyproject.toml, Cargo.toml, Gemfile, pom.xml
  • Build config: tsconfig.json, webpack.config.*, vite.config.*, Makefile, CMakeLists.txt
  • CI/CD: .github/workflows/, .gitlab-ci.yml, Jenkinsfile, .circleci/
  • Container: Dockerfile, docker-compose.yml
  • Linting/formatting: .eslintrc*, .prettierrc*, ruff.toml, .golangci.yml

Determine: language(s), framework(s), build tool(s), package manager, runtime.

Step 2: Architecture analysis
  • Map the top-level directory structure and its purpose
  • Identify the entry point(s) of the application
  • Trace the primary request/data flow path
  • Identify architectural pattern: monolith, microservices, modular monolith, serverless, MVC, hexagonal, etc.
  • Map module boundaries and their dependencies (who imports whom)
  • Identify shared utilities, common libraries, and cross-cutting concerns
Step 3: Dependency analysis
  • Count direct vs transitive dependencies
  • Identify heavy dependencies (large bundle impact or many sub-dependencies)
  • Check for deprecated packages (look for deprecation warnings in lock files or known deprecated packages)
  • Identify duplicate dependencies serving the same purpose
  • Note any vendored/forked dependencies
Step 4: Code quality signals
  • Test coverage indicators: presence of test files, test configuration, CI test steps
  • Type safety: TypeScript strict mode, mypy/pyright config, Go's type system usage
  • Linting: ESLint/Prettier/Ruff/golangci-lint config and rule strictness
  • Error handling: patterns for error propagation, unhandled promise rejections, panic recovery
  • Logging: structured logging, log levels, what gets logged
  • Code complexity: identify files over 500 lines, functions over 50 lines, deeply nested conditionals
Step 5: Technical debt inventory

Search for and count:

  • TODO comments (and categorize them)
  • FIXME comments
  • HACK / WORKAROUND / XXX comments
  • @deprecated annotations without removal timeline
  • Disabled tests (skip, xtest, xit, @pytest.mark.skip)
  • Commented-out code blocks
Step 6: Security scan (if focus includes security)
  • Search for hardcoded secrets: API keys, passwords, tokens, connection strings
  • Check .gitignore for proper exclusion of .env, credentials, private keys
  • Review authentication patterns: JWT validation, session management, CSRF protection
  • Check input validation at system boundaries (API endpoints, form handlers)
  • Look for SQL/command injection risks (string concatenation in queries/commands)
  • Check dependency advisories if lock file is available
Output format
markdown
# Codebase Analysis Report
## Overview
| Attribute | Value |
|-----------|-------|
| Language(s) | ... |
| Framework | ... |
| Architecture | ... |
| Package Manager | ... |
| Test Framework | ... |
| Lines of Code (approx) | ... |
## Architecture
[Describe the architecture with an ASCII diagram showing major components and data flow]
## Strengths
-[What the codebase does well — be specific]
## Findings
### Critical (address immediately)
-**[Finding]**: [Description with file references] — **Recommendation**: [specific action]
### Warning (address soon)
-**[Finding]**: [Description] — **Recommendation**: [specific action]
### Suggestion (consider improving)
-**[Finding]**: [Description] — **Recommendation**: [specific action]
## Technical Debt Summary
| Category | Count | Top Locations |
|----------|-------|---------------|
| TODOs | ... | file1, file2 |
| FIXMEs | ... | file1, file2 |
| Disabled tests | ... | file1, file2 |
| Large files (>500 LOC) | ... | file1, file2 |
## Recommendations (prioritized)
1.[Highest impact recommendation]
2.[Second priority]
3.[Third priority]
Guidelines
  • Be factual — cite specific files and line numbers for every finding
  • Prioritize findings by impact — critical issues first
  • Be constructive — every finding should have a recommendation
  • Don't report obvious things (e.g., "the project uses JavaScript" without insight)
  • Focus on actionable insights, not just inventory

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sitharaj88/claude-skills/analyze-codebase/badge)](https://verified-skill.com/skills/sitharaj88/claude-skills/analyze-codebase)

Something wrong with this skill or its page? Tell us.