[CLEANUP] Move Root-Level Code Files (14 violations)
⚠️ High Priority: Code Files at Project Root
Policy: Root clean — No scripts, TypeScript, or functional code at root; only best-practice docs
Violations Found
-
./research/sync-tokens.js
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/fix-remaining-unicode.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/create-architecture-wikis.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/cleanup-migrated-markdown.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/run-phase4.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/restore-and-migrate-wiki.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/migrate-content-to-gitlab.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/push-drupal-roadmap.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/test-enforcement.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
-
./agent-buildkit/extract-markdown-todos.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
- ./agent-buildkit/run-duplicate-audit.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
- ./agent-buildkit/test-hook-installation.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
- ./agent-buildkit/test-consolidation.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
- ./agent-buildkit/fix-wiki-titles.ts
- Functional code at root violates clean structure
- Fix: Move to src/ or scripts/ directory with proper organization
📋 Requirements
-
Review each file's purpose -
Determine proper location: -
src/services/
for services -
src/cli/
for CLI tools -
src/scripts/
for utility scripts - Delete if obsolete
-
-
Move files to proper locations -
Update imports and references -
Test functionality -
Update documentation
✅ Acceptance Criteria
-
No .ts/.js files at project root -
All code in src/ directory -
Proper organization by function -
Tests passing -
Documentation updated
🔗 Related Issues
- Directory Structure Cleanup (#)
- Code Organization (#)