AGENTS.md
packages/dify-ui/AGENTS.mdAGENTS.md
Quality
50/100
Scores the file, not the repository.Length
264 words
2 headings · 0 code blocksRepository
151k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# @langgenius/dify-ui23This package owns shared design tokens, CSS-first Tailwind styles, the `cn()` utility, and headless primitives consumed by `web/`. Read only the matching topic in [`README.md`] for public imports, forms, typed values, pickers, overlays, tokens, or tests.45## Component Authoring Rules67- Build primitives from `@base-ui/react`, `cva`, and `cn`.8- Use relative cross-component imports inside the package and subpath exports such as `@langgenius/dify-ui/button` from consumers. Add a matching `package.json#exports` entry for each public primitive.9- Keep one primitive per `src/<name>/` folder with optional colocated stories and tests.10- Do not import from `web/` or depend on Next.js, i18n, application state, or data-fetching libraries.11- Preserve upstream Base UI anatomy and generic value contracts. Use discriminated unions when one prop changes the valid shape of related props; do not flatten those relationships or hard-code selectable values to `string`.12- Export shared public types from the owning component subpath.13- Prefer Base UI data attributes and CSS variables for visual states; do not mirror primitive state in React solely to add classes.14- When a Base UI API or selector contract is unclear, read the current official documentation and local `@base-ui/react` type declarations before coding.1516Use the README sections as the detailed owners:1718- [Imports and public boundaries]19- [Typed value contracts]20- [Search and picker selection]21- [Tailwind and Figma radius mapping]22- [Overlay and portal contracts]23- [Development and test boundaries]2425[Development and test boundaries]: README.md#development26[Imports and public boundaries]: README.md#imports27[Overlay and portal contracts]: README.md#overlay--portal-contract28[Search and picker selection]: README.md#search-and-picker-selection29[Tailwind and Figma radius mapping]: README.md#tailwind-css-v4-integration30[Typed value contracts]: README.md#typed-value-contracts31[`README.md`]: README.md32
Also in langgenius/dify
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| langgenius/difyAGENTS.md · 151k | AGENTS.md | no sections | 40/100 | today | |
| langgenius/difyapi/AGENTS.md · 151k | AGENTS.md | apiagent-behaviour | 54/100 | 3 days ago | |
| langgenius/difycli/AGENTS.md · 151k | AGENTS.md | testtypestesting-strategy | 58/100 | 3 days ago | |
| langgenius/difycli/src/commands/AGENTS.md · 151k | AGENTS.md | testlint-formatagent-behaviour | 74/100 | 3 days ago | |
| langgenius/difydify-agent/AGENTS.md · 151k | AGENTS.md | styleagent-behaviour | 58/100 | 3 days ago | |
| langgenius/difye2e/AGENTS.md · 151k | AGENTS.md | setupstyletesting-strategyapi | 72/100 | 3 days ago | |
| langgenius/difye2e/features/agent-v2/AGENTS.md · 151k | AGENTS.md | setupbuildtesting-strategyapi+1 | 58/100 | 3 days ago | |
| langgenius/difyweb/AGENTS.md · 151k | AGENTS.md | teststyletesting-strategyagent-behaviour | 47/100 | 3 days ago | |
| langgenius/difyweb/features/agent-v2/AGENTS.md · 151k | AGENTS.md | agent-behaviour | 16/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| wpscanteam/wpscanAGENTS.md · 9.7k | AGENTS.md | setupbuildteststyle+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 51 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 2 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago |
