plugins/v1tamins/skills/v1-hindsight-refactor/SKILL.md
Use when a first-pass fix works but is exploratory, messy, or overbuilt, and you want to delete it and reimplement a better version using what the first pass taught you. Triggers on "delete your fix and implement a better version", "hindsight refactor", "second pass refactor", "second pass rewrite", "rewrite after exploration", and "clean reimplementation".
npx skillsauth add v1-io/v1tamins v1-hindsight-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.
Use the first implementation as reconnaissance, not as the final answer.
Typical invocations:
/v1-hindsight-refactorv1-hindsight-refactor from the skills menu or use $v1-hindsight-refactorExamples:
/v1-hindsight-refactor
/v1-hindsight-refactor src/summarizer.py
In Codex, the slash examples below map directly to $v1-hindsight-refactor ....
Use this skill when:
Do not use this skill when:
Extract what the first pass learned before changing anything:
Write these down briefly in working notes if the problem is subtle.
Keep or add the smallest verification harness that protects the behavior:
Do not delete the exploratory implementation until there is a way to prove the rewrite still works.
Do not polish the exploratory code line by line. Instead:
Prefer:
Avoid:
Check whether the new version is:
If the rewrite is not meaningfully better, keep the first pass.
Report in 2 parts:
## Learned from first pass
- Root cause: ...
- Key constraints: ...
## Rewrite result
- Reimplemented with [simpler structure]
- Verification: [tests/repro]
- Why this is better: [one short reason]
tools
Use when planning or synthesizing user tests for prototypes, mockups, clickable demos, product concepts, design flows, landing pages, or early product specs. Triggers on "test this prototype", "prototype testing", "user test plan", "validate this product idea", "test with users".
development
Use when creating a polished self-contained HTML page would help the user understand, compare, review, present, tune, or interact with information better than Markdown. Triggers on "make an HTML page", "HTML artifact", "nice HTML", "visual report", "interactive explainer", "one-page dashboard", "shareable page".
data-ai
Use when turning a textbook, PDF, blog post, article, paper, course, notes, transcript, or other source material into suggested agent skills or skill improvements. Triggers on "what skills could come from this", "extract skills from", "turn this into skills", "skill ideas from this source".
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.