
Description
Behavior-preserving simplification workflow. Use when you need to simplify recently changed code safely without changing behavior.
SKILL.md
Run:
(git diff --name-only $(git merge-base HEAD origin/HEAD 2>/dev/null || echo "HEAD~1") HEAD 2>/dev/null; git diff --name-only; git diff --cached --name-only; git ls-files --others --exclude-standard) | awk 'NF' | sort -u
If no files are returned, tell the user there is nothing to simplify and conclude with a no-op result.
Use this command to discover guidance files:
find . -maxdepth 5 -type f \( -name 'CLAUDE.md' -o -name 'AGENTS.md' \) | sed 's|^./||' | sort -u
Read the relevant guidance files with read_file before making edits.
Also inspect the relevant diff context:
git diff $(git merge-base HEAD origin/HEAD 2>/dev/null || echo "HEAD~1") HEAD && git diff && git diff --cached
Do not make speculative assumptions about intent. Infer intent from code and adjacent patterns.
- Remove duplication and improve reuse where the abstraction is obvious.
- Simplify conditionals/control flow without changing semantics.
- Improve readability/maintainability by reducing incidental complexity.
- Remove redundant code introduced in recent changes.
- Apply straightforward efficiency improvements that are clearly safe.
- Align with existing codebase conventions and neighboring patterns.
Avoid:
- broad rewrites
- speculative architecture changes
- changes requiring uncertain product decisions
If no safe simplifications are found, report that clearly and conclude without edits.
For each edit:
- Preserve external behavior and existing contracts.
- Keep changes local and easy to review.
- Prefer existing helpers/utilities over new abstractions.
- Re-read the edited file to confirm clarity and consistency.
If a check fails, fix the issue and rerun relevant validation. If validation cannot run, state exactly what was skipped and why.
More skills from the Roomote repository
View all 32 skillsaddress-pr-feedback
address unresolved GitHub PR feedback
Jul 19Code ReviewGitHubPull Requestsagent-browser
automate browser interactions for agents
Jul 16Browser AutomationCLITestingcapture-visual-proof
capture visual proof of browser tasks
Jul 16AutomationBrowser AutomationScreenshotsci-failure-triage
triage failed CI workflows
Jul 19CI/CDDebuggingGitHub Actionscode-quality-auditor
audit code quality in merged pull requests
Jul 16Code AnalysisCode ReviewQAcodeql-triage
triage and remediate CodeQL security alerts
Jul 19Code AnalysisCodeQLDebuggingGitHub +2
More from Roo Code
View publishercreate-draft-pr
create draft pull requests
Roomote
Jul 16AutomationGitHubPull Requestscreate-pr
create pull requests for pending changes
Roomote
Jul 16GitHubPull Requestsdebug-reported-bug
reproduce and debug reported bugs
Roomote
Jul 16DebuggingGitTestingdependabot-triage
triage GitHub Dependabot alerts
Roomote
Jul 16AutomationGitHubSecurityTriageenvironment-setup
configure local development environments
Roomote
Jul 19ConfigurationLocal Developmentexplain-repo-code
explain repository code and architecture
Roomote
Jul 16Code AnalysisDocumentation