[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75CHB393BEZMKQZPMHM0JV7":3,"skill-same:01M75CHB393BEZMKQZPMHM0JV7":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M75CHB393BEZMKQZPMHM0JV7","context-budget",null,"Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fcontext-budget\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: context-budget\ndescription: Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.\norigin: ECC\n---\n\n# Context Budget\n\nAnalyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space.\n\n## When to Use\n\n- Session performance feels sluggish or output quality is degrading\n- You've recently added many skills, agents, or MCP servers\n- You want to know how much context headroom you actually have\n- Planning to add more components and need to know if there's room\n- Running `\u002Fcontext-budget` command (this skill backs it)\n\n## How It Works\n\n### Phase 1: Inventory\n\nScan all component directories and estimate token consumption:\n\n**Agents** (`agents\u002F*.md`)\n- Count lines and tokens per file (words × 1.3)\n- Extract `description` frontmatter length\n- Flag: files >200 lines (heavy), description >30 words (bloated frontmatter)\n\n**Skills** (`skills\u002F*\u002FSKILL.md`)\n- Count tokens per SKILL.md\n- Flag: files >400 lines\n- Check for duplicate copies in `.agents\u002Fskills\u002F` — skip identical copies to avoid double-counting\n\n**Rules** (`rules\u002F**\u002F*.md`)\n- Count tokens per file\n- Flag: files >100 lines\n- Detect content overlap between rule files in the same language module\n\n**MCP Servers** (`.mcp.json` or active MCP config)\n- Count configured servers and total tool count\n- Estimate schema overhead at ~500 tokens per tool\n- Flag: servers with >20 tools, servers that wrap simple CLI commands (`gh`, `git`, `npm`, `supabase`, `vercel`)\n\n**CLAUDE.md** (project + user-level)\n- Count tokens per file in the CLAUDE.md chain\n- Flag: combined total >300 lines\n\n### Phase 2: Classify\n\nSort every component into a bucket:\n\n| Bucket | Criteria | Action |\n|--------|----------|--------|\n| **Always needed** | Referenced in CLAUDE.md, backs an active command, or matches current project type | Keep |\n| **Sometimes needed** | Domain-specific (e.g. language patterns), not referenced in CLAUDE.md | Consider on-demand activation |\n| **Rarely needed** | No command reference, overlapping content, or no obvious project match | Remove or lazy-load |\n\n### Phase 3: Detect Issues\n\nIdentify the following problem patterns:\n\n- **Bloated agent descriptions** — description >30 words in frontmatter loads into every Task tool invocation\n- **Heavy agents** — files >200 lines inflate Task tool context on every spawn\n- **Redundant components** — skills that duplicate agent logic, rules that duplicate CLAUDE.md\n- **MCP over-subscription** — >10 servers, or servers wrapping CLI tools available for free\n- **CLAUDE.md bloat** — verbose explanations, outdated sections, instructions that should be rules\n\n### Phase 4: Report\n\nProduce the context budget report:\n\n```\nContext Budget Report\n═══════════════════════════════════════\n\nTotal estimated overhead: ~XX,XXX tokens\nContext model: Claude Sonnet (200K window)\nEffective available context: ~XXX,XXX tokens (XX%)\n\nComponent Breakdown:\n┌─────────────────┬────────┬───────────┐\n│ Component       │ Count  │ Tokens    │\n├─────────────────┼────────┼───────────┤\n│ Agents          │ N      │ ~X,XXX    │\n│ Skills          │ N      │ ~X,XXX    │\n│ Rules           │ N      │ ~X,XXX    │\n│ MCP tools       │ N      │ ~XX,XXX   │\n│ CLAUDE.md       │ N      │ ~X,XXX    │\n└─────────────────┴────────┴───────────┘\n\nWARNING: Issues Found (N):\n[ranked by token savings]\n\nTop 3 Optimizations:\n1. [action] → save ~X,XXX tokens\n2. [action] → save ~X,XXX tokens\n3. [action] → save ~X,XXX tokens\n\nPotential savings: ~XX,XXX tokens (XX% of current overhead)\n```\n\nIn verbose mode, additionally output per-file token counts, line-by-line breakdown of the heaviest files, specific redundant lines between overlapping components, and MCP tool list with per-tool schema size estimates.\n\n## Examples\n\n**Basic audit**\n```\nUser: \u002Fcontext-budget\nSkill: Scans setup → 16 agents (12,400 tokens), 28 skills (6,200), 87 MCP tools (43,500), 2 CLAUDE.md (1,200)\n       Flags: 3 heavy agents, 14 MCP servers (3 CLI-replaceable)\n       Top saving: remove 3 MCP servers → -27,500 tokens (47% overhead reduction)\n```\n\n**Verbose mode**\n```\nUser: \u002Fcontext-budget --verbose\nSkill: Full report + per-file breakdown showing planner.md (213 lines, 1,840 tokens),\n       MCP tool list with per-tool sizes, duplicated rule lines side by side\n```\n\n**Pre-expansion check**\n```\nUser: I want to add 5 more MCP servers, do I have room?\nSkill: Current overhead 33% → adding 5 servers (~50 tools) would add ~25,000 tokens → pushes to 45% overhead\n       Recommendation: remove 2 CLI-replaceable servers first to stay under 40%\n```\n\n## Best Practices\n\n- **Token estimation**: use `words × 1.3` for prose, `chars \u002F 4` for code-heavy files\n- **MCP is the biggest lever**: each tool schema costs ~500 tokens; a 30-tool server costs more than all your skills combined\n- **Agent descriptions are loaded always**: even if the agent is never invoked, its description field is present in every Task tool context\n- **Verbose mode for debugging**: use when you need to pinpoint the exact files driving overhead, not for regular audits\n- **Audit after changes**: run after adding any agent, skill, or MCP server to catch creep early\n","# Context Budget\n\nAnalyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space.\n\n## When to Use\n\n- Session performance feels sluggish or output quality is degrading\n- You've recently added many skills, agents, or MCP servers\n- You want to know how much context headroom you actually have\n- Planning to add more components and need to know if there's room\n- Running `\u002Fcontext-budget` command (this skill backs it)\n\n## How It Works\n\n### Phase 1: Inventory\n\nScan all component directories and estimate token consumption:\n\n**Agents** (`agents\u002F*.md`)\n- Count lines and tokens per file (words × 1.3)\n- Extract `description` frontmatter length\n- Flag: files >200 lines (heavy), description >30 words (bloated frontmatter)\n\n**Skills** (`skills\u002F*\u002FSKILL.md`)\n- Count tokens per SKILL.md\n- Flag: files >400 lines\n- Check for duplicate copies in `.agents\u002Fskills\u002F` — skip identical copies to avoid double-counting\n\n**Rules** (`rules\u002F**\u002F*.md`)\n- Count tokens per file\n- Flag: files >100 lines\n- Detect content overlap between rule files in the same language module\n\n**MCP Servers** (`.mcp.json` or active MCP config)\n- Count configured servers and total tool count\n- Estimate schema overhead at ~500 tokens per tool\n- Flag: servers with >20 tools, servers that wrap simple CLI commands (`gh`, `git`, `npm`, `supabase`, `vercel`)\n\n**CLAUDE.md** (project + user-level)\n- Count tokens per file in the CLAUDE.md chain\n- Flag: combined total >300 lines\n\n### Phase 2: Classify\n\nSort every component into a bucket:\n\n| Bucket | Criteria | Action |\n|--------|----------|--------|\n| **Always needed** | Referenced in CLAUDE.md, backs an active command, or matches current project type | Keep |\n| **Sometimes needed** | Domain-specific (e.g. language patterns), not referenced in CLAUDE.md | Consider on-demand activation |\n| **Rarely needed** | No command reference, overlapping content, or no obvious project match | Remove or lazy-load |\n\n### Phase 3: Detect Issues\n\nIdentify the following problem patterns:\n\n- **Bloated agent descriptions** — description >30 words in frontmatter loads into every Task tool invocation\n- **Heavy agents** — files >200 lines inflate Task tool context on every spawn\n- **Redundant components** — skills that duplicate agent logic, rules that duplicate CLAUDE.md\n- **MCP over-subscription** — >10 servers, or servers wrapping CLI tools available for free\n- **CLAUDE.md bloat** — verbose explanations, outdated sections, instructions that should be rules\n\n### Phase 4: Report\n\nProduce the context budget report:\n\n```\nContext Budget Report\n═══════════════════════════════════════\n\nTotal estimated overhead: ~XX,XXX tokens\nContext model: Claude Sonnet (200K window)\nEffective available context: ~XXX,XXX tokens (XX%)\n\nComponent Breakdown:\n┌─────────────────┬────────┬───────────┐\n│ Component       │ Count  │ Tokens    │\n├─────────────────┼────────┼───────────┤\n│ Agents          │ N      │ ~X,XXX    │\n│ Skills          │ N      │ ~X,XXX    │\n│ Rules           │ N      │ ~X,XXX    │\n│ MCP tools       │ N      │ ~XX,XXX   │\n│ CLAUDE.md       │ N      │ ~X,XXX    │\n└─────────────────┴────────┴───────────┘\n\nWARNING: Issues Found (N):\n[ranked by token savings]\n\nTop 3 Optimizations:\n1. [action] → save ~X,XXX tokens\n2. [action] → save ~X,XXX tokens\n3. [action] → save ~X,XXX tokens\n\nPotential savings: ~XX,XXX tokens (XX% of current overhead)\n```\n\nIn verbose mode, additionally output per-file token counts, line-by-line breakdown of the heaviest files, specific redundant lines between overlapping components, and MCP tool list with per-tool schema size estimates.\n\n## Examples\n\n**Basic audit**\n```\nUser: \u002Fcontext-budget\nSkill: Scans setup → 16 agents (12,400 tokens), 28 skills (6,200), 87 MCP tools (43,500), 2 CLAUDE.md (1,200)\n       Flags: 3 heavy agents, 14 MCP servers (3 CLI-replaceable)\n       Top saving: remove 3 MCP servers → -27,500 tokens (47% overhead reduction)\n```\n\n**Verbose mode**\n```\nUser: \u002Fcontext-budget --verbose\nSkill: Full report + per-file breakdown showing planner.md (213 lines, 1,840 tokens),\n       MCP tool list with per-tool sizes, duplicated rule lines side by side\n```\n\n**Pre-expansion check**\n```\nUser: I want to add 5 more MCP servers, do I have room?\nSkill: Current overhead 33% → adding 5 servers (~50 tools) would add ~25,000 tokens → pushes to 45% overhead\n       Recommendation: remove 2 CLI-replaceable servers first to stay under 40%\n```\n\n## Best Practices\n\n- **Token estimation**: use `words × 1.3` for prose, `chars \u002F 4` for code-heavy files\n- **MCP is the biggest lever**: each tool schema costs ~500 tokens; a 30-tool server costs more than all your skills combined\n- **Agent descriptions are loaded always**: even if the agent is never invoked, its description field is present in every Task tool context\n- **Verbose mode for debugging**: use when you need to pinpoint the exact files driving overhead, not for regular audits\n- **Audit after changes**: run after adding any agent, skill, or MCP server to catch creep early\n",{"name":5,"origin":23,"description":7},"ECC","main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fcontext-budget",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add agisota\u002Fold-one --skill context-budget",{"tool":39,"command":40},"bunx","bunx skills add agisota\u002Fold-one --skill context-budget",{"tool":42,"command":43},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill context-budget","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fcontext-budget\u002FSKILL.md",true,[],[48,55,62,71,78,85],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":66,"licenseFileUrl":67,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]