Логотип Rpgmaker Database

Rpgmaker Database

Спільнота
nightquill
rpgmaker-database

Use this skill when reading or writing RPG Maker MV or MZ database files (Actors.json, Skills.json, Items.json, Weapons.json, Armors.json, Enemies.json, States.json, Troops.json, Classes.json, Animations.json, Tilesets.json, CommonEvents.json, System.json). Triggers: any modification to data/*.json database entries, adding skills/enemies/items/actors, balance checking, schema validation, or when the user mentions database, stats, formulas, balance, notetags, or data entry in an RPG Maker context. Provides: database file schemas, damage formula DSL, balance heuristics, and helper scripts for safe entry addition, validation, and outlier detection.

Огляд

Видавецьnightquill
Репозиторійrpgmaker-agent-skills
Назва навичкиrpgmaker-database
Зірки
30
Форки
3
Файли в пакеті
13
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

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

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

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

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

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

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

    Опубліковано на GitHub користувачем nightquill. Перегляньте вихідний вміст перед установленням.

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

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

1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

RPG Maker Database Skill

This skill covers reading and modifying RPG Maker MV and MZ database files. It teaches agents what each database file contains, how damage formulas work, how to detect balance outliers, and how to safely append new entries without corrupting cross-file references.

All database suggestions generated by this skill are drafts for developer review — never authoritative final content.


Database Files Overview

All database files in data/ are JSON arrays where index 0 is always null. Each entry's id field equals its array index. The two exceptions are System.json (single object) and MapInfos.json (positional array but append-only — see rpgmaker-core).

FileContentKey FieldsNotes
Actors.jsonPlayable charactersclassId, equips, traitsequips cross-refs Weapons/Armors
Classes.jsonCharacter class definitionsexpParams, params, traitsStat growth curves per level
Skills.jsonLearnable abilitiesdamage.formula, mpCost, scopedamage.formula is JavaScript
Items.jsonConsumables and key itemsitypeId, consumable, effectsitypeId: 2 = key item (unsellable)
Weapons.jsonEquippable weaponswtypeId, params, animationIdparams = stat bonuses (not base stats)
Armors.jsonEquippable armor/accessoriesatypeId, etypeId, paramsetypeId determines equipment slot
Enemies.jsonEnemy battlersparams, exp, dropItemsparams = base stats (not bonuses)
Troops.jsonEnemy group definitionsmembers, pagesBattle event pages
States.jsonStatus effectsrestriction, autoRemovalTimingrestriction: 4 = cannot act
Animations.jsonBattle animationsframes, timingsReferenced by animationId fields
Tilesets.jsonMap tile configurationtilesetNames, flagsPassage/terrain tag data
CommonEvents.jsonReusable event scriptstrigger, listCall from maps or other events
System.jsonGlobal game settingsswitches, variables, elementsSingle object — not a positional array
MapInfos.jsonMap tree for the editorparentId, orderAppend-only — never reorder or delete

Positional Array Rules

These rules apply to every database file except System.json and MapInfos.json:

  • Index 0 is always null. Do not remove it. RPG Maker requires it.
  • Each entry's id field equals its array index. Changing either value breaks every cross-file reference silently.
  • Never renumber, reorder, or compact the array. Deleted entries become null (tombstone), not removed.
  • New entries are appended. Assign new_id = len(array) before appending.

The Params Array

The params field is an 8-element integer array used by Enemies (base stats), Weapons and Armors (stat bonuses), and Classes (growth curves).

IndexStat NameAbbreviation
0Max HPMHP
1Max MPMMP
2AttackATK
3DefenseDEF
4Magic AttackMAT
5Magic DefenseMDF
6AgilityAGI
7LuckLUK

Enemies vs. Weapons/Armors: For enemies, params is the enemy's base stats. For weapons and armors, params is stat bonuses added on top of the actor's class curve. The same indexes, very different semantics.


Damage Formula DSL

The damage.formula field in Skills.json is a JavaScript expression evaluated at runtime by the RPG Maker engine. The variables a (attacker) and b (target) expose the battler's current stats.

VariableMeaning
a.atkAttacker's Attack stat
a.matAttacker's Magic Attack
a.lukAttacker's Luck
b.defTarget's Defense
b.mdfTarget's Magic Defense
b.hpTarget's current HP

Common formula patterns:

TypeFormula
Physical damagea.atk * 4 - b.def * 2
Magical damagea.mat * 4 - b.mdf * 2
Strong magica.mat * 5 - b.mdf * 2
HP restorea.mat * 2 + 20
Percent HPb.hp * 0.1

damage.type codes control what the formula affects:

CodeEffect
0None
1HP damage
2MP damage
3HP recover
4MP recover
5HP drain
6MP drain

For full formula reference and the pitfall of evaluating these as Python, see references/damage-formulas.md.


Note Field Safety

The note field in every database entry is an opaque string used by the plugin ecosystem (Yanfly Engine Plugins, VisuStella MZ, and others). Plugins store their configuration in this field using <tag>value</tag> syntax.

Never parse, strip, reformat, or validate note field contents. Write it back byte-for-byte. json.load() followed by json.dump() preserves all content including embedded newlines and Unicode characters.

When adding a new entry via add_skill.py or add_enemy.py, accept the note value verbatim from the caller via --note. Default to "" if omitted.


Balance Checking

Balance checking uses statistical outlier detection: compute the relevant metric per entry in a category, then flag any entry more than 2 standard deviations above the mean. This approach adapts to whatever power level the project uses — no hardcoded thresholds.

Three categories are supported:

CategoryMetricWhat It Catches
SkillsDamage per MP (formula_damage / mpCost)Overpowered spells relative to their cost
WeaponsPrice per power point (price / (ATK + MAT))Overpriced weapons for their stats
EnemiesHP per EXP (params[0] / exp)Unrewarding tanks

Only HP-damage skills (damage.type == 1) with mpCost > 0 are included in skill analysis. Skills with mpCost == 0 (physical) or damage.type != 1 (heals, drains) are excluded.

For the statistical method, worked examples, and anti-patterns, see references/balance-heuristics.md.


Helper Scripts

These scripts live in skills/rpgmaker-database/scripts/. Run from the repository root with PYTHONPATH=..

ScriptUsagePurpose
scripts/balance_check.py--project <path> [--category skills|weapons|enemies|all]Flags balance outliers; exit 0 = clean, exit 1 = outliers found
scripts/add_skill.py--project <path> --name <name> [--formula <formula>] [--mp-cost <n>] [--note <note>] [--apply]Appends a new skill to Skills.json
scripts/add_enemy.py--project <path> --name <name> [--hp <n>] [--atk <n>] [--exp <n>] [--note <note>] [--apply]Appends a new enemy to Enemies.json
scripts/validate_database.py--project <path>Validates all database JSON files against schemas/*.schema.json

All write operations default to dry-run mode. Pass --apply to write. A .bak backup is created automatically before any write.

Quick usage

bash
# Check balance of all categories
PYTHONPATH=. python scripts/balance_check.py \
  --project fixtures/example-mv-project

# Add a new skill (dry run)
PYTHONPATH=. python scripts/add_skill.py \
  --project fixtures/example-mv-project \
  --name "Blizzard" --formula "a.mat * 6 - b.mdf * 2" --mp-cost 12

# Add a new skill (write)
PYTHONPATH=. python scripts/add_skill.py \
  --project fixtures/example-mv-project \
  --name "Blizzard" --formula "a.mat * 6 - b.mdf * 2" --mp-cost 12 \
  --apply

# Validate all database files
PYTHONPATH=. python scripts/validate_database.py \
  --project fixtures/example-mv-project

Navigation

DocumentContents
references/actor-schema.mdActor fields: classId cross-reference, equips array, face/character sprite indexes
references/skill-schema.mdSkill fields: scope/occasion/hitType codes, damage sub-object details
references/item-schema.mdItem fields: itypeId codes, consumable flag, effects array
references/weapon-schema.mdWeapon fields: wtypeId, params bonuses, animationId
references/armor-schema.mdArmor fields: atypeId, etypeId slot codes, params bonuses
references/enemy-schema.mdEnemy fields: params base stats, dropItems structure, actions array
references/state-schema.mdState fields: restriction codes, removal timing, motion/overlay indexes
references/damage-formulas.mdFormula DSL variables, damage.type codes, common patterns, Python pitfall
references/balance-heuristics.mdPer-category metrics, 2-SD method, worked examples, anti-patterns
../rpgmaker-core/SKILL.mdProject structure, safety rules, MV/MZ detection, safe_write.py

All database suggestions generated by this skill are drafts for developer review. The developer makes the final creative and structural decisions.

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

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

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

Що робить навичка ШІ Rpgmaker Database?

Use this skill when reading or writing RPG Maker MV or MZ database files (Actors.json, Skills.json, Items.json, Weapons.json, Armors.json, Enemies.json, States.json, Troops.json, Classes.json, Animations.json, Tilesets.json, CommonEvents.json, System.json). Triggers: any modification to data/*.json database entries, adding skills/enemies/items/actors, balance checking, schema validation, or when the user mentions database, stats, formulas, balance, notetags, or data entry in an RPG Maker context. Provides: database file schemas, damage formula DSL, balance heuristics, and helper scripts for...

Навіщо використовувати Rpgmaker Database у TypingMind?

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

Як встановити Rpgmaker Database у TypingMind?

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

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

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

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

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Rpgmaker Database — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Rpgmaker Database?

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

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

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

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

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

Усі

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

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