Dify Component Writing Guide
langgenius/dify
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…
Enforces one repository's React and TypeScript module layout for code under src/: source-root imports, feature barrels, deliberate exports and no deep imports.
$ npx skills add siteboon/claudecodeui --skill frontend-module-standards -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install siteboon/claudecodeui frontend-module-standards --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/siteboon/claudecodeui.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/frontend-module-standards .claude/skills/frontend-module-standards && 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 "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .claude/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standardsType 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 siteboon/claudecodeui --skill frontend-module-standards -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install siteboon/claudecodeui frontend-module-standards --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/siteboon/claudecodeui.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/frontend-module-standards .agents/skills/frontend-module-standards && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .agents/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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 siteboon/claudecodeui --skill frontend-module-standards -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install siteboon/claudecodeui frontend-module-standards --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/siteboon/claudecodeui.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/frontend-module-standards .cursor/skills/frontend-module-standards && 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 "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .cursor/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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/siteboon/claudecodeui.git --path .agents/skills/frontend-module-standards--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 siteboon/claudecodeui --skill frontend-module-standards -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install siteboon/claudecodeui frontend-module-standards --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/siteboon/claudecodeui.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/frontend-module-standards .gemini/skills/frontend-module-standards && 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 "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .gemini/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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 siteboon/claudecodeui frontend-module-standardsInstalls 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 siteboon/claudecodeui --skill frontend-module-standards -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/siteboon/claudecodeui.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/frontend-module-standards .github/skills/frontend-module-standards && 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 "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .github/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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 siteboon/claudecodeui --skill frontend-module-standards -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install siteboon/claudecodeui frontend-module-standards --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/siteboon/claudecodeui.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/frontend-module-standards .opencode/skills/frontend-module-standards && 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 "frontend-module-standards" agent skill from https://github.com/siteboon/claudecodeui/tree/main/.agents/skills/frontend-module-standards into .opencode/skills/frontend-module-standards/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "frontend-module-standards", 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.
frontend-module-standardsEnforces one repository's React and TypeScript module layout for code under src/: source-root imports, feature barrels, deliberate exports and no deep imports.
The agent applies the repository's frontend architecture rules only to code under src/, and only to the code it touches or generates, never as a repository-wide migration. Before editing it identifies the owning feature module, searches for existing shared types, utilities, hooks and components, and finds every consumer before moving a definition or changing a module's exports.
Application-source imports use the @ alias for src, even inside one feature module, with no relative paths, while external packages stay as bare specifiers and type-only imports use import type. Each feature gets its own folder under src/modules, holds .ts and .tsx files only, and exposes its public API through an index.ts barrel. Other modules may import it only through that barrel.
Exports are kept to what is needed, and each exported component gets a short comment naming the modules that consume it and why. Backend code under server/ and non-frontend scaffolding are outside the rules.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit dc7cb6c. 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.
Shell commands in SKILL.md call:
npmFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Frontend Module Standards loads about 2.6k tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 1,328 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 siteboon/claudecodeui at commit dc7cb6c, republished under its AGPL-3.0 licence (© siteboon). 1,328 words, ~2,551 tokens.
.claude/skills/frontend-module-standards/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Apply these rules only to frontend code under src/. Preserve the requested task scope: make touched and newly generated frontend code compliant without performing an unrelated repository-wide migration.
@ alias rules.@ as the alias for src.@/... imports whenever the import target is frontend application code inside src, including imports within the same feature module.../, ../../, or ./ for application-source imports.react or react-router-dom.import type for every type-only import.src/modules/<feature>/..ts for non-JSX files and .tsx for files containing JSX. Do not add JavaScript feature-module files.index.ts barrel that exposes only its required public API.index.ts. Never deep-import another module's components, hooks, contexts, modals, utilities, or other implementation details.view/ directories inside feature modules.A feature module may contain only the directories it needs:
src/modules/<feature>/
|-- index.ts
|-- FeatureComponent.tsx
|-- hooks/
|-- context/
|-- modals/
|-- utils/
`-- tests/index.ts barrels.Example:
/** Used by the chat and plugins modules to display the active provider. */
export function ProviderBadge() {
// ...
}interface declarations in frontend code. Use type aliases instead, including for component props, context values, state shapes, and API data.export type when exporting a type.import type when importing a type.export type { Session }.src/shared/types.ts.types.ts files.src/shared/types.ts explaining what it represents and how it should be used.src/shared/utils.ts.utils.ts file or duplicate a shared utility to avoid importing it.src/shared/utils.ts explaining what it does and how it should be used.src/modules/<feature>/utils/ when keeping it in its sole consumer would make that file impractical to maintain.mobileTerminalSelection.ts; do not name them utils.ts.src/shared/utils.ts.src/shared/constants.ts.constants.ts files or duplicate shared constants.UPPER_SNAKE_CASE.src/shared/constants.ts explaining what it represents and how it should be used.Within src/shared/types.ts, src/shared/utils.ts, and src/shared/constants.ts:
//----------------- DESCRIPTION OF GROUP ------------.// ---------------------------.src/modules/<feature>/hooks/.src/shared/hooks/.src/modules/<feature>/context/. For example, the auth module owns AuthContext.src/shared/context/. For example, ThemeContext affects the application broadly.src/shared/ui/ only when two or more different feature modules use it.src/shared/view/ui/ or create view/ directories as an organizational layer.src/shared/api.ts.Treat React state, reducer state, context state, and external-store state as frontend state for these rules.
// ! Possibly unnecessary - <brief reason>.src/modules/<feature>/modals/.src/shared/ui/ only when it is a genuinely reusable UI primitive used by multiple different modules.src/modules/<feature>/tests/.src/shared/tests/.Before finishing:
@/... and external packages still use bare package specifiers.index.ts.export type and import type correctly.npm run test:client, npm run build:client, npm run typecheck, and npm run lint when the task scope and environment permit.© siteboon, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/frontend-module-standards of siteboon/claudecodeui.
Open the folder on GitHubat commit dc7cb6c
Frontend Module Standards 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 |
|---|---|---|---|---|---|---|
| Frontend Module Standards this skillsiteboon/claudecodeui | 14k | — | ~2.6k | Automated safety check: Pass | AGPL-3.0 | |
| Dify Component Writing Guidelanggenius/dify | 158k | — | ~626 | Automated safety check: Pass | Custom licence | |
| Qovery Console StandardsQovery/console | 227 | — | ~924 | Automated safety check: Pass | MIT | |
| Typescript Best Practicesjwynia/agent-skills | 165 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Clean Code TS Reactpproenca/dot-skills | 214 | — | ~3.1k | Automated safety check: Pass | MIT | |
| Frontendstreamband/hydra-srt | 146 | — | ~582 | Automated safety check: Pass | Apache-2.0 |
langgenius/dify
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…
Qovery/console
Qovery Console coding standards, architecture guidelines, naming conventions, testing practices, and development workflows.
jwynia/agent-skills
Guide AI agents through TypeScript coding best practices including type safety, error handling, code organization, and architecture patterns.
pproenca/dot-skills
A skill your agent uses when writing, reviewing, or refactoring TypeScript or React code for craftsmanship — naming, function and component shape, error handling, data modeling, tests, and…
streamband/hydra-srt
A skill your agent uses for frontend work in webapp (React/TypeScript, UI implementation, tests, and refactors).
irahardianto/awesome-agv
React 19+ patterns: custom hooks, Suspense boundaries, state management, component composition, and web performance.
siteboon/claudecodeui
Enforces this repository's TypeScript backend module architecture under server/: feature folders, barrel exports, and where shared types and utilities belong.
Works with
Categories
Enforces one repository's React and TypeScript module layout for code under src/: source-root imports, feature barrels, deliberate exports and no deep imports. The agent applies the repository's frontend architecture rules only to code under src/, and only to the code it touches or generates, never as a repository-wide migration. Before editing it identifies the owning feature module, searches for existing shared types, utilities, hooks and components, and finds every consumer before moving a definition or changing a module's exports.
Frontend Module Standards fits situations like: adding a new feature module or component under src/ in this repository; refactoring frontend code that uses relative imports or reaches into another module's internals; reviewing a frontend pull request against the repository's module rules; moving a hook or utility and updating all of its consumers.
Run `npx skills add siteboon/claudecodeui --skill frontend-module-standards -a claude-code`. Or copy the skill folder (.agents/skills/frontend-module-standards in siteboon/claudecodeui) into .claude/skills/frontend-module-standards in your project. Claude Code loads it when a task matches its description.
Run `npx skills add siteboon/claudecodeui --skill frontend-module-standards -a codex`. Or copy the skill folder (.agents/skills/frontend-module-standards in siteboon/claudecodeui) into .agents/skills/frontend-module-standards 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 siteboon/claudecodeui --skill frontend-module-standards -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-module-standards, .gemini/skills/frontend-module-standards, .github/skills/frontend-module-standards and .opencode/skills/frontend-module-standards in your project.
Going by SKILL.md and its folder, Frontend Module Standards needs the command-line tools its instructions call (npm).
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.
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.
Frontend Module Standards is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.6k tokens (SKILL.md is roughly 10k 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 Frontend Module Standards: Dify Component Writing Guide (langgenius/dify, 158k stars), Qovery Console Standards (Qovery/console, 227 stars), Typescript Best Practices (jwynia/agent-skills, 165 stars) and Clean Code TS React (pproenca/dot-skills, 214 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
siteboon (a GitHub organization) maintains it in siteboon/claudecodeui, which has 13,962 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 5, 2026.
Source: siteboon/claudecodeui on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.