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
@@ -0,0 +1,71 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://megacampus2.local/schemas/security-plan.schema.json",
4
+ "title": "Security Audit Plan Schema",
5
+ "description": "Schema for security scanning and remediation workflow plan files",
6
+ "allOf": [
7
+ {
8
+ "$ref": "./base-plan.schema.json"
9
+ }
10
+ ],
11
+ "properties": {
12
+ "workflow": {
13
+ "const": "security-audit"
14
+ },
15
+ "phase": {
16
+ "enum": ["scan", "remediation", "verification"]
17
+ },
18
+ "config": {
19
+ "type": "object",
20
+ "required": ["severity"],
21
+ "properties": {
22
+ "severity": {
23
+ "type": "string",
24
+ "enum": ["critical", "high", "medium", "low", "all"],
25
+ "description": "Vulnerability severity level to process"
26
+ },
27
+ "categories": {
28
+ "type": "array",
29
+ "description": "Specific vulnerability categories",
30
+ "items": {
31
+ "type": "string",
32
+ "enum": ["sql-injection", "xss", "auth-bypass", "rls-missing", "exposed-credentials", "dependency-vulns"]
33
+ }
34
+ },
35
+ "maxVulnsPerRun": {
36
+ "type": "integer",
37
+ "description": "Maximum vulnerabilities to fix in single run",
38
+ "minimum": 1,
39
+ "default": 25
40
+ },
41
+ "skipSupabaseRLS": {
42
+ "type": "boolean",
43
+ "description": "Skip RLS policy validation",
44
+ "default": false
45
+ }
46
+ }
47
+ },
48
+ "validation": {
49
+ "type": "object",
50
+ "properties": {
51
+ "required": {
52
+ "type": "array",
53
+ "items": {
54
+ "type": "string",
55
+ "enum": ["report-exists", "type-check", "build", "validation-passed", "no-critical-vulns"]
56
+ }
57
+ },
58
+ "optional": {
59
+ "type": "array",
60
+ "items": {
61
+ "type": "string",
62
+ "enum": ["tests", "lint", "rls-policies-valid"]
63
+ }
64
+ }
65
+ }
66
+ },
67
+ "nextAgent": {
68
+ "enum": ["security-scanner", "vulnerability-fixer"]
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,47 @@
1
+ #!/bin/bash
2
+ # Custom Quality Gate: Bundle Size Check
3
+ # Purpose: Ensure production bundle stays within size limits
4
+ # Blocking: false (warning only)
5
+
6
+ set -e
7
+
8
+ echo "🔍 Running bundle size check..."
9
+
10
+ # Configurable threshold (default 500KB)
11
+ BUNDLE_SIZE_LIMIT=${BUNDLE_SIZE_LIMIT:-512000} # 500KB in bytes
12
+
13
+ # Find bundle file
14
+ BUNDLE_FILE="dist/bundle.js"
15
+ if [ ! -f "$BUNDLE_FILE" ]; then
16
+ echo "⚠️ Warning: Bundle file not found at $BUNDLE_FILE"
17
+ echo " Run 'npm run build' first"
18
+ exit 0 # Non-blocking, just warn
19
+ fi
20
+
21
+ # Get actual size
22
+ ACTUAL_SIZE=$(wc -c < "$BUNDLE_FILE")
23
+ ACTUAL_SIZE_KB=$((ACTUAL_SIZE / 1024))
24
+ LIMIT_KB=$((BUNDLE_SIZE_LIMIT / 1024))
25
+
26
+ echo " Bundle: $BUNDLE_FILE"
27
+ echo " Size: $ACTUAL_SIZE_KB KB"
28
+ echo " Limit: $LIMIT_KB KB"
29
+
30
+ if [ "$ACTUAL_SIZE" -gt "$BUNDLE_SIZE_LIMIT" ]; then
31
+ echo ""
32
+ echo "⛔ Bundle size EXCEEDS limit!"
33
+ echo " Actual: $ACTUAL_SIZE_KB KB"
34
+ echo " Limit: $LIMIT_KB KB"
35
+ echo " Exceeded by: $((ACTUAL_SIZE_KB - LIMIT_KB)) KB"
36
+ echo ""
37
+ echo "Recommendations:"
38
+ echo " - Analyze bundle with: npm run analyze"
39
+ echo " - Remove unused dependencies"
40
+ echo " - Use code splitting"
41
+ echo " - Enable tree shaking"
42
+ exit 1
43
+ fi
44
+
45
+ echo "✅ Bundle size OK: $ACTUAL_SIZE_KB KB (limit: $LIMIT_KB KB)"
46
+ echo ""
47
+ exit 0
@@ -0,0 +1,67 @@
1
+ #!/bin/bash
2
+ # Custom Quality Gate: Code Coverage
3
+ # Purpose: Ensure test coverage meets minimum threshold
4
+ # Blocking: false (warning only)
5
+
6
+ set -e
7
+
8
+ echo "🔍 Running code coverage check..."
9
+
10
+ # Configurable threshold (default 80%)
11
+ COVERAGE_THRESHOLD=${COVERAGE_THRESHOLD:-80}
12
+
13
+ # Check if coverage report exists
14
+ COVERAGE_FILE="coverage/coverage-summary.json"
15
+ if [ ! -f "$COVERAGE_FILE" ]; then
16
+ echo "⚠️ Warning: Coverage report not found"
17
+ echo " Run 'npm run test:coverage' first"
18
+ exit 0
19
+ fi
20
+
21
+ # Extract coverage percentages
22
+ LINES=$(cat "$COVERAGE_FILE" | grep -o '"lines":{"total":[0-9]*,"covered":[0-9]*' | grep -o '[0-9]*' | paste - - | awk '{if($1>0) print int($2*100/$1); else print 0}')
23
+ BRANCHES=$(cat "$COVERAGE_FILE" | grep -o '"branches":{"total":[0-9]*,"covered":[0-9]*' | grep -o '[0-9]*' | paste - - | awk '{if($1>0) print int($2*100/$1); else print 0}')
24
+ FUNCTIONS=$(cat "$COVERAGE_FILE" | grep -o '"functions":{"total":[0-9]*,"covered":[0-9]*' | grep -o '[0-9]*' | paste - - | awk '{if($1>0) print int($2*100/$1); else print 0}')
25
+ STATEMENTS=$(cat "$COVERAGE_FILE" | grep -o '"statements":{"total":[0-9]*,"covered":[0-9]*' | grep -o '[0-9]*' | paste - - | awk '{if($1>0) print int($2*100/$1); else print 0}')
26
+
27
+ echo " Coverage Report:"
28
+ echo " - Lines: $LINES%"
29
+ echo " - Branches: $BRANCHES%"
30
+ echo " - Functions: $FUNCTIONS%"
31
+ echo " - Statements: $STATEMENTS%"
32
+ echo " Threshold: $COVERAGE_THRESHOLD%"
33
+ echo ""
34
+
35
+ # Check if any metric is below threshold
36
+ FAILED=0
37
+ if [ "$LINES" -lt "$COVERAGE_THRESHOLD" ]; then
38
+ echo "⚠️ Lines coverage ($LINES%) below threshold ($COVERAGE_THRESHOLD%)"
39
+ FAILED=1
40
+ fi
41
+ if [ "$BRANCHES" -lt "$COVERAGE_THRESHOLD" ]; then
42
+ echo "⚠️ Branches coverage ($BRANCHES%) below threshold ($COVERAGE_THRESHOLD%)"
43
+ FAILED=1
44
+ fi
45
+ if [ "$FUNCTIONS" -lt "$COVERAGE_THRESHOLD" ]; then
46
+ echo "⚠️ Functions coverage ($FUNCTIONS%) below threshold ($COVERAGE_THRESHOLD%)"
47
+ FAILED=1
48
+ fi
49
+ if [ "$STATEMENTS" -lt "$COVERAGE_THRESHOLD" ]; then
50
+ echo "⚠️ Statements coverage ($STATEMENTS%) below threshold ($COVERAGE_THRESHOLD%)"
51
+ FAILED=1
52
+ fi
53
+
54
+ if [ "$FAILED" -eq 1 ]; then
55
+ echo ""
56
+ echo "Recommendations:"
57
+ echo " - Add more tests for uncovered code"
58
+ echo " - Focus on edge cases and error paths"
59
+ echo " - Review coverage report: open coverage/lcov-report/index.html"
60
+ echo ""
61
+ exit 1
62
+ fi
63
+
64
+ echo "✅ Code coverage passed"
65
+ echo " All metrics above $COVERAGE_THRESHOLD%"
66
+ echo ""
67
+ exit 0
@@ -0,0 +1,46 @@
1
+ #!/bin/bash
2
+ # Custom Quality Gate: Security Audit
3
+ # Purpose: Check for high/critical vulnerabilities in dependencies
4
+ # Blocking: true (must fix before merging)
5
+
6
+ set -e
7
+
8
+ echo "🔍 Running security audit..."
9
+
10
+ # Check if package.json exists
11
+ if [ ! -f "package.json" ]; then
12
+ echo "⚠️ Warning: package.json not found"
13
+ echo " Skipping security audit"
14
+ exit 0
15
+ fi
16
+
17
+ # Run npm audit for high/critical vulnerabilities
18
+ echo " Checking for high/critical vulnerabilities..."
19
+ echo ""
20
+
21
+ if npm audit --audit-level=high --json > /tmp/audit-results.json 2>&1; then
22
+ VULN_COUNT=$(cat /tmp/audit-results.json | grep -o '"total":[0-9]*' | head -1 | grep -o '[0-9]*' || echo "0")
23
+
24
+ echo "✅ Security audit passed"
25
+ echo " No high/critical vulnerabilities found"
26
+ echo ""
27
+ rm -f /tmp/audit-results.json
28
+ exit 0
29
+ else
30
+ # Parse results
31
+ VULN_COUNT=$(cat /tmp/audit-results.json | grep -o '"total":[0-9]*' | head -1 | grep -o '[0-9]*' || echo "unknown")
32
+
33
+ echo "⛔ Security audit FAILED"
34
+ echo " Found $VULN_COUNT high/critical vulnerabilities"
35
+ echo ""
36
+ echo "Details:"
37
+ npm audit --audit-level=high
38
+ echo ""
39
+ echo "To fix:"
40
+ echo " - Run: npm audit fix"
41
+ echo " - Or manually update affected packages"
42
+ echo " - Re-run security audit after fixes"
43
+ echo ""
44
+ rm -f /tmp/audit-results.json
45
+ exit 1
46
+ fi