pod-init
Installation
SKILL.md
Your objective is to initialize the CocoPlus project bundle in the current working directory.
Pre-flight Check
- Check if
.cocoplus/already exists in the current directory.- If it does: output "CocoPlus is already initialized in this directory. Use
$pod statusto check current state or$pod resumeto restore context." Then stop.
- If it does: output "CocoPlus is already initialized in this directory. Use
- Check that a git repository exists using a shell-safe argument call equivalent to
git rev-parse --git-dir.- Prefer
spawnSync('git', ['rev-parse', '--git-dir'])or the host tool's native argument array. - Do not wrap this in PowerShell-specific parsing or string interpolation.
- If not: offer "Git not detected. Initialize? (yes/no)"
- If yes: run
git initand continue. - If no: stop.
- Prefer
Create Directory Structure
Create the following directories (create them even if empty — they are required by other skills):