# Validate agentMarketing complete structure # Run from project root: .\scripts\validate-agentmarketing.ps1 $errors = @() $warnings = @() # 1. Directories $requiredDirs = @( 'knowledge/livinweb', 'knowledge/livinia', 'knowledge/shared', 'knowledge/frameworks', 'knowledge/swipe-files', 'knowledge/benchmarks', 'workflows/1-weekly-brief', 'workflows/2-weekly-plan', 'workflows/3-asset-generation', 'workflows/4-performance-review', 'templates', 'outputs' ) foreach ($d in $requiredDirs) { if (-not (Test-Path $d)) { $errors += "Missing: $d" } } # 2. KB core files (required for Journey 0) $kbCore = @( 'knowledge/shared/tone-of-voice.md', 'knowledge/shared/guardrails.md', 'knowledge/shared/personas.md', 'knowledge/shared/history.md', 'knowledge/livinweb/offers.md', 'knowledge/livinweb/positioning.md', 'knowledge/livinia/offers.md', 'knowledge/livinia/positioning.md' ) foreach ($f in $kbCore) { if (-not (Test-Path $f)) { $errors += "Missing KB: $f" } } # 3. KB optional (frameworks, swipe-files, benchmarks) $kbOptional = @( 'knowledge/frameworks/obviously-awesome.md', 'knowledge/frameworks/awareness-levels.md', 'knowledge/frameworks/bullseye-channels.md', 'knowledge/frameworks/cmo-cadence.md', 'knowledge/swipe-files/linkedin-posts.md', 'knowledge/swipe-files/cold-email.md', 'knowledge/swipe-files/ad-copy-b2b.md', 'knowledge/benchmarks/cold-email.md', 'knowledge/benchmarks/linkedin.md' ) foreach ($f in $kbOptional) { if (-not (Test-Path $f)) { $warnings += "Optional KB missing: $f" } } # 4. Templates $templates = @( 'templates/weekly-brief.md', 'templates/week-plan.md', 'templates/session-log.md', 'templates/linkedin-posts.md', 'templates/email-sequence.md', 'templates/tasks.json', 'templates/performance-review.md' ) foreach ($f in $templates) { if (-not (Test-Path $f)) { $errors += "Missing template: $f" } } # 5. Workflows $workflows = @( 'workflows/1-weekly-brief/workflow.md', 'workflows/2-weekly-plan/workflow.md', 'workflows/3-asset-generation/workflow.md', 'workflows/4-performance-review/workflow.md' ) foreach ($f in $workflows) { if (-not (Test-Path $f)) { $errors += "Missing workflow: $f" } } # 6. Cursor Commands $commands = @( '.cursor/commands/agentmarketing-weekly-brief.md', '.cursor/commands/agentmarketing-weekly-plan.md', '.cursor/commands/agentmarketing-asset-generation.md', '.cursor/commands/agentmarketing-performance-review.md' ) foreach ($f in $commands) { if (-not (Test-Path $f)) { $errors += "Missing command: $f" } } # 7. README if (-not (Test-Path 'README.md')) { $errors += "Missing: README.md" } # Report if ($errors.Count -gt 0) { Write-Host "`n=== ERRORS ($($errors.Count)) ===" -ForegroundColor Red $errors | ForEach-Object { Write-Host " $_" -ForegroundColor Red } } if ($warnings.Count -gt 0) { Write-Host "`n=== WARNINGS ($($warnings.Count)) ===" -ForegroundColor Yellow $warnings | ForEach-Object { Write-Host " $_" -ForegroundColor Yellow } } if ($errors.Count -eq 0) { Write-Host "`n=== agentMarketing structure: OK ===" -ForegroundColor Green Write-Host " Directories: 12" -ForegroundColor Green Write-Host " KB core: 8" -ForegroundColor Green Write-Host " Templates: 7" -ForegroundColor Green Write-Host " Workflows: 4" -ForegroundColor Green Write-Host " Commands: 4" -ForegroundColor Green if ($warnings.Count -gt 0) { Write-Host "`n Optional KB: $($kbOptional.Count - $warnings.Count)/$($kbOptional.Count) present" -ForegroundColor Yellow } Write-Host "`nNext: Fill KB core files (Journey 0), then run /agentmarketing-weekly-brief" -ForegroundColor Cyan exit 0 } else { exit 1 }