Files
thefoldwithin-earth/tools/coherence/README.md
T

32 lines
884 B
Markdown
Raw Normal View History

2026-02-13 22:18:12 -06:00
# Coherence Tools
Tools for maintaining site coherence.
## Tools
| Tool | Purpose | Usage |
|------|---------|-------|
| check-frontmatter.py | Validates YAML frontmatter exists | `python3 check-frontmatter.py <dir>` |
| check-metadata.py | Validates required fields | `python3 check-metadata.py <dir>` |
| fix-frontmatter.py | Adds missing frontmatter | `python3 fix-frontmatter.py <dir>` |
2026-02-13 22:25:04 -06:00
| check-links.py | Finds broken internal links | `python3 check-links.py <dir>` |
2026-02-13 22:18:12 -06:00
## Usage
```bash
# Check all fieldnotes
python3 check-frontmatter.py ../public/fieldnotes/
python3 check-metadata.py ../public/fieldnotes/
2026-02-13 22:25:04 -06:00
python3 check-links.py ../public/fieldnotes/
2026-02-13 22:18:12 -06:00
2026-02-13 22:25:04 -06:00
# Fix missing frontmatter
python3 fix-frontmatter.py --dry-run ../public/fieldnotes/
python3 fix-frontmatter.py ../public/fieldnotes/
2026-02-13 22:18:12 -06:00
```
## Exit Codes
2026-02-13 22:25:04 -06:00
- 0: Success / No issues
- 1: Issues found
2026-02-13 22:18:12 -06:00
- 2: Invalid arguments