Logo vun Rpgmaker Database

Rpgmaker Database

Communautéit
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.

Iwwersiicht

Editeurnightquill
Repositoryrpgmaker-agent-skills
Skill-Nummrpgmaker-database
Stären
30
Forks
3
Matgeliwwert Fichieren
13
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 13 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum nightquill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rpgmaker Database an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rpgmaker Database an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rpgmaker Database automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rpgmaker Database net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill 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...

Firwat Rpgmaker Database op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rpgmaker Database besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rpgmaker Database an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rpgmaker Database benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rpgmaker Database benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rpgmaker Database domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rpgmaker Database gratis?

Jo. De Skill gëtt vum nightquill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇