From code-simplifier
This skill should be used when the user asks to "simplify code", "clean up code", "refactor for clarity", "reduce complexity", "make code more readable", or mentions wanting cleaner, simpler, or more maintainable code. Provides guidance on using the code-simplifier agent and installing required dependencies.
npx claudepluginhub nsheaps/ai-mktpl --plugin code-simplifierThis skill uses the workspace's default tool permissions.
Simplify and refine code for clarity, consistency, and maintainability while preserving all functionality. This skill leverages the `pr-review-toolkit:code-simplifier` agent from the official Claude Code plugins.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
Designs and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Designs, implements, and audits WCAG 2.2 AA accessible UIs for Web (ARIA/HTML5), iOS (SwiftUI traits), and Android (Compose semantics). Audits code for compliance gaps.
Simplify and refine code for clarity, consistency, and maintainability while preserving all functionality. This skill leverages the pr-review-toolkit:code-simplifier agent from the official Claude Code plugins.
This skill requires the pr-review-toolkit plugin from the official Claude plugins repository.
To verify the plugin is installed, run:
claude plugin list --json | jq '.[] | select(.id | contains("pr-review-toolkit"))'
If output is empty, the plugin needs to be installed.
Install using the Claude CLI:
# Install to user settings (available in all projects)
claude plugin install pr-review-toolkit@claude-plugins-official
# OR install to project settings (shared with team via git)
claude plugin install pr-review-toolkit@claude-plugins-official --scope project
# OR install to local settings (personal, not committed)
claude plugin install pr-review-toolkit@claude-plugins-official --scope local
Scope guidance:
user - Personal use across all projects (default)project - Team-shared, committed to .claude/settings.jsonlocal - Personal override, not committedPlugins load at session start. If the pr-review-toolkit:code-simplifier agent is not available after installation:
/session)# Resume most recent session
claude --continue
# OR resume specific session by ID (replace $SESSION_ID with your actual session ID)
claude --resume $SESSION_ID
The agent becomes available after restart.
Once the dependency is installed and available, delegate to the pr-review-toolkit:code-simplifier agent using the Task tool:
Task tool with subagent_type: "pr-review-toolkit:code-simplifier"
The code-simplifier agent:
Invoke the code-simplifier agent:
Simplify recent changes:
Use the pr-review-toolkit:code-simplifier agent to review and simplify the code I just wrote.
Target specific files:
Use the code-simplifier agent to clean up src/utils/parser.ts - it's gotten too complex.
Broader refactoring:
Launch the code-simplifier agent to review the authentication module for opportunities to reduce complexity.
If the agent is not available after installation:
Verify installation succeeded:
claude plugin list --json | jq '.[] | select(.id | contains("pr-review-toolkit"))'
Check if enabled:
claude plugin list --json | jq '.[] | select(.id | contains("pr-review-toolkit")) | {id, enabled}'
If disabled, enable it:
claude plugin enable pr-review-toolkit@claude-plugins-official
Restart Claude Code session (plugins load at session start)
The plugin is in claude-plugins-official, not claude-code-plugins. Use the correct identifier:
pr-review-toolkit@claude-plugins-officialpr-review-toolkit@claude-code-pluginsTo continue work after restarting:
# Continue most recent session in current directory
claude --continue
# Resume specific session (replace $SESSION_ID with your actual session ID)
claude --resume $SESSION_ID
# Fork session (new ID, preserves context)
claude --resume $SESSION_ID --fork-session
| Task | Command |
|---|---|
| Check if installed | claude plugin list --json | jq '.[] | select(.id | contains("pr-review-toolkit"))' |
| Install (user) | claude plugin install pr-review-toolkit@claude-plugins-official |
| Install (project) | claude plugin install pr-review-toolkit@claude-plugins-official --scope project |
| Enable | claude plugin enable pr-review-toolkit@claude-plugins-official |
| Resume session | claude --continue |
| List marketplaces | claude plugin marketplace list |