mcpField
C
codebase-packager

codebase-packager

github.com/oakossAgent workflows2090 installsUpdated 10w ago
Repository

About codebase-packager

A codebase analysis skill that packages repository context using Repomix, Gitingest, and llm-tldr. It helps agents and developers explore unfamiliar or large projects while limiting prompt overhead.

Key features

  1. 01Compressed context bundles with Repomix
  2. 02Repository digests with Gitingest
  3. 03Call graphs and impact tracing
  4. 04Semantic code search
  5. 05Architecture and dead-code analysis
  6. 06AST-based file extraction

Use cases

  1. 01Onboarding to an unfamiliar repository
  2. 02Tracing dependencies across files
  3. 03Preparing AI-ready context for large codebases
  4. 04Assessing change impact before edits

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oakoss/agent-skills --skill codebase-packager

After installing, type/codebase-packagerin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/
context-engineering-patterns.md
repomix-gitingest-mastery.md
semantic-graph-analysis.md

Details

From the project README

TLDR Expert

Overview

Achieves high-fidelity codebase comprehension at a fraction of the token cost through semantic layers, structured digests, and advanced context packaging. Combines Repomix for context packing, Gitingest for repository digests, and llm-tldr for graph-based code analysis.

When to use: Reducing prompt overhead for large codebases, onboarding to unfamiliar repositories, mapping cross-file dependencies, creating AI-optimized context bundles.

When NOT to use: Small single-file tasks, final implementation debugging (read the full file), real-time code editing.

Quick Reference

PatternTool / CommandKey Points
Context packingrepomix --include "src/**" --compressPackage subdirectories into AI-optimized bundles
Signatures onlyrepomix --include "src/**" --compressCompression extracts signatures via Tree-sitter
Repository digestgitingest . -o digest.txtPrompt-friendly summary for quick onboarding
Dependency contexttldr context funcName --project .LLM-ready context for a function with 95% token saving
Caller tracingtldr impact functionName .Reverse call graph to assess change blast radius
Forward call graphtldr calls .Build forward call graph across the project
Semantic searchtldr semantic "session expiry" .Find logic by meaning when naming is inconsistent
Architecture audittldr arch .Detect circular deps, layer violations, dead code
Dead code findertldr dead .Find unreachable functions with zero callers
File extractiontldr extract src/file.tsExtract AST (functions, classes, imports) from a file
Secret scanningRepomix built-in secretlintEnsure context bundles contain no keys or PII

Common Mistakes

MistakeCorrect Pattern
Reading entire large files without checking structure firstRun tldr extract to get signatures before reading full files
Using grep for dependency tracing across filesUse tldr impact for reverse call graph that understands dynamic imports
Packing node_modules or dist into context bundlesConfigure Repomix ignore-list to exclude generated and vendor directories
Assuming semantic search results are exhaustiveVerify top matches against actual source and cross-reference with rg
Running Repomix without compression on large directoriesUse --compress flag to stay within context window limits
Including irrelevant context that dilutes signal qualityFollow top-down priority: index, signatures, core logic, then adjacent context

Delegation

  • Repository structure discovery: Use Explore agent to map directory layout and identify key modules before building context bundles
  • Multi-step context packing workflow: Use Task agent to run Gitingest digest, Repomix compression, and llm-tldr indexing in sequence
  • Architecture analysis and planning: Use Plan agent to design context engineering strategy for large monorepos

References

Comments

Markdown supported