让AI Agent直接调用Meta设计系统构建UI
Meta开源了支撑13000多个应用的适配AI Agent的设计系统Astryx。通过将其接入Claude或Grok,你的AI Agent可以构建出摆脱AI痕迹的高质量React界面。
X (Twitter)@0xMovez94点赞
AstryxClaude CodeGrokBotMCP server
收录于 2026-11-09 · 原文发布于 2026-11-08
操作步骤
- 1在React 19+项目文件夹中打开Claude Code
- 2对AI输入指令:安装 @astryxdesign/cli 并运行 astryx init --features agents 设置上下文
- 3确认AI在 CLAUDE.md 中写入了组件索引、CLI参考和开发规范
- 4通过指令让AI开始构建,例如:astryx build “[你的产品想法]”
- 5将MCP服务器链接添加到 .mcp.json 中,让Claude实时查询文档
- 6如使用Grok或其他Agent,配置对应的MCP链接或运行 init --agent codex 生成 AGENTS.md
- 7通过提问测试Agent是否成功加载配置并正确回答组件导入路径与属性
可复制提示词
Install @astryxdesign/cli and run astryx init --features agents to set up your Astryx context. Read the generated file, and build a UI for [你的产品想法或需求].
#AI Agent#前端开发#Meta开源#React
相关用例
内容由 AI 依据原文翻译整理,细节以原帖为准;版权归原作者。