agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Ultra-fast parallel code simplification using 10 sub-agents for 10x speedup
How it fires
How this command gets triggered: by you, by Claude, or both.
/simplifyContext preview
What this command does when you run it.
Ultra-fast parallel code simplification using 10 sub-agents for 10x speedup
allowed-tools: Read, Write, Edit, MultiEdit, Bash(rg:*), Bash(fd:*), Bash(git:*), Bash(wc:*), Bash(gdate:*), Bash(head:*), Bash(grep:*), Bash(xargs:*), Task name: "Simplify" description: "Ultra-fast parallel code simplification using 10 sub-agents for 10x speedup" author: "wcygan" tags: ["code","refactor"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
**IMMEDIATELY DEPLOY 10 PARALLEL SUB-AGENTS** for instant comprehensive simplification
STEP 1: Initialize Simplification Session
STEP 2: **LAUNCH ALL 10 AGENTS SIMULTANEOUSLY**
**NO SEQUENTIAL ANALYSIS** - All agents work in parallel:
1. **Complexity Analysis Agent**: Identify cyclomatic complexity hotspots 2. **Method Extraction Agent**: Find long functions to decompose 3. **Conditional Logic Agent**: Simplify complex boolean expressions 4. **Loop Modernization Agent**: Convert imperative to functional patterns 5. **Naming Analysis Agent**: Identify cryptic names and abbreviations 6. **Code Duplication Agent**: Find repeated patterns for extraction 7. **Nesting Reduction Agent**: Eliminate deep nesting structures 8. **Dead Code Agent**: Find unused code and redundant logic 9. **Test Coverage Agent**: Identify untested complex code 10. **Architecture Agent**: Analyze module coupling and cohesion
Each agent saves findings to: `/tmp/simplify-results-$SESSION_ID/agent-N.json`
Think deeply about code complexity patterns while maximizing parallel execution.
**Expected speedup: 10x faster analysis and refactoring planning**
IF $ARGUMENTS specifies file or directory:
ELSE:
TRY:
CATCH (analysis_scope_too_large):
STEP 2: Simplification Strategy Planning
Think harder about optimal refactoring approach and risk assessment.
STEP 3: Method Extraction and Function Decomposition
FOR EACH complex function IN analysis_targets:
Think about optimal decomposition strategy for each function.
Example transformation pattern:
BEFORE: 50-line function with mixed concerns AFTER: 5-10 line orchestrator + 3-5 focused helper methods
Update files using MultiEdit for batch refactoring operations.
STEP 4: Conditional Logic Simplification
Apply transformations:
STEP 5: Loop and Iteration Modernization
Framework-specific optimizations:
STEP 6: Naming and Documentation Enhan
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies