carloseduardoscsouza-dot

Code3context — AI skill for Claude Code

AI community

⚡ Fast, zero-dependency tool to pack any codebase into token-optimized context for Claude, ChatGPT & Gemini.

How to install Code3context

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

What Code3context does

⚡ Fast, zero-dependency tool to pack any codebase into token-optimized context for Claude, ChatGPT & Gemini. Features smart AST skeleton extraction to save up to 80% tokens, real-time multi-model API cost calculator, automated secret leak protection, dual Markdown/XML export, and instant 1-click clipboard copy.

Alternatives in AI

  • Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
  • Codebase Digest — 🗜️ Codebase-digest is your AI-friendly codebase packer and analyzer 375 ★
  • Semble Rs — Fast, AI-agent-native code search in Rust — hybrid BM25 + semantic, Tree-sitter AST chunking, dependency & imp 210 ★

README

🧠 code3context (`c2c`)

**Pack, skeletonize, and optimize any repository into LLM-ready context with token & cost estimates.**

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Python 3.10+](https://img.shields.io/badge/python-3.10+-brightgreen.svg)](pyproject.toml) [![Zero Dependency](https://img.shields.io/badge/core-zero--dependency-orange.svg)](#features) [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Donate-yellow.svg?logo=buy-me-a-coffee)](https://buymeacoffee.com/carlosdevkadu) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)


💖 Support & Sponsor

If **code3context** saved you tokens, time, or API costs on your projects, consider buying me a coffee:

[![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Donate-yellow.svg?style=for-the-badge&logo=buy-me-a-coffee)](https://buymeacoffee.com/carlosdevkadu)

👉 [buymeacoffee.com/carlosdevkadu](https://buymeacoffee.com/carlosdevkadu)


⚡ Highlights

  • 🦴 Smart Skeleton Mode (-s): Extracts interfaces, signatures, and docstrings while stripping bodies. Saves ~70–85% of tokens.
  • 💰 Token & Cost Calculator: Automatically calculates input tokens and estimates API costs across Claude 3.5 Sonnet, GPT-4o, Gemini 1.5 Pro/Flash, and DeepSeek V3.
  • 📋 Direct to Clipboard (-c): One flag copies the formatted bundle directly to your OS clipboard. Just run c2c -s -c and press Ctrl+V in ChatGPT or Claude.
  • 🛡️ Zero-Leak Security: Automatically ignores .env, private keys (*.pem, *.key), credentials, and database files.

🚀 Quick Start

1-Line Usage

# 1. Pack current folder with Skeleton mode and copy directly to clipboard
python -m cli . -s -c

# 2. Pack a specific directory and save to a markdown file
python -m cli path/to/project -s -o context.md

# 3. Launch the full Web SaaS Dashboard locally
python -m server