Documentation Standards Framework
Overview
Enforce documentation standards through automated metadata validation, tag system guidance, size management, and quality checks. Project-agnostic framework that adapts to project-specific configuration.
Core Capabilities:
- •Metadata template application and validation
- •Tag tier system guidance (category/audience/environment)
- •Document size management with split strategies
- •Quality checklist validation
Configuration Discovery:
- •Load generic framework from
~/.claude/skills/doc-standards/ - •Check for project config at
.claude/doc-standards/config.yaml - •If found: Load project-specific tags, examples, language preference
- •If not found: Use minimal defaults and prompt user to create config
Configuration Discovery
Step 1: Load Global Framework
The skill loads generic framework components from:
~/.claude/skills/doc-standards/references/ metadata-template-framework.md tag-system-framework.md size-guidelines-framework.md quality-checklist-framework.md config-schema.md
Step 2: Detect Project Config
Check for project configuration:
.claude/doc-standards/config.yaml
If found: Load project settings (language, tag taxonomy, size thresholds, etc.) If not found: Use minimal defaults and provide setup guidance
Step 3: Load Project References
If project config exists, load project-specific references:
.claude/doc-standards/references/ tag-taxonomy.md (REQUIRED - defines project tags) document-mapping.md (OPTIONAL - document registry) size-guidelines-examples.md (OPTIONAL - project split examples) quality-checklist-examples.md (OPTIONAL - project validation examples)
Or, if project uses skill-level references (legacy pattern):
.claude/skills/doc-standards/references/ tag-taxonomy.md document-mapping.md size-guidelines-examples.md quality-checklist-examples.md
The skill will check both locations and use whichever is found.
Core Capabilities
1. Metadata Template Application
Apply standardized metadata format to documentation.
What it does:
- •Generate metadata header with required fields
- •Ensure correct date format (project-configured or YYYY-MM-DD default)
- •Suggest appropriate tags based on content
- •Validate field completeness
When to use:
- •Creating new .md files
- •Adding metadata to existing documentation
- •Updating outdated metadata format
How it works:
- •Load
references/metadata-template-framework.mdfor structure - •Load project config for field names and formats
- •Generate metadata header with pre-filled values
- •Guide user through tag selection
- •Validate completeness and format
2. Tag System Guidance
Guide appropriate tag selection from project's tag taxonomy.
What it does:
- •Support 3-tier tag systems:
category/,audience/,environment/ - •Validate canonical format (prefix/value)
- •Check tag combinations
- •Load project-specific tag values
When to use:
- •Selecting tags for new documentation
- •Updating tags for existing docs
- •Understanding project tag system
How it works:
- •Load
references/tag-system-framework.mdfor tier architecture - •Load project's
tag-taxonomy.mdfor specific values - •Analyze document content and purpose
- •Recommend tags based on:
- •Document topic → category tags
- •Target readers → audience tags
- •Deployment scope → environment tags
- •Validate against canonical format
3. Size Management
Monitor document size and suggest splits when necessary.
What it does:
- •Track line counts during creation
- •Warn when approaching size thresholds
- •Suggest split strategies for large docs
- •Provide decision tree for split decisions
When to use:
- •Document exceeds recommended size (default: 500 lines)
- •Document contains multiple distinct topics
- •Mixing beginner and advanced content
- •Targeting multiple audiences
How it works:
- •Monitor current line count
- •Apply size thresholds from project config (or defaults: 500/1000/2000)
- •Load
references/size-guidelines-framework.mdfor decision tree - •Suggest split strategy:
- •Topic-based split: Unrelated content
- •Role-based split: Multiple audiences
- •Level-based split: Beginner/advanced mix
- •Phase-based split: Lifecycle phases (setup/operations/troubleshooting)
- •Load project examples if available
4. Quality Validation
Validate documentation against quality standards.
What it does:
- •Metadata quality checks
- •Content quality checks
- •Link validation
- •Navigation checks
When to use:
- •Final validation before committing
- •Reviewing existing documentation
- •Conducting periodic reviews
- •Checking link validity
How it works:
- •Load
references/quality-checklist-framework.mdfor framework - •Load project examples if available
- •Validate metadata completeness
- •Check content structure
- •Verify link functionality
- •Provide improvement suggestions
詳細リファレンス
- •タグ体系/出力フォーマット/ベストプラクティスは
references/doc-standards-details.mdを参照
次のステップ
- •設定ファイルを確認
- •対象ドキュメントでメタデータ検証
- •不足項目を補完
関連リソース
- •
references/doc-standards-details.md