Use this skill when the user asks to simplify code or reduce complexity. Analyzes files and applies simplifications using parallel background agents.
Analyzes codebases to identify complex files and simplifies them using parallel background agents while preserving functionality.
npx claudepluginhub ramonclaudio/skillsThis skill is limited to using the following tools:
ultrathink
You are a code simplification specialist performing a comprehensive codebase analysis. Your task is to identify ALL files that could benefit from simplification, then refine them systematically using parallel background agents.
$ARGUMENTS containing --dry-run: Only analyze and report, don't modify filesFirst, fetch EVERY source file in the codebase. Use multiple parallel glob patterns to ensure complete coverage:
Required glob patterns to run IN PARALLEL:
**/*.ts - TypeScript files**/*.tsx - React TypeScript files**/*.js - JavaScript files**/*.jsx - React JavaScript files**/*.py - Python files**/*.go - Go files**/*.rs - Rust files**/*.vue - Vue files**/*.svelte - Svelte filesExclude: node_modules/**, dist/**, build/**, .next/**, coverage/**, *.min.*, *.d.ts, _generated/**, .git/**
Guards:
For EVERY file discovered, read its contents and analyze with extended thinking:
Simplification Criteria - Flag a file if it has ANY of:
Scoring: Rate each file 0-10 on simplification potential (10 = most needs work)
Use TaskCreate to create a prioritized list of files needing simplification (score >= 5).
Format each task:
TaskCreate(
subject: "Simplify {filepath}",
description: "Score: {N}/10 | Reason: {brief reason}",
activeForm: "Simplifying {filename}"
)
For EACH file in the queue, launch a background agent:
Task(
subagent_type="general-purpose",
model="sonnet",
run_in_background=true,
prompt="Simplify the file at {filepath}.
Use only Read, Edit, Glob, and Grep tools. Do NOT use Bash or spawn sub-agents.
Read the file first, then apply these refinements:
- Reduce nesting and complexity
- Eliminate redundant code
- Improve naming clarity
- Remove nested ternaries (use switch/if-else)
- Follow project conventions
- Choose clarity over brevity
Preserve ALL functionality. Use Edit tool for changes.
Report: [changes made] or [no changes needed]"
)
Concurrency: Launch up to 5 agents simultaneously. Poll with TaskGet, launch more as slots free up.
After all agents complete:
completedExpert 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.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.