sitharaj88/claude-skills/analyze-codebase
Claude Code and agent skill by sitharaj88/claude-skills
- community
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-codebaseSKILL.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 flowsecurity— vulnerabilities, secrets, auth patterns, input validationdependencies— third-party packages, outdated/deprecated deps, supply chain risksquality— code smells, complexity, testing, consistencyall— 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:
TODOcomments (and categorize them)FIXMEcommentsHACK/WORKAROUND/XXXcomments@deprecatedannotations 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
.gitignorefor 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
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
- SKILL.md in the repositoryCheckingskills/analyze-codebase/SKILL.md
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
[](https://verified-skill.com/skills/sitharaj88/claude-skills/analyze-codebase)