Prerequisites
- Python 3.12+ and
uvmust be installed on your environment. pyyamldependency is required.
Step 1: Scan and standardise directory frontmatter
Run theapply_okf_frontmatter.py tool pointing directly to your documentation folder. This script automatically injects the five required frontmatter variables (okf_version, type, title, timestamp, topics) and strips Byte Order Marks (BOM).
Step 2: Batch re-order metadata fields
To format skill schemas or re-align metadata ordering (placingtopics immediately after description in skill documents), use the refactor_okf.py tool.
Dry run check
Verify planned modifications without making changes on disk:In-place execution
Apply standard formatting and reordering rules atomically:Step 3: Verify the output
To confirm that the changes were executed successfully and no Byte Order Marks remain, use the standard test suite:Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-08-14 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0