/design-brief:design-brieffrom design-brief
Creates a DESIGN.md file with palette, typography, spacing, and component rules so AI agents build consistent, non-generic UI. Includes an anti-slop checklist, visual style catalog, and color extractor from reference sites or images.
Ships in design-brief. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-system, ui-design, design-brief, anti-slop, color-extraction
npx claudepluginhub hanmariyang/giting-skills --plugin design-brief공통 규칙 (이 스킬의 모든 단계에 적용)
사용하는 도구
| 도구 | 쓰는 곳 | 꼭 필요? | 없으면 |
|---|---|---|---|
| Node 22 이상 + 크롬 계열 브라우저 | scripts/site_tokens.mjs 로 좋아하는 사이트를 재서 DESIGN.md 초안 만들기 | 아니오 | 캡처를 받아 extract_palette.py 로 색만 뽑고, 글꼴 · 둥글기 · 간격은 「재지 않았다」고 적는다 |
| Python 3 + Pillow | scripts/extract_palette.py 로 이미지에서 색 뽑기 | 아니오 | 사용자가 준 hex 나 스타일 카탈로그로 팔레트를 정하고, 「이미지에서 뽑지 않았다」고 적는다 |
| Node 18 이상 | scripts/slop_check.mjs 로 지은 페이지에 AI 기본 룩이 남았는지 검사 | 페이지까지 지었으면 예 | 아래 Anti-slop 목록을 페이지 소스와 한 줄씩 대조하고, 「검사기를 돌리지 못했다」고 적는다 |
| 레퍼런스(사이트 주소나 이미지) | 팔레트와 글자의 씨앗 | 아니오 | 스타일 카탈로그에서 방향을 고른다 |
도구 위치. 위 scripts/… 는 사용자 작업 폴더가 아니라 이 플러그인 폴더에 있다. 이 스킬의 기본 폴더 경로 끝에서 skills/design-brief 를 떼고 scripts/ 를 붙이면 된다. 예: 기본 폴더가 …/design-brief/skills/design-brief 이면 도구는 …/design-brief/scripts/ 안에 있다. 이 절대 경로로 부른다. 그래도 못 찾으면 다른 방법으로 넘어가기 전에 「도구를 못 찾았다」고 결과 맨 위에 적는다.
AI coders produce generic layouts because nothing tells them what THIS product looks like. A DESIGN.md fixes that: one file at the repo root that captures colors, type, spacing, components, and the reasoning, so every page an agent builds is consistent and specific. This skill builds that file, chooses a real visual direction, and seeds it with actual colors instead of the model's defaults.
If you also build the page, you are not done until the checker passes on it (Procedure step 7): node "<this skill's base directory>/../../scripts/slop_check.mjs" index.html must print 「걸린 것 없음」. Writing the rules into DESIGN.md is not enough; in tests the page broke them anyway.
Write these sections. Each token needs a role and a one-line WHY (the WHY is what stops the generic drift, "chosen, not inherited"):
Don't leave the style implicit or the agent defaults to the slop cluster. Pick one and commit, from these named looks (use the name in DESIGN.md so it is unambiguous):
Gradient background · Glassmorphism · Minimalism · Dark mode · Grain/noise · Big typography · Neumorphism · Neo-brutalism · Bento grid · De Stijl · Bauhaus · Duotone · Aurora UI · Mesh gradient · Swiss/International Typographic · Monochrome · Isometric · Corporate Memphis · Blob/organic · Maximalism · Line art · Neon/glow · Flat 2.0 · Material · Kinetic typography · Constructivism · Art Deco · Pop art · Mid-century modern · Skeuomorphism · Claymorphism · Brutalism · 3D render · Memphis · Frutiger Aero · Retro-futurism · Scandinavian · Acrylic · Liquid Glass · Y2K · Vaporwave · Cyberpunk · Art Nouveau · Japandi · Wabi-sabi.
Naming the style is half the brief. "Make it clean" is not a direction; "Swiss typographic, one accent, generous whitespace, no gradients" is.
AI-generated design currently clusters on a few tells. If the user has not chosen one of these, do not spend the brief's originality on them:
rounded-lg on everything · an accent bar on every cardState in DESIGN.md which of these the project rejects, so the agent has an explicit floor.
Do not eyeball colors or let the model invent them. If the user likes a reference, extract its real palette:
pip install pillow
python3 scripts/extract_palette.py reference.png --n 6 # dominant palette + product colors
python3 scripts/extract_palette.py reference.png --point 40,40 # exact color at a point
It prints HEX + RGB (and a "product colors, background dropped" line). Put those real HEX into the Palette section with roles. Match the reference's FEEL, not its exact pixels, and never copy a real brand's identity.
Default whenever a site is named. If the user mentions a site ("linear.app 같은 느낌",
"like Stripe"), run this first. Choosing values from memory of how a site looks is the
failure this tool exists to prevent. The scripts live in this plugin's root, two levels up
from this skill: <this skill's base directory>/../../scripts/site_tokens.mjs. Resolve that
absolute path; the user's working folder will not contain it.
If the user names a site they like ("make it feel like linear.app", "이 사이트 느낌으로"), measure it instead of guessing. The tool opens the page in a real browser and reads the rendered styles, weighted by how much text and area each value covers:
node scripts/site_tokens.mjs https://example.com # DESIGN.md draft to stdout
node scripts/site_tokens.mjs https://example.com --out DESIGN.md # write the draft
node scripts/site_tokens.mjs https://example.com --json # raw tokens
node scripts/site_tokens.mjs https://example.com --dark # measure the dark scheme
node scripts/site_tokens.mjs https://example.com --shot shot.png # also save a capture
It fills, with roles: ground · surface · ink · muted · accent (+ a second accent) · line, body/display/mono faces, the type scale (size · weight · line-height · share of text), button and card radius, button padding, the spacing unit and common steps, shadows. Contrast against the ground is printed next to each text color.
Rules for using it:
--shot and run extract_palette.py on it,
and mark that accent as approximate.--width 390.CHROME_PATH if it is not in a standard place).Ask (or infer) the one thing: what is this product and who is it for. That anchors every choice.
Pick a direction from the catalog; write what it is and is not.
If there is a reference site, run site_tokens.mjs for a measured draft; if there is a reference image, run extract_palette.py. Seed real values, never defaults.
Fill the DESIGN.md sections, each token with a role and a one-line WHY.
Add the anti-slop floor (which defaults this project rejects).
Save as DESIGN.md at the repo root so any agent reads it before building UI.
If you also build the page, check it. Writing "no emoji, no gradient" in DESIGN.md does not stop the page from having them; in tests the brief said so and the page still did. Run the checker on every page you built:
node "<this skill's base directory>/../../scripts/slop_check.mjs" index.html
It prints G1 to G6 (purple-blue gradient · emoji as markers or icons · framework default palette · Inter/Space Grotesk · cream + terracotta · card overuse) and exits 1 if any is hit. For G6, keep a card only on the one thing that must be seen first and group the rest with spacing and 1px dividers; if the page is deliberately a card grid (a product list, a bento), pass --allow 'g6' and say why. Replace each hit with a value from DESIGN.md (an emoji icon becomes an inline SVG or a plain number/label) and run it again until it prints 「걸린 것 없음」. If DESIGN.md deliberately chose one of the flagged hexes with a WHY, pass it with --allow '#hex'. It cannot judge centering; look at that yourself. If the checker cannot run, say so at the top of your answer instead of claiming the page is clean.
slop_check.mjs printed 「걸린 것 없음」 on it (or you said why it could not run).Other plugins' skills for the same job