Moai Ref React Patterns
modu-ai/moai-adk
React/Next.js component design patterns, state management strategies, and project structure reference for frontend development.
React/Next.js component design pattern library. An agent skill from revfactory/harness-100.
$ npx skills add revfactory/harness-100 --skill component-patterns -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install revfactory/harness-100 component-patterns --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .claude/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .claude/skills/component-patterns && rm -rf skills-srcUse ~/.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/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .claude/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patternsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add revfactory/harness-100 --skill component-patterns -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install revfactory/harness-100 component-patterns --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .agents/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .agents/skills/component-patterns && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .agents/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill component-patterns -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install revfactory/harness-100 component-patterns --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .cursor/skills/component-patterns && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .cursor/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/revfactory/harness-100.git --path en/16-fullstack-webapp/.claude/skills/component-patterns--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add revfactory/harness-100 --skill component-patterns -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install revfactory/harness-100 component-patterns --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .gemini/skills/component-patterns && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .gemini/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install revfactory/harness-100 component-patternsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add revfactory/harness-100 --skill component-patterns -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .github/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .github/skills/component-patterns && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .github/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add revfactory/harness-100 --skill component-patterns -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install revfactory/harness-100 component-patterns --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/revfactory/harness-100.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/en/16-fullstack-webapp/.claude/skills/component-patterns .opencode/skills/component-patterns && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "component-patterns" agent skill from https://github.com/revfactory/harness-100/tree/main/en/16-fullstack-webapp/.claude/skills/component-patterns into .opencode/skills/component-patterns/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "component-patterns", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
component-patternsReact/Next.js component design pattern library. An agent skill from revfactory/harness-100.
Component Patterns is an agent skill from revfactory/harness-100. React/Next.js component design pattern library. Provides Compound/Render Props/HOC/Custom Hooks patterns, state management strategies (Zustand/React Query/Context), and folder structure conventions as a frontend-dev extension skill. Use for requests like 'component patterns', 'React patterns', 'state management', 'folder structure', 'Custom Hook', 'component separation', and other frontend architecture design tasks. However, actual code implementation or backend logic is outside this skill's scope.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Frontend & Design, covering State management, File organization and Design patterns. It works with Next.js, React, TanStack and Zustand. The licence is Apache-2.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 8e8d35c. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Component Patterns loads about 1.5k tokens when it runs. Until then it costs about 131 tokens; SKILL.md has 447 words of instructions outside code blocks.
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.
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.
The full file from revfactory/harness-100 at commit 8e8d35c, republished under its Apache-2.0 licence (© revfactory). 447 words, ~1,521 tokens.
.claude/skills/component-patterns/SKILL.md (or your agent's skills folder).A reference for component patterns, state management strategies, and project structure that the frontend-dev agent uses during frontend development.
frontend-dev — Applies this skill's patterns directly to component design and state management.
A pattern where parent and child share implicit state.
Suited for: Tab, Accordion, Dropdown, Select, and other composite UI
Structure: <Select> + <Select.Trigger> + <Select.Option>
Key Concept: State sharing via Context, flexible composition through children
Delegates rendering logic externally.
Suited for: Data fetching wrappers, mouse/scroll tracking
Structure: <DataLoader render={(data) => <UI data={data} />} />
Note: Prefer Hook pattern when it can replace this
Extracts state logic into reusable Hooks.
Suited for: Form management, API calls, localStorage, debounce
Naming: use prefix required — useForm, useDebounce, useAuth
Separates data logic (Container) from UI presentation (Presentational).
Suited for: Large-scale apps, when testability is needed Container: Data fetch, state management, event handlers Presentational: Renders only from props, functionally pure
Wraps a component to add functionality.
Suited for: Auth guards, layout wrappers, error boundaries
Naming: with prefix — withAuth, withLayout
Note: Prefer Hook/Context when they can replace this
Provides behavior/state without UI.
Suited for: Sharing logic independent of design system
Examples: headless useCombobox, useDialog, useTable
| State Type | Recommended Tool | Rationale |
|---|---|---|
| UI Local State | useState, useReducer | Component-internal |
| Server State | React Query (TanStack Query) | Caching, refetch, optimistic updates |
| Global Client State | Zustand | Concise, minimal boilerplate |
| Complex Global State | Zustand + Immer | Immutability convenience |
| URL State | nuqs / useSearchParams | Filters, pagination |
| Form State | React Hook Form + Zod | Integrated validation |
| Theme/Language | Context + Provider | Low change frequency |
Should this state be restorable from URL? → URL state
Is it server data? → React Query
Is it shared across multiple components? → Zustand
Is it internal to one component? → useState
Does it have complex transition logic? → useReducersrc/
├── app/ # Next.js App Router
│ ├── (auth)/ # Auth-related route group
│ │ ├── login/page.tsx
│ │ └── register/page.tsx
│ ├── (main)/ # Main route group
│ │ ├── dashboard/page.tsx
│ │ └── settings/page.tsx
│ ├── api/ # API Routes
│ │ └── [...]/route.ts
│ ├── layout.tsx # Root layout
│ └── page.tsx # Home
├── components/
│ ├── ui/ # General UI (Button, Input, Modal)
│ └── features/ # Feature-specific components
│ ├── auth/
│ └── dashboard/
├── hooks/ # Custom Hooks
├── lib/ # Utilities, config
│ ├── api.ts # API client
│ ├── auth.ts # Auth utilities
│ └── utils.ts
├── stores/ # Zustand stores
├── types/ # TypeScript types
└── styles/ # Global styles| Item | Rule |
|---|---|
| File Name | PascalCase: UserProfile.tsx |
| Directory | kebab-case: user-profile/ |
| Index | Re-export via index.ts |
| Test | UserProfile.test.tsx in same directory |
| Story | UserProfile.stories.tsx in same directory |
| Types | Same file or separate types.ts |
| Pattern | When | Tool |
|---|---|---|
| Memoization | Expensive computation, frequent re-renders | useMemo, React.memo |
| Lazy Loading | Initial bundle size | React.lazy, next/dynamic |
| Virtualization | 1000+ item lists | @tanstack/react-virtual |
| Image Optimization | Image loading | next/image |
| Code Splitting | Per-route splitting | App Router automatic |
| Optimistic Updates | Immediate feedback | React Query onMutate |
| Debounce | Search, input | useDeferredValue or custom hook |
RootErrorBoundary (global)
└── LayoutErrorBoundary (per section)
└── ComponentErrorFallback (individual)| HTTP Status | Client Handling |
|---|---|
| 401 | Auto logout + redirect |
| 403 | Unauthorized UI |
| 404 | Not Found page |
| 422 | Per-field form error display |
| 429 | Retry + wait notice |
| 500 | Generic error UI + retry button |
© revfactory, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in en/16-fullstack-webapp/.claude/skills/component-patterns of revfactory/harness-100.
Open the folder on GitHubat commit 8e8d35c
Component Patterns 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Component Patterns this skillrevfactory/harness-100 | 1.3k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Moai Ref React Patternsmodu-ai/moai-adk | 1.2k | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| React ExpertJeffallan/claude-skills | 12k | — | ~1.4k | Automated safety check: Pass | MIT | |
| Nextjs15 Initbear2u/my-skills | 933 | — | ~2.4k | Automated safety check: Pass | None | |
| Opik Frontend Patternscomet-ml/opik | 22k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| State Managementemanueleielo/deepagents-open-lovable | 111 | — | ~1.7k | Automated safety check: Pass | None |
modu-ai/moai-adk
React/Next.js component design patterns, state management strategies, and project structure reference for frontend development.
Jeffallan/claude-skills
Builds React 19 components in TypeScript with Server Components, useActionState forms, custom hooks and state libraries, checked with tsc and React Testing Library.
bear2u/my-skills
A skill your agent uses when user wants to create a new Next.js 15 project (Todo/Blog/Dashboard/E-commerce/Custom domain) with App Router, ShadCN, Zustand, Tanstack Query, and modern Next.js stack
comet-ml/opik
Sets the conventions for the Opik React frontend: TanStack Query for data, Zustand for shared state, one-way layer imports and a fix for Google Translate crashes.
emanueleielo/deepagents-open-lovable
State management patterns - Zustand, Jotai, Context. An agent skill from emanueleielo/deepagents-open-lovable.
alinaqi/maggy
React web development with hooks, React Query, Zustand. An agent skill from alinaqi/maggy.
revfactory/harness-100
A skill for analyzing website anti-bot defense mechanisms and developing legitimate evasion strategies.
revfactory/harness-100
Reference for designing how an API reports failures: structured error codes, response shapes, client-friendly messages, an error catalog and retry or fallback advice.
revfactory/harness-100
Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.
revfactory/harness-100
Methodology for systematically designing and generating CLI tool argument parser structures.
revfactory/harness-100
Audience segmentation skill used by the analyst and curator agents.
revfactory/harness-100
Audio storytelling skill used by the podcast scriptwriter and show note editor.
Categories
React/Next.js component design pattern library. An agent skill from revfactory/harness-100. Component Patterns is an agent skill from revfactory/harness-100.js component design pattern library.
Component Patterns fits situations like: requests like component patterns; state management; folder structure; component separation.
Run `npx skills add revfactory/harness-100 --skill component-patterns -a claude-code`. Or copy the skill folder (en/16-fullstack-webapp/.claude/skills/component-patterns in revfactory/harness-100) into .claude/skills/component-patterns in your project. Claude Code loads it when a task matches its description.
Run `npx skills add revfactory/harness-100 --skill component-patterns -a codex`. Or copy the skill folder (en/16-fullstack-webapp/.claude/skills/component-patterns in revfactory/harness-100) into .agents/skills/component-patterns in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add revfactory/harness-100 --skill component-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/component-patterns, .gemini/skills/component-patterns, .github/skills/component-patterns and .opencode/skills/component-patterns in your project.
SKILL.md names no scripts, command-line tools or credentials: Component Patterns is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Component Patterns is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Component Patterns: Moai Ref React Patterns (modu-ai/moai-adk, 1.2k stars), React Expert (Jeffallan/claude-skills, 12k stars), Nextjs15 Init (bear2u/my-skills, 933 stars) and Opik Frontend Patterns (comet-ml/opik, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
revfactory (a GitHub user) maintains it in revfactory/harness-100, which has 1,290 GitHub stars. The repository holds 464 skills in this directory. The repository was last updated on March 22, 2026.
Source: revfactory/harness-100 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.