RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/langgenius/dify

AGENTS.md

packages/dify-ui/AGENTS.md
AGENTS.md

Quality

50/100

Scores the file, not the repository.

Length

264 words

2 headings · 0 code blocks

Repository

151k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
langgenius/dify/packages/dify-ui/AGENTS.mdRawGitHub
1# @langgenius/dify-ui
2 
3This 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.
4 
5## Component Authoring Rules
6 
7- 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.
15 
16Use the README sections as the detailed owners:
17 
18- [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]
24 
25[Development and test boundaries]: README.md#development
26[Imports and public boundaries]: README.md#imports
27[Overlay and portal contracts]: README.md#overlay--portal-contract
28[Search and picker selection]: README.md#search-and-picker-selection
29[Tailwind and Figma radius mapping]: README.md#tailwind-css-v4-integration
30[Typed value contracts]: README.md#typed-value-contracts
31[`README.md`]: README.md
32 

Sections

  • @langgenius/dify-ui
  • Component Authoring Rules

What it covers

code-stylesecurityuido-not

Stack — with the evidence

typescript

(1.00)

ai-agent

(1.00)

javascript

(0.60)

node

(0.60)

vite

(0.60)

monorepo

(0.60)

pnpm

(0.60)

vitest

(0.60)

eslint

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
langgenius
Language
—
License
—
Archived
no

All configs in this repo

Also in langgenius/dify

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
langgenius/difyAGENTS.md · 151kAGENTS.mdtypescriptai-agent+7no sections40/100today
langgenius/difyapi/AGENTS.md · 151kAGENTS.mdtypescriptpython+10apiagent-behaviour54/1003 days ago
langgenius/difycli/AGENTS.md · 151kAGENTS.mdtypescriptai-agent+7testtypestesting-strategy58/1003 days ago
langgenius/difycli/src/commands/AGENTS.md · 151kAGENTS.mdtypescriptai-agent+7testlint-formatagent-behaviour74/1003 days ago
langgenius/difydify-agent/AGENTS.md · 151kAGENTS.mdtypescriptpython+9styleagent-behaviour58/1003 days ago
langgenius/difye2e/AGENTS.md · 151kAGENTS.mdtypescriptai-agent+7setupstyletesting-strategyapi72/1003 days ago
langgenius/difye2e/features/agent-v2/AGENTS.md · 151kAGENTS.mdtypescriptai-agent+7setupbuildtesting-strategyapi+158/1003 days ago
langgenius/difyweb/AGENTS.md · 151kAGENTS.mdtypescriptnextjs+10teststyletesting-strategyagent-behaviour47/1003 days ago
langgenius/difyweb/features/agent-v2/AGENTS.md · 151kAGENTS.mdtypescriptai-agent+7agent-behaviour16/1003 days ago
Diff against AGENTS.md Diff against api/AGENTS.md Diff against cli/AGENTS.md Diff against cli/src/commands/AGENTS.md Diff against dify-agent/AGENTS.md Diff against e2e/AGENTS.md Diff against e2e/features/agent-v2/AGENTS.md Diff against web/AGENTS.md Diff against web/features/agent-v2/AGENTS.md

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack