68 lines
2.8 KiB
Markdown
68 lines
2.8 KiB
Markdown
---
|
|
description: Initialize a new guardrailed project with manifest
|
|
allowed-tools: Bash, Write, Read
|
|
---
|
|
|
|
# Initialize Guardrailed Project
|
|
|
|
Initialize a new project called "$ARGUMENTS" with guardrail enforcement and workflow system.
|
|
|
|
## Generated Files
|
|
|
|
This command creates:
|
|
1. `project_manifest.json` - Entity definitions and dependencies
|
|
2. `.workflow/index.yml` - Version tracking index
|
|
3. `.workflow/versions/` - Directory for version snapshots
|
|
|
|
## Steps
|
|
|
|
### Step 1: Run the initialization script
|
|
```bash
|
|
python3 skills/guardrail-orchestrator/scripts/init_project.py --name "$ARGUMENTS" --path .
|
|
```
|
|
|
|
### Step 2: Initialize Workflow Directory Structure [MANDATORY]
|
|
```bash
|
|
# Create workflow directory structure
|
|
mkdir -p .workflow/versions
|
|
|
|
# Create index.yml if it doesn't exist
|
|
if [ ! -f .workflow/index.yml ]; then
|
|
cat > .workflow/index.yml << 'EOF'
|
|
versions: []
|
|
latest_version: null
|
|
total_versions: 0
|
|
EOF
|
|
fi
|
|
```
|
|
|
|
### Step 3: Verify and Display Summary
|
|
```bash
|
|
# Verify files exist
|
|
ls project_manifest.json .workflow/index.yml
|
|
```
|
|
|
|
Display:
|
|
```
|
|
╔══════════════════════════════════════════════════════════════╗
|
|
║ ✅ PROJECT INITIALIZED ║
|
|
╠══════════════════════════════════════════════════════════════╣
|
|
║ Project: $ARGUMENTS ║
|
|
║ Phase: DESIGN_PHASE ║
|
|
╠══════════════════════════════════════════════════════════════╣
|
|
║ Files Created: ║
|
|
║ ✓ project_manifest.json ║
|
|
║ ✓ .workflow/index.yml ║
|
|
║ ✓ .workflow/versions/ ║
|
|
╠══════════════════════════════════════════════════════════════╣
|
|
║ Next Steps: ║
|
|
║ /guardrail:design Design features in manifest ║
|
|
║ /workflow:spawn <feat> Start automated workflow ║
|
|
╚══════════════════════════════════════════════════════════════╝
|
|
```
|
|
|
|
## Notes
|
|
- Project starts in **DESIGN_PHASE** (manifest edits only)
|
|
- Use `/guardrail:design` for manual design workflow
|
|
- Use `/workflow:spawn` for automated design + implementation
|