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…
Audit terminology consistency across documentation against the codebase UI labels and the glossary — in prose and in the UI strings shown in screenshots.
$ npx skills add langgenius/dify-docs --skill dify-docs-terminology-check -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install langgenius/dify-docs dify-docs-terminology-check --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/langgenius/dify-docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .claude/skills/dify-docs-terminology-check && 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 "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .claude/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-checkType 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 langgenius/dify-docs --skill dify-docs-terminology-check -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install langgenius/dify-docs dify-docs-terminology-check --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langgenius/dify-docs.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .agents/skills/dify-docs-terminology-check && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .agents/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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 langgenius/dify-docs --skill dify-docs-terminology-check -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install langgenius/dify-docs dify-docs-terminology-check --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langgenius/dify-docs.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .cursor/skills/dify-docs-terminology-check && 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 "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .cursor/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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/langgenius/dify-docs.git --path .claude/skills/dify-docs-terminology-check--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 langgenius/dify-docs --skill dify-docs-terminology-check -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install langgenius/dify-docs dify-docs-terminology-check --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langgenius/dify-docs.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .gemini/skills/dify-docs-terminology-check && 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 "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .gemini/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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 langgenius/dify-docs dify-docs-terminology-checkInstalls 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 langgenius/dify-docs --skill dify-docs-terminology-check -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/langgenius/dify-docs.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .github/skills/dify-docs-terminology-check && 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 "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .github/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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 langgenius/dify-docs --skill dify-docs-terminology-check -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install langgenius/dify-docs dify-docs-terminology-check --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/langgenius/dify-docs.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/dify-docs-terminology-check .opencode/skills/dify-docs-terminology-check && 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 "dify-docs-terminology-check" agent skill from https://github.com/langgenius/dify-docs/tree/main/.claude/skills/dify-docs-terminology-check into .opencode/skills/dify-docs-terminology-check/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "dify-docs-terminology-check", 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.
dify-docs-terminology-checkAudit terminology consistency across documentation against the codebase UI labels and the glossary — in prose and in the UI strings shown in screenshots.
Dify Docs Terminology Check is an agent skill from langgenius/dify-docs. Audit terminology consistency across documentation against the codebase UI labels and the glossary — in prose and in the UI strings shown in screenshots. Covers full files, not just diffs; excludes env var docs. Use after finalizing a draft, or when the user says "check terminology", "check terms", "verify glossary", or "terminology audit".
Its SKILL.md is about 2.3k 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. It works with Dify. The licence is CC-BY-4.0.
8 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 45d4e56. 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:
gitpython3From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, 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.
Dify Docs Terminology Check loads about 2.3k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 1,113 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 langgenius/dify-docs at commit 45d4e56, republished under its CC-BY-4.0 licence (© langgenius). 1,113 words, ~2,341 tokens.
.claude/skills/dify-docs-terminology-check/SKILL.md (or your agent's skills folder).Read-only audit. Verify that documentation terms match the glossary (general terms) and the Dify codebase i18n (UI labels). Covers the whole file, not just the diff. Do NOT modify any files during the audit; report findings and stop.
writing-guides/glossary.md. Two sections matter here:## General Terms — standard body-text terms with English/Chinese/Japanese columns.## UI Labels — product UI strings with an i18n Key column mapping each label to the codebase.main, a feature branch). Default to main if they have no preference.writing-guides/index.md → "Syncing the Dify codebase safely". Never git checkout or git pull in the Dify tree.git fetch --tags origin
REF=$(git rev-parse origin/<branch>)"$REF"; the report cites it (short form, e.g. 61d2ad572a).python3 tools/translate/check-glossary-keys.py --dify <path to the Dify clone> --ref "$REF"GLOSSARY KEYS OK: {n} resolve at {ref} or GLOSSARY KEYS: {n} checked, {m} dead at {ref}; either way the audit continues, because a dead row is a glossary defect, not a page defect. Each DEAD: line names a glossary row whose key no longer exists at the ref. A dead row is not evidence for its label in this audit: resolve that label from the code per the glossary's own rule (the key whose en-US value matches on the surface being documented), do not flag a page for disagreeing with the dead row, and list the dead rows under the report's Dead glossary rows.en/self-host/deploy/configuration/environments.mdxzh/self-host/deploy/configuration/environments.mdxja/self-host/deploy/configuration/environments.mdxFor each file in scope, in the docs repo:
grep -anoE '\*\*[^*]+\*\*' <file> # bolded terms, prints line:**term**
grep -anE '^#{2,3} ' <file> # section headings, prints line:## HeadingThe -a flag is required: some legacy zh/ja pages contain stray NUL bytes, and without it grep prints only Binary file … matches and silently drops the term inventory.
Every bolded term and every heading is a candidate. Step 5 decides deterministically which are UI labels; do not pre-filter by intuition.
Screenshots are candidates too:
grep -anoE '/images/[^) "]+' <file> # local images, prints line:/images/pathView each listed image and read every UI string it displays; strings that are labels verify under Step 5 like bolded terms. An image showing a superseded string is a finding for re-capture — the fix is a new screenshot at the same path, never a prose edit. The pattern deliberately matches only local /images/ paths; legacy CDN images (assets-docs.dify.ai) stay out of scope.
The codebase i18n is the source of truth for UI labels: web/i18n/en-US/ (flat JSON files with dot-flattened keys, e.g. "menus.apps": "Studio"), plus zh-Hans/ and ja-JP/ siblings. The glossary's i18n Key column maps to them: common.menus.apps → file common.json, key "menus.apps".
A key's value counts as the visible label only after checking its render site: git grep the key under web/ and confirm it lands in on-screen text. Values feeding aria-label, tooltips, or placeholders are not the label, and shared generic keys (common.operation.*) often supply the visible text instead — the Skills section's add button renders operation.add ("Add") while skills.add ("Add skill") is its aria-label. A product or staging screenshot outranks any code inference. A term's presence on sibling pages is not evidence either: neighbors drift together, so a word found across the doc set is traced to the UI like any other ("console" appeared on several pages and nowhere in the product). When a term fails, sweep the whole page for every occurrence before reporting; a finding is not done at one instance.
For each candidate term (use the English term; for zh/ja files, take the candidate from the same position in the en sibling):
## UI Labels row in the glossary, read its i18n Key; skip to substep 3 to confirm the codebase still agrees.git grep -nF '"<Term>"' "$REF" -- 'web/i18n/en-US/*.json'<REF>:web/i18n/en-US/common.json:285: "menus.apps": "Studio",) → it is a UI label; note the file and key.git grep -nF '<key>' "$REF" -- 'web/app/**'; components may reference the key without its file prefix, so retry with the suffix when there are no hits), and record which key you chose and why. Never assume the closest-looking key.git grep -inF '<term>' "$REF" -- 'web/i18n/en-US/*.json'. A hit here means the doc's casing or wording deviates from the UI string — flag it.git grep -nF '"<key>"' "$REF" -- web/i18n/en-US/<file>.jsongit grep -nF '"<key>"' "$REF" -- web/i18n/zh-Hans/<file>.json
git grep -nF '"<key>"' "$REF" -- web/i18n/ja-JP/<file>.jsonFor candidates that are not UI labels, and for terms noticed while reading the prose:
grep -in '<term>' writing-guides/glossary.md. Expected output: the table row(s) containing the term; no hit means the term is not standardized (consider it for Glossary Gaps if it recurs).en/, Chinese for zh/, Japanese for ja/. Honor the row's Notes (casing rules, context restrictions). Flag every deviation with its line number.Report findings in this format, then STOP. Do not edit any file until the user responds.
## Terminology Check Results
Checked against Dify codebase `origin/<branch>` at `<short REF>`.
### File: {path}
**General Terms**
- ✅ No issues found
OR
- ⚠️ Line {n}: "{found}" should be "{expected}" per glossary
**UI Labels**
- ✅ All UI labels (bolded terms and feature section headings) match codebase
OR
- ⚠️ Line {n}: **{label}** — codebase says "{expected}" (web/i18n/<locale>/<file>.json, key "<key>")
**Stale Screenshots**
- ✅ No local image shows a superseded UI string
OR
- ⚠️ {image path} (line {n}): shows "{old string}"; the current label is "{new label}" (key "<key>") — re-capture needed
**Glossary Gaps**
- Terms used in docs but missing from glossary: {list}
- Glossary entries outdated compared to codebase: {list}
**Dead glossary rows**
- ✅ Every cited i18n key resolves at `<short REF>`
OR
- ⚠️ {key} (glossary.md:{n}, {section}) — no longer exists; label resolved from the code as "{current label}"If the user approves fixes for Glossary Gaps:
writing-guides/glossary.md with the approved rows.python3 tools/translate/derive-termbase.pyGenerated .../tools/translate/termbase_i18n.md.python3 tools/translate/derive-termbase.py --checktermbase_i18n.md is in sync with glossary.md. and exit 0. git diff tools/translate/termbase_i18n.md must show only rows corresponding to the approved glossary edits.© langgenius, CC-BY-4.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 .claude/skills/dify-docs-terminology-check of langgenius/dify-docs.
Open the folder on GitHubat commit 45d4e56
Dify Docs Terminology Check 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 |
|---|---|---|---|---|---|---|
| Dify Docs Terminology Check this skilllanggenius/dify-docs | 178 | — | ~2.3k | Automated safety check: Pass | CC-BY-4.0 | |
| Dify Component Writing Guidelanggenius/dify | 158k | — | ~626 | Automated safety check: Pass | Custom licence | |
| Frontend Code Reviewaiskillstore/marketplace | 430 | — | ~1.4k | Automated safety check: Pass | None | |
| Frontend Code Reviewlanggenius/dify | 158k | — | ~938 | Automated safety check: Pass | Custom licence | |
| Dify Frontend Testinglanggenius/dify | 158k | — | ~242 | Automated safety check: Pass | Custom licence | |
| Component RefactoringOhh-889/skyroc | 795 | 1 repos | ~3.5k | Automated safety check: Pass | MIT |
langgenius/dify
Use when implementing or refactoring React/TypeScript components and the task requires decisions about component ownership, feature boundaries, state, data…
aiskillstore/marketplace
Review Dify frontend code for correctness, accessibility, component design, dify-ui usage, data/query boundaries, performance, and tests.
langgenius/dify
Reviews frontend changes under `web/` or `packages/dify-ui/` for concrete defects and broken project contracts, using routed rule packs and a severity scale for findings.
langgenius/dify
Use when writing or changing Vitest or React Testing Library tests under `web/` or `packages/dify-ui/`, or when the user explicitly requests frontend test…
Ohh-889/skyroc
Refactor high-complexity React components in Dify frontend. An agent skill from Ohh-889/skyroc.
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
langgenius/dify-docs
Research a Dify feature before writing or optimizing documentation.
langgenius/dify-docs
Check formatting compliance in changed documentation against writing-guides/formatting-guide.md and tools/translate/formatting-{zh,ja}.md.
langgenius/dify-docs
Rule pack for the Service API specs ({en,zh,ja}/api-reference/openapiservice.json): spec conventions, app-type scoping, code-verification rules, and the audit machinery.
langgenius/dify-docs
Rule pack for the environment variable reference — en/self-host/deploy/configuration/environments.mdx.
langgenius/dify-docs
The entry point for writing or revising any documentation in this repo: user guides, deployment pages, plugin-dev pages, API specs, the env-var reference, CLI pages.
langgenius/dify-docs
Judge a finished draft as the docs owner would: a fresh agent reads it against the style guide and the reference page in its genre, marks the sentences that fall short, and returns a ship verdict on…
Works with
Categories
Audit terminology consistency across documentation against the codebase UI labels and the glossary — in prose and in the UI strings shown in screenshots. Dify Docs Terminology Check is an agent skill from langgenius/dify-docs. Audit terminology consistency across documentation against the codebase UI labels and the glossary — in prose and in the UI strings shown in screenshots.
Dify Docs Terminology Check fits situations like: says check terminology; verify glossary; terminology audit.
Run `npx skills add langgenius/dify-docs --skill dify-docs-terminology-check -a claude-code`. Or copy the skill folder (.claude/skills/dify-docs-terminology-check in langgenius/dify-docs) into .claude/skills/dify-docs-terminology-check in your project. Claude Code loads it when a task matches its description.
Run `npx skills add langgenius/dify-docs --skill dify-docs-terminology-check -a codex`. Or copy the skill folder (.claude/skills/dify-docs-terminology-check in langgenius/dify-docs) into .agents/skills/dify-docs-terminology-check 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 langgenius/dify-docs --skill dify-docs-terminology-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dify-docs-terminology-check, .gemini/skills/dify-docs-terminology-check, .github/skills/dify-docs-terminology-check and .opencode/skills/dify-docs-terminology-check in your project.
Going by SKILL.md and its folder, Dify Docs Terminology Check needs the command-line tools its instructions call (git and python3). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use git, 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.
Dify Docs Terminology Check is published under the CC-BY-4.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.4k 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 Dify Docs Terminology Check: Dify Component Writing Guide (langgenius/dify, 158k stars), Frontend Code Review (aiskillstore/marketplace, 430 stars), Frontend Code Review (langgenius/dify, 158k stars) and Dify Frontend Testing (langgenius/dify, 158k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
langgenius (a GitHub organization) maintains it in langgenius/dify-docs, which has 178 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 9, 2026.
Source: langgenius/dify-docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.