This file tells ALL AI agents (Claude, Ollama, GPT, etc.) where to put things.
Part of the SpiralSafe Ecosystem
NEVER drop scripts directly into $HOME (`C:\Users*).
All code must go into organized directories within wave-toolkit/ or project-specific repos.
C:\Users\iamto\wave-toolkit\
├── tools\ # Reusable PowerShell modules (.psm1)
│ └── *.psm1
├── scripts\ # Executable scripts (.ps1)
│ ├── gaming\ # Gaming/performance scripts
│ ├── system\ # System optimization
│ ├── deployment\ # Deploy/CI scripts
│ └── startup\ # Startup automation
├── tests\ # Pester tests
│ └── *.Tests.ps1
├── prompts\ # AI prompt templates
└── docs\ # Documentation
| Type | Location | Example |
|---|---|---|
| Reusable module | tools/ |
Wave.Logging.psm1 |
| Gaming script | scripts/gaming/ |
Optimize-Gaming.ps1 |
| System script | scripts/system/ |
SYSTEM_OPTIMIZER.ps1 |
| Deployment | scripts/deployment/ |
PARALLEL_DEPLOY.ps1 |
| Startup script | scripts/startup/ |
STARTUP_AUTOMATION_COMPLETE.ps1 |
| Tests | tests/ |
Wave.Logging.Tests.ps1 |
| AI prompts | prompts/ |
wave-system.md |
- Check this file exists - if you're in
wave-toolkit/, readAI_AGENTS.md - Determine the category - what type of script is this?
- Place in correct directory - never in
$HOMEroot - Create module if reusable -
.psm1withExport-ModuleMember - Add test if logic exists -
tests/*.Tests.ps1
The following scripts in $HOME should be consolidated:
BATTLEFIELD_OPTIMIZER.ps1BF6_Performance_Monitor.ps1Optimize-Gaming.ps1
SYSTEM_OPTIMIZER.ps1CREATE_SYMLINKS.ps1
PARALLEL_DEPLOY.ps1AutoUpdate-SpiralSafe.ps1
STARTUP_AUTOMATION_COMPLETE.ps1mcstart.ps1Dashboard.ps1
Get-WaveContext.ps1Invoke-ClaudeSession.ps1New-ClaudeSystemPrompt.ps1Setup-Wave.ps1
ENHANCED_PROFILE.ps1- OK, this is a profilesystem_aliases.cmd- OK, sourced by shell
You're doing great with module structure. Keep:
- Creating
.psm1files intools/ - Adding tests in
tests/ - Using
Export-ModuleMember
Don't:
- Create scripts in
$HOMEroot - Duplicate functionality that exists in modules
- Create one-off scripts without tests
Same rules apply. Additional notes:
- You have full shell access - verify file locations before writing
- Run
Get-ChildItem $HOME -Filter *.ps1to check for sprawl - Consolidate before creating new scripts
Run this to check for sprawl:
# Should return ONLY profile-related files
Get-ChildItem $HOME -Filter "*.ps1" | Where-Object { $_.Name -notmatch "PROFILE|profile" }If this returns results, something violated the rules.
This file is the source of truth for AI agent behavior in this workspace.