claude-code-orchestrator-kit 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/.claude/agents/database/workers/api-builder.md +155 -0
  2. package/.claude/agents/database/workers/database-architect.md +193 -0
  3. package/.claude/agents/database/workers/supabase-auditor.md +1070 -0
  4. package/.claude/agents/development/workers/code-reviewer.md +968 -0
  5. package/.claude/agents/development/workers/cost-calculator-specialist.md +683 -0
  6. package/.claude/agents/development/workers/llm-service-specialist.md +999 -0
  7. package/.claude/agents/development/workers/skill-builder-v2.md +480 -0
  8. package/.claude/agents/development/workers/typescript-types-specialist.md +649 -0
  9. package/.claude/agents/development/workers/utility-builder.md +582 -0
  10. package/.claude/agents/documentation/workers/technical-writer.md +152 -0
  11. package/.claude/agents/frontend/workers/fullstack-nextjs-specialist.md +206 -0
  12. package/.claude/agents/frontend/workers/visual-effects-creator.md +159 -0
  13. package/.claude/agents/health/orchestrators/bug-orchestrator.md +1045 -0
  14. package/.claude/agents/health/orchestrators/dead-code-orchestrator.md +1045 -0
  15. package/.claude/agents/health/orchestrators/dependency-orchestrator.md +1045 -0
  16. package/.claude/agents/health/orchestrators/security-orchestrator.md +1045 -0
  17. package/.claude/agents/health/workers/bug-fixer.md +525 -0
  18. package/.claude/agents/health/workers/bug-hunter.md +649 -0
  19. package/.claude/agents/health/workers/dead-code-hunter.md +446 -0
  20. package/.claude/agents/health/workers/dead-code-remover.md +437 -0
  21. package/.claude/agents/health/workers/dependency-auditor.md +379 -0
  22. package/.claude/agents/health/workers/dependency-updater.md +436 -0
  23. package/.claude/agents/health/workers/security-scanner.md +700 -0
  24. package/.claude/agents/health/workers/vulnerability-fixer.md +524 -0
  25. package/.claude/agents/infrastructure/workers/infrastructure-specialist.md +156 -0
  26. package/.claude/agents/infrastructure/workers/orchestration-logic-specialist.md +1260 -0
  27. package/.claude/agents/infrastructure/workers/qdrant-specialist.md +503 -0
  28. package/.claude/agents/infrastructure/workers/quality-validator-specialist.md +984 -0
  29. package/.claude/agents/meta/workers/meta-agent-v3.md +503 -0
  30. package/.claude/agents/research/workers/problem-investigator.md +507 -0
  31. package/.claude/agents/research/workers/research-specialist.md +423 -0
  32. package/.claude/agents/testing/workers/accessibility-tester.md +813 -0
  33. package/.claude/agents/testing/workers/integration-tester.md +188 -0
  34. package/.claude/agents/testing/workers/mobile-fixes-implementer.md +252 -0
  35. package/.claude/agents/testing/workers/mobile-responsiveness-tester.md +180 -0
  36. package/.claude/agents/testing/workers/performance-optimizer.md +262 -0
  37. package/.claude/agents/testing/workers/test-writer.md +800 -0
  38. package/.claude/commands/health-bugs.md +297 -0
  39. package/.claude/commands/health-cleanup.md +297 -0
  40. package/.claude/commands/health-deps.md +297 -0
  41. package/.claude/commands/health-metrics.md +747 -0
  42. package/.claude/commands/health-security.md +297 -0
  43. package/.claude/commands/push.md +21 -0
  44. package/.claude/commands/speckit.analyze.md +184 -0
  45. package/.claude/commands/speckit.checklist.md +294 -0
  46. package/.claude/commands/speckit.clarify.md +178 -0
  47. package/.claude/commands/speckit.constitution.md +78 -0
  48. package/.claude/commands/speckit.implement.md +182 -0
  49. package/.claude/commands/speckit.plan.md +87 -0
  50. package/.claude/commands/speckit.specify.md +250 -0
  51. package/.claude/commands/speckit.tasks.md +137 -0
  52. package/.claude/commands/translate-doc.md +95 -0
  53. package/.claude/commands/worktree-cleanup.md +382 -0
  54. package/.claude/commands/worktree-create.md +287 -0
  55. package/.claude/commands/worktree-list.md +239 -0
  56. package/.claude/commands/worktree-remove.md +339 -0
  57. package/.claude/schemas/base-plan.schema.json +82 -0
  58. package/.claude/schemas/bug-plan.schema.json +71 -0
  59. package/.claude/schemas/dead-code-plan.schema.json +71 -0
  60. package/.claude/schemas/dependency-plan.schema.json +74 -0
  61. package/.claude/schemas/security-plan.schema.json +71 -0
  62. package/.claude/scripts/gates/check-bundle-size.sh +47 -0
  63. package/.claude/scripts/gates/check-coverage.sh +67 -0
  64. package/.claude/scripts/gates/check-security.sh +46 -0
  65. package/.claude/scripts/release.sh +740 -0
  66. package/.claude/settings.local.json +21 -0
  67. package/.claude/settings.local.json.example +20 -0
  68. package/.claude/skills/calculate-priority-score/SKILL.md +229 -0
  69. package/.claude/skills/calculate-priority-score/scoring-matrix.json +83 -0
  70. package/.claude/skills/extract-version/SKILL.md +228 -0
  71. package/.claude/skills/format-commit-message/SKILL.md +189 -0
  72. package/.claude/skills/format-commit-message/template.md +64 -0
  73. package/.claude/skills/format-markdown-table/SKILL.md +202 -0
  74. package/.claude/skills/format-markdown-table/examples.md +84 -0
  75. package/.claude/skills/format-todo-list/SKILL.md +222 -0
  76. package/.claude/skills/format-todo-list/template.json +30 -0
  77. package/.claude/skills/generate-changelog/SKILL.md +258 -0
  78. package/.claude/skills/generate-changelog/commit-mapping.json +47 -0
  79. package/.claude/skills/generate-report-header/SKILL.md +228 -0
  80. package/.claude/skills/generate-report-header/template.md +66 -0
  81. package/.claude/skills/parse-error-logs/SKILL.md +286 -0
  82. package/.claude/skills/parse-error-logs/patterns.json +26 -0
  83. package/.claude/skills/parse-git-status/SKILL.md +164 -0
  84. package/.claude/skills/parse-package-json/SKILL.md +151 -0
  85. package/.claude/skills/parse-package-json/schema.json +43 -0
  86. package/.claude/skills/render-template/SKILL.md +245 -0
  87. package/.claude/skills/rollback-changes/SKILL.md +582 -0
  88. package/.claude/skills/rollback-changes/changes-log-schema.json +101 -0
  89. package/.claude/skills/run-quality-gate/SKILL.md +404 -0
  90. package/.claude/skills/run-quality-gate/gate-mappings.json +97 -0
  91. package/.claude/skills/validate-plan-file/SKILL.md +327 -0
  92. package/.claude/skills/validate-plan-file/schema.json +35 -0
  93. package/.claude/skills/validate-report-file/SKILL.md +256 -0
  94. package/.claude/skills/validate-report-file/schema.json +67 -0
  95. package/.env.example +49 -0
  96. package/.github/BRANCH_PROTECTION.md +137 -0
  97. package/.github/workflows/build.yml +70 -0
  98. package/.github/workflows/claude-code-review.yml +255 -0
  99. package/.github/workflows/claude.yml +79 -0
  100. package/.github/workflows/deploy-staging.yml +90 -0
  101. package/.github/workflows/test.yml +104 -0
  102. package/.gitignore +116 -0
  103. package/CLAUDE.md +137 -0
  104. package/LICENSE +72 -0
  105. package/README.md +1098 -0
  106. package/docs/ARCHITECTURE.md +746 -0
  107. package/docs/Agents Ecosystem/AGENT-ORCHESTRATION.md +568 -0
  108. package/docs/Agents Ecosystem/AI-AGENT-ECOSYSTEM-README.md +658 -0
  109. package/docs/Agents Ecosystem/ARCHITECTURE.md +606 -0
  110. package/docs/Agents Ecosystem/QUALITY-GATES-SPECIFICATION.md +1315 -0
  111. package/docs/Agents Ecosystem/REPORT-TEMPLATE-STANDARD.md +1324 -0
  112. package/docs/Agents Ecosystem/spec-kit-comprehensive-updates.md +478 -0
  113. package/docs/FAQ.md +572 -0
  114. package/docs/MIGRATION-GUIDE.md +542 -0
  115. package/docs/PERFORMANCE-OPTIMIZATION.md +494 -0
  116. package/docs/ROADMAP.md +439 -0
  117. package/docs/TUTORIAL-CUSTOM-AGENTS.md +2041 -0
  118. package/docs/USE-CASES.md +706 -0
  119. package/index.js +96 -0
  120. package/mcp/.mcp.base.json +21 -0
  121. package/mcp/.mcp.frontend.json +29 -0
  122. package/mcp/.mcp.full.json +67 -0
  123. package/mcp/.mcp.local.example.json +7 -0
  124. package/mcp/.mcp.local.json +7 -0
  125. package/mcp/.mcp.n8n.json +45 -0
  126. package/mcp/.mcp.supabase-full.json +35 -0
  127. package/mcp/.mcp.supabase-only.json +28 -0
  128. package/package.json +78 -0
  129. package/postinstall.js +71 -0
  130. package/switch-mcp.sh +101 -0
package/index.js ADDED
@@ -0,0 +1,96 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Claude Code Orchestrator Kit
5
+ *
6
+ * Main entry point for the npm package.
7
+ * This file provides programmatic access to the kit's utilities.
8
+ */
9
+
10
+ import { readFileSync } from 'fs';
11
+ import { fileURLToPath } from 'url';
12
+ import { dirname, join } from 'path';
13
+
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = dirname(__filename);
16
+
17
+ // Read package.json for version info
18
+ const packageJson = JSON.parse(
19
+ readFileSync(join(__dirname, 'package.json'), 'utf-8')
20
+ );
21
+
22
+ /**
23
+ * Get the version of the orchestrator kit
24
+ */
25
+ export function getVersion() {
26
+ return packageJson.version;
27
+ }
28
+
29
+ /**
30
+ * Get the installation directory path
31
+ */
32
+ export function getInstallPath() {
33
+ return __dirname;
34
+ }
35
+
36
+ /**
37
+ * Get paths to key directories
38
+ */
39
+ export function getPaths() {
40
+ return {
41
+ root: __dirname,
42
+ claude: join(__dirname, '.claude'),
43
+ agents: join(__dirname, '.claude', 'agents'),
44
+ commands: join(__dirname, '.claude', 'commands'),
45
+ skills: join(__dirname, '.claude', 'skills'),
46
+ mcp: join(__dirname, 'mcp'),
47
+ docs: join(__dirname, 'docs'),
48
+ };
49
+ }
50
+
51
+ /**
52
+ * Display welcome message
53
+ */
54
+ export function welcome() {
55
+ console.log(`
56
+ ╔════════════════════════════════════════════════════════════════╗
57
+ ║ ║
58
+ ║ 🎼 Claude Code Orchestrator Kit v${packageJson.version} ║
59
+ ║ ║
60
+ ║ Professional automation and orchestration system ║
61
+ ║ ║
62
+ ╚════════════════════════════════════════════════════════════════╝
63
+
64
+ 📦 Package installed successfully!
65
+
66
+ 🚀 Next Steps:
67
+
68
+ 1. Set up environment variables:
69
+ cp .env.example .env.local
70
+ # Edit .env.local with your credentials
71
+
72
+ 2. Choose MCP configuration:
73
+ npm run setup
74
+ # Or: bash switch-mcp.sh
75
+
76
+ 3. Restart Claude Code to apply changes
77
+
78
+ 📚 Documentation: ${packageJson.homepage}
79
+ 💬 Issues: ${packageJson.bugs.url}
80
+
81
+ Happy coding with Claude! 🤖
82
+ `);
83
+ }
84
+
85
+ // If run directly from command line
86
+ if (process.argv[1] === __filename) {
87
+ welcome();
88
+ }
89
+
90
+ // Export all utilities
91
+ export default {
92
+ getVersion,
93
+ getInstallPath,
94
+ getPaths,
95
+ welcome,
96
+ };
@@ -0,0 +1,21 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ },
20
+ "playwright": {
21
+ "command": "npx",
22
+ "args": ["@playwright/mcp@latest"]
23
+ },
24
+ "shadcn": {
25
+ "command": "npx",
26
+ "args": ["shadcn@latest", "mcp"]
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,67 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ },
20
+ "supabase": {
21
+ "command": "npx",
22
+ "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=${SUPABASE_PROJECT_REF}"],
23
+ "env": {
24
+ "SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
25
+ }
26
+ },
27
+ "supabase-legacy": {
28
+ "command": "npx",
29
+ "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=${SUPABASE_LEGACY_PROJECT_REF}"],
30
+ "env": {
31
+ "SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
32
+ }
33
+ },
34
+ "n8n-workflows": {
35
+ "command": "npx",
36
+ "args": ["mcp-remote", "https://gitmcp.io/Zie619/n8n-workflows"]
37
+ },
38
+ "n8n-mcp": {
39
+ "command": "docker",
40
+ "args": [
41
+ "run",
42
+ "-i",
43
+ "--rm",
44
+ "--init",
45
+ "-e",
46
+ "MCP_MODE=stdio",
47
+ "-e",
48
+ "LOG_LEVEL=error",
49
+ "-e",
50
+ "DISABLE_CONSOLE_OUTPUT=true",
51
+ "-e",
52
+ "N8N_API_URL=${N8N_API_URL}",
53
+ "-e",
54
+ "N8N_API_KEY=${N8N_API_KEY}",
55
+ "ghcr.io/czlonkowski/n8n-mcp:latest"
56
+ ]
57
+ },
58
+ "playwright": {
59
+ "command": "npx",
60
+ "args": ["@playwright/mcp@latest"]
61
+ },
62
+ "shadcn": {
63
+ "command": "npx",
64
+ "args": ["shadcn@latest", "mcp"]
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "description": "Local MCP configuration template - copy to .mcp.local.json and configure in .env.local",
4
+ "github_token": "${GITHUB_TOKEN}",
5
+ "n8n_api_key": "${N8N_API_KEY}",
6
+ "github_pat": "${GITHUB_PAT}"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-07/schema#",
3
+ "description": "Local MCP configuration - sensitive values stored in .env.local",
4
+ "github_token": "${GITHUB_TOKEN}",
5
+ "n8n_api_key": "${N8N_API_KEY}",
6
+ "github_pat": "${GITHUB_PAT}"
7
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ },
20
+ "n8n-workflows": {
21
+ "command": "npx",
22
+ "args": ["mcp-remote", "https://gitmcp.io/Zie619/n8n-workflows"]
23
+ },
24
+ "n8n-mcp": {
25
+ "command": "docker",
26
+ "args": [
27
+ "run",
28
+ "-i",
29
+ "--rm",
30
+ "--init",
31
+ "-e",
32
+ "MCP_MODE=stdio",
33
+ "-e",
34
+ "LOG_LEVEL=error",
35
+ "-e",
36
+ "DISABLE_CONSOLE_OUTPUT=true",
37
+ "-e",
38
+ "N8N_API_URL=${N8N_API_URL}",
39
+ "-e",
40
+ "N8N_API_KEY=${N8N_API_KEY}",
41
+ "ghcr.io/czlonkowski/n8n-mcp:latest"
42
+ ]
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ },
20
+ "supabase": {
21
+ "command": "npx",
22
+ "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=${SUPABASE_PROJECT_REF}"],
23
+ "env": {
24
+ "SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
25
+ }
26
+ },
27
+ "supabase-legacy": {
28
+ "command": "npx",
29
+ "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=${SUPABASE_LEGACY_PROJECT_REF}"],
30
+ "env": {
31
+ "SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "mcpServers": {
3
+ "context7": {
4
+ "command": "npx",
5
+ "args": ["-y", "@upstash/context7-mcp@latest"]
6
+ },
7
+ "server-sequential-thinking": {
8
+ "command": "npx",
9
+ "args": [
10
+ "-y",
11
+ "@smithery/cli@latest",
12
+ "run",
13
+ "@smithery-ai/server-sequential-thinking"
14
+ ],
15
+ "env": {
16
+ "SMITHERY_API_KEY": "${SEQUENTIAL_THINKING_KEY}",
17
+ "SMITHERY_PROFILE": "${SEQUENTIAL_THINKING_PROFILE}"
18
+ }
19
+ },
20
+ "supabase": {
21
+ "command": "npx",
22
+ "args": ["-y", "@supabase/mcp-server-supabase@latest", "--project-ref=${SUPABASE_PROJECT_REF}"],
23
+ "env": {
24
+ "SUPABASE_ACCESS_TOKEN": "${SUPABASE_ACCESS_TOKEN}"
25
+ }
26
+ }
27
+ }
28
+ }
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "claude-code-orchestrator-kit",
3
+ "version": "1.0.0",
4
+ "description": "Complete automation and orchestration system for Claude Code with 33+ AI agents, quality gates, health monitoring, and workflow automation",
5
+ "main": "index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "postinstall": "node postinstall.js",
9
+ "setup": "bash switch-mcp.sh",
10
+ "test": "echo \"No tests yet\" && exit 0"
11
+ },
12
+ "keywords": [
13
+ "claude",
14
+ "claude-code",
15
+ "ai",
16
+ "agents",
17
+ "orchestration",
18
+ "automation",
19
+ "workflow",
20
+ "mcp",
21
+ "model-context-protocol",
22
+ "supabase",
23
+ "code-quality",
24
+ "health-monitoring",
25
+ "devtools",
26
+ "productivity",
27
+ "ci-cd",
28
+ "quality-gates",
29
+ "bug-detection",
30
+ "security-scanning",
31
+ "dependency-management",
32
+ "speckit"
33
+ ],
34
+ "author": {
35
+ "name": "Igor Maslennikov",
36
+ "email": "maslennikov-ig@users.noreply.github.com",
37
+ "url": "https://github.com/maslennikov-ig"
38
+ },
39
+ "license": "MIT",
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+https://github.com/maslennikov-ig/claude-code-orchestrator-kit.git"
43
+ },
44
+ "bugs": {
45
+ "url": "https://github.com/maslennikov-ig/claude-code-orchestrator-kit/issues"
46
+ },
47
+ "homepage": "https://github.com/maslennikov-ig/claude-code-orchestrator-kit#readme",
48
+ "engines": {
49
+ "node": ">=18.0.0",
50
+ "npm": ">=9.0.0"
51
+ },
52
+ "files": [
53
+ ".claude/",
54
+ "mcp/",
55
+ "docs/",
56
+ ".github/",
57
+ "switch-mcp.sh",
58
+ "CLAUDE.md",
59
+ "README.md",
60
+ "LICENSE",
61
+ ".env.example",
62
+ ".gitignore",
63
+ "postinstall.js",
64
+ "index.js"
65
+ ],
66
+ "bin": {
67
+ "claude-orchestrator": "./switch-mcp.sh"
68
+ },
69
+ "os": [
70
+ "darwin",
71
+ "linux",
72
+ "win32"
73
+ ],
74
+ "publishConfig": {
75
+ "access": "public",
76
+ "registry": "https://registry.npmjs.org/"
77
+ }
78
+ }
package/postinstall.js ADDED
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Post-install script for Claude Code Orchestrator Kit
5
+ *
6
+ * This script runs automatically after npm install and helps users
7
+ * set up the kit properly.
8
+ */
9
+
10
+ import { welcome } from './index.js';
11
+ import { existsSync } from 'fs';
12
+ import { join } from 'path';
13
+ import { fileURLToPath } from 'url';
14
+ import { dirname } from 'path';
15
+
16
+ const __filename = fileURLToPath(import.meta.url);
17
+ const __dirname = dirname(__filename);
18
+
19
+ /**
20
+ * Check if required files exist
21
+ */
22
+ function checkInstallation() {
23
+ const requiredPaths = [
24
+ '.claude',
25
+ '.claude/agents',
26
+ '.claude/commands',
27
+ '.claude/skills',
28
+ 'mcp',
29
+ 'CLAUDE.md',
30
+ 'README.md',
31
+ ];
32
+
33
+ const missing = requiredPaths.filter(
34
+ path => !existsSync(join(__dirname, path))
35
+ );
36
+
37
+ if (missing.length > 0) {
38
+ console.error('❌ Installation incomplete. Missing files:');
39
+ missing.forEach(path => console.error(` - ${path}`));
40
+ process.exit(1);
41
+ }
42
+
43
+ return true;
44
+ }
45
+
46
+ /**
47
+ * Main post-install routine
48
+ */
49
+ async function main() {
50
+ try {
51
+ // Check installation integrity
52
+ checkInstallation();
53
+
54
+ // Display welcome message with setup instructions
55
+ welcome();
56
+
57
+ // Check if .env.local exists
58
+ if (!existsSync(join(__dirname, '.env.local'))) {
59
+ console.log('\n⚠️ Remember to create .env.local from .env.example\n');
60
+ }
61
+
62
+ // Success
63
+ process.exit(0);
64
+ } catch (error) {
65
+ console.error('❌ Post-install failed:', error.message);
66
+ process.exit(1);
67
+ }
68
+ }
69
+
70
+ // Run post-install
71
+ main();
package/switch-mcp.sh ADDED
@@ -0,0 +1,101 @@
1
+ #!/bin/bash
2
+ # ===================================================================
3
+ # MCP Configuration Switcher
4
+ # ===================================================================
5
+ # Switches between different MCP server configurations
6
+ # All configurations are stored in ./mcp/ directory
7
+
8
+ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9
+ cd "$REPO_ROOT"
10
+
11
+ # Color codes for output
12
+ GREEN='\033[0;32m'
13
+ BLUE='\033[0;34m'
14
+ YELLOW='\033[1;33m'
15
+ RED='\033[0;31m'
16
+ NC='\033[0m'
17
+
18
+ # MCP configurations directory
19
+ MCP_DIR="mcp"
20
+
21
+ echo -e "${BLUE}═══════════════════════════════════════════════════${NC}"
22
+ echo -e "${BLUE} MCP Configuration Switcher${NC}"
23
+ echo -e "${BLUE}═══════════════════════════════════════════════════${NC}"
24
+ echo ""
25
+ echo "Select MCP configuration:"
26
+ echo ""
27
+ echo -e "${GREEN}1${NC} - BASE (Context7 + Sequential Thinking) ~600 tokens"
28
+ echo -e "${GREEN}2${NC} - SUPABASE (Base + Supabase MegaCampusAI) ~2500 tokens"
29
+ echo -e "${GREEN}3${NC} - SUPABASE + LEGACY (Base + Supabase + Legacy project) ~3000 tokens"
30
+ echo -e "${GREEN}4${NC} - N8N (Base + n8n-workflows + n8n-mcp) ~2500 tokens"
31
+ echo -e "${GREEN}5${NC} - FRONTEND (Base + Playwright + ShadCN) ~2000 tokens"
32
+ echo -e "${GREEN}6${NC} - FULL (All servers) ~5000 tokens"
33
+ echo ""
34
+ echo -e "${YELLOW}0${NC} - STATUS (Show current configuration)"
35
+ echo ""
36
+ read -p "Your choice (0-6): " choice
37
+
38
+ case "$choice" in
39
+ 1)
40
+ config="base"
41
+ desc="BASE (Context7 + Sequential Thinking)"
42
+ ;;
43
+ 2)
44
+ config="supabase-only"
45
+ desc="SUPABASE (MegaCampusAI only)"
46
+ ;;
47
+ 3)
48
+ config="supabase-full"
49
+ desc="SUPABASE + LEGACY (Both projects)"
50
+ ;;
51
+ 4)
52
+ config="n8n"
53
+ desc="N8N (Workflow automation)"
54
+ ;;
55
+ 5)
56
+ config="frontend"
57
+ desc="FRONTEND (Playwright + ShadCN)"
58
+ ;;
59
+ 6)
60
+ config="full"
61
+ desc="FULL (All servers)"
62
+ ;;
63
+ 0)
64
+ echo ""
65
+ echo -e "${BLUE}Current configuration:${NC}"
66
+ if [ -f .mcp.json ]; then
67
+ servers=$(grep -oP '"[^"]+"\s*:\s*\{' .mcp.json | sed 's/"//g' | sed 's/://' | tr '\n' ', ' | sed 's/,$//')
68
+ echo -e " Active servers: ${GREEN}$servers${NC}"
69
+ else
70
+ echo -e " ${RED}.mcp.json file not found${NC}"
71
+ fi
72
+ echo ""
73
+ echo "Available configurations:"
74
+ [ -f "$MCP_DIR/.mcp.base.json" ] && echo -e " ✓ $MCP_DIR/.mcp.base.json"
75
+ [ -f "$MCP_DIR/.mcp.supabase-only.json" ] && echo -e " ✓ $MCP_DIR/.mcp.supabase-only.json"
76
+ [ -f "$MCP_DIR/.mcp.supabase-full.json" ] && echo -e " ✓ $MCP_DIR/.mcp.supabase-full.json"
77
+ [ -f "$MCP_DIR/.mcp.n8n.json" ] && echo -e " ✓ $MCP_DIR/.mcp.n8n.json"
78
+ [ -f "$MCP_DIR/.mcp.frontend.json" ] && echo -e " ✓ $MCP_DIR/.mcp.frontend.json"
79
+ [ -f "$MCP_DIR/.mcp.full.json" ] && echo -e " ✓ $MCP_DIR/.mcp.full.json"
80
+ exit 0
81
+ ;;
82
+ *)
83
+ echo -e "${RED}Invalid choice. Use numbers 0-6.${NC}"
84
+ exit 1
85
+ ;;
86
+ esac
87
+
88
+ # Copy configuration from mcp/ directory to root
89
+ SOURCE_FILE="$MCP_DIR/.mcp.$config.json"
90
+ if [ -f "$SOURCE_FILE" ]; then
91
+ cp "$SOURCE_FILE" .mcp.json
92
+ echo ""
93
+ echo -e "${GREEN}✅ Switched to: $desc${NC}"
94
+ echo -e " Source: ${BLUE}$SOURCE_FILE${NC}"
95
+ echo ""
96
+ echo -e "${YELLOW}⚠️ IMPORTANT: Restart Claude Code to apply changes!${NC}"
97
+ echo ""
98
+ else
99
+ echo -e "${RED}❌ File $SOURCE_FILE not found${NC}"
100
+ exit 1
101
+ fi