agentleFS
gridacogridaco/grida/.agents/skills/code-react-ui-components/SKILL.md

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

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 1 mentionNov 2026: 2 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the gridaco/grida repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about gridaco/grida

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

4 more on GitHub

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
  1. Distinctive:

    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 …

    line 12
  2. Very specific:

    Use the local authoring rules at the chosen destination.

    line 24
  3. Distinctive:

    If the name needs a long explanation, narrow the responsibility, extract a coherent part, or keep the UI in the feature.

    line 30
  4. Distinctive:

    Verify the behavior callers rely on: Add a component-level test when it protects a promise callers build on, such as keyboard reordering or …

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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/ui owns app-agnostic primitives, shared AI elements, and theme tokens.
  • editor/components holds reusable editor building blocks.
  • editor/kits holds drop-in widgets with their own interaction state.
  • editor/scaffolds holds feature UI wired to product or workbench state.
  • editor/app/(dev)/ui/components hosts 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

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.