agentleFS
LangChainKnown publisherlangchain-ai/macaw-design-system/.agents/skills/design-system/SKILL.md

design-system

Skill10 starsChanged 2 months agoMITView on GitHub

Build or change @langchain/macaw-components components, tokens, styles, icons, stories, package exports, or documentation in this repository. Use for package work, not product-specific UI in a consuming application.

108 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup-engine, playtest-report and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CoralGameSkill

    setup-engine

    Configure the project's game engine and version. Pins the engine in CLAUDE.md, detects knowledge gaps, and populates engine reference docs via WebSearch when the version is beyond the LLM's training data.

    Also in 7 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • cenconq25Skill

    asset-spec

    Generates per-asset visual specifications and AI-generation prompts from PRDs and the design bible. Produces structured spec files and updates a master asset manifest. Use after design bible is approved and a UX spec or PRD identifies assets to produce. Output: design/assets/<asset>.md plus design/assets/manifest.md.

    Also in 5 projects that use this

  • cenconq25Skill

    create-control-manifest

    Produces a flat, immediately-actionable rules sheet — do this, never do that, per system and per layer — extracted from accepted ADRs, technical preferences, and framework reference docs. More directly usable than ADRs for day-to-day implementation. Run after /architecture-review passes.

    Also in 5 projects that use this

  • +3 more from CoralGame
  • +5 more from cenconq25

The file

Show its rules and text

We split this skill into the rules it gives an agent

15 rules. 0 are common, 7 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 98 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep capability keywords in the static component-level tags array of the colocated story.

    line 18
  2. Very specific:

    Read long docs in bounded sections.

    line 20
  3. Very specific:

    Use ThinkingState for active AI work and LoadingIndicator for its decorative animation.

    line 22
  4. Very specific:

    Search packages/components/src/components, colocated stories, and packages/components/src/stories before adding a new primitive.

    line 30
  5. Distinctive:

    Keep product navigation, data fetching, permissions, analytics, and feature workflows in the consuming application.

    line 33
  6. Distinctive:

    Use named exports. Keep the root barrel lightweight and add an explicit component subpath when the dependency graph is intentionally …

    line 37
  7. Very specific:

    Update the export map, types, story, tests, and docs when a public contract changes.

    line 39
  8. Distinctive:

    Keep the installed CLI independent of React and repository source files.

    line 47
  9. Very specific:

    Keep versions coordinated with Nx and validate all three tarballs with pnpm pack:check.

    line 48
  10. Distinctive:

    Use semantic tokens and the named spacing, radius, shadow, motion, and z-index scales.

    line 52
  11. Very specific:

    Import general-purpose icons from server-safe Phosphor leaf modules such as @phosphor-icons/react/dist/ssr/Check.

    line 56
  12. Distinctive:

    Keep first-party brand geometry as local assets.

    line 59
  13. Distinctive:

    Use Storybook for component development and inspect meaningful interaction, theme, and responsive states.

    line 64
  14. Distinctive:

    Run the checks proportional to the change:

    line 68
  15. Very specific:

    Run pnpm check for release-oriented or broad package changes.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 98 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Macaw Design System

Maintain the shared, domain-free Macaw workspace: components, tokens, and CLI. Read packages/components/docs/DESIGN.md before changing component behavior or visual rules. Read packages/components/docs/STYLES.md when working with tokens, CSS, Tailwind, spacing, or z-index.

Find components and guidance

  • Run pnpm design-system search "<capability>", then pnpm --silent design-system inspect <name> --json for exact imports, source, and stories. Family names group exports; they are not always importable names.
  • Keep capability keywords in the static component-level tags array of the colocated story. The contributor CLI reads this metadata directly; the package build exports it as a catalog for the installed CLI.
  • Read long docs in bounded sections. For styling, read Usage Rules in packages/components/docs/STYLES.md and the sections relevant to the change.
  • Use ThinkingState for active AI work and LoadingIndicator for its decorative animation. Use Spinner for routine loading, Skeleton for known content shapes, and ProgressBar for measurable completion.
  • Component sizes are family-specific. Check packages/components/src/utils/componentSizes.ts and the component's actual supported tiers.

Work from the package contract

  • Search packages/components/src/components, colocated stories, and packages/components/src/stories before adding a new primitive. Extend or compose an existing component when it already owns the interaction.
  • Keep product navigation, data fetching, permissions, analytics, and feature workflows in the consuming application.
  • Preserve accessibility, responsive behavior, light and dark themes, loading, empty, error, and disabled states.
  • Use named exports. Keep the root barrel lightweight and add an explicit component subpath when the dependency graph is intentionally isolated.
  • Update the export map, types, story, tests, and docs when a public contract changes. pnpm verify:package checks the packaged surface.

Package boundaries

  • Components, hooks, icons, and usage guidance live in packages/components.
  • Theme CSS and generated token JSON live in packages/tokens.
  • Discovery commands and agent setup templates live in packages/cli.
  • Keep the installed CLI independent of React and repository source files.
  • Keep versions coordinated with Nx and validate all three tarballs with pnpm pack:check.

Styling and icons

  • Use semantic tokens and the named spacing, radius, shadow, motion, and z-index scales. Do not add raw color, primitive-token, spacing, or stacking literals when the system already represents the intent.
  • Merge conditional classes with cn from packages/components/src/utils/cn.tsx.
  • Import general-purpose icons from server-safe Phosphor leaf modules such as @phosphor-icons/react/dist/ssr/Check. Set size and weight explicitly; use fill only for intentionally filled states.
  • Keep first-party brand geometry as local assets. Do not approximate it with a third-party icon.

Verify changes

Use Storybook for component development and inspect meaningful interaction, theme, and responsive states. Do not claim visual correctness from static checks alone.

Run the checks proportional to the change:

pnpm format
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm verify:package

Run pnpm check for release-oriented or broad package changes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.