[CLEANUP] Remove All Shell Scripts (19 violations)
🚨 Critical Violation: Shell Scripts in Monorepo
Policy: NO MAKE / SH / BASH - Use reproducible builds aligned with real business logic
Violations Found
-
./research/commit_ci_fixes.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./research/seed-knowledge-graph.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./research/ideas/VERIFY_INTEGRATION.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./.cursor/load-tokens.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./.cursor/bootstrap-zed.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./technical-guide/sync-cognitive-mesh.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./__DELETE_LATER/scripts/fix-all-module-ci.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./__DELETE_LATER/drupal-custom-cleanup/fix-composer-files.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./__DELETE_LATER/drupal-custom-cleanup/commit-fixes.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
-
./__DELETE_LATER/test-blocker.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./common_npm/agent-router/start-free-vibecode.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./common_npm/agent-tracer/gitlab-setup.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./OSSA/hooks/install-hooks.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/install-hooks.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/setup-shared-networks.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/start-services.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/ci/components/vsa/scripts/dora-metrics-api.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/components/documentation/deploy-to-projects.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
- ./.gitlab/shared-infrastructure/kubernetes/deploy.sh
- Shell script violates NO SCRIPTS policy
- Fix: Replace with npm script, GitLab CI job, or TypeScript service
📋 Requirements
For Each Script
-
Document what the script does -
Identify all dependencies -
Choose replacement strategy: - npm/pnpm script (for simple tasks)
- GitLab CI/CD job (for CI/CD tasks)
- TypeScript service (for complex logic)
-
Implement replacement -
Test replacement thoroughly -
Delete original script -
Update documentation
Replacement Strategies
GitLab CI/CD Scripts (.gitlab/*
):
- Convert to GitLab CI/CD jobs in
.gitlab-ci.yml
- Use GitLab components for reusable logic
- Document in GitLab Wiki
Git Hooks:
- Use Lefthook configuration (already in place)
- Define in
lefthook.yml
Complex Logic:
- Create TypeScript service with OpenAPI spec
- Add proper tests (TDD)
- Follow SOLID principles
Simple Tasks:
- Add to package.json scripts
- Use tsx or ts-node for TypeScript execution
✅ Acceptance Criteria
-
ZERO .sh files in entire monorepo -
All functionality preserved -
Better maintainability -
Proper error handling -
Documentation updated -
Team trained on new approach
🔗 Related Issues
- Architecture Cleanup (#)
- GitLab CI/CD Enhancement (#)
- Documentation Migration (#)