When to use this skill
Use this skill when the user asks to create, clone, scaffold, or bootstrap a new DSOM project based on the current baseline repository (e.g., โCreate a new project at D:\Projects\my-new-appโ).Downstream Asymmetry Principle
In downstream projects, business logic and source code remain primary (>90% of repo volume). Cloned repositories receive the minimal 6-Pillar DSOM footprint rather than the entire baseline forge documentation.Prerequisites
- The user must provide the absolute path to the new target repository. Ask for it if not provided.
Instructions
- Verify Target Path: Ensure you have the absolute path for the new target repository from the user.
- Establish Directory Tree: Use your terminal execution tools (
run_command) to create the mandatory folder structures in the target path:"$TARGET_PATH/.agents/brain""$TARGET_PATH/.agents/skills""$TARGET_PATH/.github/workflows""$TARGET_PATH/docs/governance""$TARGET_PATH/docs-source""$TARGET_PATH/tools""$TARGET_PATH/scripts"
- Copy the 6 Pillars (Downstream Footprint):
- Pillar A (The Engine & Gateway Matrix):
- Copy
AGENTS.md,.cursorrules,CLAUDE.md,START-HERE.md,plugin.json, andmcp.jsonto"$TARGET_PATH/" - Copy
.agents/AGENTS.mdto"$TARGET_PATH/.agents/" - Copy
.github/copilot-instructions.mdto"$TARGET_PATH/.github/" - Copy
docs/governance/DOWNSTREAM-DSOM-COMPLIANCE-MANDATE.mdto"$TARGET_PATH/docs/governance/" - Copy
docs/governance/MINTLIFY-USER-MANUAL-SYNC-GUIDE.mdto"$TARGET_PATH/docs/governance/" - Copy
docs-source/.mintignoreto"$TARGET_PATH/docs-source/"
- Copy
- Pillar B (Essential Domain Skills):
- Recursively copy
.agents/skills/dsom-token-calculator/to"$TARGET_PATH/.agents/skills/" - Recursively copy
.agents/skills/dsom-signature-injector/to"$TARGET_PATH/.agents/skills/" - Recursively copy
.agents/skills/agent-plugin-packager/to"$TARGET_PATH/.agents/skills/" - Recursively copy
.agents/skills/mintlify-docs-compiler/to"$TARGET_PATH/.agents/skills/" - Recursively copy
.agents/skills/initialize-gitops/to"$TARGET_PATH/.agents/skills/"
- Recursively copy
- Pillar C (Pre-Commit Guardrails & Tools):
- Recursively copy
tools/to"$TARGET_PATH/tools/" - Copy
scripts/sync_docs.pyto"$TARGET_PATH/scripts/sync_docs.py" - Copy
.github/workflows/sync-docs.ymlto"$TARGET_PATH/.github/workflows/sync-docs.yml" - Automatically execute
uv run python "$TARGET_PATH/tools/install_git_guardrails.py"in the target directory.
- Recursively copy
- Pillar D (Spatial Memory Genesis):
- Execute
bash tools/init-brain.sh(or.\tools\init-brain.ps1) to populate.agents/brain/with blank OKF-compliant templates (task.md,walkthrough.md,palace_registry.md).
- Execute
- Pillar A (The Engine & Gateway Matrix):
- OKF Frontmatter Compliance & Signature Injection:
- Execute
uv run python tools/apply_okf_frontmatter.py "$TARGET_PATH"to guarantee complete OKF v0.2 frontmatter compliance across all cloned memory assets. - Run
uv run python .agents/skills/dsom-signature-injector/scripts/inject.py "$TARGET_PATH"to apply standard GPL v3.0 signature footers.
- Execute
- Finalization: Output a success message to the user, providing them with the initialization commands for their new workspace:
bash tools/reanimate.shor.\tools\reanimate.ps1git add .git commit -m "chore(dsom): scaffold genesis DSOM architecture and Universal Gateway Matrix"
Dual-Mode Scaffolding Reference
Mode 1: Automated AI Prompt Template (Google Antigravity)
Mode 2: Manual Terminal Copy Commands (PowerShell)
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