code-react-ui-components
Skill2.7k starsChanged 9 days agoApache-2.0View on GitHub
Design a React component for reuse, decide whether to promote feature UI, or build a standalone dev demo for a complex interaction with hard-to-reach states. Covers component naming, consumer APIs, and representative fixtures. Routine UI edits follow the ordinary React and local directory rules.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about gridaco/grida
- vercel/next.js“`@radix-ui/react-icons` not working when `--turbopack` enabled ("...It might have been deleted in an HMR …”GitHub · May 9, 2025 · 7 reactions
- react-tags/react-tags“usage with nextjs12 + react18”GitHub · May 16, 2022 · 5 reactions
- getsentry/sentry-javascript“NextJS Build hungs.. with sourcemap enabled”GitHub · May 12, 2025 · 1 reactions
- DervinEvolve/AI-Agent“Epoch 25: capabilities: capabilities[cap_context_compaction_12]”GitHub · Nov 18, 2026
- gridaco/library“Use hash-addressed Tigris storage in Library tools”GitHub · Nov 10, 2026
The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 9
Talked about on GitHub (9 times).
On GitHub · 9
- May 9, 2025`@radix-ui/react-icons` not working when `--turbopack` enabled ("...It might have been deleted in an HMR update.") — vercel/next.js7 reactions · 7 comments
- May 16, 2022usage with nextjs12 + react18 — react-tags/react-tags5 reactions
- May 12, 2025NextJS Build hungs.. with sourcemap enabled — getsentry/sentry-javascript1 reaction · 7 comments
- Nov 18, 2026Epoch 25: capabilities: capabilities[cap_context_compaction_12] — DervinEvolve/AI-Agent0 reactions
- Nov 10, 2026Use hash-addressed Tigris storage in Library tools — gridaco/library0 reactions
4 more on GitHub
- Oct 12, 2026[Candidate] gridaco/grida/.agents/skills/ee - ee — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 9, 2026Archive and retire the legacy grida CLI (design-to-code) — gridaco/code0 reactions
- Sep 1, 2026Custom cursors render poorly on MacOS — slint-ui/slint0 reactions · 1 comment
- Dec 9, 2025Any reason text rendering won't work on WASM? (0.91.0) [help wanted] — rust-skia/rust-skia0 reactions · 2 comments
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- editor/AGENTS.mdAGENTS.md
- supabase/AGENTS.mdAGENTS.md
- test/AGENTS.mdAGENTS.md
- agent-systemSkill
- ai-modelsSkill
- code-reactSkill
- code-tsSkill
- databaseSkill
- desktopSkill
- docs-canvasSkill
- docsSkill
- docs-svg-kitSkill
- docs-wgSkill
- editor-perfSkill
- eeSkill
- etiologySkill
- externalsSkill
- fixturesSkill
- ggSkill
- groundingSkill
- io-figmaSkill
- io-gridaSkill
- linksSkill
- namingSkill
- opt-librarySkill
- oss-standardsSkill
- pedanticSkill
- platform-consumersSkill
- releasingSkill
- sdk-designSkill
- sdk-seamSkill
- securitySkill
- seoSkill
- visionSkill
- dotcanvasSkill
- slidesSkill
- svgSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use this skill when there is a concrete payoff from giving callers a component they can build on, or from making a complex interaction easy …
- Very specific: line 24
Use the local authoring rules at the chosen destination.
- Distinctive: line 30
If the name needs a long explanation, narrow the responsibility, extract a coherent part, or keep the UI in the feature.
- Distinctive: line 41
Verify the behavior callers rely on: Add a component-level test when it protects a promise callers build on, such as keyboard reordering or …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React UI components
Use this skill when there is a concrete payoff from giving callers a component they can build on, or from making a complex interaction easy to exercise in isolation. These are independent reasons to do the work.
Where things go
packages/uiowns app-agnostic primitives, shared AI elements, and theme tokens.editor/componentsholds reusable editor building blocks.editor/kitsholds drop-in widgets with their own interaction state.editor/scaffoldsholds feature UI wired to product or workbench state.editor/app/(dev)/ui/componentshosts standalone dev demos for components from any of these layers.
Use the local authoring rules at the chosen destination. Follow
code-react for React implementation.
Decide whether to promote
- Name the responsibility. Say what the component owns in one sentence. If the name needs a long explanation, narrow the responsibility, extract a coherent part, or keep the UI in the feature.
- Identify the consumer and the payoff. Sketch a real call site. A useful abstraction lets its consumer rely on interaction behavior such as keyboard navigation, focus restoration, or cancellation without rebuilding it. A similar appearance alone is a weak reason to promote.
- Draw the boundary from the call site. Expose the inputs and events the consumer uses. Keep implementation details inside. Leave product data, persistence, and policy with their owners. An API that requires consumers to coordinate the same internal sequence is a sign to keep refining the boundary or leave the component local.
- Verify the behavior callers rely on. Add a component-level test when it protects a promise callers build on, such as keyboard reordering or retaining focus when an item moves. Tests are optional for simple behavior. Cover product wiring at its own boundary when needed.
Build a dev demo when it helps
Make the hard interaction easy to reach and repeat. Render the production
component through its existing API and use local fixtures for surrounding state
or services. Give the demo enough context to exercise the interaction as used,
including relevant narrow, empty, or in-progress states. Add the page to
/ui navigation when it is useful for
ongoing development.
The Desktop composer demo uses fixtures for attachments, queued messages, and streaming. Workspace content tabs are another candidate for a demo: sorting merits repeatable overflow and keyboard checks, while tab identity, previews, and window chrome are concrete workbench concerns.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

