From ftitos-claude-code
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.
npx claudepluginhub nassimbf/ftitos-claude-codeThis skill uses the workspace's default tool permissions.
Analyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space.
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Analyze token overhead across every loaded component in a Claude Code session and surface actionable optimizations to reclaim context space.
Scan all component directories and estimate token consumption:
Agents (agents/*.md)
Skills (skills/*/SKILL.md)
Rules (rules/**/*.md)
MCP Servers (active MCP config)
CLAUDE.md (project + user-level)
| Bucket | Criteria | Action |
|---|---|---|
| Always needed | Referenced in CLAUDE.md, backs an active command, or matches current project type | Keep |
| Sometimes needed | Domain-specific, not referenced in CLAUDE.md | Consider on-demand activation |
| Rarely needed | No command reference, overlapping content | Remove or lazy-load |
Context Budget Report
Total estimated overhead: ~XX,XXX tokens
Context model: Claude Sonnet (200K window)
Effective available context: ~XXX,XXX tokens (XX%)
Component Breakdown:
| Component | Count | Tokens |
|-----------|-------|--------|
| Agents | N | ~X,XXX |
| Skills | N | ~X,XXX |
| Rules | N | ~X,XXX |
| MCP tools | N | ~XX,XXX|
| CLAUDE.md | N | ~X,XXX |
WARNING: Issues Found (N):
[ranked by token savings]
Top 3 Optimizations:
1. [action] -> save ~X,XXX tokens
2. [action] -> save ~X,XXX tokens
3. [action] -> save ~X,XXX tokens
Potential savings: ~XX,XXX tokens (XX% of current overhead)
words x 1.3 for prose, chars / 4 for code-heavy files