skills/optimize-claudemd/SKILL.md
This skill should be used when the user says "optimize claude.md", "claude.md is too big", "shrink claude.md", "claude.md taking too many tokens", "trim claude.md", "rewrite claude.md", or "my claude.md is bloated".
npx skillsauth add kyuna0312/kyuna_token_saver Optimize Claude.mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read, analyze, and rewrite claude.md (or CLAUDE.md) to reduce token cost while preserving all meaningful constraints. Target: under 300 tokens.
Check these locations in order:
./CLAUDE.md (project root)./claude.md~/.claude/CLAUDE.md (global)~/.claude/claude.mdRead the file. Count approximate word count.
Categorize each section:
| Category | Keep? | Action | |----------|-------|--------| | Coding style rules | Yes | Compress to bullets | | Project structure | Yes | One-line per item | | Important constraints | Yes | Keep verbatim | | Pleasantries / tone instructions | Maybe | Cut if not essential | | Repeated instructions | No | Remove duplicates | | Obvious defaults | No | Remove ("always use git" etc.) | | Long explanations | No | Replace with one-line rule | | Examples longer than 3 lines | No | Remove or move to references/ |
Apply these compression rules:
Target structure:
# Project: [NAME]
Stack: [tech stack, one line]
## Code Style
- [rule 1]
- [rule 2]
## Constraints
- [hard constraint 1]
- [hard constraint 2]
## Structure
- [key path 1]: [purpose]
- [key path 2]: [purpose]
Present:
BEFORE: ~[N] words (~[N*1.3] tokens)
AFTER: ~[N] words (~[N*1.3] tokens)
Reduction: [%]%
Show the optimized version. Ask user to confirm before writing.
On confirmation, overwrite the file with the optimized version.
references/claudemd-templates.md — Optimized claude.md templates for common project typestools
This skill should be used when the user asks to "show recent changes", "show forge changelog", "show changelog for <project>", "what did I add this week", "what files did I touch today", "what packages keep recurring", "what drifts from the template", "review template suggestions", "show pending forge suggestions", "sync forge templates", "apply template suggestion", or "compute back-mapping suggestions". Provides read, drift-discovery, and template back-mapping workflows that wrap the `forge-db` MCP tools (`get_changelog`, `compute_suggestions`, `apply_suggestion`).
development
This skill should be used when the user says "build a wiki", "maintain a wiki", "ingest docs into wiki", "query my wiki", "set up llm wiki", "wiki-based knowledge base", "stop re-reading docs every session", "persistent knowledge base", or "compress my docs into wiki pages".
testing
Use this skill when the user says "/task_brain", "break down this task", "plan this", "decompose this problem", or when a task has multiple moving parts, unclear dependencies, or high ambiguity.
tools
This skill should be used when the user says "optimize settings.json", "tune settings for low tokens", "settings.json for performance", "disable auto memory", "configure for token savings", "minimal context window settings", or "settings taking too many tokens".