Make It Better make-it-better
Elevate a working feature into its clean, canonical, production-ready version: research user intent and codebase patterns, align with Vibestack idioms, strip UI slop and match visual prototypes, consolidate duplicates, and delete all legacy or patched-over code paths.
- Our test
- —
- not tested yet
- GitHub stars
- 20k
- elizaos/eliza
- Added by
- 0
- members
- Updated
- Dec 6
- commit e932464
- Content
- 1 file
- no scripts · 7 KB
- License
- MIT
- free to use
What our test found
Not tested yet. Our model tries every skill on a realistic request and scores the result, the most popular skills first. Until then, the safety checks on the right still apply.
name: make-it-better description: "Elevate a working feature into its clean, canonical, production-ready version: research user intent and codebase patterns, align with Vibestack idioms, strip UI slop and match visual prototypes, consolidate duplicates, and delete all legacy or patched-over code paths."
Make it better
Run this pass after a feature works and passes initial checks, before declaring it done. Read in full once per session.
Working code is a draft. Step back and turn it into the clean, canonical, production-ready version with no trace of earlier iterations.
1. Research intent and codebase patterns
- Elevate user intent. Re-read the user's request, any supplied prototype or reference, and touched
spec/**/*.mdstories. Where the user underspecified behavior, structure, or interaction, choose the thoughtful, high-craft version they would want (). - Study existing patterns. Inspect sibling specs, VibeLang services,
@repo/uicomponents,tokens.json, and package scripts—plus established conventions for the domain—so the feature fits the repository like native code. - Challenge the shape from first principles. Ask: if we built this from day one knowing what we know now, would it look like this? (). Reshape into the cleaner design instead of polishing a bolted-on compromise.
2. Make the code canonical and unified
Align every layer with :
- Right layer. Move pure domain rules and derived calculations out of
src/into Quintpure defand rules inspec/**/*.md(or proved//@TypeScript contracts via only when Quint cannot express them). Keepsrc/thin: VibeLang.vibeon Effect 4 for services and I/O (), and React.tsxoveruseMachine/useMachineSelector. - Reuse and boundaries. Replace ad-hoc one-offs with existing workspace services,
@repo/uiprimitives,tokens.jsonutilities, and typed package scripts (--json). Honor root barrel exports ("."inexports; no subpath code imports). - Stronger domain types. Apply and : discriminated unions (
kind) and exhaustive matches over boolean or optional-field bags, branded primitives at boundaries, types derived from schemas orgen/, and no unjustifiedascasts. - Code hygiene. Enforce : strip non-directive code comments,
useEffect/setTimeoutworkarounds,consolecalls, and needlesstryblocks or defensive guards for impossible internal states.
3. De-slop the UI and match any visual prototype
For anything a person looks at, run the review passes and push for visual calm and fidelity:
- Strip UI slop and visual busyness. Cut eyebrows/kickers, gratuitous expandable or collapsible regions (accordions, "show more" drawers hiding primary content or filler), explainer paragraphs, disclaimer banners, sub-header blurbs, redundant labels, decorative chips/pills/badges, and unnecessary nested cards, borders, or dividers.
- Make it more visual. Replace prose with layout, hierarchy, charts, bars, icons, color, shape, or clean SVG diagrams while keeping
aria-label/altand WCAG AA contrast. Let whitespace separate sections. - Match the user's visual prototype. When the user supplied a visual prototype, mockup, or reference screenshot, compare it side-by-side with the running UI across layout, hierarchy, proportions, spacing/density, typography scale, token-mapped color roles, and states. Close every drift where the implementation grew extra chrome, heavier containers, wordier copy, or off-proportion spacing; keep a deviation only when required by a spec rule or WCAG AA contrast, and note why.
- Component and token craft. Keep styling strictly on
tokens.jsonutilities, extend@repo/uicomponents rather than creating parallel variants, and refresh generated stories (pnpm gen) when shared components change.
4. Consolidate, deduplicate, and erase legacy residue
Leave the touched surface simpler and smaller than you found it (, , ):
- Consolidate and deduplicate. Merge duplicated logic, schemas, data mappers, hooks, CLI helpers, and UI patterns into one canonical home. Share code only when genuinely reused or compressing real complexity; collapse single-caller wrappers, pass-through layers, and speculative abstractions.
- Zero legacy trace ("One path"). Apply to migrate all callers in the same wave and delete every trace of earlier iterations: old branches, fallback paths, compatibility shims, v1/v2 switches, transitional feature flags or env toggles, unused exports, dead props/types/schemas/tokens, and patched-over workarounds.
- Guardrails. Keep edits purposeful—no churn on unrelated code. Never edit
gen/,.spec-cache/,.studio/, orspec/lock.json; never create new Markdown documents; never silently weaken or delete a spec rule or test (—propose test deletions instead of deleting them yourself).
5. Verify
Prove the improved version against the real artifact ():
- If any
spec/**/*.mdchanged, complete the loop. - Run
pnpm check,pnpm lint, andpnpm analyze(when defined) and confirm every gate is green. - For UI changes, inspect the running app (
pnpm devor built preview) across desktop/mobile viewports and light/dark themes—and side-by-side with any user prototype—verifying visual clarity, contrast, and interactions. Do not commit screenshot-comparison tests ().
Report
Summarize concisely when done:
- Intent & canonicality: architectural, spec/type, or codebase-unification upgrades made.
- UI & prototype alignment: slop removed, visual upgrades, and alignment with any user prototype (noting intentional cuts or spec/accessibility deviations).
- Consolidation & cleanup: duplicates merged, layers collapsed, and legacy/patched-over code paths deleted.
- Verification: commands run (
pnpm check,pnpm lint,pnpm analyze, live UI check) and status.