♻️ Template Reset (template-reset.sh)
"Tabula Rasa." - Returning to the beginning.
1. 🏛️ Purpose
Version: v1.0
Description: Prepares a DSOM clone for a new project. It purges old Git history (.git) and resets brain artifacts to a blank "Golden Image" state while preserving the Master Protocol and tools.
2. 🛡️ Safety Mechanisms
| Mechanism | Status | Description |
|---|---|---|
| Confirmation Guard | ✅ Active | Requires explicit y input to proceed. |
| Destructive Warn | ✅ Active | Clearly warns about Git history deletion. |
| Exit-on-Error | ✅ Active | set -e injected. |
3. ⚙️ Usage
./tools/template-reset.sh
4. 🧠 Logic Flow
- Repo Check: Ensures execution inside a git repo.
- Confirmation: Blocks execution until user confirms.
- Git Purge:
rm -rf .gitandgit init. - Brain Wipe: Overwrites
task.md,walkthrough.md,implementation_plan.mdwith default "New Project" templates. - Instruction: Guides user to add files and start fresh history.
5. 📝 Extracted Comments
"Prepares a DSOM clone for a new project. It purges old Git history and resets brain artifacts to a 'Golden Image' state."
Deep State of Mind (DSOM) For My AI Protocol | Harisfazillah Jamel (LinuxMalaysia) | 2026-07-04 Standard: UK English | DBP-standard Bahasa Melayu Malaysia (Piawai) | GNU General Public License v3.0