| name | validate-docs |
| description | Use when reviewing or validating documentation. Checks for clarity, completeness, broken links, undefined terms, and ensures beginners can follow guides without prior knowledge of the SDK. |
Validate Documentation
Reviews documentation for clarity, completeness, and beginner-friendliness. Ensures technical people with no prior knowledge of the SDK can succeed.
Usage
/validate-docs [path]
If no path provided, validates all docs in docs/.
Validation Checklist
1. Prerequisites & Setup (Critical)
2. Code Examples
3. Links & References
4. Terminology
5. Error Handling
6. Structure
Validation Commands
Run these to check docs:
cd docs && for f in *.md; do grep -o '\[.*\]([^)]*\.md)' "$f" | while read link; do
target=$(echo "$link" | sed 's/.*(\([^)]*\))/\1/')
[ ! -f "$target" ] && echo "$f: broken link to $target"
done; done
grep -r "from_env()" docs/ --include="*.md" -B5 | grep -v "AI_SDK_HOST\|AI_SDK_TOKEN\|export"
grep -r "example\.com\|your-server\|your-instance" docs/ --include="*.md"
Common Issues to Fix
| Issue | Bad | Good |
|---|
| Unexplained env vars | config = AISdkConfig.from_env() | Show export AI_SDK_HOST=... first |
| Vague host URL | https://metadata.example.com | https://your-org.getcollate.io |
| Undefined terms | "Use your bot JWT token" | "Use your bot's JWT token (from Settings > Bots)" |
| Missing prereqs | Jump straight to code | Start with "Prerequisites" section |
| Broken link | [Examples](../examples/) | Remove if folder doesn't exist |
Output Format
After validation, report:
## Documentation Validation Report
### Files Checked
- docs/README.md
- docs/quickstart.md
- ...
### Issues Found
#### Critical (must fix)
1. **docs/README.md:15** - Uses `from_env()` without showing which env vars to set
2. **docs/quickstart.md:42** - Links to non-existent `../examples/` folder
#### Warnings (should fix)
1. **docs/langchain.md:8** - No Prerequisites section
2. **docs/async.md:23** - Uses "Metadata server" instead of "OpenMetadata/Collate"
### Passed Checks
- All code examples have explicit credentials
- Troubleshooting section exists in quickstart.md
- ...
DO NOT
- Skip validation because docs "look fine"
- Leave broken links
- Assume the reader knows anything about OpenMetadata, Collate, or this SDK
- Use jargon without definitions
- Show
from_env() without showing the env vars first