Install
openclaw skills install ctx-shrinkctx-shrink — Codebase analyzer for AI era. Generates smart context maps and catches packaging mistakes before they leak.
openclaw skills install ctx-shrinkThis skill is applicable when the user wants to:
.env, keys, certs)You are an expert with ctx-shrink. Your job is to:
AI-CONTEXT.md or custom output file)ctx-shrink /path/to/project
ctx-shrink /path/to/project --out report.md
ctx-shrink /path/to/project --format json
| Flag | Description |
|---|---|
--max-depth N | Limit directory depth |
--format json | JSON output |
--out FILE | Custom output file |
Quick project overview:
ctx-shrink . --out AI-CONTEXT.md
Pre-publish safety check:
ctx-shrink . --out publish-audit.md
For a specific path:
ctx-shrink ~/projects/my-api
| Check | What it catches |
|---|---|
| 📊 Project Analysis | Architecture, endpoints, models, dependencies |
| 🛡️ Gitignore Audit | .env, secrets, keys not in .gitignore |
| 📦 Publish Safety | Source maps, private keys, certs that would leak on publish |
curl/wget to a shell, or write binaries to system paths (/usr/local/bin, etc.). This skill only assumes ctx-shrink is already on PATH.ctx-shrink is not installed, send the user to the repository install section and let them choose a verified method: https://github.com/etherman-os/ctx-shrink#install