The workflow may create branches and multiple Git commits without separate confirmation
Source references: 5The guide presents “commit current state,” “create feature branch,” “commit if tests pass,” and “final commit” as default refactoring steps rather than optional actions requiring explicit user consent.
Even when a user only requests review, suggestions, or working-tree changes, the agent could alter branch state and create persistent commits. Writing missing tests and deleting code classified as dead also expands the file-change scope.
The workflow presents creating a feature branch and making multiple Git commits as routine steps, without requiring user approval. If followed, it would alter repository history and branch state, potentially disrupting the user's workflow or creating unwanted commits. Users can ask the author to make these actions opt-in, or restrict the skill from creating branches and commits.
```1. PREPARE - Ensure tests exist (write them if missing) - Commit current state - Create feature branch2. IDENTIFY - Find the code smell to address - Understand what the code does - Plan the refactoring3. REFACTOR (small steps) - Make one small change - Run tests - Commit if tests pass - RepeatShow 4 other places
5. CLEAN UP - Update comments - Update documentation - Final commit```### 9. Dead Code```diff# BAD: Unused code lingers- function oldImplementation() { /* ... */ }- const DEPRECATED_VALUE = 5;- import { unusedThing } from './somewhere';- // Commented out code- // function oldCode() { /* ... */ }# GOOD: Remove it+ // Delete unused functions, imports, and commented code+ // If you need it again, git history has it``````1. PREPARE - Ensure tests exist (write them if missing) - Commit current state - Create feature branch3. REFACTOR (small steps) - Make one small change - Run tests - Commit if tests pass - Repeat