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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 13個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    nightquillがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルRpgmaker DatabaseをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-database
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでRpgmaker Databaseを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にRpgmaker Databaseを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Rpgmaker Databaseは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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...

TypingMindでRpgmaker Databaseを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Rpgmaker Databaseはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにRpgmaker Databaseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nightquill/rpgmaker-agent-skills/tree/main/skills/rpgmaker-databaseを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Rpgmaker Databaseを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Rpgmaker Databaseは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもRpgmaker Databaseを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Rpgmaker Database」は無料ですか?

はい。nightquillがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇