From code-simplifier-tldr
TLDR-aware code simplifier that uses AST summaries for context and reads only target files in full. Achieves 80%+ token savings on large codebases. Use when user says /simplify, wants to reduce code complexity, remove dead code, eliminate redundant abstractions, or simplify over-engineered patterns. Merkle-integrated for O(1) cache lookups.
npx claudepluginhub shihwesley/shihwesley-plugins --plugin code-simplifier-tldrThis skill uses the workspace's default tool permissions.
This simplifier reads your codebase through AST summaries (TLDR) instead of raw source. It surveys file structures at ~5% token cost, identifies what actually needs changing, then requests only the specific line ranges it will modify. When mercator-ai is installed, the merkle manifest provides O(1) change detection — the agent skips files that haven't changed since the last mapping, cutting tok...
Applies Acme Corporation brand guidelines including colors, fonts, layouts, and messaging to generated PowerPoint, Excel, and PDF documents.
Builds DCF models with sensitivity analysis, Monte Carlo simulations, and scenario planning for investment valuation and risk assessment.
Calculates profitability (ROE, margins), liquidity (current ratio), leverage, efficiency, and valuation (P/E, EV/EBITDA) ratios from financial statements in CSV, JSON, text, or Excel for investment analysis.
This simplifier reads your codebase through AST summaries (TLDR) instead of raw source. It surveys file structures at ~5% token cost, identifies what actually needs changing, then requests only the specific line ranges it will modify. When mercator-ai is installed, the merkle manifest provides O(1) change detection — the agent skips files that haven't changed since the last mapping, cutting token usage by 96% on typical runs.
docs/.mercator.json exists, diff against previous hashes to find changed files. Otherwise fall back to git diff --name-only HEAD~3.SIMPLIFICATION_LOG.md in the project root with before/after comparisons and line savings.# Simplify recently modified files
/simplify
# Simplify a specific file
/simplify src/api/auth.ts
# Simplify by pattern
/simplify src/components/*.tsx
$ /simplify src/utils/parser.ts
# Agent reads TLDR summary of parser.ts (~50 tokens instead of ~1000)
# Identifies lines 45-80 as overly nested conditional chain
# Reads only lines 40-85 of the source
# Refactors to early-return pattern
# Logs: parser.ts — flattened nested conditionals, 35 → 22 lines
git diff which still works but doesn't cache across sessions.The full agent protocol is defined in agents/code-simplifier.md. It covers merkle integration, TLDR parsing, token budget management, and the five core simplification principles (preserve functionality, apply project standards, enhance clarity, maintain balance, focus scope).
The slash command entry point is commands/simplify.md.