AGENTS.md
libs/@hashintel/ds-helpers/AGENTS.mdAGENTS.md
Quality
62/100
Scores the file, not the repository.Length
348 words
8 headings · 4 code blocksRepository
1.6k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# @hashintel/ds-helpers - Agent Context23## Purpose45`@hashintel/ds-helpers` is now a thin generated artifact package.67It should only contain:89- `styled-system/**` generated by Panda10- minimal publish/package metadata (for example `package.json`, README, and licenses)1112It should not own:1314- Panda config15- preset source16- stories or Ladle config17- Playwright tests18- token generation scripts1920The source package is `@hashintel/ds-components`, which writes into `ds-helpers/styled-system` via Panda `outdir`.2122## Architecture2324```25ds-components preset/scripts/demo source26 │27 │ panda codegen (outdir)28 ▼29 ds-helpers/styled-system30 │31 ▼32css(), cva(), token(), jsx runtime for consumers33```3435Boundary rules:3637- never add a runtime or package-manager dependency edge from `ds-helpers` back to `ds-components`38- build orchestration may invoke `ds-components` codegen to materialize `styled-system/**`, but `ds-components` remains the source owner39- never move source-of-truth token or preset code into this package40- if you need to regenerate this package, run `yarn workspace @hashintel/ds-components codegen`4142### Generated Output4344The `styled-system/` directory is generated by Panda CSS codegen and exported as the package's public API:4546| Export | Description |47| -------------------------------- | ---------------------------------------------- |48| `@hashintel/ds-helpers/css` | `css()`, `cva()`, `sva()` utility functions |49| `@hashintel/ds-helpers/tokens` | `token()` function and token type definitions |50| `@hashintel/ds-helpers/types` | TypeScript types for style properties |51| `@hashintel/ds-helpers/patterns` | Layout patterns (stack, flex, grid, etc.) |52| `@hashintel/ds-helpers/jsx` | Styled JSX components (Box, Flex, Stack, etc.) |5354### Usage in ds-components5556Components in `@hashintel/ds-components` import utilities from this package:5758```tsx59import { css, cva } from "@hashintel/ds-helpers/css";60import { token } from "@hashintel/ds-helpers/tokens";61import { Box, Flex } from "@hashintel/ds-helpers/jsx";62```6364## Regeneration6566Run regeneration from the source package, not here:6768```bash69cd libs/@hashintel/ds-components70yarn codegen71```7273`ds-helpers` itself intentionally has no local codegen or demo workflow now.7475## File Structure7677```78libs/@hashintel/ds-helpers/79├── styled-system/ # Panda CSS generated output (committed)80│ ├── css/ # css(), cva(), sva() functions81│ ├── jsx/ # Styled JSX components82│ ├── patterns/ # Layout patterns83│ ├── tokens/ # Token utilities84│ └── types/ # TypeScript types85└── package.json86```8788## Related Packages8990- **ds-components**: source-owning design-system package that generates this artifact (`libs/@hashintel/ds-components`)91
Also in hashintel/hash
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 |
|---|---|---|---|---|---|
| hashintel/hash.cursor/rules/ai-assistant-guidelines.mdc · 1.6k | Cursor rules | do-not | 51/100 | 3 days ago | |
| hashintel/hash.cursor/rules/rust-documentation.mdc · 1.6k | Cursor rules | docs | 33/100 | 3 days ago | |
| hashintel/hash.cursor/rules/git-commit-conventions.mdc · 1.6k | Cursor rules | lint-formatstylegitdo-not | 51/100 | 3 days ago | |
| hashintel/hash.cursor/rules/meaningful-identifiers.mdc · 1.6k | Cursor rules | do-not | 32/100 | 3 days ago | |
| hashintel/hash.cursor/rules/rust-coding-style.mdc · 1.6k | Cursor rules | lint-formatstyletypesdependencies+2 | 69/100 | 3 days ago | |
| hashintel/hash.cursor/rules/rust-error-handling.mdc · 1.6k | Cursor rules | no sections | 31/100 | 3 days ago | |
| hashintel/hash.cursor/rules/rust-testing-strategy.mdc · 1.6k | Cursor rules | testlint-formatstyletesting-strategy | 81/100 | 3 days ago | |
| hashintel/hash.cursor/rules/rust-tracing-practices.mdc · 1.6k | Cursor rules | no sections | 45/100 | 3 days ago | |
| hashintel/hash.cursor/rules/typescript-coding-guidelines.mdc · 1.6k | Cursor rules | styletypesdo-not | 65/100 | 3 days ago | |
| hashintel/hash.cursor/rules/update-rules.mdc · 1.6k | Cursor rules | no sections | 4/100 | 3 days ago | |
| hashintel/hash.github/instructions/code-review.instructions.md · 1.6k | Copilot instructions | lint-formatstylegitdo-not+1 | 78/100 | 3 days ago | |
| hashintel/hash.github/instructions/rust-review.instructions.md · 1.6k | Copilot instructions | lint-formatstylegitdo-not | 73/100 | 3 days ago | |
| hashintel/hash.github/instructions/typescript-review.instructions.md · 1.6k | Copilot instructions | testlint-formatstyletypes+2 | 66/100 | 3 days ago | |
| hashintel/hashAGENTS.md · 1.6k | AGENTS.md | testlint-formatarchtypes+4 | 93/100 | 3 days ago | |
| hashintel/hashlibs/@hashintel/ds-components/AGENTS.md · 1.6k | AGENTS.md | buildtestlint-formatstyle+5 | 97/100 | 3 days ago | |
| hashintel/hashlibs/@hashintel/petrinaut/AGENTS.md · 1.6k | AGENTS.md | buildtestlint-formatstyle | 80/100 | 3 days ago |
Diff against .cursor/rules/ai-assistant-guidelines.mdc Diff against .cursor/rules/rust-documentation.mdc Diff against .cursor/rules/git-commit-conventions.mdc Diff against .cursor/rules/meaningful-identifiers.mdc Diff against .cursor/rules/rust-coding-style.mdc Diff against .cursor/rules/rust-error-handling.mdc Diff against .cursor/rules/rust-testing-strategy.mdc Diff against .cursor/rules/rust-tracing-practices.mdc Diff against .cursor/rules/typescript-coding-guidelines.mdc Diff against .cursor/rules/update-rules.mdc Diff against .github/instructions/code-review.instructions.md Diff against .github/instructions/rust-review.instructions.md Diff against .github/instructions/typescript-review.instructions.md Diff against AGENTS.md Diff against libs/@hashintel/ds-components/AGENTS.md Diff against libs/@hashintel/petrinaut/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 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 | |
| elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+2 | 100/100 | 3 days ago |
