docs/ and skills in .agents/skills/ into Mintlify-compliant MDX (docs-source/) and executing a one-way synchronization pipeline to the downstream deployment repository (linuxmalaysia/my-knowledge-brain) serving https://harisfazillah.mintlify.site.
User Manual Site Style Standards
The compiler (tools/build_mintlify_mdx.py) and any manual MDX authoring must follow these formatting rules:
1. Frontmatter Requirements
Every generated.mdx file must contain valid YAML frontmatter:
sidebarTitle: Mandatory and short (1-3 words). Never put the full SEO title in the sidebar. Never repeat the product name.- First Paragraph: Must be plain prose (no JSX components, no code fences) naming the feature and stating what the page covers.
- Punctuation: No em dashes (
β) or en dashes (β) as punctuation in prose. Use commas, colons, parentheses, or split sentences.
2. Information Architecture (docs.json)
navigationmust be an object with tabs (β€ 2-3 tabs), β€ 4-5 groups per tab, and β₯ 2 pages per group.- Page paths must be extensionless with no leading slash (e.g.
rituals/start-of-day). index.mdxis the landing page using<CardGroup>and<Steps>without raw HTML or inline CSS.
3. Mintlify Ignore Rules (docs-source/.mintignore)
Must explicitly ignore non-public assets:
The 5 Safety Guards (A-E)
Step-by-Step Execution Workflow
Step 1: Compile Markdown to Mintlify MDX
When documents indocs/ or skills in .agents/skills/ are created or updated, run the compiler:
Step 2: Validate with Local Dry-Run
Run the sync script in dry-run mode to verify all 5 guards and review the diff plan:Step 3: Automated Push to Production
Push changes tomain:
.github/workflows/sync-docs.yml triggers automatically, executes the compiler, runs Guards A-E, and updates my-knowledge-brain using Docs Sync Bot <bot@harisfazillah.com>.
Recovery Procedure
If the downstream repository is corrupted by an unintended push:deep-state-of-mind-for-my-ai under docs/ and re-run python scripts/sync_docs.py --dry-run.
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-08-23 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0