Naeha-S/ctxcap
Offline token-budget linter for agent context files — measures CLAUDE.md/AGENTS.md, finds dead references, returns a ranked plan.
field: Developer tools
ARCHETYPE
Pragmatist
A balanced, no-drama setup: some rules, some tools, nothing extreme.
Copy this rig
# review before running: this installs third-party code
$ npx degit Naeha-S/ctxcap/.claude ./rig-ctxcap # inspect, then merge into .claude/ MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.
$ npx degit Naeha-S/ctxcap/.claude/skills/ctxcap .claude/skills/ctxcap $ npx degit Naeha-S/ctxcap/skills/context-budget .claude/skills/context-budget
This rig commits no guardrails. Here is the community baseline instead — the deny/ask rules most often found across all 16.2k rigs:
{
"permissions": {
"deny": [
"Read(./.env)",
"Read(./.env.*)",
"Read(**/.env)",
"Read(~/.ssh/**)",
"Bash(git push --force:*)",
"Read(**/*.pem)",
"Read(.env)",
"Read(~/.aws/**)",
"Read(**/*.key)",
"Read(**/.env.*)",
"Bash(git push --force*)",
"Bash(rm -rf:*)",
"Bash(rm -rf *)",
"Bash(sudo *)",
"Bash(sudo:*)",
"Bash(rm -rf /)",
"Bash(git push -f:*)",
"Read(.env.*)",
"Bash(git reset --hard*)",
"Bash(rm -rf /*)"
],
"ask": [
"Bash(git push:*)",
"Bash(git push *)",
"Bash(gh pr merge *)",
"Bash(git commit:*)",
"Bash(rm *)",
"Bash(gh pr merge:*)",
"Bash(gh pr create *)",
"Bash(git reset --hard:*)",
"Bash(npm publish:*)",
"Bash(git rebase *)"
]
}
} Skills (2)
Hooks (2)
| event | matcher | runs |
|---|---|---|
| PostToolUse | Edit|Write|MultiEdit | npx -y ctxcap@1.5.1 hook post-edit |
| Stop | * | npx -y ctxcap@1.5.1 hook stop |
Cursor rules (1)
ctxcap
Similar rigs
IFAKA/claude-code-dotfiles
Shareable Claude Code context optimization config — curl install
Minimalist 498 tok · · Q0
gg2762/Claude-Code-Skill-Architecture-and-Token-Management
The non-obvious setup that keeps a Claude Code project sharp as it grows: skill architecture, context budget, document ingestion, and permission/trust. The things I wish I knew before I started.
Minimalist 348 tok · · Q0
cveralyon/axel-setup
AXEL — Claude Code team configuration package. Additive bootstrap with hooks, agents, commands, skills, and plugins.
Pragmatist 4.0k tok · · Q8
ngc-shj/claude-code-config
Safe default settings for Claude Code with agentic multi-model architecture
Fort Knox 1.9k tok · · Q36