docs-consistency-checker
БесплатноБез исполняемых скриптовНе проверенValidate consistency across SEED Design component documentation layers (design guidelines in ./docs/content/docs/components, Rootage specs in…
от Microck★ 417 звёзд на GitHubОб этом скилле
Documentation Consistency Checker
Validates consistency across three documentation layers in SEED Design System.
Purpose
이 스킬은 SEED Design System의 문서 레이어 간 일관성을 검증합니다. 디자인 가이드라인, Rootage 컴포넌트 스펙, React 구현 문서가 서로 일치하는지 확인하고, 불일치하거나 누락된 부분을 찾아냅니다.
When to Use
다음 상황에서 이 스킬을 사용하세요:
- 릴리스 전 감사: 메이저 릴리스 전 모든 컴포넌트 문서 완전성 검증
- 새 컴포넌트 검토: 새 컴포넌트 문서 발행 전 일관성 확인
- 문서 정리: 고아 파일(orphaned files) 및 오래된 문서 식별
- Props 검증: 컴포넌트 Props가 Rootage 스펙과 일치하는지 확인
- 정기 감사: 월간/분기별 문서 품질 점검
트리거 키워드: "docs consistency", "documentation audit", "validate docs", "check documentation", "pre-release validation"
Documentation Layers
Layer 1: Design Guidelines
- Path:
./docs/content/docs/components/{component-id}.mdx - Purpose: 디자인 명세 및 사용 가이드라인
- Key Sections: Props, Anatomy, Guidelines, Spec
Layer 2: Rootage Component Spec
- Path:
./packages/rootage/components/{component-id}.yaml - Purpose: 기술적 컴포넌트 명세
- Key Data: metadata.id, metadata.name, schema.slots, definitions
Layer 3: React Implementation Docs
- Path:
./docs/content/react/components/{component-id}.mdx - Purpose: React API 문서 및 예시
- Key Sections: Installation, Props, Examples
Consistency Requirements
1. Component Naming Consistency
검증 항목:
- Design guidelines
title≡ Rootagemetadata.name - React docs
title≡ Design guidelinestitle - 모든 문서가 동일한 대소문자와 형식 사용
예시:
# Rootage YAML
metadata:
id: action-button
name: Action Button
# Design Guidelines MDX
---
title: Action Button # Must match
---
# React Docs MDX
---
title: Action Button # Must match
---
검증 로직:
rootage.metadata.name === designDocs.title === reactDocs.title
2. Description Consistency
검증 항목:
- React docs description ≡ Design guidelines description
- 양쪽 모두 동일한 사용자 설명 제공
예시:
# Design Guidelines
description: 사용자가 특정 액션을 실행할 수 있도록 도와주는 컴포넌트입니다.
# React Docs - MUST match exactly
description: 사용자가 특정 액션을 실행할 수 있도록 도와주는 컴포넌트입니다.
검증 로직:
designDocs.description === reactDocs.description
3. Props/Variants Consistency
검증 항목:
- Design guidelines Props 테이블이 Rootage YAML definitions를 반영
- Variants, sizes, states가 YAML에서 추출한 것과 일치
검증 워크플로우:
- Rootage YAML definitions 읽기
- Variants (
variant=*), sizes (size=*), states (base.*) 추출 - Design guidelines Props 테이블과 비교
- 불일치 또는 누락된 문서화 플래그
예시:
# Rootage defines
definitions:
variant=brandSolid: {...}
variant=neutralSolid: {...}
size=medium: {...}
size=large: {...}
# Design guidelines MUST document
| 속성 | 값 |
| variant | brand solid, neutral solid | # Must match YAML
| size | medium, large | # Must match YAML
검증 로직:
extractedPropsFromYAML ⊆ documentedPropsінDesignDocs
// Documented props should cover all YAML-defined props
4. Component ID Consistency
검증 항목:
<PlatformStatusTable componentId="X" />≡ Rootagemetadata.id<ComponentSpecBlock id="X" />≡ Rootagemetadata.id
예시:
# Design Guidelines
<PlatformStatusTable componentId="action-button" /> # Must match metadata.id
<ComponentSpecBlock id="action-button" /> # Must match metadata.id
검증 로직:
<PlatformStatusTable componentId="X" /> where X === rootage.metadata.id
<ComponentSpecBlock id="X" /> where X === rootage.metadata.id
5. Slot/Part Documentation
검증 항목:
- Design guidelines에서 Rootage schema의 주요 slots 언급
- Anatomy 섹션이 주요 아키텍처 parts 커버
예시:
# Rootage defines
schema:
slots:
root: {...}
label: {...}
icon: {...}
prefixIcon: {...}
suffixIcon: {...}
# Design guidelines should explain:
- Icon usage (prefixIcon, suffixIcon, icon-only layout)
- Label positioning
- Root container behavior
검증 기준:
- 모든 주요 slots가 문서에 언급되는지 확인
- Anatomy 또는 Props 섹션에서 설명 확인
6. File Existence Check
검증 항목:
- Rootage YAML 존재 → Design guidelines 존재해야 함
- Design guidelines 존재 → React docs 존재해야 함
- 고아 파일 플래그
Coverage Matrix:
Component ID | Rootage YAML | Design Docs | React Docs | Status
-------------|--------------|-------------|-----------|-------
action-button| ✓ | ✓ | ✓ | Complete
checkbox | ✓ | ✓ | ✓ | Complete
new-comp | ✓ | ✗ | ✗ | Missing docs
Workflow
Step 1: Discovery
컴포넌트 인벤토리 구축:
1. Glob all Rootage YAML files: packages/rootage/components/*.yaml
2. Extract component IDs from metadata.id
3. Build component inventory
도구 사용:
// Glob to find all YAML files
const yamlFiles = await glob('packages/rootage/components/*.yaml')
// Read each file and extract metadata.id
for (const file of yamlFiles) {
const content = await read(file)
const yaml = parseYAML(content)
const componentId = yaml.metadata.id
inventory.push(componentId)
}
St
Установить docs-consistency-checker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobВложенные файлы
FAQ
Что делает скилл docs-consistency-checker?
Validate consistency across SEED Design component documentation layers (design guidelines in ./docs/content/docs/components, Rootage specs in ./packages/rootage/components, and React docs in ./docs/content/react/components). Use when auditing documentation completeness, before releases, or validating new component docs.
Как установить скилл docs-consistency-checker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docs-consistency-checker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic