Rpgmaker Database logo

Rpgmaker Database

Community
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.

Overview

Publishernightquill
Repositoryrpgmaker-agent-skills
Skill namerpgmaker-database
Stars
30
Forks
3
Bundled files
13
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 13 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by nightquill on GitHub. Read the source before you install it.

Installation

Install the Rpgmaker Database AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rpgmaker Database in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rpgmaker Database on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rpgmaker Database is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rpgmaker Database AI skill do?

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...

Why use Rpgmaker Database on TypingMind?

Because you install it once and use it with any model. Rpgmaker Database is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rpgmaker Database in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rpgmaker Database?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rpgmaker Database?

As many as you like. As long as a model supports skills, you can use Rpgmaker Database with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rpgmaker Database AI skill free?

Yes. It is published on GitHub by nightquill under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇