SuperAPI AI Directory

refactor-ui

Frontend & websites

View repository

Updated 10-15 23:33

About this skill

Refactor UI

Use when the next step is to edit UI code.

Rule

Remove or consolidate before adding. Preserve behavior unless the user explicitly asks to change product scope.

Sequence

  1. Inventory the visible surface.

    • List titles, paragraphs, helper panels, badges, buttons, duplicated labels, empty states, and repeated suggestions.
    • Mark implementation-detail copy for deletion or replacement.
  2. Pick the minimum target.

    • One title per screen area.
    • One primary action per decision area.
    • One path for each task unless distinct paths have clear user value.
  1. Edit copy.

    • Replace internal language with user action language.
    • Delete copy that explains obvious controls.
    • Keep labels short and concrete.
  2. Edit structure.

    • Remove nested cards and extra panels.
    • Merge duplicate controls.
    • Move secondary actions into icon buttons, menus, or quieter rows when appropriate.
    • Keep repeated item cards consistent and compact.
  3. Preserve app state.

    • Do not break existing props, handlers, queries, routes, auth, or data contracts.
    • Do not change backend, schema, or API behavior for presentation cleanup.
  4. Verify in browser.

    • Check mobile first.
    • Inspect actual on-screen text, not only code.
    • Confirm no duplicate primary CTAs or implementation words remain.

References

Read references/refactor-patterns.md when rewriting common leaky copy or simplifying repeated structures.

Read ../../references/modern-ios-app-design.md when the refactor also needs mobile or iOS taste calibration.

Use $design-frontend first if the flow itself is unclear, not merely cluttered.

Acceptance Standard

The UI should look like a product, not a status report from the implementation.