用 AI 如何做出好看的前端页面?

发现用 AI 做前端页面有点费劲。

用了 DESIGN.md ,整体风格可以做得有模有样,但是细节上有太多问题。包括但不限于,文字拥挤、空白过大,布局不合理等。即使对把这些约束写在 AGENTS.md 中,AI 也很难遵守。

这些问题不仅在新建的项目上有,在已有的项目里加一个页面,也很经常出现。模型用的 GPT-5.5 。

大家有什么好的方法么?

用 AI 如何做出好看的前端页面?

发现用 AI 做前端页面有点费劲。

用了 DESIGN.md ,整体风格可以做得有模有样,但是细节上有太多问题。包括但不限于,文字拥挤、空白过大,布局不合理等。即使对把这些约束写在 AGENTS.md 中,AI 也很难遵守。

这些问题不仅在新建的项目上有,在已有的项目里加一个页面,也很经常出现。模型用的 GPT-5.5 。

大家有什么好的方法么?

实例讲解什么是上下文治理

上下文治理( Context Governance )是上下文工程( Context Engineering )中的一个部分。但我觉得,上下文治理是上下文工程里最有意思的部分。

光这么说,你肯定会像我一开始一样,觉得这个概念很抽象。但是,如果你跟我一样,了解了几种主流智能体( Agent )的上下文治理之后,你一定会对"上下文治理"有一个非常直观的理解。

接下来,我会通过比较 4 种智能体的上下文治理方式,让你直观地理解什么是上下文治理。以下四种工具的上下文治理,从简单到复杂、从低级到高级。


Codex

首先是 OpenAI 的 Codex 。虽然 OpenAI 是第一个做出 LLM 的公司,但是它们的智能体产品反而最年轻。

虽然它最年轻,但它的上下文治理也是最简单的。在 .codex/ 目录下,有一个叫 AGENTS.md 的文件。这是一个简单的…

Read more →
你们是怎么解决 CodeX 写代码过于难看的问题的

RT ,最近主力切换到 CodeX 之后发现 CodeX 会写无穷无尽的胶水代码、兜底代码和一些根本不存在的转换/try-catch 等等,哪怕在 prompt 里详细写清楚需要做的事情,或者用 Opus 4.7 写 plan 再执行也不会有很大改善。仿佛这种倾向刻进 CodeX 骨子里了。今天让它写一个简单的训练脚本,100 行的脚本里有一半是对一个命令行参数是否正确输入的判断,彻底晕了。 之前自己在网上找了一些方法写进 AGENTS.md 里,

## Coding Standard 1. Simplicity First. 2. Failfast instead of over-design, over-engineering, over-error-handling and over-fallbacks - Only make changes that are…
Read more →
Optimiser Contenus pour Agentic Engine Optimization AEO

Imaginez un monde où vos articles de blog ne sont plus seulement lus par des humains curieux, mais découpés, analysés et réutilisés par des agents IA autonomes capables de prendre des décisions en quelques secondes. Ce scénario n’est plus de la science-fiction : il définit déjà l’évolution du marketing digital en 2026. Avec l’essor des […]

The post Optimiser Contenus pour Agentic Engine…

Marco de preparación para agentes de código

Los agentes de código están aquí, y no van a irse. Pero después de meses usándolos —Antigravity, AmpCode, Opencode, el agente de Zed— he llegado a una conclusión incómoda: el problema no suele ser el agente, sino el proyecto. Un repositorio mal preparado derrota a cualquier agente, sin importar qué tan avanzado sea el modelo que tenga detrás.

En mi publicación sobre ingeniería de contexto,…

Read more →
Agent Readiness Framework for Coding Projects

Coding agents are here, and they are not going away. But after months of using them —Antigravity, AmpCode, Opencode, Zed’s built-in agent— I have reached an uncomfortable conclusion: the problem is usually not the agent, it is the project. A poorly prepared repository will defeat any agent, regardless of how advanced its underlying model is.

I wrote about context engineering before, and…

Read more →
Page 1