ai-consultants 2.10.1

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 (62) hide show
  1. package/.claude/commands/ai-consultants:consult.md +94 -0
  2. package/.claude/commands/ai-consultants:debate.md +103 -0
  3. package/.claude/commands/ai-consultants:help.md +30 -0
  4. package/CLAUDE.md +839 -0
  5. package/LICENSE +21 -0
  6. package/README.md +758 -0
  7. package/SKILL.md +156 -0
  8. package/bin/ai-consultants +96 -0
  9. package/docs/COST_RATES.md +172 -0
  10. package/docs/JSON_SCHEMA.md +305 -0
  11. package/docs/SETUP.md +879 -0
  12. package/docs/SMART_ROUTING.md +219 -0
  13. package/docs/cost_rates.json +143 -0
  14. package/package.json +47 -0
  15. package/references/configuration.md +141 -0
  16. package/references/details.md +60 -0
  17. package/scripts/build_context.sh +562 -0
  18. package/scripts/classify_question.sh +148 -0
  19. package/scripts/config.sh +753 -0
  20. package/scripts/configure.sh +1093 -0
  21. package/scripts/consult_all.sh +934 -0
  22. package/scripts/debate_round.sh +421 -0
  23. package/scripts/doctor.sh +642 -0
  24. package/scripts/followup.sh +197 -0
  25. package/scripts/install.sh +319 -0
  26. package/scripts/lib/api.sh +640 -0
  27. package/scripts/lib/api_query.sh +228 -0
  28. package/scripts/lib/cache.sh +338 -0
  29. package/scripts/lib/chunking.sh +880 -0
  30. package/scripts/lib/code_optimizer.sh +671 -0
  31. package/scripts/lib/common.sh +1088 -0
  32. package/scripts/lib/costs.sh +674 -0
  33. package/scripts/lib/personas.sh +372 -0
  34. package/scripts/lib/progress.sh +251 -0
  35. package/scripts/lib/reflection.sh +447 -0
  36. package/scripts/lib/routing.sh +566 -0
  37. package/scripts/lib/schema.json +165 -0
  38. package/scripts/lib/session.sh +327 -0
  39. package/scripts/lib/symbol_map.sh +445 -0
  40. package/scripts/lib/voting.sh +495 -0
  41. package/scripts/peer_review.sh +460 -0
  42. package/scripts/preflight_check.sh +452 -0
  43. package/scripts/query_aider.sh +83 -0
  44. package/scripts/query_amp.sh +67 -0
  45. package/scripts/query_claude.sh +99 -0
  46. package/scripts/query_codex.sh +92 -0
  47. package/scripts/query_cursor.sh +72 -0
  48. package/scripts/query_deepseek.sh +17 -0
  49. package/scripts/query_gemini.sh +85 -0
  50. package/scripts/query_glm.sh +17 -0
  51. package/scripts/query_grok.sh +17 -0
  52. package/scripts/query_kilo.sh +140 -0
  53. package/scripts/query_kimi.sh +67 -0
  54. package/scripts/query_minimax.sh +17 -0
  55. package/scripts/query_mistral.sh +97 -0
  56. package/scripts/query_ollama.sh +328 -0
  57. package/scripts/query_qwen3.sh +93 -0
  58. package/scripts/setup_wizard.sh +367 -0
  59. package/scripts/skillport-install.sh +196 -0
  60. package/scripts/synthesize.sh +332 -0
  61. package/templates/consultation_report.md +323 -0
  62. package/templates/synthesis_prompt.md +120 -0
@@ -0,0 +1,120 @@
1
+ # AI Consultant Synthesis Prompt
2
+
3
+ You are an expert meta-analyst. Your task is to analyze the responses from AI consultants and produce a structured synthesis.
4
+
5
+ ## Consultants and their Roles
6
+
7
+ Each consultant has a persona that shapes their perspective. Common roles include:
8
+ - **The Architect**: Design patterns, scalability, enterprise patterns
9
+ - **The Pragmatist**: Simplicity, practical solutions, quick wins
10
+ - **The Devil's Advocate**: Edge cases, vulnerabilities, risk analysis
11
+ - **The Innovator**: Creativity, unconventional approaches
12
+ - **The Integrator**: Full-stack perspective, holistic view
13
+ - **The Systems Thinker**: System design, component interactions
14
+ - **The Eastern Sage**: Balanced perspectives, holistic understanding
15
+ - **The Analyst**: Data-driven, metrics-focused
16
+
17
+ ## Original Question
18
+
19
+ {{QUESTION}}
20
+
21
+ ## Consultant Responses
22
+
23
+ {{RESPONSES}}
24
+
25
+ ## Analysis Instructions
26
+
27
+ Carefully analyze all responses and produce a report in JSON format:
28
+
29
+ ```json
30
+ {
31
+ "consensus": {
32
+ "score": 75,
33
+ "level": "high|medium|low|none",
34
+ "description": "Description of the consensus level",
35
+ "agreed_points": [
36
+ "Point on which >= 3 consultants agree"
37
+ ],
38
+ "disagreed_points": [
39
+ {
40
+ "topic": "Topic of disagreement",
41
+ "positions": {
42
+ "<consultant_name>": "<position for each consultant that addressed this topic>"
43
+ }
44
+ }
45
+ ]
46
+ },
47
+ "weighted_recommendation": {
48
+ "approach": "Recommended approach",
49
+ "summary": "Summary of the recommendation in 2-3 sentences",
50
+ "detailed": "Detailed explanation",
51
+ "confidence_weighted_score": 8.2,
52
+ "supporting_consultants": ["<consultants supporting the recommendation>"],
53
+ "dissenting_consultants": ["<consultants who disagree>"],
54
+ "neutral_consultants": ["<consultants with no strong position>"]
55
+ },
56
+ "comparison_table": {
57
+ "headers": ["Aspect", "<consultant_name>", "..."],
58
+ "rows": [
59
+ {
60
+ "aspect": "Approach",
61
+ "<consultant_name>": "<value for each consultant that responded>"
62
+ },
63
+ {
64
+ "aspect": "Complexity",
65
+ "<consultant_name>": "<value>"
66
+ },
67
+ {
68
+ "aspect": "Scalability",
69
+ "<consultant_name>": "<value>"
70
+ },
71
+ {
72
+ "aspect": "Risks",
73
+ "<consultant_name>": "<value>"
74
+ }
75
+ ]
76
+ },
77
+ "risk_assessment": {
78
+ "overall_risk": "low|medium|high",
79
+ "risks": [
80
+ {
81
+ "description": "Identified risk",
82
+ "severity": "low|medium|high",
83
+ "mitigation": "How to mitigate it",
84
+ "identified_by": ["<consultant(s) who identified this risk>"]
85
+ }
86
+ ]
87
+ },
88
+ "action_items": [
89
+ {
90
+ "priority": 1,
91
+ "action": "First thing to do",
92
+ "rationale": "Why it is a priority"
93
+ }
94
+ ],
95
+ "follow_up_questions": [
96
+ "Question that could help clarify further"
97
+ ]
98
+ }
99
+ ```
100
+
101
+ ## Rules for Calculating Consensus Score
102
+
103
+ - **100%**: All consultants completely agree
104
+ - **75-99%**: Most agree, few have different opinions
105
+ - **50-74%**: Split opinions or partial agreement
106
+ - **25-49%**: Strong disagreement, incompatible approaches
107
+ - **0-24%**: No points of convergence
108
+
109
+ ## Rules for Confidence-Weighted Score
110
+
111
+ The weighted score is calculated as follows:
112
+ ```
113
+ weighted_score = Σ(consultant_confidence * approach_match) / Σ(consultant_confidence)
114
+ ```
115
+
116
+ Where `approach_match` is 1 if the consultant supports the recommended approach, 0.5 if neutral, 0 if dissenting.
117
+
118
+ ## Output
119
+
120
+ Reply ONLY with valid JSON, without additional text.