Логотип Implementing Gameplay Invariants

Implementing Gameplay Invariants

Спільнота
abagames
implementing-gameplay-invariants

Translates game design prose into engine-neutral implementation invariants and validation checks. Use when implementing or reviewing game mechanics where idle, hold-only, mashing, spam, safe waiting, or repeated scoring pulses must be prevented from dominating skilled play.

Огляд

Видавецьabagames
Репозиторійagentic-gamedev-skills
Назва навичкиimplementing-gameplay-invariants
Зірки
39
Форки
6
Файли в пакеті
1
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: abagames. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Implementing Gameplay Invariants у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/implementing-gameplay-invariants
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/abagames/agentic-gamedev-skills.git /tmp/agentic-gamedev-skills
mkdir -p .claude/skills
cp -r /tmp/agentic-gamedev-skills/.agents/skills/implementing-gameplay-invariants .claude/skills/implementing-gameplay-invariants
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Implementing Gameplay Invariants в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Implementing Gameplay Invariants, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Implementing Gameplay Invariants не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Implementing Gameplay Invariants

Purpose

Turn design intent into concrete implementation constraints. This skill sits between game design and engine-specific coding: it converts statements such as "mashing should be worse than timed play" into invariants, implementation patterns, and validation checks that can be applied in any engine.

Use this skill even without designing-mini-games when a game spec contains risk/reward prose but does not say how the code will enforce it.

If the game has no design spec yet, start with designing-mini-games (it covers one-button and multi-input briefs).

When to Use

  • Implementing a game mechanic from a design spec or README.
  • Reviewing code against a design spec before running a balance test.
  • A checker or simulation shows mono_dominant, tied, or repeated-input dominance, and you already know which design promise needs a code-level invariant.
  • The design mentions idle weakness, hold-only weakness, mashing weakness, safe waiting, cooldowns, combos, scoring pulses, shields, charges, or invulnerability.
  • The implementation is engine-specific, but the failure mode is rule-level rather than API-level.

When Not to Use

  • Pure rendering, asset, UI, audio, build, or engine API work.
  • Numeric tuning after the rule-level invariants are already enforced.
  • Open-ended game design before the core rules and scoring events are known.
  • Choosing a balance-repair strategy from telemetry. Start with evaluating-gameplay-balance when a failure has occurred and you need to diagnose the cause or choose a balance pattern; use this skill after that when the chosen fix needs a new code-level invariant.

Required Inputs

  • The design spec or README.
  • The input policies that must be worse than skilled play: idle, hold-only, mashing, always-left/right, alternating spam, safe waiting, or equivalent.
  • The intended skilled pattern.
  • The scoring event, game-over condition, and any safety/power state.
  • Any deterministic validation seed or known initial random sequence used by the project checker.
  • Optional telemetry or checker output.

Procedure

  1. Extract each design promise that must be true in code:

    • "Idle is weak"
    • "Hold-only is weak"
    • "Mashing is weak"
    • "Score comes from timing"
    • "Shield is safe but costly"
    • "Landing / pulse / reflection rewards precision"
  2. Rewrite each promise as an invariant:

    • Use testable language: "A tap within 12 frames of the previous tap cannot score", not "mashing is bad".
    • Include the scope: per input, per target, per hazard, per landing, per combo, per second, or per resource unit.
    • Include the consequence: no score, cooldown, exposure, resource drain, combo reset, missed aim, or visible positional cost.
    • When a scoring object can persist across frames or inputs, define its lifecycle explicitly: spawn/start, active scoring window, scored/consumed state, expiry/removal, and whether a new lifecycle can score again.
    • For repeated pulse, reflection, AoE, shield, or release scoring, require per-opportunity identity in validation logs when possible (targetId, pulseId, or equivalent) so duplicate scoring is detectable.
  3. Run a policy-specific precheck before coding when the mechanic can be reasoned about from the spec:

    • For each bad policy, write whether it should die, time out safely, or survive with capped score.
    • If a bad policy can survive indefinitely, the invariant must cap or starve its score; death cannot be the weakness.
    • If random first hazards, gaps, spawns, or routes affect survivability, preview the project's deterministic validation seed and confirm the first 5-10 outcomes match the invariant assumptions.
  4. Choose an implementation pattern from references/invariant-patterns.md if needed.

  5. Check for scoring loopholes:

    • No raw score per input.
    • No reusable pulse that can score repeatedly without a new hazard/opportunity.
    • No survival scoring while the player is in a safe/low-skill state unless survival is the main mastery signal.
    • No permanent safety state with uncapped scoring.
    • No long-lived scored object that remains eligible for future score unless its lifecycle visibly resets.
    • No total-score-only validation for spam fixes; also compare score per unique opportunity or unique target when the mechanic can rescore the same object.
  6. Add or review the implementation:

    • Engine-specific code belongs in the engine skill or project code.
    • This skill defines what must be true, not the exact rendering or API calls.
  7. Validate:

    • Run available monotonous policies and exploratory/skilled policies.
    • Prefer invariant-specific probes before the full global ratio check: NoInput score/death, HoldOnly score/death, SpamPress scoring events, entity counts, resource drain, and score-per-opportunity caps.
    • For pulse/reflection/AoE fixes, log accepted/rejected inputs, pulse age or cooldown state, target/opportunity id, already-scored state, score delta, and max active entity count.
    • Define the probe's pass/fail bound before editing when possible, such as SpamPress score per unique target below a scripted skilled cycle, HoldOnly score capped below a stated rate, or max active entities below a fixed limit.
    • Confirm the known bad policy scores lower than skilled play.
    • If no simulator exists, write a short human-readable validation checklist and mark the gap.

Invariant Template

Use this compact form in specs, PR notes, or code reviews:

markdown
- Design promise: <prose from spec>
- Implementation invariant: <testable rule>
- Pattern: <pattern ID from references/invariant-patterns.md, e.g. cooldown, per-target-cap, resource-drain>
- Readout: <the persistent on-screen indicator that lets the player act on this rule — or why this rule changes no player decision>
- Precheck: <whether the bad policy dies, survives safely, or must be score-capped>
- Validation: <policy, telemetry, or seeded scenario that should fail if the invariant is broken>

Readout is not documentation of the rule; it is part of the rule. An invariant that changes what the player should do, and is not drawn, is indistinguishable from an unfair game — see "Invisible rule" below.

Common Failure Modes

  • Prose-only weakness: the README says mashing is bad, but the code gives every tap a scoring chance.
  • Reusable scoring pulse: a landing, shield, AoE, or reflection pulse can score many times from repeated input.
  • Safe scoring: the safest state also earns points or preserves a multiplier.
  • Hidden tester patch: code special-cases a bad policy instead of creating visible game rules.
  • Numeric-only fix: spawn rates or score values are changed without enforcing the missing invariant.
  • Unbounded entities: scoring or hazard objects live too long, causing slow validation and spam score loops.
  • Seed-specific surprise: the validation seed creates early hazards/gaps that violate design assumptions, and the issue is found only after a full GA run.
  • Invariant conflict: the design requires mutually exclusive invariants (e.g., "idle must die" and "survival is the only scoring"). If resolving the conflict requires changing the Core Experience or discarding the tag relationship, report that the design is unsalvageable and recommend a Failure Report.
  • Invisible rule: the invariant is implemented correctly, passes every value assertion, and is never drawn on screen. This is the hardest class to catch and empirically one of the most common — in one measured project, four of nine shipped-and-fixed bugs were this same defect (the controls, an overload trigger, and a clear condition were each perfectly correct in the simulation and invisible to the player). Value assertions cannot detect it by construction: the simulation is right. Only a readout requirement plus a screenshot can.

Validation

A change is valid when:

  • Each design promise has at least one implementation invariant.
  • Each monotonous policy has a visible cost or score cap.
  • Any indefinitely surviving monotonous policy has a scoring cap or score starvation rule.
  • Every invariant that changes a player decision has a persistent readout, and that readout fills before the situation is bad rather than firing a warning once it already is. A gauge that tracks crowding toward a cap teaches the player to act; an alarm at the moment of overload only narrates a loss. Add the readout in the same change as the rule, and screenshot it.
  • Seeded early-game random sequences have been checked when random initial hazards or gaps determine survivability.
  • Skilled play has a causal route to higher score or longer meaningful survival.
  • The implementation can be tested by policy comparison, telemetry, or a concrete manual checklist.

If validation is impossible, report that the invariant is specified but unverified.

References

  • references/invariant-patterns.md — reusable patterns for mashing, hold-only, idle, safe waiting, pulse scoring, combos, and resource states.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Implementing Gameplay Invariants?

Translates game design prose into engine-neutral implementation invariants and validation checks. Use when implementing or reviewing game mechanics where idle, hold-only, mashing, spam, safe waiting, or repeated scoring pulses must be prevented from dominating skilled play.

Навіщо використовувати Implementing Gameplay Invariants у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Implementing Gameplay Invariants — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Implementing Gameplay Invariants у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/abagames/agentic-gamedev-skills/tree/main/.agents/skills/implementing-gameplay-invariants. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Implementing Gameplay Invariants?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Implementing Gameplay Invariants?

Зі скількома забажаєте. У TypingMind ви можете використовувати Implementing Gameplay Invariants із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Implementing Gameplay Invariants?

Так. На GitHub цю навичку публікує abagames за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇