maintain-wiki
Maintain Wiki
Section titled “Maintain Wiki”Three operations for keeping the OKF wiki bundle consistent with its source docs.
INGEST
Section titled “INGEST”Read source doc (CLAUDE.md, CONVENTIONS.md, or SKILL.md) and write/update OKF concept pages:
# Regenerate skills-wiki from SKILL.md filesbash scripts/sync-skills.sh --okf
# Regenerate conventions-wiki from CONVENTIONS.mdbash scripts/decompose-conventions.sh
# Regenerate agent-guide from CLAUDE.mdbash scripts/generate-agent-guide.shCheck for common OKF issues:
- Stale concepts — source file mtime vs concept page mtime. If source is newer, concept is stale.
- Orphan concepts — concept page exists but source doc section no longer exists.
- Missing cross-references — skill concept pages with no
enforced_byorreferenceslinks. - Contradictions — two concept pages that make opposite claims about the same topic.
- Broken links — internal OKF links that point to non-existent concept pages.
# Quick stale check: compare source vs concept mtimesfor page in specs/skills-wiki/skills/*.md; do skill=$(basename "$page" .md) source="skills/$skill/SKILL.md" if [ -f "$source" ] && [ "$page" -ot "$source" ]; then echo "STALE: $skill (SKILL.md newer than concept page)" fidoneSearch across OKF concept pages to answer questions:
# Find all concepts about a topicgrep -rl "topic" specs/skills-wiki/ specs/conventions-wiki/ specs/agent-guide/
# Trace a convention → enforcing skillsgrep -A1 "enforced_by" specs/conventions-wiki/*.md
# Find skill by description keywordgrep -ril "keyword" specs/skills-wiki/skills/*.mdVerify
Section titled “Verify”→ verify: test -d specs/skills-wiki && test -d specs/conventions-wiki && test -d specs/agent-guide && echo "OKF wiki present" || echo "FAIL"