Claude Code 前端开发自动化检查规则
If you build frontends with Claude Code, you need this rule.
提供了一套结构完整、可立即复制使用的 AI 编程辅助规则,将抽象的开发经验转化为具体的 Prompt 指令,对同类创作者有较高的实操参考价值。
If you build frontends with Claude Code, you need this rule.
如果你用 Claude Code 构建前端,你需要这条规则。
Once it's in, Opus 5.5 fixes the UI bugs a screenshot can catch 𝗯𝗲𝗳𝗼𝗿𝗲 𝘆𝗼𝘂 𝗲𝘃𝗲𝗿 𝘀𝗲𝗲 𝘁𝗵𝗲𝗺.
一旦加入它,Opus 5.5 能在你看到 UI bug 之前就修复它们——只要截个图就行。
It uses Codex's computer use to open your browser and screenshot the live site and your local version to compare them. If something looks off, it fixes it first, screenshots again, and only then comes back to you.
它利用 Codex 的计算机使用功能打开你的浏览器,对实时站点和本地版本进行截图并对比。如果发现异常,它会先修复问题,再次截图,然后才向你汇报。
It runs in your own browser (approve it in Codex first), so it can see 𝗮𝗱𝗺𝗶𝗻 𝗽𝗮𝗴𝗲𝘀 𝗯𝗲𝗵𝗶𝗻𝗱 𝘆𝗼𝘂𝗿 𝗹𝗼𝗴𝗶𝗻 too.
它在你自己的浏览器中运行(需先在 Codex 中批准),因此也能查看登录后的管理页面。
Send this rule to Claude Code 👇
将此规则发送给 Claude Code 👇
"Add a rule to ~/.claude/CLAUDE.md: When you change code that affects how a page looks, check it with codex-cu before you tell me it's done. Hand the check to a subagent, and give it the URLs, the pages to look at and what you changed. It reports back in text only: 1. Open a new tab in the browser I've approved in Codex. Load the live site first, then the local version. If the page isn't live yet, check only the local version. Set the address bar's value to the URL directly; don't type it key by key. If the local page won't load, start the dev server. If it still won't load, stop and tell me 2. Take the screenshot only after the page content has switched to the new page; a changed title doesn't count. On long pages, scroll down and screenshot as you go 3. List what's different between the two. With only a local version, list anything misaligned, overlapping, blank or throwing errors. Mark which differences this change caused 4. Don't touch tabs I already have open, don't type passwords or tokens, and don't click submit, pay or send. If an approval window pops up, stop and tell me. Close the tab you opened when you're done The first time for each project, ask me for its live URL and local address, and save them in that project's CLAUDE.md. Only fix problems this change caused. After fixing, check again, at most two rounds. If problems remain, list them for me. If codex-cu says "native pipe startup failed", tell me to reconnect it in /mcp, and don't switch to another tool to get around it."
"向 ~/.claude/CLAUDE.md 添加一条规则: 当你修改影响页面外观的代码时,在告诉我完成之前,先用 codex-cu 进行检查。将检查任务交给子代理,并提供 URL、需要查看的页面以及你所做的更改。它仅以文本形式反馈: 1. 在你在 Codex 中已批准的浏览器中新开一个标签页。先加载实时站点,再加载本地版本。如果页面尚未上线,则仅检查本地版本。直接将地址栏的值设置为 URL;不要逐字输入。如果本地页面无法加载,请启动开发服务器。如果仍然无法加载,请停止并告诉我 2. 仅在页面内容切换到新页面后截图;标题变更不算。对于长页面,向下滚动并在过程中截图 3. 列出两者之间的差异。仅有本地版本时,列出任何错位、重叠、空白或报错的地方。标记哪些差异是由本次更改引起的 4. 不要触碰我已打开的标签页,不要输入密码或令牌,也不要点击提交、支付或发送按钮。如果出现审批窗口,请停止并告诉我。完成后关闭你打开的标签页 每个项目首次使用时,向我询问其实时 URL 和本地地址,并将它们保存到该项目的 CLAUDE.md 中。 仅修复本次更改导致的问题。修复后重新检查,最多两轮。如果问题仍然存在,请为我列出。如果 codex-cu 提示“原生管道启动失败”,请告诉我通过 /mcp 重新连接它,不要切换到其他工具来绕过它。"
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力