Agent skill

React Composition Structure

by fluid-design-io in fluid-design-io/payload-better-auth-starter

React and React Native file-system architecture patterns that scale.

Custom licenceAuto-check passedMobile

Install React Composition Structure

skills CLI
$ npx skills add fluid-design-io/payload-better-auth-starter --skill react-composition-structure -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fluid-design-io/payload-better-auth-starter react-composition-structure --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fluid-design-io/payload-better-auth-starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/react-composition-structure .claude/skills/react-composition-structure && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
react-composition-structure
GitHub stars
120
Token cost
~899 tokens
SKILL.md length
327 words
Files
8
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

React and React Native file-system architecture patterns that scale.

  • Works in 5 steps: Component Folders (HIGH) → Route-Bound Module Folders (HIGH) → Public API Boundaries (MEDIUM) → …
  • Restructuring component folders
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 1 more section
  • Calls npm

What it does

React Composition Structure is an agent skill from fluid-design-io/payload-better-auth-starter. React and React Native file-system architecture patterns that scale. Use when restructuring component folders, route-bound domain modules (a calendar, cart, or checkout surface placed under components/, screens/, or any repo tree — not a literal features/ directory), index.ts export boundaries, naming conventions, colocated .data.ts files, or translating composition patterns into stable repo structure. Triggers on compound component folders, route-bound module folders, public API cleanup, and bad-vs-good file…

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `AGENTS.md`, `rules/architecture-compound-component-folders.md` and `rules/architecture-route-bound-module-folders.md`).

It sits in Mobile, covering Design patterns, Cross-platform mobile apps and Software architecture. It works with React, React Native, Better Auth and Payload CMS. The repository describes itself as: A production-ready PayloadCMS starter with Better Auth, modern UI components, and full-stack development tools.

When your agent uses it

  • Restructuring component folders
  • Route-bound domain modules (a calendar
  • Checkout surface placed under components/
  • Any repo tree — not a literal features/ directory)

Example prompts

  • “/react-composition-structure”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Component Folders (HIGH)
  2. Route-Bound Module Folders (HIGH)
  3. Public API Boundaries (MEDIUM)
  4. Naming Stems and Suffixes (MEDIUM)
  5. Organization Heuristics (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit 5ac73f1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

React Composition Structure loads about 899 tokens when it runs. Until then it costs about 144 tokens; SKILL.md has 327 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~144
When it runs · the whole SKILL.md, loaded when a task matches
~899

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 327 words (~899 tokens).

“File-system and module-boundary patterns for React and React Native codebases. This skill complements vercel-composition-patterns: Vercel explains the component architecture; this skill explains how to express those patterns in a codebase's folders, files, exports, and naming.”

— opening of SKILL.md by fluid-design-io, Custom licence
name
react-composition-structure
metadata.author
oliverpan
metadata.version
1.0.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 7 other files in .agents/skills/react-composition-structure of fluid-design-io/payload-better-auth-starter.

  • SKILL.md
  • AGENTS.md
  • rules/architecture-compound-component-folders.md
  • rules/architecture-route-bound-module-folders.md
  • rules/boundaries-public-api.md
  • rules/naming-stems-and-suffixes.md
  • rules/organization-colocate-internals.md
  • rules/organization-nest-when-prefix-repeats.md

Open the folder on GitHubat commit 5ac73f1

Compare with similar skills

React Composition Structure next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

React Composition Structure compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
React Composition Structure this skillfluid-design-io/payload-better-auth-starter120—~899Automated safety check: PassCustom licence
React Devtoolssanity-io/sanity6.4k3 repos~2.1kAutomated safety check: PassMIT
Community Migrationjingjing2222/react-native-nitro-geolocation116—~3.5kAutomated safety check: PassMIT
Architecture Feature Firstevanca/flutter-ai-rules647—~1.9kAutomated safety check: PassMIT
PerformanceSidiora-Labs/centra-llm-agents115—~778Automated safety check: PassCustom licence
Screenmapaleqsio/screenmap239—~7.2kAutomated safety check: PassMIT

Similar skills

  • React Devtools

    sanity-io/sanity

    Official

    React DevTools CLI for AI agents. An agent skill from sanity-io/sanity.

    6.4k GitHub starsUsed in 3 repos~2.1k tokens
    MobileAuto-check passed
  • Community Migration

    jingjing2222/react-native-nitro-geolocation

    Migrate React Native apps from @react-native-community/geolocation to react-native-nitro-geolocation.

    116 GitHub stars~3.5k tokensUpdated 24 days ago
    MobileAuto-check passed
  • Architecture Feature First

    evanca/flutter-ai-rules

    A skill your agent uses when creating a feature, designing folder structure, adding repositories/services/view models, wiring dependency injection, or deciding which layer owns logic.

    647 GitHub stars~1.9k tokensUpdated 23 days ago
    MobileAuto-check passed
  • Performance

    Sidiora-Labs/centra-llm-agents

    Performance optimization guidelines for React/React Native applications.

    115 GitHub stars~778 tokensUpdated 19 days ago
    MobileAuto-check passed
  • Screenmap

    aleqsio/screenmap

    Generate a visual navigation map of an Expo / React Native or NativeScript app.

    239 GitHub stars~7.2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • Jazz UI Development

    garden-co/classic-jazz

    A skill your agent uses when building, debugging, or optimizing Jazz applications.

    2.5k GitHub stars~1.7k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

Questions about React Composition Structure

What does React Composition Structure do?

React and React Native file-system architecture patterns that scale. React Composition Structure is an agent skill from fluid-design-io/payload-better-auth-starter. React and React Native file-system architecture patterns that scale.

When should I use React Composition Structure?

React Composition Structure fits situations like: restructuring component folders; route-bound domain modules (a calendar; checkout surface placed under components/; any repo tree — not a literal features/ directory).

How do I install React Composition Structure in Claude Code?

Run `npx skills add fluid-design-io/payload-better-auth-starter --skill react-composition-structure -a claude-code`. Or copy the skill folder (.agents/skills/react-composition-structure in fluid-design-io/payload-better-auth-starter) into .claude/skills/react-composition-structure in your project. Claude Code loads it when a task matches its description.

How do I install React Composition Structure in Codex?

Run `npx skills add fluid-design-io/payload-better-auth-starter --skill react-composition-structure -a codex`. Or copy the skill folder (.agents/skills/react-composition-structure in fluid-design-io/payload-better-auth-starter) into .agents/skills/react-composition-structure in your project. Codex loads it when a task matches its description.

Can I use React Composition Structure in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fluid-design-io/payload-better-auth-starter --skill react-composition-structure -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/react-composition-structure, .gemini/skills/react-composition-structure, .github/skills/react-composition-structure and .opencode/skills/react-composition-structure in your project.

What does React Composition Structure need to run?

Going by SKILL.md and its folder, React Composition Structure needs the command-line tools its instructions call (npm).

Does React Composition Structure access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is React Composition Structure safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does React Composition Structure use?

React Composition Structure has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does React Composition Structure use?

About 899 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to React Composition Structure?

Skills that share tags, products or a category with React Composition Structure: React Devtools (sanity-io/sanity, 6.4k stars), Community Migration (jingjing2222/react-native-nitro-geolocation, 116 stars), Architecture Feature First (evanca/flutter-ai-rules, 647 stars) and Performance (Sidiora-Labs/centra-llm-agents, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains React Composition Structure?

fluid-design-io (a GitHub user) maintains it in fluid-design-io/payload-better-auth-starter, which has 120 GitHub stars. The repository was last updated on October 4, 2026.

Source: fluid-design-io/payload-better-auth-starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.