| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Validate agentMarketing directory structure (AC1 - Story 1.1)
- # Run from project root: .\scripts\validate-structure.ps1
- $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'
- )
- $missing = $requiredDirs | Where-Object { -not (Test-Path $_) }
- $kebabViolations = @()
- if ($missing) {
- Write-Error "Missing directories: $($missing -join ', ')"
- exit 1
- }
- # Verify kebab-case (no underscores, no PascalCase) - check directory names only
- $allDirs = Get-ChildItem -Path 'knowledge', 'workflows', 'templates', 'outputs' -Directory -Recurse -ErrorAction SilentlyContinue
- foreach ($d in $allDirs) {
- $name = $d.Name
- if ($name -match '_' -or $name -cmatch '[A-Z]') {
- $kebabViolations += $name
- }
- }
- if ($kebabViolations.Count -gt 0) {
- Write-Error "Kebab-case violations: $($kebabViolations -join ', ')"
- exit 1
- }
- Write-Host "All 12 directories exist and follow kebab-case convention."
- exit 0
|