agentsclimarketplace

Rime react

Skill josui/rime-craft/skills/rime-react

Use when writing, reviewing, or refactoring React components, hooks, or data-fetching patterns. Covers effect discipline, component composition, performance optimization, and data flow. Applies to any React project (Vite, Next.js, Remix, etc.).From its SKILL.md

Install
npx -y skills add josui/rime-craft --skill rime-react

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 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

4.8 KB, as published. Nobody here has run it

React Component Rules

Framework-agnostic React component development rules. Covers 4 groups, 21 rules total: Effect Discipline, Component Structure, Performance, and Data & Boundaries.

Rules Index

Effect Discipline — "useEffect is not a lifecycle hook"

RuleSummaryPriority
effect-derive-stateCompute derived state inline, never sync via Effectcritical
effect-use-event-handlerSide effects from user actions belong in event handlerscritical
effect-data-fetchingUse a data-fetching library, not raw Effect + fetchcritical
effect-mount-onlyEffects are only for syncing with external systems on mountcritical
effect-reset-with-keyReset component state with key prop, not Effectcritical

Component Structure — "Composition over configuration"

RuleSummaryPriority
component-no-inline-defNever define components inside other componentscritical
component-compositionPrefer composition (children) over boolean prop sprawlrecommended
component-compoundUse compound component pattern for complex UIrecommended
component-state-liftingLift state to nearest common ancestor or providerrecommended
component-conditional-renderGuard && renders against numeric falsy values (0, NaN)critical

Performance — "Measure first, optimize second"

RuleSummaryPriority
perf-memo-strategyWith React Compiler: automatic. Without: manual memo for expensive computations onlyrecommended
perf-stable-referencesFunctional setState, hoisted defaults, useRef for transient values, lazy initrecommended
perf-bundle-importsAvoid barrel imports; defer third-party scripts post-hydrationcritical
perf-lazy-loadingLazy-load heavy components + preload on hover/focusrecommended
perf-async-parallelPromise.all for independent ops; defer await until consumptionrecommended
perf-transitionsMark non-urgent updates with startTransitionrecommended
perf-activityPreserve state/DOM of toggled components with Activity (experimental)recommended

Data & Boundaries — "Data flows down, events flow up"

RuleSummaryPriority
data-rsc-boundaryMinimize serialized data across Server/Client boundaryrecommended
data-suspense-streamingWrap async regions in Suspense for streaming, avoid waterfallsrecommended
data-dedupClient: SWR/TanStack Query dedup. Server: React.cache()recommended
data-render-as-you-fetchComponent tree mirrors data dependencies; parent fetches, child consumesrecommended

Stack Hints

ScenarioVite SPANext.js App RouterRemix
Lazy loadingReact.lazy + Suspensenext/dynamicReact.lazy (route-level handled by framework)
RSC boundaryN/A"use client" / "use server"N/A (Remix v3+ exploring)
Data fetchingSWR / TanStack QueryServer Components + fetchloader / action
StreamingManual SSR streaming setupBuilt-inBuilt-in

Framework API Guidance

Framework-specific APIs (routing, data loading, middleware, etc.) are out of scope. Use context7 or official docs to look up the latest framework APIs.

Relationship with rime-js

Framework-agnostic JS/TS rules live in rime-js. The following rime-react rules have authoritative counterparts there:

  • perf-async-parallel → rime-js:async-parallel (generic async concurrency)
  • perf-bundle-imports → rime-js:module-no-barrels (barrel file avoidance)

The rime-react versions add React-specific context (component rendering, hydration). For non-React JS/TS code, refer to rime-js directly.

Recommended Tools

  • react-doctor — React code health check (if installed). Run it and cross-reference findings with these rules.

Keep looking

Skills are one crate of 607,533. 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.