Add OpenCode skills
This commit is contained in:
43
ui-variations/references/discovery-checklist.md
Normal file
43
ui-variations/references/discovery-checklist.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# Discovery Checklist
|
||||
|
||||
Inspect only the files needed to answer these questions before editing.
|
||||
|
||||
Before expanding scope, identify exactly which page, component, or feature surface the user asked to vary. Keep the rest of the experience stable unless the user explicitly asks for broader page redesign.
|
||||
|
||||
## Product And Design Intent
|
||||
|
||||
- Is there a stated design philosophy in `README*`, `docs/**`, `CONTRIBUTING*`, or nearby design docs?
|
||||
- Does the repo describe brand tone, density preferences, or component usage rules?
|
||||
- Are there obvious examples of the same kind of surface elsewhere in the app?
|
||||
|
||||
## App Structure
|
||||
|
||||
- Which router is in use?
|
||||
- Where do page/layout entry points live?
|
||||
- Is there an existing internal-only preview, lab, or story route?
|
||||
- What is the smallest safe place to add a preview without disturbing production paths?
|
||||
|
||||
## Styling System
|
||||
|
||||
- Are styles driven by Tailwind, CSS modules, CSS-in-JS, plain CSS, or a component library?
|
||||
- Where do colors, spacing, radius, shadows, typography, and breakpoints come from?
|
||||
- Are there theme tokens or CSS variables that must be reused?
|
||||
|
||||
## Component Primitives
|
||||
|
||||
- What shared components should be reused for buttons, cards, inputs, dialogs, tabs, and layout?
|
||||
- Are there common container or page-shell components that the preview should preserve?
|
||||
- Do components carry motion, focus, or accessibility conventions that must remain intact?
|
||||
|
||||
## Data And Content
|
||||
|
||||
- Can the preview reuse live data flow safely?
|
||||
- If not, what is the smallest local fixture needed for a fair comparison?
|
||||
- How can content stay constant across variations so the user compares layout and interaction rather than copy changes?
|
||||
- What existing content is already part of the requested surface, and what extra fluff should be avoided because the user did not ask for it?
|
||||
|
||||
## Validation
|
||||
|
||||
- What are the lightest relevant commands for lint, typecheck, test, or build?
|
||||
- Can the app run locally for a browser check?
|
||||
- If it can run, what route should be opened to validate the preview?
|
||||
31
ui-variations/references/promotion-checklist.md
Normal file
31
ui-variations/references/promotion-checklist.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# Promotion Checklist
|
||||
|
||||
Use this checklist after the user selects a winning variation.
|
||||
|
||||
## Promote The Winner
|
||||
|
||||
- Move the chosen variation into the real production path or component.
|
||||
- Rename experiment-oriented files and symbols so the final code reads normally.
|
||||
- Update call sites, imports, tests, stories, snapshots, and docs that depend on the old surface.
|
||||
|
||||
## Remove Comparison Artifacts
|
||||
|
||||
- Delete the preview route or preview-only page if it no longer serves a purpose.
|
||||
- Remove the floating variant switcher.
|
||||
- Delete losing variations.
|
||||
- Remove preview-only helpers, fixtures, state, comments, and wrappers.
|
||||
- Remove orphaned styles and unused assets.
|
||||
|
||||
## Re-Verify
|
||||
|
||||
- Re-run the relevant lint, typecheck, test, or build commands.
|
||||
- Verify the real integrated page, not just the preview surface.
|
||||
- Confirm mobile and desktop still behave correctly when relevant.
|
||||
- Confirm no preview controls or experiment labels remain.
|
||||
|
||||
## Report
|
||||
|
||||
- State which variation won.
|
||||
- State where it was integrated.
|
||||
- State what temporary files or routes were removed.
|
||||
- State which checks were run and whether anything remains unresolved.
|
||||
Reference in New Issue
Block a user