tribunal-kit 1.0.0 → 2.4.2

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 (127) hide show
  1. package/.agent/.shared/ui-ux-pro-max/README.md +3 -3
  2. package/.agent/ARCHITECTURE.md +205 -10
  3. package/.agent/GEMINI.md +37 -7
  4. package/.agent/agents/accessibility-reviewer.md +134 -0
  5. package/.agent/agents/ai-code-reviewer.md +129 -0
  6. package/.agent/agents/frontend-specialist.md +3 -0
  7. package/.agent/agents/game-developer.md +21 -21
  8. package/.agent/agents/logic-reviewer.md +12 -0
  9. package/.agent/agents/mobile-reviewer.md +79 -0
  10. package/.agent/agents/orchestrator.md +56 -26
  11. package/.agent/agents/performance-reviewer.md +36 -0
  12. package/.agent/agents/supervisor-agent.md +156 -0
  13. package/.agent/agents/swarm-worker-contracts.md +166 -0
  14. package/.agent/agents/swarm-worker-registry.md +92 -0
  15. package/.agent/rules/GEMINI.md +134 -5
  16. package/.agent/scripts/bundle_analyzer.py +259 -0
  17. package/.agent/scripts/dependency_analyzer.py +247 -0
  18. package/.agent/scripts/lint_runner.py +188 -0
  19. package/.agent/scripts/patch_skills_meta.py +177 -0
  20. package/.agent/scripts/patch_skills_output.py +285 -0
  21. package/.agent/scripts/schema_validator.py +279 -0
  22. package/.agent/scripts/security_scan.py +224 -0
  23. package/.agent/scripts/session_manager.py +144 -3
  24. package/.agent/scripts/skill_integrator.py +234 -0
  25. package/.agent/scripts/strengthen_skills.py +220 -0
  26. package/.agent/scripts/swarm_dispatcher.py +317 -0
  27. package/.agent/scripts/test_runner.py +192 -0
  28. package/.agent/scripts/test_swarm_dispatcher.py +163 -0
  29. package/.agent/skills/agent-organizer/SKILL.md +132 -0
  30. package/.agent/skills/agentic-patterns/SKILL.md +335 -0
  31. package/.agent/skills/api-patterns/SKILL.md +226 -50
  32. package/.agent/skills/app-builder/SKILL.md +215 -52
  33. package/.agent/skills/architecture/SKILL.md +176 -31
  34. package/.agent/skills/bash-linux/SKILL.md +150 -134
  35. package/.agent/skills/behavioral-modes/SKILL.md +152 -160
  36. package/.agent/skills/brainstorming/SKILL.md +148 -101
  37. package/.agent/skills/brainstorming/dynamic-questioning.md +10 -0
  38. package/.agent/skills/clean-code/SKILL.md +139 -134
  39. package/.agent/skills/code-review-checklist/SKILL.md +177 -80
  40. package/.agent/skills/config-validator/SKILL.md +165 -0
  41. package/.agent/skills/csharp-developer/SKILL.md +107 -0
  42. package/.agent/skills/database-design/SKILL.md +252 -29
  43. package/.agent/skills/deployment-procedures/SKILL.md +122 -175
  44. package/.agent/skills/devops-engineer/SKILL.md +134 -0
  45. package/.agent/skills/devops-incident-responder/SKILL.md +98 -0
  46. package/.agent/skills/documentation-templates/SKILL.md +175 -121
  47. package/.agent/skills/dotnet-core-expert/SKILL.md +103 -0
  48. package/.agent/skills/edge-computing/SKILL.md +213 -0
  49. package/.agent/skills/frontend-design/SKILL.md +76 -0
  50. package/.agent/skills/frontend-design/color-system.md +18 -0
  51. package/.agent/skills/frontend-design/typography-system.md +18 -0
  52. package/.agent/skills/game-development/SKILL.md +69 -0
  53. package/.agent/skills/geo-fundamentals/SKILL.md +158 -99
  54. package/.agent/skills/github-operations/SKILL.md +354 -0
  55. package/.agent/skills/i18n-localization/SKILL.md +158 -96
  56. package/.agent/skills/intelligent-routing/SKILL.md +89 -285
  57. package/.agent/skills/intelligent-routing/router-manifest.md +65 -0
  58. package/.agent/skills/lint-and-validate/SKILL.md +229 -27
  59. package/.agent/skills/llm-engineering/SKILL.md +258 -0
  60. package/.agent/skills/local-first/SKILL.md +203 -0
  61. package/.agent/skills/mcp-builder/SKILL.md +159 -111
  62. package/.agent/skills/mobile-design/SKILL.md +102 -282
  63. package/.agent/skills/nextjs-react-expert/SKILL.md +143 -227
  64. package/.agent/skills/nodejs-best-practices/SKILL.md +201 -254
  65. package/.agent/skills/observability/SKILL.md +285 -0
  66. package/.agent/skills/parallel-agents/SKILL.md +124 -118
  67. package/.agent/skills/performance-profiling/SKILL.md +143 -89
  68. package/.agent/skills/plan-writing/SKILL.md +133 -97
  69. package/.agent/skills/platform-engineer/SKILL.md +135 -0
  70. package/.agent/skills/powershell-windows/SKILL.md +167 -104
  71. package/.agent/skills/python-patterns/SKILL.md +149 -361
  72. package/.agent/skills/python-pro/SKILL.md +114 -0
  73. package/.agent/skills/react-specialist/SKILL.md +107 -0
  74. package/.agent/skills/readme-builder/SKILL.md +270 -0
  75. package/.agent/skills/realtime-patterns/SKILL.md +296 -0
  76. package/.agent/skills/red-team-tactics/SKILL.md +136 -134
  77. package/.agent/skills/rust-pro/SKILL.md +237 -173
  78. package/.agent/skills/seo-fundamentals/SKILL.md +134 -82
  79. package/.agent/skills/server-management/SKILL.md +155 -104
  80. package/.agent/skills/sql-pro/SKILL.md +104 -0
  81. package/.agent/skills/systematic-debugging/SKILL.md +156 -79
  82. package/.agent/skills/tailwind-patterns/SKILL.md +163 -205
  83. package/.agent/skills/tdd-workflow/SKILL.md +148 -88
  84. package/.agent/skills/test-result-analyzer/SKILL.md +299 -0
  85. package/.agent/skills/testing-patterns/SKILL.md +141 -114
  86. package/.agent/skills/trend-researcher/SKILL.md +228 -0
  87. package/.agent/skills/ui-ux-pro-max/SKILL.md +107 -0
  88. package/.agent/skills/ui-ux-researcher/SKILL.md +234 -0
  89. package/.agent/skills/vue-expert/SKILL.md +118 -0
  90. package/.agent/skills/vulnerability-scanner/SKILL.md +228 -188
  91. package/.agent/skills/web-design-guidelines/SKILL.md +148 -33
  92. package/.agent/skills/webapp-testing/SKILL.md +171 -122
  93. package/.agent/skills/whimsy-injector/SKILL.md +349 -0
  94. package/.agent/skills/workflow-optimizer/SKILL.md +219 -0
  95. package/.agent/workflows/api-tester.md +279 -0
  96. package/.agent/workflows/audit.md +168 -0
  97. package/.agent/workflows/brainstorm.md +65 -19
  98. package/.agent/workflows/changelog.md +144 -0
  99. package/.agent/workflows/create.md +67 -14
  100. package/.agent/workflows/debug.md +122 -30
  101. package/.agent/workflows/deploy.md +82 -31
  102. package/.agent/workflows/enhance.md +59 -27
  103. package/.agent/workflows/fix.md +143 -0
  104. package/.agent/workflows/generate.md +84 -20
  105. package/.agent/workflows/migrate.md +163 -0
  106. package/.agent/workflows/orchestrate.md +66 -17
  107. package/.agent/workflows/performance-benchmarker.md +305 -0
  108. package/.agent/workflows/plan.md +76 -33
  109. package/.agent/workflows/preview.md +73 -17
  110. package/.agent/workflows/refactor.md +153 -0
  111. package/.agent/workflows/review-ai.md +140 -0
  112. package/.agent/workflows/review.md +83 -16
  113. package/.agent/workflows/session.md +154 -0
  114. package/.agent/workflows/status.md +74 -18
  115. package/.agent/workflows/strengthen-skills.md +99 -0
  116. package/.agent/workflows/swarm.md +194 -0
  117. package/.agent/workflows/test.md +80 -31
  118. package/.agent/workflows/tribunal-backend.md +55 -13
  119. package/.agent/workflows/tribunal-database.md +62 -18
  120. package/.agent/workflows/tribunal-frontend.md +58 -12
  121. package/.agent/workflows/tribunal-full.md +70 -11
  122. package/.agent/workflows/tribunal-mobile.md +123 -0
  123. package/.agent/workflows/tribunal-performance.md +152 -0
  124. package/.agent/workflows/ui-ux-pro-max.md +100 -82
  125. package/README.md +117 -62
  126. package/bin/tribunal-kit.js +542 -288
  127. package/package.json +10 -6
@@ -1,163 +1,210 @@
1
1
  ---
2
2
  name: brainstorming
3
3
  description: Socratic questioning protocol + user communication. MANDATORY for complex requests, new features, or unclear requirements. Includes progress reporting and error handling.
4
- allowed-tools: Read, Glob, Grep
4
+ allowed-tools: Read, Write, Edit, Glob, Grep
5
+ version: 1.0.0
6
+ last-updated: 2026-03-12
7
+ applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
5
8
  ---
6
9
 
7
- # Brainstorming & Communication Protocol
10
+ # Brainstorming & Discovery Protocol
8
11
 
9
- > **MANDATORY:** Use for complex/vague requests, new features, updates.
12
+ > The most expensive part of building software is building the wrong thing.
13
+ > Ask the questions that prevent that.
10
14
 
11
15
  ---
12
16
 
13
- ## 🛑 SOCRATIC GATE (ENFORCEMENT)
17
+ ## When This Skill Is Required
14
18
 
15
- ### When to Trigger
19
+ Activate before generating any implementation plan when:
16
20
 
17
- | Pattern | Action |
18
- |---------|--------|
19
- | "Build/Create/Make [thing]" without details | 🛑 ASK 3 questions |
20
- | Complex feature or architecture | 🛑 Clarify before implementing |
21
- | Update/change request | 🛑 Confirm scope |
22
- | Vague requirements | 🛑 Ask purpose, users, constraints |
21
+ - A new feature or system is being created
22
+ - The request is vague or uses words like "something like" or "maybe"
23
+ - Multiple valid technical approaches exist and the right one depends on context
24
+ - The user hasn't described their users, scale, or constraints
23
25
 
24
- ### 🚫 MANDATORY: 3 Questions Before Implementation
26
+ ---
25
27
 
26
- 1. **STOP** - Do NOT start coding
27
- 2. **ASK** - Minimum 3 questions:
28
- - 🎯 Purpose: What problem are you solving?
29
- - 👥 Users: Who will use this?
30
- - 📦 Scope: Must-have vs nice-to-have?
31
- 3. **WAIT** - Get response before proceeding
28
+ ## The Socratic Method Applied to Software
32
29
 
33
- ---
30
+ The goal is not to interrogate. It is to surface hidden assumptions before they become hard-coded decisions.
34
31
 
35
- ## 🧠 Dynamic Question Generation
32
+ ### Discovery Questions by Layer
36
33
 
37
- **⛔ NEVER use static templates.** Read `dynamic-questioning.md` for principles.
34
+ **Purpose (What problem does this solve?)**
35
+ - What outcome does the user need — not what feature do they want?
36
+ - What happens today without this?
37
+ - What does success look like in 30 days?
38
38
 
39
- ### Core Principles
39
+ **Users (Who is this for?)**
40
+ - Who are the actual end users?
41
+ - What is their technical level?
42
+ - Are there multiple user types with different needs?
40
43
 
41
- | Principle | Meaning |
42
- |-----------|---------|
43
- | **Questions Reveal Consequences** | Each question connects to an architectural decision |
44
- | **Context Before Content** | Understand greenfield/feature/refactor/debug context first |
45
- | **Minimum Viable Questions** | Each question must eliminate implementation paths |
46
- | **Generate Data, Not Assumptions** | Don't guess—ask with trade-offs |
44
+ **Scope (What is and isn't included?)**
45
+ - What is explicitly out of scope for this version?
46
+ - What data already exists vs. what needs to be created?
47
+ - Are there integrations with other systems?
47
48
 
48
- ### Question Generation Process
49
+ **Market & Psychology (Why will they use it?)**
50
+ - Who are the current competitors or alternatives, and how are we different?
51
+ - What is the launch strategy and monetization approach?
52
+ - What emotional state is the user in when they need this product?
49
53
 
50
- ```
51
- 1. Parse request Extract domain, features, scale indicators
52
- 2. Identify decision points Blocking vs. deferable
53
- 3. Generate questions Priority: P0 (blocking) > P1 (high-leverage) > P2 (nice-to-have)
54
- 4. Format with trade-offs → What, Why, Options, Default
55
- ```
54
+ **Superpowers & Creative Constraints (Breaking the mold)**
55
+ - If we had to solve this without writing any code, how would we do it?
56
+ - What is the most unconventional, "fun", or high-leverage way to achieve this outcome?
57
+ - Can we leverage existing external super-APIs (LLMs, edge networks, managed integrations) to bypass traditional development?
56
58
 
57
- ### Question Format (MANDATORY)
59
+ **Constraints (What limits the design?)**
60
+ - Existing tech stack?
61
+ - Performance requirements? (users, requests/sec, data volume)
62
+ - Deadline?
63
+ - Budget for paid services?
58
64
 
59
- ```markdown
60
- ### [PRIORITY] **[DECISION POINT]**
65
+ ---
66
+
67
+ ## Question Protocol
61
68
 
62
- **Question:** [Clear question]
69
+ For complex requests: ask **minimum 3 strategic questions** before proposing anything.
63
70
 
64
- **Why This Matters:**
65
- - [Architectural consequence]
66
- - [Affects: cost/complexity/timeline/scale]
71
+ For simple but vague requests: ask **1 focused question** on the most blocking unknown.
72
+
73
+ **Format:**
74
+ ```
75
+ Before I propose a solution, a few questions:
67
76
 
68
- **Options:**
69
- | Option | Pros | Cons | Best For |
70
- |--------|------|------|----------|
71
- | A | [+] | [-] | [Use case] |
77
+ 1. [Most critical unknown]
78
+ 2. [Second most important]
79
+ 3. [Clarifies scope or constraints]
72
80
 
73
- **If Not Specified:** [Default + rationale]
81
+ [Optional: brief note on why these matter]
74
82
  ```
75
83
 
76
- **For detailed domain-specific question banks and algorithms**, see: `dynamic-questioning.md`
84
+ **Rules:**
85
+ - Ask about one topic per question — not compound questions (`and`/`or` in a question = split it)
86
+ - Numbered list, not a wall of text
87
+ - Never more than 5 questions at once
88
+ - Always inject at least one highly creative, out-of-the-box alternative approach ("Superpower Option") when proposing paths.
89
+ - If answers create new unknowns, ask a follow-up round
77
90
 
78
91
  ---
79
92
 
80
- ## Progress Reporting (PRINCIPLE-BASED)
93
+ ## Anti-Patterns in Discovery
81
94
 
82
- **PRINCIPLE:** Transparency builds trust. Status must be visible and actionable.
95
+ **What to avoid:**
83
96
 
84
- ### Status Board Format
97
+ | Pattern | Why It's Harmful |
98
+ |---|---|
99
+ | Assuming the tech stack | Leads to architecture that fits you, not the project |
100
+ | Solving the stated feature, not the problem | User asks for X but needs Y — you build X |
101
+ | Treating "I want a dashboard" as a spec | Dashboards have hundreds of valid forms |
102
+ | Jumping to implementation to seem helpful | Wastes both parties' time if direction is wrong |
103
+ | Asking leading questions | "Should we use Next.js?" vs "What matters most for deployment?" |
85
104
 
86
- | Agent | Status | Current Task | Progress |
87
- |-------|--------|--------------|----------|
88
- | [Agent Name] | ✅🔄⏳❌⚠️ | [Task description] | [% or count] |
105
+ ---
106
+
107
+ ## Reporting During Complex Work
89
108
 
90
- ### Status Icons
109
+ When working on multi-step tasks, report progress proactively.
91
110
 
92
- | Icon | Meaning | Usage |
93
- |------|---------|-------|
94
- | | Completed | Task finished successfully |
95
- | 🔄 | Running | Currently executing |
96
- | | Waiting | Blocked, waiting for dependency |
97
- | ❌ | Error | Failed, needs attention |
98
- | ⚠️ | Warning | Potential issue, not blocking |
111
+ **Status update format:**
112
+ ```
113
+ [Completed step]
114
+ 🔄 [Current step what you're doing right now]
115
+ [Next step]
116
+ ```
117
+
118
+ Report at natural breakpoints — not after every file edit.
99
119
 
100
120
  ---
101
121
 
102
- ## Error Handling (PRINCIPLE-BASED)
122
+ ## Error Handling During Implementation
103
123
 
104
- **PRINCIPLE:** Errors are opportunities for clear communication.
124
+ When something fails or an assumption is proven wrong mid-task:
105
125
 
106
- ### Error Response Pattern
126
+ 1. Stop immediately — don't continue building on a broken assumption
127
+ 2. State what was expected vs. what was found
128
+ 3. Propose 2–3 corrected approaches with trade-offs
129
+ 4. Ask which direction to proceed
107
130
 
108
131
  ```
109
- 1. Acknowledge the error
110
- 2. Explain what happened (user-friendly)
111
- 3. Offer specific solutions with trade-offs
112
- 4. Ask user to choose or provide alternative
113
- ```
132
+ Found an issue:
133
+ Expected: users table has an `email` column
134
+ Found: email is in a separate `user_contacts` table
114
135
 
115
- ### Error Categories
136
+ Options:
137
+ A) Join through user_contacts (correct but slower queries)
138
+ B) Denormalize email onto users table (faster, requires migration)
139
+ C) Ask what the schema decision was intended to be
116
140
 
117
- | Category | Response Strategy |
118
- |----------|-------------------|
119
- | **Port Conflict** | Offer alternative port or close existing |
120
- | **Dependency Missing** | Auto-install or ask permission |
121
- | **Build Failure** | Show specific error + suggested fix |
122
- | **Unclear Error** | Ask for specifics: screenshot, console output |
141
+ Which should I proceed with?
142
+ ```
123
143
 
124
144
  ---
125
145
 
126
- ## Completion Message (PRINCIPLE-BASED)
146
+ ## File Index
127
147
 
128
- **PRINCIPLE:** Celebrate success, guide next steps.
148
+ | File | Covers | Load When |
149
+ |---|---|---|
150
+ | `dynamic-questioning.md` | Advanced question frameworks by domain | Discovery for complex systems |
129
151
 
130
- ### Completion Structure
152
+ ---
153
+
154
+ ## Output Format
155
+
156
+ When this skill produces a recommendation or design decision, structure your output as:
131
157
 
132
158
  ```
133
- 1. Success confirmation (celebrate briefly)
134
- 2. Summary of what was done (concrete)
135
- 3. How to verify/test (actionable)
136
- 4. Next steps suggestion (proactive)
159
+ ━━━ Brainstorming Recommendation ━━━━━━━━━━━━━━━━
160
+ Decision: [what was chosen / proposed]
161
+ Rationale: [why one concise line]
162
+ Trade-offs: [what is consciously accepted]
163
+ Next action: [concrete next step for the user]
164
+ ─────────────────────────────────────────────────
165
+ Pre-Flight: ✅ All checks passed
166
+ or ❌ [blocking item that must be resolved first]
137
167
  ```
138
168
 
169
+
170
+
139
171
  ---
140
172
 
141
- ## Communication Principles
173
+ ## 🤖 LLM-Specific Traps
174
+
175
+ AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
142
176
 
143
- | Principle | Implementation |
144
- |-----------|----------------|
145
- | **Concise** | No unnecessary details, get to point |
146
- | **Visual** | Use emojis (✅🔄⏳❌) for quick scanning |
147
- | **Specific** | "~2 minutes" not "wait a bit" |
148
- | **Alternatives** | Offer multiple paths when stuck |
149
- | **Proactive** | Suggest next step after completion |
177
+ 1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
178
+ 2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
179
+ 3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
180
+ 4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
181
+ 5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
150
182
 
151
183
  ---
152
184
 
153
- ## Anti-Patterns (AVOID)
185
+ ## 🏛️ Tribunal Integration (Anti-Hallucination)
154
186
 
155
- | Anti-Pattern | Why |
156
- |--------------|-----|
157
- | Jumping to solutions before understanding | Wastes time on wrong problem |
158
- | Assuming requirements without asking | Creates wrong output |
159
- | Over-engineering first version | Delays value delivery |
160
- | Ignoring constraints | Creates unusable solutions |
161
- | "I think" phrases | Uncertainty → Ask instead |
187
+ **Slash command: `/review` or `/tribunal-full`**
188
+ **Active reviewers: `logic-reviewer` · `security-auditor`**
162
189
 
163
- ---
190
+ ### ❌ Forbidden AI Tropes
191
+
192
+ 1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
193
+ 2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
194
+ 3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
195
+
196
+ ### ✅ Pre-Flight Self-Audit
197
+
198
+ Review these questions before confirming output:
199
+ ```
200
+ ✅ Did I rely ONLY on real, verified tools and methods?
201
+ ✅ Is this solution appropriately scoped to the user's constraints?
202
+ ✅ Did I handle potential failure modes and edge cases?
203
+ ✅ Have I avoided generic boilerplate that doesn't add value?
204
+ ```
205
+
206
+ ### 🛑 Verification-Before-Completion (VBC) Protocol
207
+
208
+ **CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
209
+ - ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
210
+ - ✅ **Required:** You are explicitly forbidden from finalizing any task without providing **concrete evidence** (terminal output, passing tests, compile success, or equivalent proof) that your output works as intended.
@@ -88,6 +88,7 @@ INPUT: User request + Context (greenfield/feature/refactor/debug)
88
88
  ├── What: Clear question
89
89
  ├── Why: Impact on implementation
90
90
  ├── Options: Trade-offs (not just A vs B)
91
+ ├── Fun/Superpower Option: Inject at least one highly creative, unconventional approach
91
92
  └── Default: What happens if user doesn't answer
92
93
  ```
93
94
 
@@ -131,6 +132,15 @@ INPUT: User request + Context (greenfield/feature/refactor/debug)
131
132
  | **Media Handling?** | Upload endpoints, storage, optimization | +Features, -Development time |
132
133
  | **Multi-language?** | i18n tables, translation UI, fallback logic | +Reach, -Complexity |
133
134
 
135
+ ### Business & Product Strategy
136
+
137
+ | Question | Why It Matters | Trade-offs |
138
+ |----------|----------------|------------|
139
+ | **Monetization Approach?** | Freemium vs. Paywall vs. Ads affects user flow | +Revenue, -User Acquisition |
140
+ | **Onboarding CRO?** | Wizard vs. self-serve dictates state management | +Activation, -Dev Time |
141
+ | **Competitor Differentiator?** | Must highlight this UI feature above all else | +Standout, -Standardization |
142
+ | **Marketing Psychology?** | FOMO (urgency) vs. Trust (social proof) layout | +Conversion, -Aesthetics |
143
+
134
144
  ---
135
145
 
136
146
  ## 📐 Dynamic Question Template