Google OKF Frontmatter Patcher Reference
scripts/add_okf_frontmatter.py enforces compliance with the Google Open Knowledge Format (OKF) v0.1 specification by ensuring five mandatory frontmatter fields are present in every Markdown file.
🗂️ Mandatory Fields Validated
okf_version: Declaring"0.1".type: The semantic category of the file (instructions,documentation,skill,concept, etc.).title: The display header, parsed from the first Markdown title (#).timestamp: ISO-8601 formatted modification date.topics: List of relevant topics/tags.
🛠️ CLI Execution
python3 scripts/add_okf_frontmatter.py
Processes all .md files in place recursively.
🔒 Exit Codes
0: Success.1: Failure due to parsing exception or bad file access.