From context_forge
This skill should be used when the user says "check claude.md size", "is my claude.md too big", "claude.md token cost", "how big is claude.md", or when triggered automatically on session start to warn about oversized claude.md files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/context_forge:check-claudemd-sizeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Measure and report claude.md file sizes. Warn when files exceed optimal token budget. Suggest optimization when needed.
Measure and report claude.md file sizes. Warn when files exceed optimal token budget. Suggest optimization when needed.
| Size | Status | Action |
|---|---|---|
| < 300 words | Optimal | No action needed |
| 300-600 words | Acceptable | Monitor growth |
| 600-1,000 words | Bloated | Run optimize-claudemd |
| > 1,000 words | Critical | Immediate optimization needed |
# Global
wc -w ~/.claude/CLAUDE.md 2>/dev/null
wc -w ~/.claude/claude.md 2>/dev/null
# Project
wc -w ./CLAUDE.md 2>/dev/null
wc -w ./claude.md 2>/dev/null
CLAUDE.MD SIZE CHECK
====================
Global (~/.claude/CLAUDE.md): [N] words ≈ [N*1.3] tokens [STATUS]
Project (./CLAUDE.md): [N] words ≈ [N*1.3] tokens [STATUS]
Combined constant cost: ~[N] tokens per response
[WARNING if any file is Bloated/Critical]
Run: /context_forge:optimize-claudemd to reduce size
This skill is called by the SessionStart hook. On session start:
Warning format:
⚠ TOKEN SAVER: claude.md is [N] words ([STATUS])
Run /context_forge:optimize-claudemd to reduce by ~[%]%
Common causes of bloat:
references/ filesEmit structured output as LTX rows when reporting file sizes.
@v1:file|words|tokens|level
| Field | Description |
|---|---|
file | Path to the claude.md file checked |
words | Raw word count |
tokens | Estimated tokens (words * 1.3, rounded) |
level | ok, warn (600–999 words), critical (≥1000 words) |
Example:
@v1:file|words|tokens|level
~/.claude/CLAUDE.md|850|1105|critical
./CLAUDE.md|320|416|ok
npx claudepluginhub kyuna0312/context_forge --plugin context_forgeSearches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.