agentsclimarketplace

React ui engineering

Skill SHIHAOZOU/ai-frontend-engineering-skills/skills/react-ui-engineering

Implement and review React or Next.js components, hooks, state, rendering boundaries, and tests. Use whenever a task mentions React, JSX, TSX, Hooks, Context, Server Components, Hydration, or Next.js UI behavior.From its SKILL.md

Install
npx -y skills add SHIHAOZOU/ai-frontend-engineering-skills --skill react-ui-engineering

Assembled 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.

SKILL.md

2.8 KB, 569 tokens by cl100k_base, as published. Nobody here has run it

React Engineering Skill

For the Simplified Chinese reference, read references/zh-CN.md when the user communicates primarily in Chinese or requests Chinese output.

Purpose

Produce predictable React behavior with explicit ownership, stable rendering boundaries, and accessible component APIs.

When to Use

Use for React components, hooks, Context, forms, data fetching, Server/Client Component boundaries, or render performance.

Inputs

  • Component behavior and states
  • React/framework version and rendering model
  • Existing component, hook, state, and test patterns
  • Design and API contracts

Outputs

  • Component boundary and ownership plan
  • Typed React implementation
  • Interaction tests and performance notes

Workflow

  1. Identify framework version, router, rendering mode, and style system.
  2. Search for equivalent components and hooks.
  3. Decide server, client, local state, URL state, and cache ownership.
  4. Design typed props, events, composition points, and error states.
  5. Implement without effects for values that can be derived during render.
  6. Add behavior-focused tests and inspect avoidable rerenders.
  7. Validate hydration, keyboard behavior, and reduced motion where relevant.

Decision Tree

flowchart TD
  A[New React behavior] --> B{Needs browser API or interaction?}
  B -->|No| C[Prefer Server Component when supported]
  B -->|Yes| D[Client Component]
  D --> E{State shareable in URL?}
  E -->|Yes| F[URL state]
  E -->|No| G{Server-owned data?}
  G -->|Yes| H[Query/cache layer]
  G -->|No| I[Local state first]

Checklist

  • Hooks obey call-order rules.
  • State has a single owner.
  • Effects synchronize only with external systems.
  • Keys are stable and semantic.
  • Server/Client boundaries minimize JavaScript.
  • Tests use roles, names, and user interactions.

Constraints

  • MUST use function components unless the repository requires otherwise.
  • MUST NOT mutate props or state.
  • SHOULD NOT use useMemo, useCallback, or memo without measured value.
  • MUST NOT suppress Hydration errors instead of fixing their cause.

Examples

Good: derive filteredItems during render from items and query.

Bad: store filteredItems in state and synchronize it in an effect.

Anti-patterns

  • Giant components combining data, business rules, and presentation
  • Context used for rapidly changing local state
  • Index keys for reorderable lists
  • Client Components added only to access static utilities

What ships with it: 2 files

4.4 KB alongside SKILL.md

evals/

references/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.