Frontend state quality
Skill roronoazoroshao369/vibe-coding-os/skills/checklists/frontend-state-quality
Frontend state quality checklist for React, Vue, Svelte, stores, side effects, forms, and data fetching.From its SKILL.md
npx -y skills add roronoazoroshao369/vibe-coding-os --skill frontend-state-qualityAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
4.4 KB, 804 tokens by cl100k_base, as published. Nobody here has run it
Skill: Frontend State Quality Checklist
Purpose
Review frontend state changes for predictable behavior, complete user states, safe side effects, and testable transitions. Use this checklist to prevent UI bugs caused by unclear ownership, unhandled async states, stale data, leaky effects, and inconsistent form behavior.
When to use
Use for React, Vue, or Svelte state changes; new stores; side effects; form state; client-side data fetching; optimistic updates; global state versus local state decisions; and any UI change where loading, empty, error, or stale data states affect the user experience.
Inputs
- The frontend change summary and acceptance criteria.
- Components, stores, composables, hooks, actions, reducers, services, or routes affected.
- Data-fetching behavior, mutation behavior, cache policy, and form validation rules.
- Existing tests for state transitions, rendering states, and user interactions.
Workflow
- Identify state ownership: local component state, shared store, route state, server cache, form state, or derived state.
- Justify global state only when multiple independent consumers need the same source of truth; otherwise prefer local or colocated state.
- Map every user-visible state: initial, loading, success, empty, error, retrying, disabled, stale, and permission-denied where applicable.
- Verify state mutations are predictable: immutable where required, centralized when appropriate, named transitions, and no hidden mutation through shared references.
- Review side effects: dependencies are accurate, subscriptions and timers are cleaned up, abort or cancellation is handled, and framework cleanup hooks are used.
- Check form behavior: client validation improves UX, server validation remains authoritative, submit state prevents duplicate work, and error display is specific and recoverable.
- Review optimistic updates: define when they apply, how rollback works, what happens on partial failure, and how conflicts are resolved.
- Apply stale-while-revalidate where useful for data fetching: show cached data deliberately, refresh in the background, and communicate stale or refreshing state when needed.
- Confirm async race handling: stale responses cannot overwrite newer state, unmounted components are safe, and retries do not duplicate side effects.
- Inspect accessibility and UX around state changes: focus, announcements, disabled controls, and clear empty or error copy.
- Check test coverage for key state transitions, side-effect cleanup, form validation paths, optimistic success and rollback, and stale data refresh.
- Record unresolved risks, manual checks, and any intentional trade-offs.
Outputs
- A completed frontend state quality checklist with pass/fail/needs-follow-up notes.
- Identified gaps in state modeling, side-effect cleanup, form validation, data fetching, or tests.
- Verification evidence: test commands, manual checks, or explicit limitations.
Failure modes
- Adding global state when local state or server cache would be simpler.
- Handling the success path only while skipping loading, empty, error, retry, or disabled states.
- Forgetting cleanup for subscriptions, timers, event listeners, in-flight requests, or framework effects.
- Performing optimistic updates without rollback or conflict handling.
- Trusting client-only validation for security-sensitive rules.
- Allowing stale async responses to overwrite newer user actions.
- Testing final rendered output but not transitions between states.
Verification checklist
- State ownership is explicit and global state is justified.
- Loading, empty, error, success, stale, retry, and disabled states are handled where relevant.
- State mutations are predictable and follow framework conventions.
- Side effects have correct dependencies and cleanup behavior.
- Form validation includes client UX checks and server-authoritative validation.
- Optimistic updates include rollback and conflict behavior.
- Stale-while-revalidate behavior is deliberate for data fetching where applicable.
- Tests cover state transitions, cleanup, validation paths, optimistic rollback, and stale refresh behavior.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.