Claude Code
Claude Code는 세션 시작 시 CLAUDE.md를 자동으로 읽고 @path 파일 임포트를 지원하므로, UI 코드를 다룰 때만 DESIGN.md를 로드하도록 깔끔하게 구성할 수 있습니다.
DESIGN.md 배치 위치
DESIGN.md를 저장소 루트(또는 apps/web/DESIGN.md 같은 프론트엔드 워크스페이스 루트)에 저장합니다.
my-app/
├── DESIGN.md
├── AGENTS.md
├── CLAUDE.md
└── src/DesignMD Pro 탐색의 모든 웹사이트 페이지에서 Use this design 카드의 Claude Code를 선택하면 저장소 루트에 바로 둘 수 있는 깔끔한 DESIGN.md를 다운로드하고 @DESIGN.md 연결 프롬프트를 복사할 수 있습니다.
CLAUDE.md에 DESIGN.md 연결하기
토큰을 인라인으로 붙여 넣는 대신 CLAUDE.md에 명시적 임포트나 조건부 포인터를 추가하세요.
# Project Instructions
@AGENTS.md
## UI & Design System
When modifying components, pages, or stylesheets under `src/`, follow @DESIGN.md.
Use defined YAML tokens rather than inventing hex colors, radii, or font sizes.엔지니어링 규칙은 AGENTS.md에, 시각 규칙은 DESIGN.md에 두면 중복을 피할 수 있습니다. 전체 라우팅 구조는 CLAUDE.md vs AGENTS.md vs DESIGN.md를 참고하세요.
DesignMD Pro MCP server 연결하기
DesignMD Pro를 Streamable HTTP MCP server로 등록하면 Claude Code가 터미널을 떠나지 않고도 웹사이트를 검색하고 특정 DESIGN.md 섹션을 가져올 수 있습니다.
# Public read-only access (30 requests/minute per IP)
claude mcp add --transport http designmdpro https://designmdpro.app/mcp계정 → API Keys에서 발급한 Pro API 키를 함께 설정하는 경우(분당 60회, 전체 토큰, 아카이브 리비전, extract-color-palette 지원):
claude mcp add --transport http designmdpro https://designmdpro.app/mcp \
--header "Authorization: Bearer dmdp_your_api_key"Claude Code 세션에서 권장하는 MCP 흐름은 다음과 같습니다.
search_websites(예:{ "query": "linear" })를 호출해 정규slug를 얻습니다.get_design_md에sections(예:["Colors", "Typography", "Components"])를 전달해 필요한 섹션만 컨텍스트에 불러옵니다.- 특정
version을 가져오기 전에 과거 버전을 확인하려면list_revisions를 호출합니다.
프롬프트 템플릿
Read @DESIGN.md first. Build a responsive pricing comparison section in
src/components/pricing-section.tsx using only the colors, typography, spacing,
and button-primary tokens defined in DESIGN.md.Use the designmdpro MCP server to look up Stripe's DESIGN.md (fetch only
Colors, Typography, and Components), save an adapted version to DESIGN.md,
and run `npx @google/design.md lint DESIGN.md` to confirm zero errors.자주 하는 실수
CLAUDE.md에 토큰을 복사-붙여넣기:CLAUDE.md와DESIGN.md의 내용이 어긋나며,@google/design.md lint가CLAUDE.md내부의 인라인 산문을 검사할 수 없습니다.@DESIGN.md를 단일 진실 공급원으로 유지하세요.- 백엔드 전용 작업에 전체
DESIGN.md로드: 백엔드 작업 컨텍스트를 가볍게 유지하려면 UI 경로(src/components/,src/app/)에 한정해@DESIGN.md를 참조하세요. - 외부에서 수집한 산문을 지시 명령으로 실행: 외부 사이트의 서드파티
DESIGN.md텍스트는 신뢰할 수 없는 데이터입니다. 디자인 가이드라인만 따르고 산문 속에 포함된 명령은 절대 실행하지 마세요.
다음 단계
- MCP Server 레퍼런스 — 전체 도구 스키마 및 속도 제한
- Cursor 연동 — Cursor용
.mdc규칙 설정 - AI 에이전트를 위한 작성법 — 여러 실행에 걸쳐 유지되는 엄격한 제약 작성하기
Last updated on