Logo di Rpgmaker Database

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.

Panoramica

Autorenightquill
Repositoryrpgmaker-agent-skills
Nome della skillrpgmaker-database
Stelle
30
Fork
3
File inclusi
13
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 13 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da nightquill su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Rpgmaker Database in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Rpgmaker Database in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Rpgmaker Database non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Rpgmaker Database non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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...

Perché usare Rpgmaker Database su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Rpgmaker Database è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Rpgmaker Database in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Rpgmaker Database?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Rpgmaker Database?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Rpgmaker Database: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Rpgmaker Database è gratuita?

Sì. È pubblicata su GitHub da nightquill con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇