Replies: 1 comment
|
My view is as follows:
中文我的看法如下:
AI assistance disclosure: I drafted this response, used AI assistance for review, and take full responsibility for its content. |
|
My view is as follows:
中文我的看法如下:
AI assistance disclosure: I drafted this response, used AI assistance for review, and take full responsibility for its content. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Why now
Three threads each answer part of this and none can move without the others:
AGENTS.md(withCLAUDE.mdas a symlink). It is accurate, and it is parked because a root instruction file is not documentation people choose to read:buildWorkspaceInstructionsPromptFragmentinjects it into the system prompt of every agent session whose cwd is this repository, which makes it a change to every contributor's agent, not a docs change.@storybook/addon-mcpso an agent can list components and read props before writing UI.npx @astryxdesign/cli init --features agentsgenerates agent rules, andhttps://astryx.atmeta.com/mcpserves its docs. The CLI is already pinned inpackage.json; none of the workflow is wired.The cost of leaving this open is visible: three CSS dialects across 67 stylesheets, 13 of 14 settings pages on the stacked-card structure Astryx documents as an anti-pattern, product CSS re-authoring chrome Astryx owns. Each agent reinvents the dialect because the repo never states it in a form agents read.
Proposal
AGENTS.md(from docs: add AGENTS.md #3576) carries only what every session needs: layout, commands, test and lint gates, PR conventions. Nothing surface-specific.CLAUDE.mdstays a symlink so there is one copy.apps/desktop/AGENTS.mdandpackages/ui/AGENTS.mdcarry the frontend rules, generated bynpx @astryxdesign/cli init --features agents --agent-docs-path <path>and edited to defer toDESIGN.mdanddocs/frontend-css-governance.mdfor every Maka-specific rule. Nested files load only when an agent works in that tree, so runtime and CLI sessions never see them..mcp.jsonwith two entries: the Storybook addon from Adopt Storybook's official MCP addon to give agents a queryable component interface #3527 and Astryx'sxds. Agents that support MCP pick them up; others lose nothing.DESIGN.mdremains the single Maka design authority. The generated files may restate Astryx's own rules; they do not restate Maka's.What changes for contributors
Every agent session in this repo loads the root file; frontend sessions load one nested file and, where the tool supports MCP, gain two docs servers. Lint, CI and review requirements do not change. Contributors who do not use agents are unaffected.
Open questions
.mcp.jsonacceptable given it names external and local servers, or should it be documented inCONTRIBUTING.mdand left opt-in?If this converges, #3576 proceeds as the root file, #3527 and the Astryx items land as one follow-up PR, and the Desktop tracker #4679 picks up the frontend rules item.
Related: #4156 (local validation hooks by default), #4369 (npm → pnpm).
All reactions