Simplify

From sd0xdev/sd0x-dev-flow · View interactive version

Simplify is an AI agent skill from the GitHub repository sd0xdev/sd0x-dev-flow. Wrap-up refactoring — simplify code, eliminate duplication, preserve behavior

How to use this skill

Skill file

Code Simplification

Trigger

When NOT to Use

Agent Dispatch

Primary: Code Simplification

Agent({
  description: "Simplify code, eliminate duplication, preserve behavior",
  subagent_type: "code-simplifier",
  prompt: `Simplify the code at: $ARGUMENTS
Follow the task steps and constraints defined in this skill.`
})

Secondary: Refactoring Risk Review

After simplification, dispatch risk assessment:

Agent({
  description: "Review refactoring risk and verify behavior preservation",
  subagent_type: "refactor-reviewer",
  prompt: `Review the refactoring changes just applied.
Check behavior preservation, dependency impact, test coverage, and rollback risk.`
})

Task

For $ARGUMENTS:

  1. Run tests first (establish baseline)
  2. Refactor
  1. Run tests again (confirm nothing broken)

Output

## Refactoring Summary

- [file:line] <change>

## Test Results

✅/❌

## Next Steps

- <suggestions>

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.