ankurhalder

Codebase Snapshot — Documentation skill for Claude Code

Documentation community

Local CLI and MCP server that packs a repository into budgeted Markdown parts, writes a manifest of every included and skipped file with the reason, masks secrets in place, and exits non-zero when the.

How to install Codebase Snapshot

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ankurhalder/codebase-snapshot and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codebase Snapshot does

Local CLI and MCP server that packs a repository into budgeted Markdown parts, writes a manifest of every included and skipped file with the reason, masks secrets in place, and exits non-zero when the snapshot drifts. For Claude, ChatGPT, Cursor and CI.

Alternatives in Documentation

  • Wiki Update — Update a single wiki page in place without running a full re-ingest 375 ★
  • Cog — 240+ Cognitive architecture for Claude Code -- persistent memory, self-reflection, and foresight via plain-tex 294 ★
  • Obsidian Export — Export a clean structured snapshot of the vault that any agent or tool can consume — flat JSON or markdown ind 277 ★

README

codebase-snapshot

codebase-snapshot

A snapshot you can prove is current.
Plain-text parts under a hard byte budget, an index of every file and every skipped
file with the reason, and a validate command that fails when the code moves.

npm version verify license: MIT node: 18 or newer documentation

npx codebase-snapshot generate  # no install: straight to the snapshot
snapshot                        # once installed: detects the project, sets it up, generates

That writes `./snapshot/` — a directory you can drop into a chat, a prompt, a RAG pipeline or a repository review. TypeScript and JavaScript first, but also Python, Go, Rust, Java/Kotlin, C#/.NET, PHP, Ruby, C/C++, Vue, Svelte and Astro, without configuration.

![Two ways to give a repository to a model: a dump that was silently truncated, and a snapshot with a manifest and a validator](https://raw.githubusercontent.com/ankurhalder/codebase-snapshot/main/docs/assets/how-it-works.svg)

Install · Quick start ·

Related Skills