oneie 3.6.25 → 3.6.27

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 (55) hide show
  1. package/.claude/agents/TROUBLESHOOTING.md +530 -0
  2. package/.claude/agents/agent-builder.md +226 -198
  3. package/.claude/agents/agent-claude.md +645 -0
  4. package/.claude/agents/agent-designer.md +166 -11
  5. package/.claude/agents/agent-director.md +109 -41
  6. package/.claude/agents/agent-frontend.md +314 -27
  7. package/.claude/agents/agent-quality.md +377 -0
  8. package/.claude/commands/chat.md +504 -0
  9. package/.claude/commands/create.md +134 -18
  10. package/.claude/commands/fast.md +531 -0
  11. package/.claude/commands/one.md +12 -85
  12. package/.claude/commands/optimize.md +74 -0
  13. package/.claude/commands/plan.md +420 -373
  14. package/.claude/commands/review.md +99 -0
  15. package/.claude/commands/test.md +197 -0
  16. package/.claude/commands/validate.md +140 -0
  17. package/.claude/hooks/__pycache__/todo.cpython-312.pyc +0 -0
  18. package/.claude/hooks/auto-format.sh +106 -0
  19. package/.claude/hooks/formatting.py +187 -0
  20. package/.claude/hooks/ontology-validation.py +255 -0
  21. package/.claude/hooks/validate-imports.py +182 -0
  22. package/.claude/hooks/validate-ontology.py +140 -0
  23. package/CLAUDE.md +105 -0
  24. package/dist/commands/agent.d.ts +18 -0
  25. package/dist/commands/agent.d.ts.map +1 -0
  26. package/dist/commands/agent.js +271 -0
  27. package/dist/commands/agent.js.map +1 -0
  28. package/dist/commands/init.js +1 -1
  29. package/dist/commands/init.js.map +1 -1
  30. package/dist/index.js +20 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/lib/agent-detection.d.ts +19 -0
  33. package/dist/lib/agent-detection.d.ts.map +1 -0
  34. package/dist/lib/agent-detection.js +87 -0
  35. package/dist/lib/agent-detection.js.map +1 -0
  36. package/dist/lib/detect.d.ts +45 -0
  37. package/dist/lib/detect.d.ts.map +1 -0
  38. package/dist/lib/detect.js +221 -0
  39. package/dist/lib/detect.js.map +1 -0
  40. package/llms.txt +257 -0
  41. package/one/knowledge/cascading-context-specification.md +1617 -0
  42. package/one/knowledge/claude-code-integration.md +1293 -0
  43. package/one/knowledge/development-commands.md +251 -0
  44. package/one/knowledge/games-english.md +691 -0
  45. package/one/knowledge/games.md +1082 -0
  46. package/one/knowledge/guidelines.md +314 -0
  47. package/one/knowledge/parallel-agents.md +932 -0
  48. package/one/knowledge/performance.md +459 -0
  49. package/one/knowledge/troubleshooting.md +434 -0
  50. package/one/things/plans/dsl-claude-code.md +1011 -0
  51. package/one/things/plans/npx-agent-safety.md +785 -0
  52. package/one/things/plans/npx-agent.md +1089 -0
  53. package/one/things/plans/remove-backend-development-from-agents.md +1331 -0
  54. package/package.json +3 -2
  55. package/.claude/agents/AUDIT-agent-ops-alignment.md +0 -379
@@ -0,0 +1,1082 @@
1
+ # Games as Systems in ONE
2
+
3
+ ## Overview
4
+
5
+ Game design is fundamentally about designing systems that pose problems and create learning loops. The ONE 6-dimension ontology is perfectly suited to modeling games because both are systems-based.
6
+
7
+ This document maps Raph Koster's 12-step game design framework to ONE's 6 dimensions, showing how to build games, gamified experiences, and challenge systems within the platform.
8
+
9
+ **Core insight:** A game is a set of Things connected by Rules (Connections), producing Events (feedback and progression), with Knowledge (strategy and mastery) accumulated by People in Groups.
10
+
11
+ ---
12
+
13
+ ## The 12 Game Design Principles in ONE
14
+
15
+ ### 1. Fun = Mastery of Problems
16
+
17
+ **Definition:** Fun is the process of learning to predict outcomes and solve problems. Progress feels good because you're improving.
18
+
19
+ **ONE mapping:**
20
+
21
+ ```typescript
22
+ // Thing: Challenge or Game
23
+ {
24
+ type: "challenge",
25
+ name: "Boss Battle",
26
+ properties: {
27
+ difficulty: 5, // 1-10 scale
28
+ category: "combat", // mastery domain
29
+ skillRequired: ["timing", "pattern_recognition"],
30
+ }
31
+ }
32
+
33
+ // Events: track player mastery progression
34
+ {
35
+ type: "challenge_completed",
36
+ targetId: challengeId,
37
+ actorId: playerId,
38
+ metadata: {
39
+ attemptsNeeded: 3, // learning curve indicator
40
+ strategiesUsed: ["dodge_roll", "power_attack"],
41
+ timeToSolve: 120000, // ms
42
+ masteryLevel: "intermediate"
43
+ }
44
+ }
45
+
46
+ // Knowledge: store winning strategies for learning
47
+ {
48
+ type: "strategy",
49
+ label: "Boss Pattern #3",
50
+ content: "After third combo, boss is vulnerable for 2 seconds...",
51
+ linkedThings: [challengeId, playerId]
52
+ }
53
+ ```
54
+
55
+ **Best practice:** Track attempts, strategies employed, and time-to-solution. This data shows mastery progression.
56
+
57
+ ---
58
+
59
+ ### 2. Problems and Toys
60
+
61
+ **Definition:** A problem has constraints (rules) AND a goal. A toy has constraints but no goal. Games are toys that someone stuck a goal on.
62
+
63
+ **ONE mapping:**
64
+
65
+ ```typescript
66
+ // Thing: Problem (Toy with rules)
67
+ {
68
+ type: "game_system",
69
+ name: "Combat System",
70
+ properties: {
71
+ rules: {
72
+ maxHealth: 100,
73
+ attackDamage: 10,
74
+ dodgeChance: 0.2,
75
+ // Constraints define the playing space
76
+ },
77
+ goalType: null, // This is a TOY - just mechanics
78
+ }
79
+ }
80
+
81
+ // Thing: Challenge (Problem with goal)
82
+ {
83
+ type: "challenge",
84
+ name: "Defeat Goblin",
85
+ properties: {
86
+ systemId: combatSystemId,
87
+ goal: "reduce_enemy_health_to_zero",
88
+ winCondition: "enemyHealth <= 0",
89
+ loseCondition: "playerHealth <= 0 || timeElapsed > 300000"
90
+ }
91
+ }
92
+
93
+ // Connection: Challenge uses System
94
+ {
95
+ type: "uses",
96
+ from: challengeId,
97
+ to: combatSystemId,
98
+ metadata: {
99
+ rules: "inherit", // Challenge inherits combat rules
100
+ constraints: "apply"
101
+ }
102
+ }
103
+ ```
104
+
105
+ **Best practice:** Start with toys (just rules and mechanics). Layer goals on top to create problems. This lets players invent their own goals (emergent play).
106
+
107
+ ---
108
+
109
+ ### 3. Prediction and Uncertainty
110
+
111
+ **Definition:** Games are uncertainty machines. The player doesn't know the outcome until they try. Good problems have multiple solutions and require adaptation.
112
+
113
+ **ONE mapping:**
114
+
115
+ ```typescript
116
+ // Thing: Challenge with variance
117
+ {
118
+ type: "challenge",
119
+ name: "Maze Escape",
120
+ properties: {
121
+ deterministicSolution: false, // Multiple valid paths
122
+ uncertaintyFactors: [
123
+ "random_enemy_positions",
124
+ "random_item_placement",
125
+ "dynamic_obstacles"
126
+ ],
127
+ minSolutions: 5, // At least 5 different ways to win
128
+ maxSolutions: "infinite", // Open-ended problems are best
129
+ }
130
+ }
131
+
132
+ // Knowledge: store discovered solutions (player-generated)
133
+ {
134
+ type: "solution",
135
+ label: "Speed Run Route",
136
+ content: "Avoid north corridor, use hidden west passage...",
137
+ creator: playerId,
138
+ linkedThings: [challengeId],
139
+ discoveredAt: timestamp,
140
+ validation: "unverified" // Player discovered, not official
141
+ }
142
+
143
+ // Events: track solution diversity
144
+ {
145
+ type: "challenge_solved",
146
+ targetId: challengeId,
147
+ actorId: playerId,
148
+ metadata: {
149
+ solutionPath: ["door_west", "climb_wall", "exit_north"],
150
+ timeToSolve: 45000,
151
+ uniqueness: "novel" // First time anyone tried this path
152
+ }
153
+ }
154
+ ```
155
+
156
+ **Best practice:** Design problems where the first answer works temporarily, then breaks. Force players to develop deeper strategies. Track solution diversity—if everyone solves it the same way, add randomness or complexity.
157
+
158
+ ---
159
+
160
+ ### 4. Loops
161
+
162
+ **Definition:** The operational loop is predict → test → update hypothesis. The progression loop (spiral) is doing the same action in different situations to gradually master the system.
163
+
164
+ **ONE mapping:**
165
+
166
+ ```typescript
167
+ // Thing: Core Loop definition
168
+ {
169
+ type: "game_loop",
170
+ name: "Combat Loop",
171
+ properties: {
172
+ operationalLoop: {
173
+ steps: [
174
+ "perceive_enemy_state",
175
+ "form_hypothesis", // "They'll attack left"
176
+ "choose_action", // "I'll dodge right"
177
+ "see_result", // Hit/miss/partial
178
+ "update_model" // Refine hypothesis
179
+ ]
180
+ },
181
+ progressionLoop: {
182
+ repeatAction: "engage_enemy",
183
+ varyingSituation: [
184
+ "different_enemy_types",
185
+ "different_health_levels",
186
+ "time_pressure"
187
+ ],
188
+ skillExercised: "pattern_recognition"
189
+ }
190
+ }
191
+ }
192
+
193
+ // Events: track loop iterations
194
+ {
195
+ type: "loop_iteration",
196
+ targetId: challengeId,
197
+ actorId: playerId,
198
+ metadata: {
199
+ loopType: "operational",
200
+ iteration: 15,
201
+ hypothesis: "Enemy attacks after 3 steps",
202
+ action: "dodge_right",
203
+ result: "hit",
204
+ updatedModel: "Enemy attacks after 4 steps"
205
+ }
206
+ }
207
+
208
+ // Connection: Challenge contains Loop
209
+ {
210
+ type: "contains",
211
+ from: challengeId,
212
+ to: gameLoopId,
213
+ metadata: {
214
+ loopsRequired: "10-20", // Spiral upward through iterations
215
+ skillGrowth: "exponential"
216
+ }
217
+ }
218
+ ```
219
+
220
+ **Best practice:** The verbs stay the same ("punch," "dodge," "block"), but situations change. Spiraling, not repeating. Track hypothesis updates as learning signals.
221
+
222
+ ---
223
+
224
+ ### 5. Feedback
225
+
226
+ **Definition:** Players need to know (1) what actions are available, (2) that they used an action, (3) how it changed the state, (4) whether it helped.
227
+
228
+ **ONE mapping:**
229
+
230
+ ```typescript
231
+ // Thing: Feedback System
232
+ {
233
+ type: "feedback_system",
234
+ name: "Combat Feedback",
235
+ properties: {
236
+ affordances: {
237
+ availableActions: ["punch", "kick", "dodge", "block"],
238
+ presentation: "buttons_on_hud"
239
+ },
240
+ actionConfirmation: {
241
+ sound: "punch.mp3",
242
+ animation: "punch_animation",
243
+ haptic: "vibrate_200ms"
244
+ },
245
+ stateChange: {
246
+ enemyHealth: "decrease_visible",
247
+ playerStamina: "deplete_bar",
248
+ hitEffect: "damage_number_popup"
249
+ },
250
+ evaluation: {
251
+ good: "green_number_+_sound",
252
+ bad: "red_number_−_sound",
253
+ neutral: "gray_number_no_sound"
254
+ }
255
+ }
256
+ }
257
+
258
+ // Events: every action must produce feedback
259
+ {
260
+ type: "action_performed",
261
+ targetId: challengeId,
262
+ actorId: playerId,
263
+ metadata: {
264
+ action: "punch",
265
+ feedback: {
266
+ affordanceShown: true,
267
+ confirmationTriggered: true,
268
+ stateChangeVisible: true,
269
+ evaluationClear: true,
270
+ },
271
+ quality: "excellent" // All four feedback layers present
272
+ }
273
+ }
274
+ ```
275
+
276
+ **Best practice:** Feedback is where you layer in delight. Make it surprising, juicy, delightful. But also make it clear—players must understand causality.
277
+
278
+ ---
279
+
280
+ ### 6. Variation and Escalation
281
+
282
+ **Definition:** The same core problem in different situations. As players master one variation, introduce new ones. This creates the learning ladder.
283
+
284
+ **ONE mapping:**
285
+
286
+ ```typescript
287
+ // Thing: Problem (abstract)
288
+ {
289
+ type: "problem_category",
290
+ name: "Resource Management",
291
+ properties: {
292
+ coreChallenge: "allocate_limited_resources_to_goals",
293
+ abstractForm: "maximize_output_minimize_waste"
294
+ }
295
+ }
296
+
297
+ // Things: Specific instances with escalation
298
+ {
299
+ type: "challenge",
300
+ name: "Simple Farming",
301
+ properties: {
302
+ problem: "resource_management",
303
+ difficulty: 1,
304
+ variables: {
305
+ resources: ["water", "seeds"],
306
+ complexity: "low",
307
+ timePressure: "none"
308
+ }
309
+ }
310
+ },
311
+ {
312
+ type: "challenge",
313
+ name: "Complex Farm (Drought)",
314
+ properties: {
315
+ problem: "resource_management",
316
+ difficulty: 5,
317
+ variables: {
318
+ resources: ["water", "seeds", "pesticides", "labor"],
319
+ complexity: "high",
320
+ timePressure: "harsh"
321
+ }
322
+ }
323
+ }
324
+
325
+ // Connection: Challenge progression
326
+ {
327
+ type: "unlocks",
328
+ from: simpleFarmId,
329
+ to: complexFarmId,
330
+ metadata: {
331
+ unlockCondition: "masterySoFar >= 'intermediate'",
332
+ escalationPattern: "addComplexity"
333
+ }
334
+ }
335
+
336
+ // Events: track when old strategies stop working
337
+ {
338
+ type: "strategy_invalidated",
339
+ targetId: complexFarmId,
340
+ actorId: playerId,
341
+ metadata: {
342
+ previousStrategy: "water_everything_equally",
343
+ failurePoint: "drought_conditions",
344
+ newStrategyRequired: "prioritize_by_crop_value"
345
+ }
346
+ }
347
+ ```
348
+
349
+ **Best practice:** Design problem families, not isolated challenges. Each instance should use the core loop but vary topology/constraints. Track when players must abandon old strategies.
350
+
351
+ ---
352
+
353
+ ### 7. Pacing and Balance
354
+
355
+ **Definition:** Learning curve should rise (challenge increases), hit peaks (boss moments), then give breathers. Intensity should match player skill at each moment.
356
+
357
+ **ONE mapping:**
358
+
359
+ ```typescript
360
+ // Thing: Progression curve
361
+ {
362
+ type: "progression_design",
363
+ name: "Campaign Pacing",
364
+ properties: {
365
+ shape: "sine_wave",
366
+ phases: [
367
+ {
368
+ name: "Intro",
369
+ difficulty: 1,
370
+ duration: 300000,
371
+ type: "tutorial"
372
+ },
373
+ {
374
+ name: "Build",
375
+ difficulty: 2-4,
376
+ duration: 600000,
377
+ type: "skill_practice"
378
+ },
379
+ {
380
+ name: "Peak",
381
+ difficulty: 7,
382
+ duration: 120000,
383
+ type: "boss_challenge"
384
+ },
385
+ {
386
+ name: "Breather",
387
+ difficulty: 3,
388
+ duration: 180000,
389
+ type: "story_interlude"
390
+ },
391
+ {
392
+ name: "Rise",
393
+ difficulty: 5-6,
394
+ duration: 480000,
395
+ type: "escalation"
396
+ }
397
+ ]
398
+ }
399
+ }
400
+
401
+ // Connection: Challenge in progression curve
402
+ {
403
+ type: "in_sequence",
404
+ from: challengeId,
405
+ to: progressionDesignId,
406
+ metadata: {
407
+ sequence: 15,
408
+ intendedDifficulty: 4,
409
+ actualDifficulty: 3.2, // Measured from player data
410
+ differenceFactor: -0.8, // Slightly easier than intended
411
+ adjustment: "increase_for_next"
412
+ }
413
+ }
414
+
415
+ // Events: difficulty feedback loop
416
+ {
417
+ type: "difficulty_measured",
418
+ targetId: challengeId,
419
+ metadata: {
420
+ completionRate: 0.92, // 92% of players beat it
421
+ avgAttemppts: 2.1,
422
+ engagementLevel: "high",
423
+ recommendation: "slightly_harder_next_challenge"
424
+ }
425
+ }
426
+ ```
427
+
428
+ **Best practice:** Monitor completion rates and attempts. If completion > 95%, next challenge is too easy. If < 50%, too hard. Track the tension curve shape across your campaign.
429
+
430
+ ---
431
+
432
+ ### 8. Games are Made of Games
433
+
434
+ **Definition:** Complex games are networks of simpler loops. Each loop feeds into others. Map this as a dependency graph.
435
+
436
+ **ONE mapping:**
437
+
438
+ ```typescript
439
+ // Thing: Simple loop #1
440
+ {
441
+ type: "game_loop",
442
+ name: "Aiming Loop",
443
+ properties: {
444
+ input: "mouse_position",
445
+ output: "crosshair_position"
446
+ }
447
+ }
448
+
449
+ // Thing: Simple loop #2
450
+ {
451
+ type: "game_loop",
452
+ name: "Firing Loop",
453
+ properties: {
454
+ input: "click_timing",
455
+ output: "projectile_spawned"
456
+ }
457
+ }
458
+
459
+ // Thing: Complex loop (FPS)
460
+ {
461
+ type: "game_loop",
462
+ name: "Combat Loop",
463
+ properties: {
464
+ subLoops: ["aiming", "firing", "movement", "reload"],
465
+ composition: "sequential_and_parallel"
466
+ }
467
+ }
468
+
469
+ // Connections: Show loop dependencies
470
+ [
471
+ {
472
+ type: "contains",
473
+ from: combatLoopId,
474
+ to: aimingLoopId,
475
+ metadata: { outputFeeds: "input_for_firing" }
476
+ },
477
+ {
478
+ type: "contains",
479
+ from: combatLoopId,
480
+ to: firingLoopId,
481
+ metadata: { outputFeeds: "projectile_spawned" }
482
+ }
483
+ ]
484
+
485
+ // Knowledge: Map the problem web
486
+ {
487
+ type: "systems_map",
488
+ label: "FPS Loop Diagram",
489
+ content: "Aiming → Firing → Hit Detection → Damage → Enemy Reaction...",
490
+ linkedThings: [combatLoopId, aimingLoopId, firingLoopId]
491
+ }
492
+ ```
493
+
494
+ **Best practice:** Diagram your loops before coding. Show how output of one becomes input to another. This is your systems design specification.
495
+
496
+ ---
497
+
498
+ ### 9. Actual Systems Design
499
+
500
+ **Definition:** Choose from known problem categories and recombine them. The universe of games is made from a smaller set of "elemental problems."
501
+
502
+ **ONE mapping:**
503
+
504
+ ```typescript
505
+ // Things: Elemental problem types
506
+ {
507
+ type: "problem_type",
508
+ name: "Puzzle: Mathematical Complexity",
509
+ properties: {
510
+ category: "cognition",
511
+ examples: ["A* pathfinding", "resource_allocation", "spatial_reasoning"],
512
+ gameExamples: ["Tetris", "Sudoku", "Portal"]
513
+ }
514
+ },
515
+ {
516
+ type: "problem_type",
517
+ name: "Social: Understanding Others",
518
+ properties: {
519
+ category: "interpersonal",
520
+ examples: ["predict_behavior", "coordinate_strategy", "read_emotions"],
521
+ gameExamples: ["Poker", "Trading", "Diplomacy"]
522
+ }
523
+ },
524
+ {
525
+ type: "problem_type",
526
+ name: "Physical: Mastering Body/Reflexes",
527
+ properties: {
528
+ category: "motor",
529
+ examples: ["timing", "precision", "rhythm"],
530
+ gameExamples: ["Flappy Bird", "Dark Souls", "Guitar Hero"]
531
+ }
532
+ }
533
+
534
+ // Things: Game designs that combine problem types
535
+ {
536
+ type: "game_design",
537
+ name: "Chess",
538
+ properties: {
539
+ primaryProblems: [
540
+ "mathematical_complexity", // Evaluate board states
541
+ "social_modeling" // Predict opponent moves
542
+ ],
543
+ secondaryProblems: []
544
+ }
545
+ }
546
+
547
+ // Connection: Design uses problems
548
+ {
549
+ type: "combines",
550
+ from: gameDesignId,
551
+ to: problemTypeId,
552
+ metadata: {
553
+ weight: 0.7, // How central this problem is
554
+ reskinVariations: ["chess_3d", "chess_with_time", "chess_with_chaos"]
555
+ }
556
+ }
557
+ ```
558
+
559
+ **Best practice:** Build a catalog of solved problems. Most "new" game mechanics are old problems with new skins. Combine 2-3 elemental problems to create novel games.
560
+
561
+ ---
562
+
563
+ ### 10. Dressing and Experience
564
+
565
+ **Definition:** The presentation (art, story, audio, theme) frames how the player perceives the problem. Same problem, different dressing = different game.
566
+
567
+ **ONE mapping:**
568
+
569
+ ```typescript
570
+ // Thing: Core problem (naked)
571
+ {
572
+ type: "core_mechanic",
573
+ name: "Tower Defense Loop",
574
+ properties: {
575
+ abstractProblem: "allocate_resources_to_defend_positions",
576
+ nouns: ["attacker", "defender", "resource", "position"]
577
+ }
578
+ }
579
+
580
+ // Thing: Dressing #1
581
+ {
582
+ type: "game_dressing",
583
+ name: "Medieval Fantasy Tower Defense",
584
+ properties: {
585
+ theme: "fantasy",
586
+ setting: "castle_under_siege",
587
+ nounMapping: {
588
+ attacker: "orc_horde",
589
+ defender: "knight",
590
+ resource: "gold_coins",
591
+ position: "tower"
592
+ },
593
+ metaphors: ["defend_your_homeland", "build_fortifications"],
594
+ narrative: "heroic_defense",
595
+ art: "medieval_fantasy_aesthetic",
596
+ audio: "dramatic_orchestral"
597
+ }
598
+ }
599
+
600
+ // Thing: Dressing #2
601
+ {
602
+ type: "game_dressing",
603
+ name: "Sci-Fi Tower Defense",
604
+ properties: {
605
+ theme: "cyberpunk",
606
+ setting: "space_station_under_attack",
607
+ nounMapping: {
608
+ attacker: "alien_swarm",
609
+ defender: "robot_drone",
610
+ resource: "energy_credits",
611
+ position: "reactor"
612
+ },
613
+ metaphors: ["defend_the_station", "manage_power_grid"],
614
+ narrative: "desperate_survival",
615
+ art: "neon_sci_fi",
616
+ audio: "electronic_synth"
617
+ }
618
+ }
619
+
620
+ // Connection: Dressing applies to mechanic
621
+ {
622
+ type: "applies_to",
623
+ from: dressingId,
624
+ to: coreMechanicId,
625
+ metadata: {
626
+ problemSame: true,
627
+ experienceCompletely: "different"
628
+ }
629
+ }
630
+
631
+ // Knowledge: Metaphor analysis
632
+ {
633
+ type: "metaphor_study",
634
+ label: "Tower Defense Reskinning",
635
+ content: "Same loop, different metaphors change emotional resonance...",
636
+ linkedThings: [coreMechanicId, dressingId1, dressingId2]
637
+ }
638
+ ```
639
+
640
+ **Best practice:** Design the problem first. Then dress it thematically. The same mechanic can evoke wildly different emotions based on dressing. Track which dressings engage which audience segments.
641
+
642
+ ---
643
+
644
+ ### 11. Motivations
645
+
646
+ **Definition:** Different people enjoy different problem types. Motivations are psychographic filters—who is this game for?
647
+
648
+ **ONE mapping:**
649
+
650
+ ```typescript
651
+ // Things: Motivation profiles
652
+ {
653
+ type: "player_motivation",
654
+ name: "Mastery",
655
+ properties: {
656
+ description: "Enjoy solving hard problems, optimizing strategies",
657
+ preferredProblems: [
658
+ "mathematical_complexity",
659
+ "puzzle_solving",
660
+ "skill_expression"
661
+ ],
662
+ appealsTo: ["engineers", "mathematicians", "speedrunners"],
663
+ gameExamples: ["StarCraft", "Dota 2", "Magic: The Gathering"],
664
+ psychographics: {
665
+ mindset: "growth_oriented",
666
+ competitiveness: "high",
667
+ patience: "high",
668
+ socialPreference: "competitive"
669
+ }
670
+ }
671
+ },
672
+ {
673
+ type: "player_motivation",
674
+ name: "Story & Immersion",
675
+ properties: {
676
+ description: "Enjoy narrative, world-building, emotional investment",
677
+ preferredProblems: [
678
+ "narrative_choice",
679
+ "character_understanding",
680
+ "world_exploration"
681
+ ],
682
+ appealsTo: ["writers", "readers", "empathetic_players"],
683
+ gameExamples: ["The Last of Us", "Disco Elysium", "Baldur's Gate 3"],
684
+ psychographics: {
685
+ mindset: "exploratory",
686
+ competitiveness: "low",
687
+ patience: "high",
688
+ socialPreference: "cooperative"
689
+ }
690
+ }
691
+ }
692
+
693
+ // Connection: Game targets motivation
694
+ {
695
+ type: "targets",
696
+ from: gameDesignId,
697
+ to: playerMotivationId,
698
+ metadata: {
699
+ primaryTarget: true,
700
+ weight: 0.8
701
+ }
702
+ }
703
+
704
+ // People: Player profiles
705
+ {
706
+ type: "creator", // Or customer, learner, etc.
707
+ role: "player",
708
+ properties: {
709
+ motivations: ["mastery", "competitive_achievement"],
710
+ skillLevel: "advanced",
711
+ playstyle: "min_max_optimization",
712
+ preferredGenres: ["strategy", "roguelikes"]
713
+ }
714
+ }
715
+ ```
716
+
717
+ **Best practice:** Define your audience's motivations upfront. Build game pillars around those motivations. This makes scoping decisions easier and marketing more effective.
718
+
719
+ ---
720
+
721
+ ### 12. It's Simple But Hard
722
+
723
+ **Definition:** Understanding all 11 steps is more valuable than expertise in one. Each depends on others. Mastery requires growth across the whole system.
724
+
725
+ **ONE mapping:**
726
+
727
+ ```typescript
728
+ // Thing: Game design discipline
729
+ {
730
+ type: "discipline",
731
+ name: "Game Design",
732
+ properties: {
733
+ components: [
734
+ "fun_psychology",
735
+ "systems_thinking",
736
+ "uncertainty_design",
737
+ "loop_architecture",
738
+ "feedback_design",
739
+ "content_variation",
740
+ "pacing_science",
741
+ "composition",
742
+ "problem_taxonomy",
743
+ "experience_design",
744
+ "psychology_motivations",
745
+ "mastery_and_depth"
746
+ ],
747
+ interdependency: "fractal", // Each part contains all others
748
+ masteryCurve: "asymptotic", // Never finished learning
749
+ depth: "infinite"
750
+ }
751
+ }
752
+
753
+ // Events: Designer growth
754
+ {
755
+ type: "designer_milestone",
756
+ targetId: designerId,
757
+ metadata: {
758
+ gainsUnderstanding: [
759
+ "fun_loops",
760
+ "problem_design",
761
+ "feedback_layers"
762
+ ],
763
+ timestamp: Date.now(),
764
+ learningSource: "practice_and_failure"
765
+ }
766
+ }
767
+
768
+ // Knowledge: Design patterns catalog
769
+ {
770
+ type: "pattern_library",
771
+ label: "Game Design Patterns",
772
+ content: "Documented reusable solutions for common problems...",
773
+ categories: [
774
+ "reward_systems",
775
+ "progression_mechanics",
776
+ "difficulty_curves",
777
+ "loop_composition"
778
+ ]
779
+ }
780
+ ```
781
+
782
+ **Best practice:** Treat game design like a game itself. You're at the edge of your mastery. Embrace failure as learning. Every shipped game makes the next one easier.
783
+
784
+ ---
785
+
786
+ ## Applying Games to ONE: Practical Examples
787
+
788
+ ### Example 1: Gamified Learning Platform
789
+
790
+ ```typescript
791
+ // Group: Learning Organization
792
+ {
793
+ type: "organization",
794
+ name: "Code Academy",
795
+ parentGroupId: platformId
796
+ }
797
+
798
+ // Things: Courses as problem hierarchies
799
+ {
800
+ type: "course",
801
+ name: "JavaScript Fundamentals",
802
+ groupId: codeAcademyId,
803
+ properties: {
804
+ difficulty: 1,
805
+ problemType: "skill_building",
806
+ loopsRequired: 20
807
+ }
808
+ },
809
+ {
810
+ type: "lesson",
811
+ name: "Functions & Scope",
812
+ groupId: codeAcademyId,
813
+ properties: {
814
+ difficulty: 1,
815
+ loopType: "operational",
816
+ feedback: {
817
+ codeExecution: true,
818
+ errorMessages: "helpful",
819
+ hints: "on_demand"
820
+ }
821
+ }
822
+ },
823
+ {
824
+ type: "challenge",
825
+ name: "Build a Calculator",
826
+ groupId: codeAcademyId,
827
+ properties: {
828
+ difficulty: 3,
829
+ problemCategory: "composition",
830
+ requiresLoops: ["function_definition", "variable_scope", "control_flow"]
831
+ }
832
+ }
833
+
834
+ // Events: Track learning progression
835
+ {
836
+ type: "challenge_completed",
837
+ targetId: calculatorChallengeId,
838
+ actorId: studentId,
839
+ metadata: {
840
+ attemptsNeeded: 5,
841
+ strategiesUsed: ["test_driven_development", "incremental_building"],
842
+ timeToSolve: 1800000,
843
+ masteryLevel: "intermediate",
844
+ feedbackQuality: "excellent"
845
+ }
846
+ }
847
+
848
+ // Knowledge: Community solutions
849
+ {
850
+ type: "solution",
851
+ label: "Elegant Calculator Implementation",
852
+ creator: advancedStudentId,
853
+ linkedThings: [calculatorChallengeId],
854
+ properties: {
855
+ approach: "object_oriented",
856
+ elegance: "high",
857
+ readability: "high"
858
+ }
859
+ }
860
+ ```
861
+
862
+ ### Example 2: Product Competition (Gamified Commerce)
863
+
864
+ ```typescript
865
+ // Things: Competition structure
866
+ {
867
+ type: "competition",
868
+ name: "Q4 Sales Challenge",
869
+ groupId: salesTeamId,
870
+ properties: {
871
+ problemType: "resource_management",
872
+ duration: 7776000000, // 3 months in ms
873
+ pacing: {
874
+ phases: ["build", "peak", "breather", "final_push"],
875
+ difficultyProgression: "sigmoid"
876
+ }
877
+ }
878
+ },
879
+ {
880
+ type: "leaderboard",
881
+ name: "Sales Challenge Leaderboard",
882
+ groupId: salesTeamId,
883
+ properties: {
884
+ metric: "revenue_generated",
885
+ updateFrequency: "real_time",
886
+ visibility: "public"
887
+ }
888
+ }
889
+
890
+ // Events: Track competition moments
891
+ {
892
+ type: "sale_recorded",
893
+ targetId: customerId,
894
+ actorId: salesPersonId,
895
+ metadata: {
896
+ amount: 5000,
897
+ timestamp: Date.now(),
898
+ competitionId: challengeId,
899
+ leaderboardPosition: 3,
900
+ feedbackTrigger: "notify_on_milestone" // Leaderboard movement
901
+ }
902
+ }
903
+
904
+ // Connections: Team dynamics
905
+ {
906
+ type: "collaborates_with",
907
+ from: salesPersonId,
908
+ to: coachId,
909
+ metadata: {
910
+ roleInGame: "advisor",
911
+ strategySupport: true
912
+ }
913
+ }
914
+ ```
915
+
916
+ ### Example 3: Community Quest System
917
+
918
+ ```typescript
919
+ // Thing: Quest hierarchy
920
+ {
921
+ type: "quest_line",
922
+ name: "Save the Village",
923
+ groupId: gameGuildId,
924
+ properties: {
925
+ problemTypes: ["combat", "social", "puzzle"],
926
+ loopsRequired: 15,
927
+ expectedDuration: 300000,
928
+ dressing: {
929
+ theme: "fantasy",
930
+ narrative: "heroic_journey",
931
+ tone: "adventure"
932
+ }
933
+ }
934
+ },
935
+ {
936
+ type: "quest",
937
+ name: "Defeat the Goblin King",
938
+ groupId: gameGuildId,
939
+ properties: {
940
+ partOf: questLineId,
941
+ difficulty: 5,
942
+ feedbackElements: {
943
+ combatAnimations: true,
944
+ damageNumbers: true,
945
+ victoryFanfare: true
946
+ }
947
+ }
948
+ }
949
+
950
+ // Connections: Progression gates
951
+ {
952
+ type: "requires_completion_of",
953
+ from: questId2,
954
+ to: questId1,
955
+ metadata: {
956
+ unlockCondition: "victory",
957
+ escalationGap: 1 // Next quest is 1 difficulty level higher
958
+ }
959
+ }
960
+
961
+ // Events: Social feedback loop
962
+ {
963
+ type: "quest_completed",
964
+ targetId: questId,
965
+ actorId: playerId,
966
+ metadata: {
967
+ completionTime: 45000,
968
+ loopsCompleted: 12,
969
+ masteryDisplayed: "advanced",
970
+ notification: {
971
+ broadcastTo: ["guild_chat", "friends", "leaderboard"]
972
+ }
973
+ }
974
+ }
975
+ ```
976
+
977
+ ---
978
+
979
+ ## Design Checklist for Games in ONE
980
+
981
+ Before launching a game or gamified experience:
982
+
983
+ ### Phase 1: Foundation
984
+ - [ ] Define primary problem type(s) (mathematical, social, physical, or combo)
985
+ - [ ] List all constraints (rules, resources, time limits)
986
+ - [ ] Define clear win/lose conditions
987
+ - [ ] Identify if it's a toy (just rules) or problem (with goals)
988
+
989
+ ### Phase 2: Loops
990
+ - [ ] Map the operational loop (perceive → hypothesize → test → learn)
991
+ - [ ] Define the progression loop (same actions, varied situations)
992
+ - [ ] Show how loops nest and compose into larger systems
993
+ - [ ] Create a loop diagram
994
+
995
+ ### Phase 3: Feedback
996
+ - [ ] Affordances: Show what actions are available
997
+ - [ ] Confirmation: Make actions feel responsive
998
+ - [ ] State change: Show how the world changed
999
+ - [ ] Evaluation: Make it clear if you succeeded or failed
1000
+
1001
+ ### Phase 4: Progression
1002
+ - [ ] Define difficulty curve (sine wave shape)
1003
+ - [ ] Plan variation escalation (complexity increases over time)
1004
+ - [ ] Identify break points (where old strategies stop working)
1005
+ - [ ] Set pacing breathers (recovery moments)
1006
+
1007
+ ### Phase 5: Psychology
1008
+ - [ ] Identify target motivation profile(s)
1009
+ - [ ] Design dressing to match theme
1010
+ - [ ] Plan narrative/world-building if relevant
1011
+ - [ ] Consider cultural resonance
1012
+
1013
+ ### Phase 6: Measurement
1014
+ - [ ] Define success metrics (completion rate, attempts, time-to-solve)
1015
+ - [ ] Plan data collection (Events for every action)
1016
+ - [ ] Set target completion rates (60-90% range is good)
1017
+ - [ ] Plan feedback loops for iteration
1018
+
1019
+ ### Phase 7: Scalability
1020
+ - [ ] Can variations be procedurally generated?
1021
+ - [ ] How does this scale to 1M players?
1022
+ - [ ] What happens at different skill levels?
1023
+ - [ ] Plan difficulty sliders if needed
1024
+
1025
+ ---
1026
+
1027
+ ## Common Mistakes
1028
+
1029
+ ### Mistake 1: No Clear Problem
1030
+ **Problem:** Just a toy with no goal. Players get bored instantly.
1031
+ **Solution:** Add a clear, meaningful goal. Make players care about winning.
1032
+
1033
+ ### Mistake 2: No Feedback
1034
+ **Problem:** Players can't tell if they're winning or losing.
1035
+ **Solution:** Implement all four feedback layers (afford, confirm, state, evaluate).
1036
+
1037
+ ### Mistake 3: No Escalation
1038
+ **Problem:** Players solve the problem once, then it's boring.
1039
+ **Solution:** Vary situations as they master them. Add complications.
1040
+
1041
+ ### Mistake 4: Wrong Pacing
1042
+ **Problem:** Spikes too hard too fast, or stays easy forever.
1043
+ **Solution:** Monitor completion rates. Aim for 70-80% on each challenge.
1044
+
1045
+ ### Mistake 5: Wrong Audience
1046
+ **Problem:** Building a puzzle game for story lovers.
1047
+ **Solution:** Understand your audience's motivations upfront.
1048
+
1049
+ ---
1050
+
1051
+ ## Integration with ONE Ontology
1052
+
1053
+ Games map cleanly to all 6 dimensions:
1054
+
1055
+ | Dimension | Game Component | Example |
1056
+ |-----------|---|---|
1057
+ | **Groups** | Guilds, clans, leagues | Game universe hierarchy |
1058
+ | **People** | Players, designers, streamers | Roles in the gaming ecosystem |
1059
+ | **Things** | Challenges, quests, items, power-ups | All nouns in the game |
1060
+ | **Connections** | Ownership, relationships, team membership | Who has what, who knows whom |
1061
+ | **Events** | Every action, score change, achievement | Complete audit trail of gameplay |
1062
+ | **Knowledge** | Strategies, tutorials, lore | What players learn and discover |
1063
+
1064
+ Every game mechanic becomes queryable, analyzable, and connectable to other systems.
1065
+
1066
+ ---
1067
+
1068
+ ## Further Reading
1069
+
1070
+ - **Raph Koster, "A Theory of Fun for Game Design"** – The foundational work this document is based on
1071
+ - **Nicole Lazzaro, "Why We Play Games"** – Motivation types
1072
+ - **Roger Caillois, "Man, Play and Games"** – Problem type categorization
1073
+ - **Richard Garfield, "Characteristics of Games"** – Problem composition
1074
+ - **Donovan Cook, "The Fundamentals of Game Design"** – Systems thinking deep dive
1075
+
1076
+ ---
1077
+
1078
+ ## Key Takeaway
1079
+
1080
+ Games are systems. Systems can be modeled with the 6-dimension ontology. Understanding the 12 principles of game design makes you better at designing any system—games, learning platforms, loyalty programs, or organizational workflows.
1081
+
1082
+ The fun is in the learning. The learning is in the problems. The problems are in the loops. Master the loops, and you can build anything.