simplify

Run the code-simplifier agent to clean up and refine code on this branch.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "simplify" with this command: npx skills add skinnyandbald/fish-skills/skinnyandbald-fish-skills-simplify

Code Simplifier

Run the code-simplifier agent to clean up and refine code on this branch.

Instructions

  • First, determine the scope of changes to simplify:

Check if we're on a PR branch

gh pr view --json number,headRefName 2>/dev/null || echo "Not on a PR branch"

Get the current branch

git branch --show-current

Show files changed vs main

git diff --name-only main...HEAD 2>/dev/null || git diff --name-only origin/main...HEAD

  • Use the Task tool to run the code-simplifier agent:

Task tool with subagent_type: code-simplifier:code-simplifier

Prompt for the agent based on scope:

If $ARGUMENTS.scope is empty or "branch": "Simplify and refine all code changes on this branch compared to main. Focus on recently modified files. Show me a cleaned-up version with explanations of what was simplified."

If $ARGUMENTS.scope is "staged": "Simplify and refine only the staged changes. Show me a cleaned-up version."

If $ARGUMENTS.scope starts with "file:": "Simplify and refine the specified file: [extract path]. Show me a cleaned-up version."

If $ARGUMENTS.scope is "all": "Do a comprehensive simplification pass on recently modified code in this codebase. Show me a cleaned-up version with explanations."

  • After the agent completes, summarize:

  • What files were simplified

  • Key changes made (removed duplication, improved naming, etc.)

  • Any suggestions the agent couldn't auto-apply

Usage Examples

/simplify # Simplify branch changes vs main /simplify staged # Only staged changes /simplify file:src/lib/utils.ts # Specific file /simplify all # Broader pass on recent changes

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

counselors

No summary provided by upstream source.

Repository SourceNeeds Review
General

simplify-parallel

No summary provided by upstream source.

Repository SourceNeeds Review
General

pr-resolution

No summary provided by upstream source.

Repository SourceNeeds Review
General

deepproduct

No summary provided by upstream source.

Repository SourceNeeds Review