OpenAI Codex
OpenAI Codex는 CLI와 클라우드 작업 모두에서 AGENTS.md를 자동으로 읽습니다. AGENTS.md가 DESIGN.md를 가리키도록 연결하면 UI 편집 규칙을 엔지니어링 지침 및 빌드 명령어와 깔끔하게 분리할 수 있습니다.
DESIGN.md 배치 위치
my-app/
├── DESIGN.md
├── AGENTS.md
└── src/AGENTS.md에 DESIGN.md 연결하기
AGENTS.md는 아키텍처, 테스트, 작업 라우팅에 집중하고 시각적 결정은 DESIGN.md에 위임합니다.
## UI & Styling
Before modifying files under `src/app/` or `src/components/`, read `DESIGN.md`
in the repository root. Follow its YAML tokens and prose rules (`Colors`,
`Typography`, `Layout`, `Components`, `Do's and Don'ts`). Do not introduce
arbitrary hex values or shadow styles outside the specification.시각 규칙을 AGENTS.md 밖으로 분리하면 린트와 프롬프트 효율이 모두 좋아지는 이유는 CLAUDE.md vs AGENTS.md vs DESIGN.md를 참고하세요.
DesignMD Pro MCP server 연결하기
Codex CLI에서는 ~/.codex/config.toml에 Streamable HTTP MCP server를 설정합니다.
# Public read-only access (30 requests/minute per IP)
[mcp_servers.designmdpro]
url = "https://designmdpro.app/mcp"Pro API 키(계정 → API Keys의 dmdp_…)를 사용할 때는 시크릿이 설정 파일에 평문으로 남지 않도록 셸 환경 변수 DESIGNMDPRO_API_KEY를 내보내고 bearer_token_env_var로 전달하세요.
[mcp_servers.designmdpro]
url = "https://designmdpro.app/mcp"
bearer_token_env_var = "DESIGNMDPRO_API_KEY"셸 작업에서 원시 Markdown으로 명세 가져오기
MCP가 설정되지 않았지만 아웃바운드 HTTP 접근이 가능한 환경에서 Codex를 실행할 때는 원시 .md 엔드포인트를 직접 가져올 수 있습니다.
curl -fsSL https://designmdpro.app/websites/linear.md -o DESIGN.md
npx --yes @google/design.md lint DESIGN.md프롬프트 템플릿
Read DESIGN.md first. Implement the API key management card in src/components/
using the defined surface, border, typography, and button-primary tokens. Run
type-check after editing.Use the designmdpro MCP server to call search_websites and get_design_md
(sections: ["Colors", "Typography", "Do's and Don'ts"]) for a developer-tools
reference, then align our DESIGN.md contrast pairs and validate with the CLI.자주 하는 실수
- 디자인 토큰을
AGENTS.md에 직접 혼합:AGENTS.md의 인라인 산문은@google/design.md lint로 검증하거나 코드 생성기로 내보낼 수 없습니다. - 비 UI 작업을 느리게 하는 무제한 지침: 백엔드 마이그레이션이나 스크립트가 아니라 UI 경로에 한정해
DESIGN.md를 읽도록AGENTS.md포인터를 작성하세요.
다음 단계
- MCP Server 레퍼런스 — 4개 도구 전체와 속도 제한 등급
- REST API & Markdown —
/websites/<slug>.md직접 가져오기 - AI 에이전트를 위한 작성법 — 다중 파일 편집에서도 유지되는 규칙 작성하기
Last updated on