Codebase Digest
Description
ποΈ Codebase-digest is your AI-friendly codebase packer and analyzer. Features 60+ coding prompts and generates structured overviews with metrics. Ideal for feeding projects to LLMs like GPT-4, Claude, PaLM, and Gemini for code analysis and understanding.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Codebase Digest
[](https://badge.fury.io/py/codebase-digest) [](https://opensource.org/licenses/MIT)
Codebase Digest is a command-line tool written in Python that helps you analyze and understand your codebase. It provides a structured overview of your project's directory structure, file sizes, token counts, and even consolidates the content of all text-based files into a single output for easy analysis with Large Language Models (LLMs).

Table of Contents
- Features
- Installation
- Usage
- Configuration
- Ignore Functionality
- LLM Prompts for Enhanced Analysis
- Contributing
- License
Features
- π Directory Tree Visualization: Generate a hierarchical view of your project structure
- π Codebase Statistics: Calculate total files, directories, code size, and token counts
- π File Content Consolidation: Combine all text-based files into a single output
- π« Flexible Ignore System: Support for custom patterns, defaults, and
.gitignorefiles - π¨ Multiple Output Formats: Choose between text, JSON, Markdown, XML, or HTML
- π Colored Console Output: Visually appealing and informative summaries
- π§ LLM Analysis Support: Comprehensive prompt library for in-depth codebase analysis
Installation
Via pip (Recommended)
pip install codebase-digest
From source
git clone https://github.com/kamilstanuch/codebase-digest.git
cd codebase-digest
pip install -r requirements.txt
Usage
Basic usage:
cdigest [path_to_directory] [options]
Examples:
Analyze a project with default settings:
cdigest /path/to/my_projectAnalyze wi
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
π₯ The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
βAI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.π― εε«δΏ‘ζ―θΏθ½½οΌδ½ η
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI