validate-agentmarketing.ps1 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. # Validate agentMarketing complete structure
  2. # Run from project root: .\scripts\validate-agentmarketing.ps1
  3. $errors = @()
  4. $warnings = @()
  5. # 1. Directories
  6. $requiredDirs = @(
  7. 'knowledge/livinweb', 'knowledge/livinia', 'knowledge/shared',
  8. 'knowledge/frameworks', 'knowledge/swipe-files', 'knowledge/benchmarks',
  9. 'workflows/1-weekly-brief', 'workflows/2-weekly-plan',
  10. 'workflows/3-asset-generation', 'workflows/4-performance-review',
  11. 'templates', 'outputs'
  12. )
  13. foreach ($d in $requiredDirs) {
  14. if (-not (Test-Path $d)) { $errors += "Missing: $d" }
  15. }
  16. # 2. KB core files (required for Journey 0)
  17. $kbCore = @(
  18. 'knowledge/shared/tone-of-voice.md',
  19. 'knowledge/shared/guardrails.md',
  20. 'knowledge/shared/personas.md',
  21. 'knowledge/shared/history.md',
  22. 'knowledge/livinweb/offers.md',
  23. 'knowledge/livinweb/positioning.md',
  24. 'knowledge/livinia/offers.md',
  25. 'knowledge/livinia/positioning.md'
  26. )
  27. foreach ($f in $kbCore) {
  28. if (-not (Test-Path $f)) { $errors += "Missing KB: $f" }
  29. }
  30. # 3. KB optional (frameworks, swipe-files, benchmarks)
  31. $kbOptional = @(
  32. 'knowledge/frameworks/obviously-awesome.md',
  33. 'knowledge/frameworks/awareness-levels.md',
  34. 'knowledge/frameworks/bullseye-channels.md',
  35. 'knowledge/frameworks/cmo-cadence.md',
  36. 'knowledge/swipe-files/linkedin-posts.md',
  37. 'knowledge/swipe-files/cold-email.md',
  38. 'knowledge/swipe-files/ad-copy-b2b.md',
  39. 'knowledge/benchmarks/cold-email.md',
  40. 'knowledge/benchmarks/linkedin.md'
  41. )
  42. foreach ($f in $kbOptional) {
  43. if (-not (Test-Path $f)) { $warnings += "Optional KB missing: $f" }
  44. }
  45. # 4. Templates
  46. $templates = @(
  47. 'templates/weekly-brief.md',
  48. 'templates/week-plan.md',
  49. 'templates/session-log.md',
  50. 'templates/linkedin-posts.md',
  51. 'templates/email-sequence.md',
  52. 'templates/tasks.json',
  53. 'templates/performance-review.md'
  54. )
  55. foreach ($f in $templates) {
  56. if (-not (Test-Path $f)) { $errors += "Missing template: $f" }
  57. }
  58. # 5. Workflows
  59. $workflows = @(
  60. 'workflows/1-weekly-brief/workflow.md',
  61. 'workflows/2-weekly-plan/workflow.md',
  62. 'workflows/3-asset-generation/workflow.md',
  63. 'workflows/4-performance-review/workflow.md'
  64. )
  65. foreach ($f in $workflows) {
  66. if (-not (Test-Path $f)) { $errors += "Missing workflow: $f" }
  67. }
  68. # 6. Cursor Commands
  69. $commands = @(
  70. '.cursor/commands/agentmarketing-weekly-brief.md',
  71. '.cursor/commands/agentmarketing-weekly-plan.md',
  72. '.cursor/commands/agentmarketing-asset-generation.md',
  73. '.cursor/commands/agentmarketing-performance-review.md'
  74. )
  75. foreach ($f in $commands) {
  76. if (-not (Test-Path $f)) { $errors += "Missing command: $f" }
  77. }
  78. # 7. README
  79. if (-not (Test-Path 'README.md')) { $errors += "Missing: README.md" }
  80. # Report
  81. if ($errors.Count -gt 0) {
  82. Write-Host "`n=== ERRORS ($($errors.Count)) ===" -ForegroundColor Red
  83. $errors | ForEach-Object { Write-Host " $_" -ForegroundColor Red }
  84. }
  85. if ($warnings.Count -gt 0) {
  86. Write-Host "`n=== WARNINGS ($($warnings.Count)) ===" -ForegroundColor Yellow
  87. $warnings | ForEach-Object { Write-Host " $_" -ForegroundColor Yellow }
  88. }
  89. if ($errors.Count -eq 0) {
  90. Write-Host "`n=== agentMarketing structure: OK ===" -ForegroundColor Green
  91. Write-Host " Directories: 12" -ForegroundColor Green
  92. Write-Host " KB core: 8" -ForegroundColor Green
  93. Write-Host " Templates: 7" -ForegroundColor Green
  94. Write-Host " Workflows: 4" -ForegroundColor Green
  95. Write-Host " Commands: 4" -ForegroundColor Green
  96. if ($warnings.Count -gt 0) {
  97. Write-Host "`n Optional KB: $($kbOptional.Count - $warnings.Count)/$($kbOptional.Count) present" -ForegroundColor Yellow
  98. }
  99. Write-Host "`nNext: Fill KB core files (Journey 0), then run /agentmarketing-weekly-brief" -ForegroundColor Cyan
  100. exit 0
  101. } else {
  102. exit 1
  103. }