plugins/code-simplifier/skills/code-simplifier/SKILL.md
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 skillsauth add nsheaps/ai-mktpl Code SimplifierInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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 |
tools
Manually reproduce what the github-app plugin's SessionStart hook does to make a GitHub App installation token usable in the current session — materialize the PEM, generate the token, isolate GH_CONFIG_DIR, write the runtime env file, and wire CLAUDE_ENV_FILE so every Bash call sees GH_TOKEN/GITHUB_TOKEN. Use when the hook did not run, the token is missing from the environment, or a shell/teammate needs the token wired up by hand. <example>GH_TOKEN isn't set even though github-app is configured</example> <example>the github-app SessionStart hook didn't run, set up the token manually</example> <example>wire the github app token into CLAUDE_ENV_FILE</example> <example>gh keeps falling back to the wrong account, isolate GH_CONFIG_DIR</example>
tools
Manually configure the GitHub App bot git identity the way the github-app plugin's SessionStart hook does — resolve the app slug and bot user ID, build the <slug>[bot] name and noreply email, set GIT_AUTHOR_*/GIT_COMMITTER_* env vars, and write an isolated GIT_CONFIG_GLOBAL with the gh auth git-credential helper. Use when commits are attributed to the wrong account, "Author identity unknown" appears, or git identity must be set up by hand. <example>my commits are showing up as the handler, not the bot</example> <example>git says Author identity unknown after the github-app hook ran</example> <example>configure the github app bot git identity manually</example> <example>set up the gh credential helper for git push</example>
tools
Manages spec files for requirements capture and validation
tools
# Bash Chaining Alternatives This skill teaches you how to work around the bash command chaining restriction enforced by this plugin. ## Why Chaining is Blocked The `bash-command-rejection` plugin blocks these operators: | Operator | Name | Why Blocked | | -------- | ---------- | ----------------------------------------------------------------------------------- | | `&&` | AND chain | Runs cmd2 only if cmd1 su