ko-design-md: Instructions file for Claude Code

CLAUDE.md

ko-design-md CLAUDE.md is an instructions file for Claude Code from CaesiumY/ko-design-md. It costs 5,512 tokens per session, scanned A, original, MIT.

A set of project instructions for ko-design-md, an open catalogue of Korean design systems written in Markdown files. It documents validation commands, catalogue rules, Google’s design.md standard, and audit notes.

In plain words
What is it for?
Use it when adding or reviewing design-system files, previews, design tokens, citations, and related project changes.
Why use it?
It gives contributors shared rules for formatting, validating, testing, and updating catalogue entries before continuous integration checks them.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths.

This is CaesiumY/ko-design-md's own configuration. It tells Claude Code how to work on ko-design-md itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ko-design-md configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CaesiumY/ko-design-md. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CaesiumY/ko-design-md/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/CaesiumY/ko-design-md

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ko-design-md CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/caesiumy/ko-design-md/claude-md.svg)](https://agentmods.dev/instructions/caesiumy/ko-design-md/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/caesiumy/ko-design-md/claude-md"><img src="https://agentmods.dev/badge/instructions/caesiumy/ko-design-md/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 5,512 This file is loaded in full into every session.
When invoked 5,512 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.05512 $0.05512
Opus 5 $0.02756 $0.02756
Sonnet 5 $0.01102 $0.01102
Haiku 4.5 $0.00551 $0.00551

Measured 4d ago against content hash 34b8ee724948, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

ko-design-md CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 231 lines

How it starts

The opening of the file, as written. The whole thing — 231 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ko-design-md

한국 브랜드의 디자인 시스템을 Stitch v0.1 마크다운(services/{slug}.md)으로 정리한 오픈 카탈로그. TanStack Start 사이트(getdesign.kr)가 이를 서빙하고, /design-md 스킬(.claude/skills/design-md)이 새 항목 온보딩 파이프라인을 자동화한다. 패키지 매니저는 pnpm (npm 금지).

검증 커맨드 (CI 게이트와 동일)

pnpm typecheck && pnpm lint && pnpm format:check
pnpm test               # vitest — .claude/ 하위는 제외됨
pnpm validate:catalog   # services/*.md 전수: frontmatter·섹션 순서·OKLCH·인용 무결성
pnpm validate:previews  # public/preview/*/ 전수: 구조 block + 반응형 휴리스틱 warn
pnpm tokens:check       # services/*.tokens.json 이 소스 md 와 일치하는지 (drift 게이트)
pnpm audit:oklch        # OKLCH↔병기 hex 일치 + 프리뷰가 md 정의와 어긋나지 않는지
pnpm check:last-updated # 이 브랜치가 바꾼 services/*.md 의 last_updated 가 최신인지
pnpm validate:spec      # 로컬 진단용 출력. 실제 게이트는 pnpm test 안의
                        # google-designmd-corpus.test.ts (같은 공식 린터를 vitest 로)
pnpm build              # build:og + vite build

단일 파일 검사: pnpm validate:draft <file.md> [--slug X --expected-logo <url> --lang ko], pnpm validate:previews --slug <slug> --verbose. 스킬 파이프라인은 이 검증기를 author→reviewer 사이 기계 게이트(Stage 6a2/9a2)로 실행한다.

카탈로그 정책 (위반은 CI가 block)

  • 토큰은 frontmatter 에 산다. colors: · typography: · spacing: · rounded: 맵이 Google DESIGN.md 형태다. 이 네 섹션의 본문 yaml 펜스는 폐기된 형태로, 추출기가 폴백으로만 읽는다 — 카탈로그 20개 전부 이전돼 토큰 섹션의 펜스는 0개다. 그룹은 ## 라벨 주석 행이 열고(사이드카 group), 토큰별 단서는 그 줄의 트레일링 # 주석이 나른다(사이드카 note — 기계 소비자에게 닿는 유일한 경로).
  • 다만 본문 펜스가 전부 사라진 건 아니다. 40개가 남아 있고 의도된 것이다 — ## Elevation & Depth 아래 22개 · ## Components 의 스펙 16개 · ## Motion 2개. 그 22개가 전부 shadow 는 아니다 — 5개가 이징·duration 맵이고(### Motion 둘 · ### Animation 하나 · 하위 헤딩 없이 둘), 나머지 17개가 shadow·elevation 이다. 즉 모션 토큰은 두 헤딩에 갈려 있으니 ## Motion 만 세면 7개 중 2개만 잡는다. 사이드카(ServiceTokens)에도 스펙의 토큰 맵에도 이들을 담을 자리가 없어서 본문에 남는다. 컴포넌트 스펙 펜스는 컴포넌트 이름 아래로 한 단계 중첩해서 쓴다 — 린터가 frontmatter 와 모든 본문 펜스를 한 네임스페이스로 병합하므로, 0열 키가 두 펜스에 겹치면 그 문서 전체가 0토큰이 된다(wanted 가 키 7개 충돌로 그랬다).
  • 색상 토큰 값은 OKLCH만. frontmatter colors: 맵의 name: oklch(...) 형식. 원본 hex는 # #FAFAFA 트레일링 주석이나 같은 줄 (≈ oklch(...)) 병기로만 기록.
  • 값을 인용하지 말 것 — 이제 block 이다(quoted-token-value). 인용하면 audit:oklch 와 드리프트 검사가 그 토큰을 못 보고 둘 다 통과를 보고한다. 벌거벗은 #FF0038 은 YAML 이 주석으로 읽어 애초에 무효라, 인용형이 hex 를 쓸 수 있는 유일한 철자였고 그래서 정확히 그것이 잡혀야 했다. 참조("{colors.x}")와 따옴표로 시작하는 폰트 스택만 인용한다.
  • frontmatter 는 진짜 YAML 파서를 통과해야 한다(frontmatter-yaml-invalid, block). buildDoc 의 손수 만든 파서는 스스로 밝히듯 무효 입력에서 조용히 열화하고 나머지 게이트는 정규식이라, 인용 없는 폰트 스택 하나가 문서 전체를 0토큰으로 만들어도 아무도 몰랐다(실제로 7개 항목에서 났다).
  • frontmatter sources == ## References (순서·내용 동일). 이 중복은 의도된 자기완결 포맷이다 — 제거하거나 한쪽만 고치지 말 것. 인용은 [src:N] 정수 인덱스.
  • 인용은 존재가 아니라 내용 일치. [src:N]이 가리키는 소스가 실제로 그 주장을 담고 있어야 한다 (리뷰어의 의미적 스팟체크 대상).
  • logohttps://getdesign.kr/logos/*.{svg,png,webp,avif} 절대 URL (파일이 사이트 밖으로 복사돼도 유효해야 함). 프리뷰 HTML 안에서는 반대로 site-relative /logos/....
  • 10개 Stitch 표준 섹션은 상대 순서 유지 (사이 비표준 섹션 추가는 허용).
  • 테마별 팔레트는 이름을 갈라 쓴다 (bg-canvas / dark-bg-canvas). 한 이름을 두 값으로 선언하면 어느 쪽이 정본인지 알 수 없어 프리뷰 대조가 그 토큰에서 꺼진다. 관례는 dark- 접두다(codeit 78개·seed-design 109개). wanted가 21개를 충돌시켜 대조 22건을 잃고 있었다.
  • Dimension 값은 0이어도 단위를 붙인다tracking: 0 이 아니라 0em.

Read the full file on GitHub · 231 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed 34b8ee724948
  2. 8d ago First seen · 231 lines · 5,512 tokens per session scan A 8b2d351a14cb

Subscribe to this mod's changes

ko-design-md CLAUDE.md is an instructions file published in the GitHub repository CaesiumY/ko-design-md (44 stars, last pushed today), licensed MIT. It adds 5,512 tokens to every session, about $0.0276 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens