SCRIPT DOCUMENTATION
Templates for the GoGrab Space
Phase Creation Script
Overview
Intelligent automation script that creates a complete phase documentation structure in ~30 seconds.
Usage
cd /docs/english/Templates/phases-template/
./create-phase.sh <phase-number> <project-path> "<phase-name>"
Examples
# Create Phase 10 for GoGrab Space user journey
./create-phase.sh 10 GoGrab-Space/user-journey "Production Launch"
# Create Phase 2 for Universe Restructure
./create-phase.sh 2 GoGrab-Space/universe-restructure "Integration Phase"
# Create Phase 1 for new project
./create-phase.sh 1 MyProject/phases "Initial Setup"
What It Does Automatically
- Validates Input - Checks for required arguments
- Checks Previous Context - Looks for phase-[N-1]/context/ folder
- Creates Structure - Makes phase-X/ and context/ directories
- Copies Templates - All 5 template files
- Customizes Content:
- Replaces "Phase X" with actual phase number
- Fills in current date and time
- Updates phase names throughout
- Creates Context README - Documentation for context folder
- Runs Docs Scan - Optionally updates documentation system
Output
phase-X/
├── index.mdc (customized with dates)
├── PHASE-X-COMPLETE-PLAN.md (customized with dates)
├── achievements.md (customized with dates)
├── progress.md (customized with dates)
├── next-steps.md (customized with dates)
└── context/
└── README.md (instructions for context)
Features
Smart Detection
- Detects if previous phase has context folder
- Shows list of context files to read
- Warns if phase already exists
Customization
- Automatically fills in:
- Current date (November 10, 2025)
- Current time (10:30 AM)
- Phase number throughout files
- Phase name in frontmatter
Interactive
- Asks before overwriting existing phase
- Optionally runs docs:scan after creation
- Provides next steps guide
Time Savings
| Method | Time | Result |
|---|---|---|
| Automated Script | 30 seconds | ✅ Complete, customized |
| Manual | 20+ minutes | Requires customization |
Requirements
- Bash shell
- Access to /docs/english/ directory
- Templates in /Templates/phases-template/
Error Handling
- Exits on missing arguments
- Checks if phase already exists
- Validates paths before creating
- Sets executable permissions automatically
Next Steps After Running
- Read previous phase context (if shown by script)
- Customize remaining placeholders in generated files
- Fill in phase-specific details (goals, timeline, etc.)
- Start working on phase!
Version
- Version: 1.0
- Created: November 10, 2025
- Location:
/docs/english/Templates/phases-template/create-phase.sh
Related
- AI Agent Workflow - Complete workflow guide
- Quick Reference - Quick lookup
- README - Complete template documentation