codebase-analyzer — community codebase-analyzer, claude-code-auto-memory, severity1, community, ai agent skill, ide skills, agent automation, AI agent skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Code Analysis Agents needing automated CLAUDE.md file management and project structure analysis. This skill should be used when the user asks to initialize auto-memory, create CLAUDE.md, set up project memory, or runs the /auto-memory:init command. Analyzes codebase structure and generates CLAUDE

severity1 severity1
[0]
[0]
Updated: 3/12/2026

Quality Score

Top 5%
60
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
> npx killer-skills add severity1/claude-code-auto-memory/codebase-analyzer
Supports 19+ Platforms
Cursor
Windsurf
VS Code
Trae
Claude
OpenClaw
+12 more

Agent Capability Analysis

The codebase-analyzer skill by severity1 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Code Analysis Agents needing automated CLAUDE.md file management and project structure analysis.

Core Value

Empowers agents to generate and manage CLAUDE.md files interactively, utilizing project structure analysis and supporting Claude Code plugins with features like migration, backup, and merge capabilities for seamless integration with Markdown files.

Capabilities Granted for codebase-analyzer

Automating CLAUDE.md file generation for project documentation
Migrating existing CLAUDE.md files to auto-managed formats
Debugging project structure issues through interactive analysis

! Prerequisites & Limits

  • Requires existing project structure to analyze
  • Must follow specific guidelines for correct CLAUDE.md content generation
  • Limited to projects utilizing Claude Code plugins
Project
SKILL.md
4.8 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Codebase Analyzer

Analyze project structure and generate CLAUDE.md files interactively.

Guidelines

MANDATORY: All rules below must be followed exactly. Violations produce incorrect CLAUDE.md content.

@../shared/references/guidelines.md

Algorithm

1. Check Existing CLAUDE.md

If CLAUDE.md already exists, ask the user how to handle it:

  • Migrate: Convert to auto-managed format (add markers)
  • Backup: Create CLAUDE.md.backup and generate fresh
  • Merge: Keep manual sections, add auto-managed sections
  • Cancel: Abort initialization

2. Scan Directory Structure

Detect frameworks and build systems:

  • package.json - Node.js/JavaScript
  • pyproject.toml, setup.py - Python
  • Cargo.toml - Rust
  • go.mod - Go
  • Makefile - Make-based builds
  • Dockerfile - Container builds

Extract build/test/lint commands from config files.

3. Identify Subtree Candidates

Look for framework boundaries that warrant separate CLAUDE.md files:

  • src/ with 10+ source files
  • lib/ directory
  • packages/* (monorepo packages)
  • apps/* (monorepo applications)

4. Detect Code Patterns

Analyze source files for conventions:

  • Naming: PascalCase, camelCase, snake_case usage
  • Imports: ES6 modules, CommonJS, ordering patterns
  • Architecture: Feature-based, layered, MVC patterns
  • Style: Indentation, quotes, semicolons

5. Fetch Memory Guidelines (Optional)

If network available, fetch from https://code.claude.com/docs/en/memory:

  • Use WebFetch tool
  • Extract relevant sections for context
  • Reference official guidelines above as primary source

6. Present Findings

Use AskUserQuestion to confirm:

  • Detected framework and commands
  • Suggested subtree locations
  • Detected patterns

7. Generate CLAUDE.md

Generate files using the EXACT template structure. Follow these steps precisely:

  1. Copy template skeleton - Use template file as the base structure
  2. Use exact marker format - See Marker Syntax section below
  3. Replace placeholders - Substitute {{PLACEHOLDER}} with detected content
  4. Include all required sections - Even if content is minimal, include the section
  5. Add MANUAL section at the end for user notes
  6. Size limits: Root 150-200 lines, Subtrees 50-75 lines

Marker Syntax

CRITICAL: Use the EXACT marker format below. Do NOT use variations.

markdown
1<!-- AUTO-MANAGED: section-name --> 2## Section Heading 3 4Content goes here 5 6<!-- END AUTO-MANAGED -->

For user-editable content:

markdown
1<!-- MANUAL --> 2## Custom Notes 3 4Add project-specific notes here. This section is never auto-modified. 5 6<!-- END MANUAL -->

Common mistakes to avoid:

  • <!-- BEGIN AUTO-MANAGED: name --> - WRONG (no BEGIN prefix)
  • <!-- END AUTO-MANAGED: name --> - WRONG (no name in closing tag)
  • <!-- AUTO-MANAGED section-name --> - WRONG (missing colon)

Section Definitions

Root CLAUDE.md Sections

Generate these sections in order:

Section NameHeadingRequiredPlaceholderContent
project-description## OverviewYes{{DESCRIPTION}}Project name, tagline, key features
build-commands## Build & Development CommandsYes{{BUILD_COMMANDS}}Build, test, lint, run commands
architecture## ArchitectureYes{{ARCHITECTURE}}Directory tree, key files, data flow
conventions## Code ConventionsYes{{CONVENTIONS}}Naming, imports, formatting rules
patterns## Detected PatternsYes{{PATTERNS}}AI-detected recurring code patterns
git-insights## Git InsightsNo{{GIT_INSIGHTS}}Key commits, design decisions
best-practices## Best PracticesNo{{BEST_PRACTICES}}From official Claude Code docs

Subtree CLAUDE.md Sections

Generate these sections in order:

Section NameHeadingRequiredPlaceholderContent
module-description## PurposeYes{{DESCRIPTION}}Module purpose and responsibility
architecture## Module ArchitectureYes{{ARCHITECTURE}}Module structure, key files
conventions## Module-Specific ConventionsYes{{CONVENTIONS}}Module-specific rules
dependencies## Key DependenciesYes{{DEPENDENCIES}}Module dependencies

Templates

Reference the template files for exact structure:

Root Template

@templates/CLAUDE.root.md.template

Subtree Template

@templates/CLAUDE.subtree.md.template

User Interactions

Use AskUserQuestion for:

  1. Existing CLAUDE.md handling (migrate/backup/merge/cancel)
  2. Subtree location confirmation
  3. Final approval before writing files

Output

After generating files, report:

  • Files created/modified
  • Sections populated
  • Any warnings or suggestions

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is codebase-analyzer?

Perfect for Code Analysis Agents needing automated CLAUDE.md file management and project structure analysis. This skill should be used when the user asks to initialize auto-memory, create CLAUDE.md, set up project memory, or runs the /auto-memory:init command. Analyzes codebase structure and generates CLAUDE

How do I install codebase-analyzer?

Run the command: npx killer-skills add severity1/claude-code-auto-memory/codebase-analyzer. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for codebase-analyzer?

Key use cases include: Automating CLAUDE.md file generation for project documentation, Migrating existing CLAUDE.md files to auto-managed formats, Debugging project structure issues through interactive analysis.

Which IDEs are compatible with codebase-analyzer?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for codebase-analyzer?

Requires existing project structure to analyze. Must follow specific guidelines for correct CLAUDE.md content generation. Limited to projects utilizing Claude Code plugins.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add severity1/claude-code-auto-memory/codebase-analyzer. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use codebase-analyzer immediately in the current project.

Related Skills

Looking for an alternative to codebase-analyzer or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
Design

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
AI

antd-commit-msg

Logo of ant-design
ant-design

Generate a single-line commit message for ant-design by reading the projects git staged area and recent commit style. Use when the user asks for a commit message, says msg, commit msg, 写提交信息, or wants

97.8k
0
Design