Context
This issue tracks future CI/linting improvements for ensuring quality of AI-generated documentation content. The low-hanging fruit was implemented in #57.
Tier 2: Medium Effort Improvements
1. Vale Prose Linter Integration
Effort: 4-5 hours | Impact: High
- Professional prose linter with custom IPTF rules
- Catches: terminology inconsistency, passive voice, hedging language ("might", "could potentially")
- Files needed:
.vale.ini - configuration
.vale/styles/IPTF/Marketing.yml - marketing rules
.vale/styles/IPTF/Terminology.yml - terms from GLOSSARY.md
.vale/styles/IPTF/Hedging.yml - AI hedging patterns
2. Frontmatter Schema Validation (JSON Schema)
Effort: 3-4 hours | Impact: Medium
- Full schema validation per content type using
ajv
- Catches: invalid enum values, AI-invented frontmatter fields
- Add schemas:
scripts/schemas/{pattern,vendor,use-case,jurisdiction}.json
3. Section Structure Validation for All Content Types
Effort: 2-3 hours | Impact: Medium
- Extend current pattern-only validation to vendors, use-cases, approaches, jurisdictions
- Define required sections per type in the validation script
4. GLOSSARY.md Term Consistency Checker
Effort: 4-5 hours | Impact: High
- Parse GLOSSARY.md, check all files use canonical spellings
- Catches: "zk-SNARK" vs "zkSNARK", "DVP" vs "DvP"
- Script:
scripts/check-terminology.js
Tier 3: Higher Effort Improvements
5. Pre-commit Hooks
Effort: 3 hours | Impact: High
- Use
husky + lint-staged for fast local checks before commit
- Run frontmatter, section structure, marketing checks on staged files
6. LLM-Based Content Review (On-Demand)
Effort: 8-12 hours | Impact: High
- Script using Claude API for:
- Verifying factual claims against GLOSSARY.md
- Checking ERC/EIP numbers are real
- Flagging potential hallucinations
- Consistency with related documents
- Not for CI (cost/latency), but for maintainer review
Priority Order
- Vale prose linter (high ROI for terminology + style)
- Glossary term consistency (catches common AI issues)
- Section validation for all types
- Frontmatter schemas
- Pre-commit hooks
- LLM review tool
Related
Context
This issue tracks future CI/linting improvements for ensuring quality of AI-generated documentation content. The low-hanging fruit was implemented in #57.
Tier 2: Medium Effort Improvements
1. Vale Prose Linter Integration
Effort: 4-5 hours | Impact: High
.vale.ini- configuration.vale/styles/IPTF/Marketing.yml- marketing rules.vale/styles/IPTF/Terminology.yml- terms from GLOSSARY.md.vale/styles/IPTF/Hedging.yml- AI hedging patterns2. Frontmatter Schema Validation (JSON Schema)
Effort: 3-4 hours | Impact: Medium
ajvscripts/schemas/{pattern,vendor,use-case,jurisdiction}.json3. Section Structure Validation for All Content Types
Effort: 2-3 hours | Impact: Medium
4. GLOSSARY.md Term Consistency Checker
Effort: 4-5 hours | Impact: High
scripts/check-terminology.jsTier 3: Higher Effort Improvements
5. Pre-commit Hooks
Effort: 3 hours | Impact: High
husky+lint-stagedfor fast local checks before commit6. LLM-Based Content Review (On-Demand)
Effort: 8-12 hours | Impact: High
Priority Order
Related