tribunal-kit 8.0.0 โ 9.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.
- package/.agent/ARCHITECTURE.md +2 -2
- package/.agent/config/plugin.json +4 -4
- package/.agent/config/system-prompt.md +54 -1
- package/.agent/routing_index.json +2 -2
- package/.agent/skills/12-principles-of-animation/SKILL.md +19 -16
- package/.agent/skills/60fps-animation/SKILL.md +47 -21
- package/.agent/skills/accessible-animation/SKILL.md +19 -16
- package/.agent/skills/adapt/SKILL.md +19 -16
- package/.agent/skills/advanced-rag-pipelines/SKILL.md +41 -40
- package/.agent/skills/agent-organizer/SKILL.md +9 -59
- package/.agent/skills/agentic-patterns/SKILL.md +9 -57
- package/.agent/skills/agentic-workflows-2026/SKILL.md +45 -8
- package/.agent/skills/ai-app-hardening/SKILL.md +31 -5
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +28 -66
- package/.agent/skills/animation-on-scroll/SKILL.md +19 -16
- package/.agent/skills/animation-systems/SKILL.md +19 -15
- package/.agent/skills/antfu-conventions/SKILL.md +19 -18
- package/.agent/skills/api-patterns/SKILL.md +8 -58
- package/.agent/skills/api-security-auditor/SKILL.md +8 -58
- package/.agent/skills/app-builder/SKILL.md +9 -59
- package/.agent/skills/appflow-wireframe/SKILL.md +13 -57
- package/.agent/skills/apple-design/SKILL.md +22 -14
- package/.agent/skills/architecture/SKILL.md +9 -59
- package/.agent/skills/audit-and-fix/SKILL.md +19 -16
- package/.agent/skills/authentication-best-practices/SKILL.md +8 -58
- package/.agent/skills/backend-security-expert/SKILL.md +32 -65
- package/.agent/skills/baseline-ui/SKILL.md +22 -14
- package/.agent/skills/bash-linux/SKILL.md +9 -59
- package/.agent/skills/behavioral-modes/SKILL.md +9 -57
- package/.agent/skills/better-colors/SKILL.md +22 -14
- package/.agent/skills/better-typography/SKILL.md +26 -14
- package/.agent/skills/better-ui/SKILL.md +54 -19
- package/.agent/skills/bolder/SKILL.md +19 -16
- package/.agent/skills/brainstorming/SKILL.md +9 -57
- package/.agent/skills/browser-native-ai/SKILL.md +9 -28
- package/.agent/skills/build-primitive/SKILL.md +19 -16
- package/.agent/skills/building-native-ui/SKILL.md +9 -59
- package/.agent/skills/cicd-pro/SKILL.md +21 -28
- package/.agent/skills/clarify/SKILL.md +19 -16
- package/.agent/skills/clean-code/SKILL.md +18 -61
- package/.agent/skills/cloud-architect/SKILL.md +21 -28
- package/.agent/skills/cobejs/SKILL.md +19 -15
- package/.agent/skills/code-review-checklist/SKILL.md +8 -58
- package/.agent/skills/codebase-design/SKILL.md +33 -22
- package/.agent/skills/colorize/SKILL.md +19 -16
- package/.agent/skills/compact-landing/SKILL.md +19 -16
- package/.agent/skills/company-logos/SKILL.md +19 -16
- package/.agent/skills/config-validator/SKILL.md +9 -59
- package/.agent/skills/containerization-pro/SKILL.md +21 -28
- package/.agent/skills/context-engineering-pro/SKILL.md +31 -5
- package/.agent/skills/create-design-md/SKILL.md +22 -14
- package/.agent/skills/critique/SKILL.md +20 -11
- package/.agent/skills/csharp-developer/SKILL.md +8 -58
- package/.agent/skills/data-validation-schemas/SKILL.md +9 -59
- package/.agent/skills/database-design/SKILL.md +27 -67
- package/.agent/skills/delight/SKILL.md +19 -16
- package/.agent/skills/deployment-procedures/SKILL.md +9 -59
- package/.agent/skills/design-lab/SKILL.md +19 -16
- package/.agent/skills/devops-engineer/SKILL.md +8 -58
- package/.agent/skills/devops-incident-responder/SKILL.md +9 -59
- package/.agent/skills/diagnosing-bugs/SKILL.md +20 -21
- package/.agent/skills/distill/SKILL.md +19 -16
- package/.agent/skills/documentation-templates/SKILL.md +9 -59
- package/.agent/skills/domain-modeling/SKILL.md +19 -18
- package/.agent/skills/duckdb-analytical-sql/SKILL.md +31 -5
- package/.agent/skills/edge-ai-mobile/SKILL.md +31 -5
- package/.agent/skills/edge-computing/SKILL.md +9 -59
- package/.agent/skills/emil-design-eng/SKILL.md +21 -24
- package/.agent/skills/error-resilience/SKILL.md +31 -66
- package/.agent/skills/expo-router-v4/SKILL.md +31 -5
- package/.agent/skills/extract-design-system/SKILL.md +9 -59
- package/.agent/skills/fabel-protocol/SKILL.md +26 -8
- package/.agent/skills/fixing-accessibility/SKILL.md +22 -14
- package/.agent/skills/fixing-metadata/SKILL.md +19 -16
- package/.agent/skills/fixing-motion-performance/SKILL.md +22 -14
- package/.agent/skills/framer-motion-expert/SKILL.md +9 -57
- package/.agent/skills/frontend-design/SKILL.md +27 -7
- package/.agent/skills/frontend-security-expert/SKILL.md +8 -58
- package/.agent/skills/game-design-expert/SKILL.md +9 -59
- package/.agent/skills/game-engineering-expert/SKILL.md +9 -59
- package/.agent/skills/generative-ui-expert/SKILL.md +9 -28
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -59
- package/.agent/skills/git-pro/SKILL.md +19 -30
- package/.agent/skills/github-operations/SKILL.md +8 -58
- package/.agent/skills/gpt-taste/SKILL.md +19 -16
- package/.agent/skills/gsap-core/SKILL.md +8 -78
- package/.agent/skills/gsap-frameworks/SKILL.md +8 -78
- package/.agent/skills/gsap-performance/SKILL.md +9 -77
- package/.agent/skills/gsap-plugins/SKILL.md +9 -77
- package/.agent/skills/gsap-react/SKILL.md +9 -21
- package/.agent/skills/gsap-scrolltrigger/SKILL.md +8 -78
- package/.agent/skills/gsap-timeline/SKILL.md +9 -77
- package/.agent/skills/gsap-utils/SKILL.md +9 -77
- package/.agent/skills/harden/SKILL.md +19 -16
- package/.agent/skills/harness-protocol/SKILL.md +9 -21
- package/.agent/skills/i18n-localization/SKILL.md +9 -59
- package/.agent/skills/impeccable/SKILL.md +19 -18
- package/.agent/skills/improve-codebase-architecture/SKILL.md +19 -17
- package/.agent/skills/improve-ui/SKILL.md +22 -14
- package/.agent/skills/intelligent-routing/SKILL.md +9 -23
- package/.agent/skills/knowledge-graph/SKILL.md +9 -21
- package/.agent/skills/landing-page/SKILL.md +19 -16
- package/.agent/skills/lint-and-validate/SKILL.md +9 -59
- package/.agent/skills/llm-engineering/SKILL.md +8 -58
- package/.agent/skills/local-first/SKILL.md +9 -59
- package/.agent/skills/local-first-architecture/SKILL.md +37 -20
- package/.agent/skills/lottie-animation/SKILL.md +19 -15
- package/.agent/skills/marquee-loop/SKILL.md +19 -16
- package/.agent/skills/masked-reveal/SKILL.md +19 -15
- package/.agent/skills/mcp-builder/SKILL.md +9 -59
- package/.agent/skills/micro-interaction/SKILL.md +19 -16
- package/.agent/skills/mobile-design/SKILL.md +8 -58
- package/.agent/skills/monorepo-management/SKILL.md +9 -59
- package/.agent/skills/morphing-icons/SKILL.md +19 -15
- package/.agent/skills/motion-engineering/SKILL.md +22 -15
- package/.agent/skills/nextjs-react-expert/SKILL.md +35 -67
- package/.agent/skills/nodejs-best-practices/SKILL.md +34 -61
- package/.agent/skills/observability/SKILL.md +8 -58
- package/.agent/skills/opentelemetry-observability/SKILL.md +31 -5
- package/.agent/skills/page-transition-animation/SKILL.md +19 -16
- package/.agent/skills/parallel-agents/SKILL.md +9 -59
- package/.agent/skills/performance-profiling/SKILL.md +8 -58
- package/.agent/skills/plan-writing/SKILL.md +36 -69
- package/.agent/skills/platform-engineer/SKILL.md +9 -59
- package/.agent/skills/platform-engineering-opentofu/SKILL.md +31 -5
- package/.agent/skills/playwright-ai-e2e/SKILL.md +31 -5
- package/.agent/skills/playwright-best-practices/SKILL.md +9 -59
- package/.agent/skills/polish/SKILL.md +19 -16
- package/.agent/skills/powershell-windows/SKILL.md +8 -58
- package/.agent/skills/pricing-page/SKILL.md +19 -16
- package/.agent/skills/product-aware-heuristics/SKILL.md +27 -8
- package/.agent/skills/progressive-blur/SKILL.md +19 -16
- package/.agent/skills/project-idioms/SKILL.md +9 -59
- package/.agent/skills/property-based-testing/SKILL.md +31 -5
- package/.agent/skills/python-patterns/SKILL.md +9 -59
- package/.agent/skills/python-pro/SKILL.md +35 -67
- package/.agent/skills/quieter/SKILL.md +19 -16
- package/.agent/skills/react-doctor/SKILL.md +19 -16
- package/.agent/skills/react-specialist/SKILL.md +26 -65
- package/.agent/skills/readme-builder/SKILL.md +9 -59
- package/.agent/skills/realtime-patterns/SKILL.md +8 -58
- package/.agent/skills/red-team-tactics/SKILL.md +9 -59
- package/.agent/skills/redesign-skill/SKILL.md +19 -16
- package/.agent/skills/review-animations/SKILL.md +21 -25
- package/.agent/skills/rust-pro/SKILL.md +30 -61
- package/.agent/skills/seo-fundamentals/SKILL.md +9 -59
- package/.agent/skills/server-management/SKILL.md +9 -59
- package/.agent/skills/shadcn-ui-expert/SKILL.md +9 -59
- package/.agent/skills/shape/SKILL.md +19 -16
- package/.agent/skills/skill-creator/SKILL.md +36 -86
- package/.agent/skills/soft-skill/SKILL.md +19 -16
- package/.agent/skills/sounds-on-the-web/SKILL.md +19 -16
- package/.agent/skills/sql-pro/SKILL.md +47 -62
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +9 -59
- package/.agent/skills/svg-animation/SKILL.md +19 -15
- package/.agent/skills/swiftui-expert/SKILL.md +9 -59
- package/.agent/skills/swiss-design/SKILL.md +19 -16
- package/.agent/skills/system-design-pro/SKILL.md +21 -26
- package/.agent/skills/systematic-debugging/SKILL.md +19 -60
- package/.agent/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/.agent/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/.agent/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/.agent/skills/tailwind-patterns/SKILL.md +8 -58
- package/.agent/skills/taste-skill/SKILL.md +19 -16
- package/.agent/skills/tdd-workflow/SKILL.md +65 -25
- package/.agent/skills/test-result-analyzer/SKILL.md +9 -59
- package/.agent/skills/testing-patterns/SKILL.md +8 -58
- package/.agent/skills/thermo-nuclear-code-quality-review/SKILL.md +19 -18
- package/.agent/skills/thinking-protocol/SKILL.md +33 -2
- package/.agent/skills/to-spring-or-not-to-spring/SKILL.md +19 -15
- package/.agent/skills/transitions-dev/SKILL.md +19 -15
- package/.agent/skills/trend-researcher/SKILL.md +9 -59
- package/.agent/skills/typescript-advanced/SKILL.md +21 -64
- package/.agent/skills/typeset/SKILL.md +19 -16
- package/.agent/skills/ui-reasoning-engine/SKILL.md +27 -8
- package/.agent/skills/ui-skill-packs/SKILL.md +26 -16
- package/.agent/skills/ui-skills-root/SKILL.md +22 -14
- package/.agent/skills/ui-ux-pro-max/SKILL.md +38 -12
- package/.agent/skills/ui-ux-researcher/SKILL.md +9 -59
- package/.agent/skills/vector-search-pgvector/SKILL.md +31 -5
- package/.agent/skills/verification-before-completion/SKILL.md +125 -0
- package/.agent/skills/vue-expert/SKILL.md +9 -57
- package/.agent/skills/vulnerability-scanner/SKILL.md +8 -58
- package/.agent/skills/web-accessibility-auditor/SKILL.md +9 -59
- package/.agent/skills/web-design-guidelines/SKILL.md +27 -7
- package/.agent/skills/web-quality-audit/SKILL.md +19 -16
- package/.agent/skills/webapp-testing/SKILL.md +9 -59
- package/.agent/skills/webgpu-performance/SKILL.md +9 -28
- package/.agent/skills/whimsy-injector/SKILL.md +9 -57
- package/.agent/skills/workflow-optimizer/SKILL.md +9 -57
- package/.agent/skills/zero-trust-passkeys/SKILL.md +31 -5
- package/.agent/templates/DESIGN.md +680 -160
- package/.agent/templates/sdd/implementer-prompt.md +53 -0
- package/.agent/templates/sdd/re-review-prompt.md +28 -0
- package/.agent/templates/sdd/task-reviewer-prompt.md +59 -0
- package/.agent/workflows/acf.md +4 -0
- package/.agent/workflows/api-tester.md +5 -0
- package/.agent/workflows/audit.md +5 -0
- package/.agent/workflows/brainstorm.md +17 -1
- package/.agent/workflows/changelog.md +5 -0
- package/.agent/workflows/contract.md +19 -0
- package/.agent/workflows/create.md +6 -1
- package/.agent/workflows/debug.md +5 -0
- package/.agent/workflows/deploy.md +6 -1
- package/.agent/workflows/enhance.md +6 -1
- package/.agent/workflows/fix-ci.md +5 -0
- package/.agent/workflows/fix.md +5 -0
- package/.agent/workflows/generate.md +5 -0
- package/.agent/workflows/marathon.md +6 -1
- package/.agent/workflows/migrate.md +5 -0
- package/.agent/workflows/minimal.md +4 -0
- package/.agent/workflows/orchestrate.md +6 -1
- package/.agent/workflows/performance-benchmarker.md +6 -1
- package/.agent/workflows/pipeline.md +5 -0
- package/.agent/workflows/plan.md +6 -1
- package/.agent/workflows/preview.md +6 -1
- package/.agent/workflows/refactor.md +6 -0
- package/.agent/workflows/review-ai.md +5 -0
- package/.agent/workflows/review.md +5 -0
- package/.agent/workflows/sdd.md +122 -0
- package/.agent/workflows/session.md +5 -0
- package/.agent/workflows/status.md +4 -0
- package/.agent/workflows/super-prompt.md +4 -0
- package/.agent/workflows/swarm.md +6 -1
- package/.agent/workflows/test.md +6 -1
- package/.agent/workflows/tribunal-backend.md +5 -0
- package/.agent/workflows/tribunal-cicd.md +5 -0
- package/.agent/workflows/tribunal-database.md +5 -0
- package/.agent/workflows/tribunal-full.md +8 -0
- package/.agent/workflows/tribunal-mobile.md +5 -0
- package/.agent/workflows/tribunal-performance.md +5 -0
- package/.agent/workflows/tribunal-speed.md +5 -0
- package/.agent/workflows/tribunal-ui.md +7 -0
- package/.agents/plugins/marketplace.json +20 -0
- package/.claude-plugin/marketplace.json +17 -0
- package/.claude-plugin/plugin.json +26 -0
- package/.codex-plugin/plugin.json +45 -0
- package/.cursor-plugin/plugin.json +26 -0
- package/.devin-plugin/plugin.json +14 -0
- package/.hermes-plugin/__init__.py +102 -0
- package/.hermes-plugin/plugin.yaml +6 -0
- package/.kimi-plugin/plugin.json +38 -0
- package/.opencode/INSTALL.md +41 -0
- package/.opencode/plugins/tribunal.js +101 -0
- package/.pi/extensions/tribunal.ts +133 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +246 -221
- package/bin/wrapper.js +1 -0
- package/dist/cli.js +355 -355
- package/dist/esm/index.mjs +142 -142
- package/dist/index.d.ts +349 -343
- package/gemini-extension.json +6 -0
- package/hooks/hooks-cursor.json +16 -0
- package/hooks/hooks.json +16 -0
- package/hooks/session-start.js +77 -0
- package/package.json +165 -146
- package/scripts/audit_skill_sdo.js +87 -0
- package/scripts/modernize_skills.js +254 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: property-based-testing
|
|
3
3
|
description: Generative input invariant testing using fast-check (TS/JS) and hypothesis (Python) to uncover hidden edge cases and boundary failures.
|
|
4
4
|
tools: Read, Grep, Glob, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
script: .agent/scripts/test_runner.js
|
|
8
8
|
scripts-binding:
|
|
9
9
|
- .agent/scripts/test_runner.js
|
|
@@ -24,6 +24,12 @@ Before writing property tests:
|
|
|
24
24
|
2. Arbitrary Generator Scoping โ Constrain generator bounds to domain validity (e.g. non-empty strings, positive integers)
|
|
25
25
|
3. Shrinking & Reproducibility โ Store seed values for failing test runs to reproduce minimal failing inputs
|
|
26
26
|
|
|
27
|
+
|
|
28
|
+
## Activation Boundaries
|
|
29
|
+
|
|
30
|
+
- **Activate when:** Operating in tasks requiring Generative input invariant testing using fast-check (TS/JS) and hypothesis (Python) to uncover hidden edge cases and boundary failures..
|
|
31
|
+
- **DO NOT activate when:** The task falls strictly outside property-based-testing domain or belongs to a different dedicated specialist.
|
|
32
|
+
|
|
27
33
|
## Fast-Check Arbitrary Generator & Vitest Invariant Test
|
|
28
34
|
|
|
29
35
|
```typescript
|
|
@@ -52,7 +58,27 @@ test('currency parser invariant: non-negative parsed numbers', () => {
|
|
|
52
58
|
});
|
|
53
59
|
```
|
|
54
60
|
|
|
55
|
-
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
64
|
+
|
|
65
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
66
|
+
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
67
|
+
|
|
68
|
+
### โ Forbidden AI Tropes
|
|
69
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
70
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
71
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
72
|
+
|
|
73
|
+
### โ
Pre-Flight Self-Audit
|
|
74
|
+
```
|
|
75
|
+
โ
Did I rely ONLY on real, verified tools and methods?
|
|
76
|
+
โ
Is this solution appropriately scoped to the user's constraints?
|
|
77
|
+
โ
Did I handle potential failure modes and edge cases?
|
|
78
|
+
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
79
|
+
```
|
|
56
80
|
|
|
57
|
-
|
|
58
|
-
|
|
81
|
+
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
82
|
+
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
83
|
+
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
84
|
+
- โ
**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.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: python-patterns
|
|
3
3
|
description: Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- python-pro
|
|
9
9
|
- clean-code
|
|
@@ -25,6 +25,12 @@ Before architecting Python projects or selecting frameworks, you MUST inspect:
|
|
|
25
25
|
2. Specific Exception Handling (Section 16) โ Catch explicit exceptions (`ValueError`, `AppError`); ban bare `except:` or generic `except Exception:` swallowing
|
|
26
26
|
3. Pathlib Modern API (Section 17) โ Use `pathlib.Path` for cross-platform filesystem operations; ban legacy `os.path`
|
|
27
27
|
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Operating in tasks requiring Python development principles and decision-making. Framework selection, async patterns, type hints, project structure. Teaches thinking, not copying..
|
|
32
|
+
- **DO NOT activate when:** The task falls strictly outside python-patterns domain or belongs to a different dedicated specialist.
|
|
33
|
+
|
|
28
34
|
## Hallucination Traps (Read First)
|
|
29
35
|
|
|
30
36
|
- โ Using `dict` for structured data when a dataclass/Pydantic model exists -> โ
Dicts have no type safety; use typed models
|
|
@@ -33,8 +39,6 @@ Before architecting Python projects or selecting frameworks, you MUST inspect:
|
|
|
33
39
|
|
|
34
40
|
---
|
|
35
41
|
|
|
36
|
-
# Python Development Principles
|
|
37
|
-
|
|
38
42
|
---
|
|
39
43
|
|
|
40
44
|
## Framework Selection
|
|
@@ -239,69 +243,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
239
243
|
|
|
240
244
|
---
|
|
241
245
|
|
|
242
|
-
|
|
243
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
244
|
-
|
|
245
|
-
### โ Forbidden AI Tropes
|
|
246
|
-
|
|
247
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
248
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
249
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
250
|
-
|
|
251
|
-
Review these questions before confirming output:
|
|
252
|
-
|
|
253
|
-
```
|
|
254
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
255
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
256
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
257
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
261
|
-
|
|
262
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
263
|
-
|
|
264
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
265
|
-
- โ
**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.
|
|
266
|
-
|
|
267
|
-
## Pre-Flight Checklist
|
|
268
|
-
|
|
269
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
270
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
271
|
-
|
|
272
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
273
|
-
|
|
274
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
|
-
## ๐ค LLM-Specific Traps
|
|
279
|
-
|
|
280
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
281
|
-
|
|
282
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
283
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
284
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
285
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
286
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
287
|
-
|
|
288
|
-
---
|
|
289
|
-
|
|
290
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
246
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
291
247
|
|
|
292
248
|
**Slash command: `/review` or `/tribunal-full`**
|
|
293
249
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
294
250
|
|
|
295
251
|
### โ Forbidden AI Tropes
|
|
296
|
-
|
|
297
252
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
298
253
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
299
254
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
300
255
|
|
|
301
256
|
### โ
Pre-Flight Self-Audit
|
|
302
|
-
|
|
303
|
-
Review these questions before confirming output:
|
|
304
|
-
|
|
305
257
|
```
|
|
306
258
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
307
259
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -310,8 +262,6 @@ Review these questions before confirming output:
|
|
|
310
262
|
```
|
|
311
263
|
|
|
312
264
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
313
|
-
|
|
314
265
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
315
|
-
|
|
316
266
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
317
267
|
- โ
**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.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: python-pro
|
|
3
3
|
description: Python 3.12+ specialist. FastAPI, Pydantic v2, asyncio, modern types, pytest. Use when building Python APIs, data pipelines, automation, or any Python code.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- python-patterns
|
|
9
9
|
- data-validation-schemas
|
|
@@ -21,22 +21,44 @@ scripts-binding:
|
|
|
21
21
|
|
|
22
22
|
Before writing Python code or FastAPI endpoints, you MUST inspect:
|
|
23
23
|
|
|
24
|
-
1.
|
|
25
|
-
2.
|
|
26
|
-
3.
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
1. PEP 695 Syntax (Python 3.12+) โ Use `type Alias = ...` and generic functions `def func[T](...)`; ban legacy `TypeVar` and `typing.Union`
|
|
25
|
+
2. Structured Concurrency (`asyncio.TaskGroup`) โ Use `async with asyncio.TaskGroup() as tg:` for parallel task execution; avoid raw `asyncio.gather()` error leaks
|
|
26
|
+
3. Pydantic v2 Validation โ Use `model_dump()`, `model_dump_json()`, `model_validate()`, and `@field_validator`; ban v1 `.dict()` and `@validator`
|
|
27
|
+
4. Non-Blocking Async Clients โ Use `httpx.AsyncClient()` in async code; ban blocking `requests` library inside asyncio event loops
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Building Python 3.12+ APIs (FastAPI, Litestar, Django), asyncio pipelines, Pydantic v2 schemas, data processing, and pytest suites.
|
|
32
|
+
- **DO NOT activate when:** Writing frontend TypeScript/JavaScript, or low-level C++/Rust code.
|
|
33
|
+
|
|
34
|
+
## 2026 Python 3.12+ Performance & Logic Invariants
|
|
35
|
+
|
|
36
|
+
1. **Structured Concurrency with `TaskGroup`**:
|
|
37
|
+
```python
|
|
38
|
+
async with asyncio.TaskGroup() as tg:
|
|
39
|
+
task1 = tg.create_task(fetch_user(user_id))
|
|
40
|
+
task2 = tg.create_task(fetch_orders(user_id))
|
|
41
|
+
# If either fails, the other is cancelled immediately; exceptions grouped in ExceptionGroup
|
|
42
|
+
```
|
|
43
|
+
2. **PEP 695 Native Type Aliases & Generics**:
|
|
44
|
+
```python
|
|
45
|
+
type Coordinates = tuple[float, float]
|
|
46
|
+
def get_first[T](items: list[T]) -> T | None:
|
|
47
|
+
return items[0] if items else None
|
|
48
|
+
```
|
|
49
|
+
3. **Pydantic v2 Zero-Copy Deserialization**: Use `TypeAdapter(list[Model]).validate_python(data)` for batch parsing.
|
|
50
|
+
4. **Connection Pooling & Lifespan**: Always manage client lifecycles using `lifespan` context managers rather than re-instantiating HTTP/DB clients per request.
|
|
29
51
|
|
|
30
52
|
## Hallucination Traps (Read First)
|
|
31
53
|
|
|
32
|
-
- โ `from typing import List, Dict, Optional, Union` โ โ
`list[str]`, `dict[k,v]`, `X | None`, `
|
|
54
|
+
- โ `from typing import List, Dict, Optional, Union, TypeVar` โ โ
Native `list[str]`, `dict[k,v]`, `X | None`, `type Alias = ...`
|
|
33
55
|
- โ `user.dict()` / `user.json()` / `UserCreate.parse_obj()` โ โ
Pydantic v2: `model_dump()`, `model_dump_json()`, `model_validate()`
|
|
34
56
|
- โ Pydantic `class Config: orm_mode = True` โ โ
`model_config = {"from_attributes": True}`
|
|
35
57
|
- โ `@validator` / `@root_validator` โ โ
`@field_validator` / `@model_validator`
|
|
36
|
-
- โ `@app.on_event("startup")` โ โ
`lifespan` context manager
|
|
37
|
-
- โ `import requests` in async code โ โ
`httpx.AsyncClient()`
|
|
38
|
-
- โ `asyncio.
|
|
39
|
-
- โ `except Exception as e: pass` โ โ
|
|
58
|
+
- โ `@app.on_event("startup")` โ โ
FastAPI `lifespan` context manager
|
|
59
|
+
- โ `import requests` in async code โ โ
`httpx.AsyncClient()`
|
|
60
|
+
- โ `asyncio.gather()` leaving orphaned tasks on error โ โ
`asyncio.TaskGroup()`
|
|
61
|
+
- โ `except Exception as e: pass` โ โ
Always log or re-raise
|
|
40
62
|
|
|
41
63
|
---
|
|
42
64
|
|
|
@@ -304,69 +326,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
304
326
|
|
|
305
327
|
---
|
|
306
328
|
|
|
307
|
-
|
|
308
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
309
|
-
|
|
310
|
-
### โ Forbidden AI Tropes
|
|
311
|
-
|
|
312
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
313
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
314
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
315
|
-
|
|
316
|
-
Review these questions before confirming output:
|
|
317
|
-
|
|
318
|
-
```
|
|
319
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
320
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
321
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
322
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
326
|
-
|
|
327
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
328
|
-
|
|
329
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
330
|
-
- โ
**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.
|
|
331
|
-
|
|
332
|
-
## Pre-Flight Checklist
|
|
333
|
-
|
|
334
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
335
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
336
|
-
|
|
337
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
338
|
-
|
|
339
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## ๐ค LLM-Specific Traps
|
|
344
|
-
|
|
345
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
346
|
-
|
|
347
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
348
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
349
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
350
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
351
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
352
|
-
|
|
353
|
-
---
|
|
354
|
-
|
|
355
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
329
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
356
330
|
|
|
357
331
|
**Slash command: `/review` or `/tribunal-full`**
|
|
358
332
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
359
333
|
|
|
360
334
|
### โ Forbidden AI Tropes
|
|
361
|
-
|
|
362
335
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
363
336
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
364
337
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
365
338
|
|
|
366
339
|
### โ
Pre-Flight Self-Audit
|
|
367
|
-
|
|
368
|
-
Review these questions before confirming output:
|
|
369
|
-
|
|
370
340
|
```
|
|
371
341
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
372
342
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -375,8 +345,6 @@ Review these questions before confirming output:
|
|
|
375
345
|
```
|
|
376
346
|
|
|
377
347
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
378
|
-
|
|
379
348
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
380
|
-
|
|
381
349
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
382
350
|
- โ
**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.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: quieter
|
|
3
3
|
description: Tone down overly loud, noisy, visually aggressive, or distracting designs while maintaining high visual quality. Use when a UI feels cluttered, overwhelming, tacky, or visually hyperactive.
|
|
4
|
-
version:
|
|
5
|
-
last-updated: 2026-07
|
|
4
|
+
version: 4.0.0
|
|
5
|
+
last-updated: 2026-09-07
|
|
6
6
|
skills:
|
|
7
7
|
- distill
|
|
8
8
|
- swiss-design
|
|
@@ -27,6 +27,12 @@ Before subduing visual design elements, you MUST inspect:
|
|
|
27
27
|
|
|
28
28
|
Reduce visual noise, eliminate unnecessary color competition, and restore calm focus to chaotic interfaces.
|
|
29
29
|
|
|
30
|
+
|
|
31
|
+
## Activation Boundaries
|
|
32
|
+
|
|
33
|
+
- **Activate when:** Operating in tasks requiring Tone down overly loud, noisy, visually aggressive, or distracting designs while maintaining high visual quality. Use when a UI feels cluttered, overwhelming, tacky, or visually hyperactive..
|
|
34
|
+
- **DO NOT activate when:** The task falls strictly outside quieter domain or belongs to a different dedicated specialist.
|
|
35
|
+
|
|
30
36
|
---
|
|
31
37
|
|
|
32
38
|
## 5 Restraint Tactics
|
|
@@ -56,28 +62,25 @@ Reduce visual noise, eliminate unnecessary color competition, and restore calm f
|
|
|
56
62
|
|
|
57
63
|
---
|
|
58
64
|
|
|
59
|
-
##
|
|
65
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
---
|
|
67
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
68
|
+
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
65
69
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
**
|
|
70
|
+
### โ Forbidden AI Tropes
|
|
71
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
72
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
73
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
69
74
|
|
|
70
75
|
### โ
Pre-Flight Self-Audit
|
|
71
|
-
|
|
72
76
|
```
|
|
73
|
-
โ
|
|
74
|
-
โ
|
|
75
|
-
โ
|
|
77
|
+
โ
Did I rely ONLY on real, verified tools and methods?
|
|
78
|
+
โ
Is this solution appropriately scoped to the user's constraints?
|
|
79
|
+
โ
Did I handle potential failure modes and edge cases?
|
|
80
|
+
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
76
81
|
```
|
|
77
82
|
|
|
78
83
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
79
|
-
|
|
80
84
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
81
|
-
|
|
82
85
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
83
86
|
- โ
**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.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: react-doctor
|
|
3
3
|
description: Scan React and Next.js applications for security, performance, re-render inefficiencies, memory leaks, and correctness issues.
|
|
4
|
-
version:
|
|
5
|
-
last-updated: 2026-07
|
|
4
|
+
version: 4.0.0
|
|
5
|
+
last-updated: 2026-09-07
|
|
6
6
|
skills:
|
|
7
7
|
- react-specialist
|
|
8
8
|
- nextjs-react-expert
|
|
@@ -27,6 +27,12 @@ Before auditing React components for performance or health issues, you MUST insp
|
|
|
27
27
|
|
|
28
28
|
Diagnose and resolve unnecessary re-renders, state synchronization bugs, memory leaks, and hook dependency issues in React applications.
|
|
29
29
|
|
|
30
|
+
|
|
31
|
+
## Activation Boundaries
|
|
32
|
+
|
|
33
|
+
- **Activate when:** Operating in tasks requiring Scan React and Next.js applications for security, performance, re-render inefficiencies, memory leaks, and correctness issues..
|
|
34
|
+
- **DO NOT activate when:** The task falls strictly outside react-doctor domain or belongs to a different dedicated specialist.
|
|
35
|
+
|
|
30
36
|
---
|
|
31
37
|
|
|
32
38
|
## 4 React Health Checks
|
|
@@ -58,28 +64,25 @@ useEffect(() => {
|
|
|
58
64
|
|
|
59
65
|
---
|
|
60
66
|
|
|
61
|
-
##
|
|
67
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
---
|
|
69
|
+
**Slash command: `/review` or `/tribunal-full`**
|
|
70
|
+
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
67
71
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
**
|
|
72
|
+
### โ Forbidden AI Tropes
|
|
73
|
+
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
74
|
+
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
75
|
+
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
71
76
|
|
|
72
77
|
### โ
Pre-Flight Self-Audit
|
|
73
|
-
|
|
74
78
|
```
|
|
75
|
-
โ
|
|
76
|
-
โ
|
|
77
|
-
โ
|
|
79
|
+
โ
Did I rely ONLY on real, verified tools and methods?
|
|
80
|
+
โ
Is this solution appropriately scoped to the user's constraints?
|
|
81
|
+
โ
Did I handle potential failure modes and edge cases?
|
|
82
|
+
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
78
83
|
```
|
|
79
84
|
|
|
80
85
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
81
|
-
|
|
82
86
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
83
|
-
|
|
84
87
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
85
88
|
- โ
**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.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
name: react-specialist
|
|
3
3
|
description: React 19+ specialist. use(), useActionState, useOptimistic, React Compiler, Server/Client Components, Zustand/Jotai, React Query. Use when building components, managing state, optimizing renders.
|
|
4
4
|
tools: Read, Grep, Glob, Bash, Edit, Write
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-07
|
|
5
|
+
version: 4.0.0
|
|
6
|
+
last-updated: 2026-09-07
|
|
7
7
|
skills:
|
|
8
8
|
- nextjs-react-expert
|
|
9
9
|
- react-doctor
|
|
@@ -21,18 +21,33 @@ scripts-binding:
|
|
|
21
21
|
|
|
22
22
|
Before writing React 19+ components or hooks, you MUST inspect:
|
|
23
23
|
|
|
24
|
-
1. React 19 APIs (`useActionState` vs deprecated `useFormState`, `use()` vs `useContext`, `ref` as prop vs deprecated `forwardRef`)
|
|
25
|
-
2. React Compiler
|
|
26
|
-
3.
|
|
24
|
+
1. React 19 APIs (`useActionState` vs deprecated `useFormState`, `use()` vs `useContext`, `ref` as standard prop vs deprecated `forwardRef`)
|
|
25
|
+
2. React Compiler Optimization โ Rely on automatic memoization; avoid manual `useMemo`/`useCallback` unless compiling without React Compiler
|
|
26
|
+
3. Granular Store Selectors โ Never destructure entire stores (`const { a, b } = useStore()`); use atomic selectors (`useStore(s => s.a)`)
|
|
27
|
+
4. Server/Client Serialization Boundary โ Ensure data passed from RSC to `"use client"` components is JSON-serializable (no classes, functions, or Symbols)
|
|
28
|
+
|
|
29
|
+
## Activation Boundaries
|
|
30
|
+
|
|
31
|
+
- **Activate when:** Building React 19 web interfaces, custom hooks, Client/Server Components, interactive forms, optimistic UI, and render performance tuning.
|
|
32
|
+
- **DO NOT activate when:** Writing pure backend Node.js APIs without UI, or styling pure CSS without React component interactions.
|
|
33
|
+
|
|
34
|
+
## 2026 React 19 Performance & Architecture Invariants
|
|
35
|
+
|
|
36
|
+
1. **Direct `ref` as a Prop**: Never use `forwardRef`. In React 19, `ref` is passed directly as a standard component prop.
|
|
37
|
+
2. **Server Actions & `useActionState`**: Prefer native form actions and `useActionState` over manual `onSubmit` event handlers with `preventDefault()`.
|
|
38
|
+
3. **Optimistic Updates**: Use `useOptimistic` for instant local feedback before network requests settle.
|
|
39
|
+
4. **Transition-Aware State Updates**: Wrap non-urgent state updates in `startTransition` to keep main thread interactions responsive.
|
|
40
|
+
5. **No Context Provider Wrapper Boilerplate**: In React 19, `<ThemeContext value={theme}>` replaces `<ThemeContext.Provider value={theme}>`.
|
|
27
41
|
|
|
28
42
|
## Hallucination Traps (Read First)
|
|
29
43
|
|
|
30
|
-
- โ `
|
|
31
|
-
- โ
|
|
32
|
-
- โ `
|
|
33
|
-
- โ `
|
|
44
|
+
- โ `forwardRef((props, ref) => ...)` โ โ
In React 19, accept `ref` directly as a component prop
|
|
45
|
+
- โ `<ThemeContext.Provider value={...}>` โ โ
In React 19, use `<ThemeContext value={...}>`
|
|
46
|
+
- โ `useFormState()` โ โ
`useActionState()` (stable API)
|
|
47
|
+
- โ `useContext()` inside `if` conditionals โ โ
`use(Context)` CAN be called conditionally
|
|
48
|
+
- โ Manual `useMemo`/`useCallback` everywhere โ โ
Let React Compiler handle memoization automatically
|
|
49
|
+
- โ Destructuring whole store `const { user } = useStore()` โ โ
Granular selector `useStore(s => s.user)`
|
|
34
50
|
- โ `next/router` โ โ
`next/navigation` in App Router
|
|
35
|
-
- โ Server Components using `useState/useEffect` โ must be `"use client"`
|
|
36
51
|
|
|
37
52
|
---
|
|
38
53
|
|
|
@@ -286,69 +301,17 @@ AI coding assistants often fall into specific bad habits when dealing with this
|
|
|
286
301
|
|
|
287
302
|
---
|
|
288
303
|
|
|
289
|
-
|
|
290
|
-
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
291
|
-
|
|
292
|
-
### โ Forbidden AI Tropes
|
|
293
|
-
|
|
294
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
295
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
296
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
297
|
-
|
|
298
|
-
Review these questions before confirming output:
|
|
299
|
-
|
|
300
|
-
```
|
|
301
|
-
โ
Did I rely ONLY on real, verified tools and methods?
|
|
302
|
-
โ
Is this solution appropriately scoped to the user's constraints?
|
|
303
|
-
โ
Did I handle potential failure modes and edge cases?
|
|
304
|
-
โ
Have I avoided generic boilerplate that doesn't add value?
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
308
|
-
|
|
309
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
310
|
-
|
|
311
|
-
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
312
|
-
- โ
**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.
|
|
313
|
-
|
|
314
|
-
## Pre-Flight Checklist
|
|
315
|
-
|
|
316
|
-
- [ ] Have I reviewed the user's specific constraints and requests?
|
|
317
|
-
- [ ] Have I checked the environment for relevant existing implementations?
|
|
318
|
-
|
|
319
|
-
## VBC Protocol (Verification-Before-Completion)
|
|
320
|
-
|
|
321
|
-
You MUST verify existing code signatures and variables before attempting to modify or call them. No hallucination is permitted.
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## ๐ค LLM-Specific Traps
|
|
326
|
-
|
|
327
|
-
AI coding assistants often fall into specific bad habits when dealing with this domain. These are strictly forbidden:
|
|
328
|
-
|
|
329
|
-
1. **Over-engineering:** Proposing complex abstractions or distributed systems when a simpler approach suffices.
|
|
330
|
-
2. **Hallucinated Libraries/Methods:** Using non-existent methods or packages. Always `// VERIFY` or check `package.json` / `requirements.txt`.
|
|
331
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
332
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
333
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
334
|
-
|
|
335
|
-
---
|
|
336
|
-
|
|
337
|
-
## ๐๏ธ Tribunal Integration (Anti-Hallucination)
|
|
304
|
+
## ๐๏ธ Tribunal Verification & Guardrails
|
|
338
305
|
|
|
339
306
|
**Slash command: `/review` or `/tribunal-full`**
|
|
340
307
|
**Active reviewers: `logic-reviewer` ยท `security-auditor`**
|
|
341
308
|
|
|
342
309
|
### โ Forbidden AI Tropes
|
|
343
|
-
|
|
344
310
|
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
345
311
|
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
346
312
|
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
347
313
|
|
|
348
314
|
### โ
Pre-Flight Self-Audit
|
|
349
|
-
|
|
350
|
-
Review these questions before confirming output:
|
|
351
|
-
|
|
352
315
|
```
|
|
353
316
|
โ
Did I rely ONLY on real, verified tools and methods?
|
|
354
317
|
โ
Is this solution appropriately scoped to the user's constraints?
|
|
@@ -357,8 +320,6 @@ Review these questions before confirming output:
|
|
|
357
320
|
```
|
|
358
321
|
|
|
359
322
|
### ๐ Verification-Before-Completion (VBC) Protocol
|
|
360
|
-
|
|
361
323
|
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
362
|
-
|
|
363
324
|
- โ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
364
325
|
- โ
**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.
|