AI agents skill bundle and validation harness for building KRDS-aligned websites and app views.
English | 한국어
docs/index.md — MD knowledge base hub. Start here before any KRDS UI work.
docs/
├── index.md ← ★ start here
├── reading-guide.md ← scenario-based reading order
├── repo-tree.md ← repository tree
├── page-structure-tree.md ← page DOM hierarchy
├── workflow-tree.md ← plan/transform/improve
├── validation-checklist-tree.md ← official 311-item checklist
├── component-category-tree.md ← KRDS 10 families, 74 components
├── style/ ← KRDS official style guide (9 MD pages)
└── patterns/ ← KRDS basic patterns (13 MD pages)
Official KRDS style pages (color, typography, shape, etc.) live in docs/style/.
| What | Where | Purpose |
|---|---|---|
| Style knowledge | docs/style/ |
AI reads color, typography, layout rules first |
| Token summary | specs/tokens.md |
Quick reference; details in docs/style/ |
| Page validation | npm run krds:checklist |
21 style items (of 311) via browser rules |
| Shared thresholds | scripts/style-guide-lib.mjs |
gov 17px, line-height 1.5, radius 2–12px |
Flow: docs/style/ → style-guide-lib.mjs → checklist browser rules · MD validation
Official KRDS basic pattern pages (PII, forms, filters, consent, etc.) live in docs/patterns/.
| What | Where | Purpose |
|---|---|---|
| Pattern knowledge | docs/patterns/ |
AI reads PII, form, filter-sort rules first |
| Checklist mapping | specs/validation/pattern.basic.md |
47 basic-pattern items ↔ docs/patterns/ |
| Shared refs | scripts/pattern-guide-lib.mjs |
subcategory → MD path for catalog |
| Refresh | npm run krds:pattern:md |
Re-fetch global_01~13 from krds.go.kr |
Flow: docs/patterns/ → pattern-guide-lib.mjs → official-checklist.json specRef
ss-design-krds turns the KRDS HTML Component Kit into a repeatable agent workflow:
krds-plan— plan the interface from scratchkrds-transform— retheme existing UI to KRDS ruleskrds-improve— validate and iterate until score ≥ 95
Includes 74 vendored HTML components, Markdown specs (HTML + Tailwind examples), @simplescaffold/krds-tailwind, and machine-checkable validation scripts.
git submodule add https://github.com/SimpleScaffold/ss-design-krds.git .krdsAdd templates/consumer-CLAUDE.md.snippet to your project's CLAUDE.md.
cp -R ss-design-krds/skills/krds-* ~/.cursor/skills/
# or
npx skills add SimpleScaffold/ss-design-krdsnpm install @simplescaffold/krds-tailwind tailwindcss
# or in monorepo
npm run krds:build:tailwind- CSS:
@import "@simplescaffold/krds-tailwind" - HTML snippets:
dist/components/*.html(74) - Sample:
experiment/sample-page/tailwind.html
See packages/krds-tailwind/README.md
npm run krds:apply -- --target /path/to/project --stack tailwind --preserve-colors allGenerates krds-color-bridge.css and structure-only imports. See specs/stacks.md.
{
"devDependencies": {
"ss-design-krds": "github:SimpleScaffold/ss-design-krds"
},
"scripts": {
"krds:score": "node node_modules/ss-design-krds/scripts/krds-similarity.mjs --target ./public/index.html"
}
}./templates/install.sh# Plan a new KRDS page
Use krds-plan to create a Korean public-service landing page.
# Transform existing UI
Use krds-transform to migrate this page to KRDS while preserving behavior.
# Improve quality
Use krds-improve until score ≥ 95 with no failed rules.
npm install
npx playwright install chromium # L2 browser checklist (WSL/CI)
npm run krds:score # similarity score (threshold: 95)
npm run krds:score:tailwind # Tailwind sample similarity
npm run krds:build:tailwind # Tailwind CSS + 74 snippets
npm run krds:apply # apply KRDS to existing repo (--preserve-colors all)
npm run krds:split:tokens # split krds_tokens.css into color / semantic
npm run krds:checklist # official 311-item checklist
npm run krds:style:md:validate # style MD integrity (9 pages)
npm run krds:style:md # regenerate docs/style/ from KRDS site (maintenance)
npm run krds:coverage # component reference coverage
npm run krds:validate # full repo validation
npm run krds:improve # iterative hardening loopdocs/style/ KRDS official style guide MD (color, typography, shape, …)
specs/ Markdown specs (tokens, components, patterns, validation/)
resources/ checklist JSON, manifest (official-checklist.json)
skills/ Agent workflows (plan, transform, improve)
assets/krds/ Vendored KRDS-uiux HTML/CSS (74 components)
scripts/ Validation harness (style-guide-lib, checklist, similarity)
templates/ Consumer project bootstrap
packages/ @simplescaffold/krds-tailwind
experiment/ Reference implementation (index.html + tailwind.html)
- KRDS Official
- KRDS-uiux — HTML Component Kit (vendored)
- krds-react — React library notes
- future-krds — validation harness inspiration
- gracefullight/krds — token package reference
Apache-2.0. KRDS assets follow KRDS copyright policy.