plugins/v1tamins/skills/v1-refactor/SKILL.md
Use when refactoring code for simplicity, removing duplication, or applying KISS/DRY/SOLID/YAGNI. Triggers on "refactor", "clean up code", "apply DRY".
npx skillsauth add v1-io/v1tamins v1-refactorInstall 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.
Refactor selected files (or current diff) to align with KISS, DRY, SOLID, and YAGNI while strictly preserving behavior.
Typical invocations:
/v1-refactor [file_or_pattern]v1-refactor from the skills menu or use $v1-refactor [file_or_pattern]Examples:
/v1-refactor # Refactor current diff
/v1-refactor src/core/*.py # Refactor specific files
In Codex, the slash examples below map directly to $v1-refactor ....
React/TypeScript:
Python:
Concise rationale summary grouped by principle:
## KISS
- Flattened nested if/else in `query.py:process_result` using guard clauses
## YAGNI
- Removed unused `legacy_mode` parameter in `handler.py:handle_request`
- SKIPPED: `config.defaults` removal - used by external clients
## DRY
- Extracted `validate_user_input()` helper in `api.py` (was duplicated 3x)
## SOLID
- Split `UserManager` into `UserReader` and `UserWriter` (SRP)
development
Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for large prs, new features/architectures, a deep code quality audit, or especially harsh maintainability review.
testing
Commit, push, open, and land a pull request through CI handoff. Use when work is complete and the user wants an agent to create or update a PR, open it as a draft, monitor GitHub checks with `gh pr checks`, fix failed checks, retry up to three remediation pushes, mark the PR ready for review once green, and move a linked Linear ticket to Human Review when one exists. Trigger on requests like 'land this PR', 'open and monitor a PR', 'commit push and watch CI', 'get this ready for review', or 'finish the PR workflow'.
development
Use when reviewing a PR, reviewing the current branch, or posting code review feedback to GitHub. Triggers on "review this PR", "code review", "check this pull request", "review my branch", "review and fix".
development
Use when a plan, PRD, proposal, or implementation outline is overscoped, too ambitious for the immediate goal, or needs to be reduced to a bare-bones version. Triggers on "bare bones", "no damn whistles", "no bells and whistles", "strip this plan", "trim this plan", "scope creep", "descope this plan", "MVP only".