tribunal-kit 2.4.6 → 3.1.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 +99 -99
- package/.agent/GEMINI.md +52 -52
- package/.agent/agents/accessibility-reviewer.md +139 -86
- package/.agent/agents/ai-code-reviewer.md +160 -90
- package/.agent/agents/backend-specialist.md +164 -127
- package/.agent/agents/code-archaeologist.md +115 -73
- package/.agent/agents/database-architect.md +130 -110
- package/.agent/agents/debugger.md +137 -97
- package/.agent/agents/dependency-reviewer.md +78 -30
- package/.agent/agents/devops-engineer.md +161 -118
- package/.agent/agents/documentation-writer.md +151 -87
- package/.agent/agents/explorer-agent.md +117 -99
- package/.agent/agents/frontend-reviewer.md +127 -47
- package/.agent/agents/frontend-specialist.md +169 -109
- package/.agent/agents/game-developer.md +28 -164
- package/.agent/agents/logic-reviewer.md +87 -49
- package/.agent/agents/mobile-developer.md +151 -103
- package/.agent/agents/mobile-reviewer.md +133 -50
- package/.agent/agents/orchestrator.md +121 -110
- package/.agent/agents/penetration-tester.md +103 -77
- package/.agent/agents/performance-optimizer.md +136 -92
- package/.agent/agents/performance-reviewer.md +139 -69
- package/.agent/agents/product-manager.md +104 -70
- package/.agent/agents/product-owner.md +6 -25
- package/.agent/agents/project-planner.md +95 -95
- package/.agent/agents/qa-automation-engineer.md +174 -87
- package/.agent/agents/security-auditor.md +133 -129
- package/.agent/agents/seo-specialist.md +160 -99
- package/.agent/agents/sql-reviewer.md +132 -44
- package/.agent/agents/supervisor-agent.md +137 -109
- package/.agent/agents/swarm-worker-contracts.md +17 -17
- package/.agent/agents/swarm-worker-registry.md +46 -46
- package/.agent/agents/test-coverage-reviewer.md +132 -53
- package/.agent/agents/test-engineer.md +0 -21
- package/.agent/agents/type-safety-reviewer.md +143 -33
- package/.agent/patterns/generator.md +9 -9
- package/.agent/patterns/inversion.md +12 -12
- package/.agent/patterns/pipeline.md +9 -9
- package/.agent/patterns/reviewer.md +13 -13
- package/.agent/patterns/tool-wrapper.md +9 -9
- package/.agent/rules/GEMINI.md +63 -63
- package/.agent/scripts/__pycache__/auto_preview.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/bundle_analyzer.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/checklist.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/dependency_analyzer.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/security_scan.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/session_manager.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/skill_integrator.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/swarm_dispatcher.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/test_runner.cpython-311.pyc +0 -0
- package/.agent/scripts/__pycache__/verify_all.cpython-311.pyc +0 -0
- package/.agent/scripts/compress_skills.py +167 -0
- package/.agent/scripts/consolidate_skills.py +173 -0
- package/.agent/scripts/deep_compress.py +202 -0
- package/.agent/scripts/minify_context.py +80 -0
- package/.agent/scripts/security_scan.py +1 -1
- package/.agent/scripts/strip_tribunal.py +41 -0
- package/.agent/skills/agent-organizer/SKILL.md +60 -100
- package/.agent/skills/agentic-patterns/SKILL.md +0 -70
- package/.agent/skills/ai-prompt-injection-defense/SKILL.md +108 -53
- package/.agent/skills/api-patterns/SKILL.md +197 -257
- package/.agent/skills/api-security-auditor/SKILL.md +125 -57
- package/.agent/skills/app-builder/SKILL.md +326 -50
- package/.agent/skills/app-builder/templates/SKILL.md +13 -15
- package/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +16 -16
- package/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +22 -22
- package/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +20 -20
- package/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +17 -17
- package/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +21 -21
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +19 -19
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +26 -26
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +26 -26
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +19 -19
- package/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +18 -18
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +20 -20
- package/.agent/skills/appflow-wireframe/SKILL.md +71 -98
- package/.agent/skills/architecture/SKILL.md +161 -200
- package/.agent/skills/authentication-best-practices/SKILL.md +121 -54
- package/.agent/skills/bash-linux/SKILL.md +71 -166
- package/.agent/skills/behavioral-modes/SKILL.md +8 -69
- package/.agent/skills/brainstorming/SKILL.md +345 -127
- package/.agent/skills/building-native-ui/SKILL.md +125 -57
- package/.agent/skills/clean-code/SKILL.md +266 -149
- package/.agent/skills/code-review-checklist/SKILL.md +0 -62
- package/.agent/skills/config-validator/SKILL.md +73 -131
- package/.agent/skills/csharp-developer/SKILL.md +434 -73
- package/.agent/skills/database-design/SKILL.md +190 -275
- package/.agent/skills/deployment-procedures/SKILL.md +81 -158
- package/.agent/skills/devops-engineer/SKILL.md +255 -94
- package/.agent/skills/devops-incident-responder/SKILL.md +50 -69
- package/.agent/skills/doc.md +5 -5
- package/.agent/skills/documentation-templates/SKILL.md +19 -63
- package/.agent/skills/edge-computing/SKILL.md +75 -165
- package/.agent/skills/extract-design-system/SKILL.md +84 -58
- package/.agent/skills/framer-motion-expert/SKILL.md +195 -0
- package/.agent/skills/frontend-design/SKILL.md +151 -499
- package/.agent/skills/game-design-expert/SKILL.md +71 -0
- package/.agent/skills/game-engineering-expert/SKILL.md +88 -0
- package/.agent/skills/geo-fundamentals/SKILL.md +52 -178
- package/.agent/skills/github-operations/SKILL.md +197 -272
- package/.agent/skills/gsap-expert/SKILL.md +194 -0
- package/.agent/skills/i18n-localization/SKILL.md +60 -172
- package/.agent/skills/intelligent-routing/SKILL.md +123 -103
- package/.agent/skills/lint-and-validate/SKILL.md +8 -52
- package/.agent/skills/llm-engineering/SKILL.md +281 -195
- package/.agent/skills/local-first/SKILL.md +76 -159
- package/.agent/skills/mcp-builder/SKILL.md +48 -188
- package/.agent/skills/mobile-design/SKILL.md +213 -219
- package/.agent/skills/motion-engineering/SKILL.md +184 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +184 -203
- package/.agent/skills/nodejs-best-practices/SKILL.md +403 -185
- package/.agent/skills/observability/SKILL.md +211 -203
- package/.agent/skills/parallel-agents/SKILL.md +53 -146
- package/.agent/skills/performance-profiling/SKILL.md +171 -151
- package/.agent/skills/plan-writing/SKILL.md +49 -153
- package/.agent/skills/platform-engineer/SKILL.md +57 -103
- package/.agent/skills/playwright-best-practices/SKILL.md +110 -63
- package/.agent/skills/powershell-windows/SKILL.md +61 -179
- package/.agent/skills/python-patterns/SKILL.md +7 -35
- package/.agent/skills/python-pro/SKILL.md +273 -114
- package/.agent/skills/react-specialist/SKILL.md +227 -108
- package/.agent/skills/readme-builder/SKILL.md +15 -85
- package/.agent/skills/realtime-patterns/SKILL.md +216 -243
- package/.agent/skills/red-team-tactics/SKILL.md +10 -51
- package/.agent/skills/rust-pro/SKILL.md +525 -142
- package/.agent/skills/seo-fundamentals/SKILL.md +92 -153
- package/.agent/skills/server-management/SKILL.md +110 -166
- package/.agent/skills/shadcn-ui-expert/SKILL.md +154 -55
- package/.agent/skills/skill-creator/SKILL.md +18 -58
- package/.agent/skills/sql-pro/SKILL.md +543 -68
- package/.agent/skills/supabase-postgres-best-practices/SKILL.md +28 -68
- package/.agent/skills/swiftui-expert/SKILL.md +124 -57
- package/.agent/skills/systematic-debugging/SKILL.md +49 -151
- package/.agent/skills/tailwind-patterns/SKILL.md +433 -149
- package/.agent/skills/tdd-workflow/SKILL.md +63 -169
- package/.agent/skills/test-result-analyzer/SKILL.md +33 -73
- package/.agent/skills/testing-patterns/SKILL.md +437 -130
- package/.agent/skills/trend-researcher/SKILL.md +30 -71
- package/.agent/skills/ui-ux-pro-max/SKILL.md +0 -41
- package/.agent/skills/ui-ux-researcher/SKILL.md +51 -91
- package/.agent/skills/vue-expert/SKILL.md +225 -119
- package/.agent/skills/vulnerability-scanner/SKILL.md +264 -226
- package/.agent/skills/web-accessibility-auditor/SKILL.md +141 -58
- package/.agent/skills/web-design-guidelines/SKILL.md +17 -61
- package/.agent/skills/webapp-testing/SKILL.md +71 -196
- package/.agent/skills/whimsy-injector/SKILL.md +58 -132
- package/.agent/skills/workflow-optimizer/SKILL.md +28 -68
- package/.agent/workflows/api-tester.md +96 -224
- package/.agent/workflows/audit.md +81 -122
- package/.agent/workflows/brainstorm.md +69 -105
- package/.agent/workflows/changelog.md +65 -97
- package/.agent/workflows/create.md +73 -88
- package/.agent/workflows/debug.md +80 -111
- package/.agent/workflows/deploy.md +119 -92
- package/.agent/workflows/enhance.md +80 -91
- package/.agent/workflows/fix.md +68 -97
- package/.agent/workflows/generate.md +165 -164
- package/.agent/workflows/migrate.md +106 -109
- package/.agent/workflows/orchestrate.md +103 -86
- package/.agent/workflows/performance-benchmarker.md +77 -268
- package/.agent/workflows/plan.md +120 -98
- package/.agent/workflows/preview.md +39 -96
- package/.agent/workflows/refactor.md +105 -97
- package/.agent/workflows/review-ai.md +63 -102
- package/.agent/workflows/review.md +71 -110
- package/.agent/workflows/session.md +53 -113
- package/.agent/workflows/status.md +42 -88
- package/.agent/workflows/strengthen-skills.md +90 -51
- package/.agent/workflows/swarm.md +114 -129
- package/.agent/workflows/test.md +125 -102
- package/.agent/workflows/tribunal-backend.md +60 -78
- package/.agent/workflows/tribunal-database.md +62 -100
- package/.agent/workflows/tribunal-frontend.md +62 -82
- package/.agent/workflows/tribunal-full.md +56 -100
- package/.agent/workflows/tribunal-mobile.md +65 -94
- package/.agent/workflows/tribunal-performance.md +62 -105
- package/.agent/workflows/ui-ux-pro-max.md +72 -121
- package/README.md +11 -15
- package/package.json +1 -1
- package/.agent/skills/api-patterns/api-style.md +0 -42
- package/.agent/skills/api-patterns/auth.md +0 -24
- package/.agent/skills/api-patterns/documentation.md +0 -26
- package/.agent/skills/api-patterns/graphql.md +0 -41
- package/.agent/skills/api-patterns/rate-limiting.md +0 -31
- package/.agent/skills/api-patterns/response.md +0 -37
- package/.agent/skills/api-patterns/rest.md +0 -40
- package/.agent/skills/api-patterns/security-testing.md +0 -122
- package/.agent/skills/api-patterns/trpc.md +0 -41
- package/.agent/skills/api-patterns/versioning.md +0 -22
- package/.agent/skills/app-builder/agent-coordination.md +0 -71
- package/.agent/skills/app-builder/feature-building.md +0 -53
- package/.agent/skills/app-builder/project-detection.md +0 -34
- package/.agent/skills/app-builder/scaffolding.md +0 -118
- package/.agent/skills/app-builder/tech-stack.md +0 -40
- package/.agent/skills/architecture/context-discovery.md +0 -43
- package/.agent/skills/architecture/examples.md +0 -94
- package/.agent/skills/architecture/pattern-selection.md +0 -68
- package/.agent/skills/architecture/patterns-reference.md +0 -50
- package/.agent/skills/architecture/trade-off-analysis.md +0 -77
- package/.agent/skills/brainstorming/dynamic-questioning.md +0 -360
- package/.agent/skills/database-design/database-selection.md +0 -43
- package/.agent/skills/database-design/indexing.md +0 -39
- package/.agent/skills/database-design/migrations.md +0 -48
- package/.agent/skills/database-design/optimization.md +0 -36
- package/.agent/skills/database-design/orm-selection.md +0 -30
- package/.agent/skills/database-design/schema-design.md +0 -56
- package/.agent/skills/dotnet-core-expert/SKILL.md +0 -103
- package/.agent/skills/framer-motion-animations/SKILL.md +0 -74
- package/.agent/skills/frontend-design/animation-guide.md +0 -331
- package/.agent/skills/frontend-design/color-system.md +0 -329
- package/.agent/skills/frontend-design/decision-trees.md +0 -418
- package/.agent/skills/frontend-design/motion-graphics.md +0 -306
- package/.agent/skills/frontend-design/typography-system.md +0 -363
- package/.agent/skills/frontend-design/ux-psychology.md +0 -1116
- package/.agent/skills/frontend-design/visual-effects.md +0 -383
- package/.agent/skills/game-development/2d-games/SKILL.md +0 -119
- package/.agent/skills/game-development/3d-games/SKILL.md +0 -135
- package/.agent/skills/game-development/SKILL.md +0 -236
- package/.agent/skills/game-development/game-art/SKILL.md +0 -185
- package/.agent/skills/game-development/game-audio/SKILL.md +0 -190
- package/.agent/skills/game-development/game-design/SKILL.md +0 -129
- package/.agent/skills/game-development/mobile-games/SKILL.md +0 -108
- package/.agent/skills/game-development/multiplayer/SKILL.md +0 -132
- package/.agent/skills/game-development/pc-games/SKILL.md +0 -144
- package/.agent/skills/game-development/vr-ar/SKILL.md +0 -123
- package/.agent/skills/game-development/web-games/SKILL.md +0 -150
- package/.agent/skills/intelligent-routing/router-manifest.md +0 -65
- package/.agent/skills/mobile-design/decision-trees.md +0 -516
- package/.agent/skills/mobile-design/mobile-backend.md +0 -491
- package/.agent/skills/mobile-design/mobile-color-system.md +0 -420
- package/.agent/skills/mobile-design/mobile-debugging.md +0 -122
- package/.agent/skills/mobile-design/mobile-design-thinking.md +0 -357
- package/.agent/skills/mobile-design/mobile-navigation.md +0 -458
- package/.agent/skills/mobile-design/mobile-performance.md +0 -767
- package/.agent/skills/mobile-design/mobile-testing.md +0 -356
- package/.agent/skills/mobile-design/mobile-typography.md +0 -433
- package/.agent/skills/mobile-design/platform-android.md +0 -666
- package/.agent/skills/mobile-design/platform-ios.md +0 -561
- package/.agent/skills/mobile-design/touch-psychology.md +0 -537
- package/.agent/skills/nextjs-react-expert/1-async-eliminating-waterfalls.md +0 -312
- package/.agent/skills/nextjs-react-expert/2-bundle-bundle-size-optimization.md +0 -240
- package/.agent/skills/nextjs-react-expert/3-server-server-side-performance.md +0 -490
- package/.agent/skills/nextjs-react-expert/4-client-client-side-data-fetching.md +0 -264
- package/.agent/skills/nextjs-react-expert/5-rerender-re-render-optimization.md +0 -581
- package/.agent/skills/nextjs-react-expert/6-rendering-rendering-performance.md +0 -432
- package/.agent/skills/nextjs-react-expert/7-js-javascript-performance.md +0 -684
- package/.agent/skills/nextjs-react-expert/8-advanced-advanced-patterns.md +0 -150
- package/.agent/skills/vulnerability-scanner/checklists.md +0 -121
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: game-design-expert
|
|
3
|
+
description: Game Design, UX, and Flow State mastery. Replaces fragmented legacy skills. Core gameplay loop design, 3Cs (Character, Camera, Controls), input buffering, coyote time, juice (game feel), telemetry tracking, narrative alignment, and audio spatialization integration. Use when crafting player experience, progression arcs, or systemic balance.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
last-updated: 2026-04-02
|
|
7
|
+
applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Game Design Expert — Player Experience & Flow Mastery
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. The 3Cs (Character, Camera, Controls)
|
|
15
|
+
|
|
16
|
+
Before designing enemies, levels, or UI, the foundation of the player's interaction MUST feel flawless. If the player cannot intrinsically trust the controls, the entire system collapses.
|
|
17
|
+
|
|
18
|
+
### Input Buffering
|
|
19
|
+
Humans cannot click buttons flawlessly on the exact required frame.
|
|
20
|
+
If a player presses "Jump" 3 frames *before* they hit the ground, a naïve engine ignores it. A designed engine *buffers* the input in memory for 150ms and instantly executes the jump the millisecond the character's feet touch the dirt.
|
|
21
|
+
|
|
22
|
+
### Coyote Time
|
|
23
|
+
Named after Wile E. Coyote hovering off a cliff.
|
|
24
|
+
If a player runs off a ledge, a rigid physics engine drops them instantly.
|
|
25
|
+
A forgiving design allows the player to still press 'Jump' for exactly ~100ms *after* walking off the ledge. It prevents extreme frustration on close platforming jumps.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## 2. The Core Gameplay Loop
|
|
30
|
+
|
|
31
|
+
Every action a player takes must feed into a reinforcing psychological loop.
|
|
32
|
+
|
|
33
|
+
**The Macro Loop (e.g., Destiny, Monster Hunter)**
|
|
34
|
+
1. **Action:** Fight complex monsters.
|
|
35
|
+
2. **Reward:** Collect physical parts and resources.
|
|
36
|
+
3. **Pacing:** Return to base.
|
|
37
|
+
4. **Upgrade:** Convert parts into stronger weapons.
|
|
38
|
+
5. **Goal:** Fight stronger, unkillable monsters (Back to Step 1).
|
|
39
|
+
|
|
40
|
+
*If step 4 (Upgrading) does not heavily alter step 1 (Fights are now faster, visually different, mechanically superior), the loop is broken and players churn.*
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 3. "Juice" and Game Feel
|
|
45
|
+
|
|
46
|
+
"Juice" is the non-functional audiovisual feedback that makes an interaction feel heavy and satisfying.
|
|
47
|
+
|
|
48
|
+
1. **Screen Shake:** A minor, mathematically decaying camera displacement when heavy impacts occur. (Needs toggles for accessibility).
|
|
49
|
+
2. **Hitstop (Sleep Frames):** When a sword hits an enemy, freeze the entire game engine for exactly 3 frames (50ms). This creates an immense perceptual illusion of resistance and friction.
|
|
50
|
+
3. **Squash and Stretch:** A character jumping should stretch vertically. A character landing should squash horizontally. It breaks rigidity and infuses life.
|
|
51
|
+
4. **Particle Explosions:** Simple box collisions must be masked by explosive localized particle systems (dust kicks, sparks).
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 4. Narrative & Audio Synergies
|
|
56
|
+
|
|
57
|
+
Game design is not segregated from Audio. Audio is the primary vector for temporal feedback.
|
|
58
|
+
|
|
59
|
+
1. **Spatialization (HRTF):** Sound objects emit audio localized strictly to 3D space, heavily attenuated by environmental occlusions (muffled behind walls).
|
|
60
|
+
2. **Telegraphing State:** If an enemy swings a heavy axe, it MUST have a 300ms audio "wind-up" queue. The player relies on audio rhythm far faster than visual recognition to dodge.
|
|
61
|
+
3. **Dynamic Mixing (Ducking):** Essential dialogue or UI pings must automatically compress (lower the volume of) ambient music underneath to prevent cognitive overload.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 5. Telemetry & Analytics Deficiencies
|
|
66
|
+
|
|
67
|
+
Design is hypotheses. Playtests are the reality.
|
|
68
|
+
|
|
69
|
+
Never rely on developers "feeling" the game. You must systematically log death coordinates (heatmaps). If 80% of players die at Level 2 Trap B, your design intent (teaching the mechanic) has failed.
|
|
70
|
+
|
|
71
|
+
---
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: game-engineering-expert
|
|
3
|
+
description: Game Engineering and Systems Architecture mastery. Replaces fragmented legacy skills. Entity Component Systems (ECS), Unity (C#) / Godot (GDScript) integration, physics calculations, deterministic engine state, WebGL memory management, multiplayer sync architectures (deterministic lockstep vs traditional authoritative), spatial partitioning, and rendering pipelines.
|
|
4
|
+
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
last-updated: 2026-04-02
|
|
7
|
+
applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Game Engineering Expert — Performance & State Mastery
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 1. Frame Rate Architecture (The Update Loop)
|
|
15
|
+
|
|
16
|
+
In web development, we await Promises. In game development, we calculate Delta Time continuously.
|
|
17
|
+
|
|
18
|
+
```csharp
|
|
19
|
+
// ❌ BAD: Frame-rate dependent logic
|
|
20
|
+
// If the game runs at 120 FPS, the character moves twice as fast as on 60 FPS
|
|
21
|
+
void Update() {
|
|
22
|
+
transform.position += currentSpeed;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// ✅ GOOD: Frame-independent physics (Unity C# Example)
|
|
26
|
+
void Update() {
|
|
27
|
+
// DeltaTime is the time elapsed since the last frame
|
|
28
|
+
transform.position += currentVelocity * Time.deltaTime;
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### FixedUpdate vs Update (The Physics Boundary)
|
|
33
|
+
- `Update()` fires as fast as the GPU/CPU can draw. Used for User Input and visual animation interpolations.
|
|
34
|
+
- `FixedUpdate()` fires at absolute strict mathematical intervals (e.g., 50 times a second exactly). ALL Physics interactions (`AddForce()`, collision sweeps) MUST live here to prevent tearing and tunneling.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. Memory Pooling (Garbage Collection Death)
|
|
39
|
+
|
|
40
|
+
In Node.js, V8 cleans up objects eventually. In Game Engines, allocating memory creates "Garbage", which forces the Garbage Collector (GC) to pause the entire game to clean up, causing massive micro-stutters.
|
|
41
|
+
|
|
42
|
+
```csharp
|
|
43
|
+
// ❌ FATAL (in Update loops): Creating new objects 60x a second
|
|
44
|
+
void Update() {
|
|
45
|
+
Instantiate(bulletPrefab, gun.position, gun.rotation); // Kills the CPU
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// ✅ EFFICIENT: Object Pooling
|
|
49
|
+
// Pre-allocate 100 bullets during the Loading Screen.
|
|
50
|
+
// Then simply toggle their active state natively.
|
|
51
|
+
void Fire() {
|
|
52
|
+
Bullet b = bulletPool.GetDisabledBullet();
|
|
53
|
+
b.transform.position = gun.position;
|
|
54
|
+
b.gameObject.SetActive(true);
|
|
55
|
+
}
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 3. Entity Component Systems (ECS)
|
|
61
|
+
|
|
62
|
+
Traditional Object-Oriented Programming (OOP) inheritance hierarchies break down in game engines.
|
|
63
|
+
(e.g., `Enemy` inherits from `Character` which inherits from `Renderable`). What happens when you want a `Renderable` that isn't a `Character` but acts like an `Enemy` (like a deadly spike trap)?
|
|
64
|
+
|
|
65
|
+
**Use ECS.**
|
|
66
|
+
1. **Entities:** Just a meaningless ID (e.g., `Entity 304`).
|
|
67
|
+
2. **Components:** Pure localized data structs attached to an ID (e.g., `Position {x: 5, y: 10}`, `Health {hp: 100}`).
|
|
68
|
+
3. **Systems:** Logic that maps continuously over structs (e.g., `MovementSystem` iterates over ALL Entities that specifically have both a `Position` AND `Velocity` component).
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 4. Multiplayer Architectures
|
|
73
|
+
|
|
74
|
+
Never trust the client. A multiplayer architecture dictates latency fundamentally.
|
|
75
|
+
|
|
76
|
+
1. **Deterministic Lockstep (RTS / Fighting Games):**
|
|
77
|
+
- Transmits absolute ZERO game state (coordinates).
|
|
78
|
+
- Only transmits *inputs* (Player A clicked Coordinate X).
|
|
79
|
+
- Both machines run the identical physics frame simultaneously.
|
|
80
|
+
- Extremely bandwidth efficient, but requires identical CPU math output (impossible in JS floating point Math).
|
|
81
|
+
|
|
82
|
+
2. **Server Authoritative with Client Prediction (Modern FPS/Action):**
|
|
83
|
+
- The Server runs the "Real" game.
|
|
84
|
+
- The Client tells the server "I fired."
|
|
85
|
+
- Because Ping takes 50ms, the Client *predicts* the shot landing locally (optimistic UI) so the player doesn't feel lag.
|
|
86
|
+
- If the server eventually disagrees, the Client aggressively rewinds and snaps the state to match the Server reality (Rubber-banding).
|
|
87
|
+
|
|
88
|
+
---
|
|
@@ -1,215 +1,89 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: geo-fundamentals
|
|
3
|
-
description: Generative Engine Optimization for AI
|
|
3
|
+
description: Generative Engine Optimization (GEO) mastery. Structuring content for LLM ingestion. Adapting SEO for AI interfaces (ChatGPT, Claude, Perplexity), optimizing markdown semantic hierarchies, citation structuring, minimizing boilerplate, reducing HTML DOM depth, and API-first content delivery. Use when making information discoverable not just to Google, but directly to AI indexing agents.
|
|
4
4
|
allowed-tools: Read, Write, Edit, Glob, Grep
|
|
5
|
-
version:
|
|
6
|
-
last-updated: 2026-
|
|
5
|
+
version: 2.0.0
|
|
6
|
+
last-updated: 2026-04-02
|
|
7
7
|
applies-to-model: gemini-2.5-pro, claude-3-7-sonnet
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
# Generative Engine Optimization (GEO)
|
|
11
|
-
|
|
12
|
-
> Traditional SEO optimizes for keyword ranking in blue links.
|
|
13
|
-
> GEO optimizes for citation and inclusion in AI-generated answers.
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## What GEO Is
|
|
18
|
-
|
|
19
|
-
When users ask ChatGPT, Claude, Perplexity, or Google SGE a question, an AI synthesizes an answer from sources it considers authoritative. GEO is the practice of making your content the kind that AI systems cite, quote, and summarize.
|
|
20
|
-
|
|
21
|
-
The mechanisms differ from traditional SEO:
|
|
22
|
-
- AI doesn't rank URLs — it synthesizes information
|
|
23
|
-
- Backlinks matter less than citation-worthiness
|
|
24
|
-
- Content density and factual specificity matter more than keyword density
|
|
10
|
+
# Generative Engine Optimization (GEO)
|
|
25
11
|
|
|
26
12
|
---
|
|
27
13
|
|
|
28
|
-
##
|
|
29
|
-
|
|
30
|
-
Based on observable patterns in AI retrieval:
|
|
31
|
-
|
|
32
|
-
| Signal | What It Means |
|
|
33
|
-
|---|---|
|
|
34
|
-
| Authoritative domain | .gov, .edu, established publications get higher base trust |
|
|
35
|
-
| Factual specificity | Numbers, dates, named sources > vague descriptions |
|
|
36
|
-
| Structured content | Lists, tables, step-by-step = easier to extract |
|
|
37
|
-
| Complete answers | Content that fully addresses the question in one place |
|
|
38
|
-
| Original research | Data, studies, surveys the AI can't find elsewhere |
|
|
39
|
-
| Freshness | Recently updated content has advantage for time-sensitive topics |
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## Writing for AI Consumption
|
|
44
|
-
|
|
45
|
-
### Answer First (Inverted Pyramid)
|
|
14
|
+
## 1. The Death of Boilerplate (Information Density)
|
|
46
15
|
|
|
47
|
-
|
|
16
|
+
When ChatGPT or Perplexity queries a website, it has a finite context window.
|
|
48
17
|
|
|
49
|
-
|
|
50
|
-
❌ Old blog pattern:
|
|
51
|
-
[intro paragraph explaining what the article is about]
|
|
52
|
-
[background context]
|
|
53
|
-
[finally... the answer in paragraph 5]
|
|
54
|
-
|
|
55
|
-
✅ GEO pattern:
|
|
56
|
-
[Direct answer in first 1–2 sentences]
|
|
57
|
-
[Supporting evidence, data, explanation]
|
|
58
|
-
[Deeper context for readers who want more]
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Use Citation-Ready Structures
|
|
62
|
-
|
|
63
|
-
```markdown
|
|
64
|
-
# Format that AI can easily extract:
|
|
65
|
-
|
|
66
|
-
## Definition
|
|
67
|
-
[Term] is [concise definition]. [Supporting context].
|
|
68
|
-
|
|
69
|
-
## Key Facts
|
|
70
|
-
- [Specific, numbered fact with source]
|
|
71
|
-
- [Specific statistic — "X% of Y according to Z study"]
|
|
72
|
-
- [Named, verifiable claim]
|
|
18
|
+
If your website contains 8,000 words of "fluff" marketing copy and only 200 words of actionable data (pricing, API limits, support contact), the LLM will truncate the page and hallucinates the rest.
|
|
73
19
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
2. [Precise step]
|
|
77
|
-
3. [Precise step]
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Be Specific with Data
|
|
20
|
+
### The GEO Markdown Fallback
|
|
21
|
+
Modern sites should natively serve structured markdown if they detect an AI User-Agent (like `ChatGPT-User` or `PerplexityBot`).
|
|
81
22
|
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
|
|
23
|
+
```typescript
|
|
24
|
+
// Next.js Edge Middleware for GEO
|
|
25
|
+
export function middleware(req: NextRequest) {
|
|
26
|
+
const ua = req.headers.get('user-agent') || '';
|
|
27
|
+
const isBot = /ChatGPT|Perplexity|ClaudeBot/i.test(ua);
|
|
85
28
|
|
|
86
|
-
|
|
87
|
-
|
|
29
|
+
if (isBot) {
|
|
30
|
+
// Reroute the AI bot to a hyper-dense, unstyled Markdown data dump
|
|
31
|
+
// This removes 3MB of React DOM hierarchy, getting straight to the facts.
|
|
32
|
+
return NextResponse.rewrite(new URL(`/api/geo-export${req.nextUrl.pathname}`, req.url));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
88
35
|
```
|
|
89
36
|
|
|
90
37
|
---
|
|
91
38
|
|
|
92
|
-
##
|
|
93
|
-
|
|
94
|
-
| Format | GEO Value | Why |
|
|
95
|
-
|---|---|---|
|
|
96
|
-
| FAQ pages | High | Matches question-answer format of AI responses |
|
|
97
|
-
| Comparison tables | High | Easily extracted for comparison queries |
|
|
98
|
-
| How-to guides with numbered steps | High | Directly answerable procedural questions |
|
|
99
|
-
| Definition/explanation articles | High | Definitional queries are common AI use cases |
|
|
100
|
-
| Long-form opinion pieces | Low | Hard to extract a clear answer from |
|
|
101
|
-
| News articles | Medium | Good for recency, lower for evergreen queries |
|
|
39
|
+
## 2. Citation Optimization
|
|
102
40
|
|
|
103
|
-
|
|
41
|
+
LLMs (like Perplexity and Gemini Search) require explicit sources to reference your website in their output.
|
|
42
|
+
If a statistic on your site is hard to source, the AI will ignore it in favor of a competitor.
|
|
104
43
|
|
|
105
|
-
|
|
44
|
+
**Rule: Explicit Claim-to-Source Mapping**
|
|
45
|
+
Do not use vague external links at the bottom of the page. Anchor exact claims to explicit references directly within the text block. Use standardized `<cite>` tags or JSON-LD.
|
|
106
46
|
|
|
107
47
|
```html
|
|
108
|
-
<!--
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
User-agent: ClaudeBot
|
|
119
|
-
Allow: /
|
|
120
|
-
|
|
121
|
-
<!-- Structured data helps AI understand content context -->
|
|
122
|
-
<script type="application/ld+json">
|
|
123
|
-
{
|
|
124
|
-
"@context": "https://schema.org",
|
|
125
|
-
"@type": "FAQPage",
|
|
126
|
-
"mainEntity": [{
|
|
127
|
-
"@type": "Question",
|
|
128
|
-
"name": "What is tribunal-kit?",
|
|
129
|
-
"acceptedAnswer": {
|
|
130
|
-
"@type": "Answer",
|
|
131
|
-
"text": "tribunal-kit is an npm package that installs an anti-hallucination agent kit..."
|
|
132
|
-
}
|
|
133
|
-
}]
|
|
134
|
-
}
|
|
135
|
-
</script>
|
|
48
|
+
<!-- ❌ BAD: Vague SEO -->
|
|
49
|
+
<p>We are the fastest vector database on the market. Read our docs.</p>
|
|
50
|
+
|
|
51
|
+
<!-- ✅ GOOD: GEO Citation Architecture -->
|
|
52
|
+
<p>We process 10M vectors at 10ms latency (P99), making us 3x faster than Competitor A.</p>
|
|
53
|
+
<cite xmlns="http://schema.org" typeof="WebPage">
|
|
54
|
+
<span property="name">Benchmark Methodology 2026</span> -
|
|
55
|
+
<a property="url" href="/benchmarks-2026.pdf">[Source PDF]</a>
|
|
56
|
+
</cite>
|
|
136
57
|
```
|
|
137
58
|
|
|
138
59
|
---
|
|
139
60
|
|
|
140
|
-
##
|
|
141
|
-
|
|
142
|
-
Traditional SEO metrics (keyword rank, backlinks) don't fully apply. Track:
|
|
143
|
-
|
|
144
|
-
- **AI mention rate** — manually query AI systems for your topic and check if your brand/content appears
|
|
145
|
-
- **Citation count** — if identifiable quotes from your content appear in AI outputs
|
|
146
|
-
- **Perplexity source appearances** — Perplexity shows its sources; track mentions
|
|
147
|
-
- **Direct traffic** — users who find AI mentions and navigate directly (not via search)
|
|
148
|
-
|
|
149
|
-
---
|
|
150
|
-
|
|
151
|
-
## Scripts
|
|
61
|
+
## 3. High-Clarity Semantic Taxonomy
|
|
152
62
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
| `scripts/geo_checker.py` | Audits content for GEO best practices | `python scripts/geo_checker.py <url>` |
|
|
63
|
+
Traditional SEO relies heavily on long-tail keyword placement.
|
|
64
|
+
GEO relies heavily on **Taxonomy and Relational Mapping**. The LLM wants to know exactly *what* entity this page represents.
|
|
156
65
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
When this skill produces a recommendation or design decision, structure your output as:
|
|
66
|
+
**Implement Explicit FAQs:**
|
|
67
|
+
LLMs love QA formats because user prompts are usually questions.
|
|
68
|
+
Transform prose into rigid QA objects using standard semantic data blocks.
|
|
162
69
|
|
|
70
|
+
```html
|
|
71
|
+
<dl>
|
|
72
|
+
<dt><h3>What is the data retention limit for the Free Tier?</h3></dt>
|
|
73
|
+
<dd><p>The Free Tier limits data retention to precisely 14 rolling days.</p></dd>
|
|
74
|
+
|
|
75
|
+
<dt><h3>Does the platform support HIPAA compliance?</h3></dt>
|
|
76
|
+
<dd><p>Yes, Enterprise Tiers support full BAA HIPAA compliance parameters.</p></dd>
|
|
77
|
+
</dl>
|
|
163
78
|
```
|
|
164
|
-
━━━ Geo Fundamentals Recommendation ━━━━━━━━━━━━━━━━
|
|
165
|
-
Decision: [what was chosen / proposed]
|
|
166
|
-
Rationale: [why — one concise line]
|
|
167
|
-
Trade-offs: [what is consciously accepted]
|
|
168
|
-
Next action: [concrete next step for the user]
|
|
169
|
-
─────────────────────────────────────────────────
|
|
170
|
-
Pre-Flight: ✅ All checks passed
|
|
171
|
-
or ❌ [blocking item that must be resolved first]
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
|
|
175
79
|
|
|
176
80
|
---
|
|
177
81
|
|
|
178
|
-
##
|
|
82
|
+
## 4. API Docs Readability (The Primary AI Target)
|
|
179
83
|
|
|
180
|
-
AI
|
|
84
|
+
When an AI tries to write code using your product, it scrapes your API documentation.
|
|
181
85
|
|
|
182
|
-
1. **
|
|
183
|
-
2. **
|
|
184
|
-
3. **Skipping Edge Cases:** Writing the "happy path" and ignoring error handling, timeouts, or data validation.
|
|
185
|
-
4. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
186
|
-
5. **Silent Degradation:** Catching and suppressing errors without logging or re-raising.
|
|
86
|
+
1. **Eliminate Image-Based Architecture:** Highlighting your architecture solely in a PNG graphic is invisible. Describe the system architecture using text or standard Mermaid.js code blocks.
|
|
87
|
+
2. **Provide Concrete Copy-Paste Examples:** The easiest way to get an LLM to use your platform correctly is to ensure your docs contain perfectly working `curl`, `TypeScript`, and `Python` code snippets with zero external dependencies.
|
|
187
88
|
|
|
188
89
|
---
|
|
189
|
-
|
|
190
|
-
## 🏛️ Tribunal Integration (Anti-Hallucination)
|
|
191
|
-
|
|
192
|
-
**Slash command: `/review` or `/tribunal-full`**
|
|
193
|
-
**Active reviewers: `logic-reviewer` · `security-auditor`**
|
|
194
|
-
|
|
195
|
-
### ❌ Forbidden AI Tropes
|
|
196
|
-
|
|
197
|
-
1. **Blind Assumptions:** Never make an assumption without documenting it clearly with `// VERIFY: [reason]`.
|
|
198
|
-
2. **Silent Degradation:** Catching and suppressing errors without logging or handling.
|
|
199
|
-
3. **Context Amnesia:** Forgetting the user's constraints and offering generic advice instead of tailored solutions.
|
|
200
|
-
|
|
201
|
-
### ✅ Pre-Flight Self-Audit
|
|
202
|
-
|
|
203
|
-
Review these questions before confirming output:
|
|
204
|
-
```
|
|
205
|
-
✅ Did I rely ONLY on real, verified tools and methods?
|
|
206
|
-
✅ Is this solution appropriately scoped to the user's constraints?
|
|
207
|
-
✅ Did I handle potential failure modes and edge cases?
|
|
208
|
-
✅ Have I avoided generic boilerplate that doesn't add value?
|
|
209
|
-
```
|
|
210
|
-
|
|
211
|
-
### 🛑 Verification-Before-Completion (VBC) Protocol
|
|
212
|
-
|
|
213
|
-
**CRITICAL:** You must follow a strict "evidence-based closeout" state machine.
|
|
214
|
-
- ❌ **Forbidden:** Declaring a task complete because the output "looks correct."
|
|
215
|
-
- ✅ **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.
|