Agent
Codex
Codex 读 AGENTS.md。把「所有 UI 遵守 DESIGN.md」写进去。
文件放在哪
DESIGN.md放在仓库根目录。
AGENTS.md点名 DESIGN.md 是 UI 的准绳。
写入 AGENTS.md
# UI All interface work must follow DESIGN.md at the repository root. Use its tokens. Do not introduce a second brand color.
一行安装
在仓库根目录执行。npm 上的 driftless 是别人的计时库,不要装那个。
npx driftless-styles add mono --skill
MCP
{
"mcpServers": {
"driftless": {
"command": "npx",
"args": ["-y", "driftless-mcp"]
}
}
}