Skip to main content

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

  1. Verify Target Path: Ensure you have the absolute path for the new target repository from the user.
  2. 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"
  3. Copy the 6 Pillars (Downstream Footprint):
    • Pillar A (The Engine & Gateway Matrix):
      • Copy AGENTS.md, .cursorrules, CLAUDE.md, START-HERE.md, plugin.json, and mcp.json to "$TARGET_PATH/"
      • Copy .agents/AGENTS.md to "$TARGET_PATH/.agents/"
      • Copy .github/copilot-instructions.md to "$TARGET_PATH/.github/"
      • Copy docs/governance/DOWNSTREAM-DSOM-COMPLIANCE-MANDATE.md to "$TARGET_PATH/docs/governance/"
      • Copy docs/governance/MINTLIFY-USER-MANUAL-SYNC-GUIDE.md to "$TARGET_PATH/docs/governance/"
      • Copy docs-source/.mintignore to "$TARGET_PATH/docs-source/"
    • 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/"
    • Pillar C (Pre-Commit Guardrails & Tools):
      • Recursively copy tools/ to "$TARGET_PATH/tools/"
      • Copy scripts/sync_docs.py to "$TARGET_PATH/scripts/sync_docs.py"
      • Copy .github/workflows/sync-docs.yml to "$TARGET_PATH/.github/workflows/sync-docs.yml"
      • Automatically execute uv run python "$TARGET_PATH/tools/install_git_guardrails.py" in the target directory.
    • 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).
  4. 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.
  5. Finalization: Output a success message to the user, providing them with the initialization commands for their new workspace:
    • bash tools/reanimate.sh or .\tools\reanimate.ps1
    • git 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