Rpgmaker Coreのロゴ

Rpgmaker Core

コミュニティ
nightquill
rpgmaker-core

Use this skill when working with any RPG Maker MV or MZ project. Triggers: presence of a Game.rpgproject or Game.rmmzproject manifest, data/*.json files named Actors.json/Skills.json/Items.json/Enemies.json/MapInfos.json, or when the user mentions RPG Maker, RPGMaker, MV, MZ, JRPG development, or narrative RPG in a project containing these files. Provides: project structure overview, MV/MZ detection, safety rules (MapInfos.json append-only, ID non-renumbering, dry-run first, backup before write).

概要

公開者nightquill
リポジトリrpgmaker-agent-skills
スキル名rpgmaker-core
スター
30
フォーク
3
同梱ファイル
4
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

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

  • 4個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキルRpgmaker Coreを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-core
  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-core .claude/skills/rpgmaker-core
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

RPG Maker Core Skill

This skill provides the safety foundation for all RPG Maker MV and MZ agent interactions. Load it first whenever you are working with any RPG Maker project. It teaches you how the project is structured, which rules you must never break, and where to find detailed reference docs.

All modifications you suggest are drafts for the developer to review and approve — never authoritative decisions. See the "All AI outputs are drafts" section below.


MV/MZ Detection

Before doing anything, determine the engine version.

Manifest file presentVersion
Game.rmmzprojectMZ
Game.rpgprojectMV
Both presentMZ (prefer MZ per spec)
NeitherError — not an RPG Maker project

Use scripts/lib/project_detect.py:

bash
python -m scripts.lib.project_detect --project-path /path/to/project
# Outputs: MV   or   MZ

State the detected version at the top of every work session comment: # Working on RPG Maker MV project at /path/to/project


Project Structure

YourGame/
├── Game.rpgproject       # MV: project manifest
├── Game.rmmzproject      # MZ: project manifest (replaces Game.rpgproject)
├── data/                 # All JSON database files
│   ├── Actors.json
│   ├── Classes.json
│   ├── Skills.json
│   ├── Items.json
│   ├── Weapons.json
│   ├── Armors.json
│   ├── Enemies.json
│   ├── Troops.json
│   ├── States.json
│   ├── Animations.json
│   ├── Tilesets.json
│   ├── CommonEvents.json
│   ├── System.json
│   ├── MapInfos.json     # Map tree — append-only (see Critical Safety Rules)
│   ├── Map001.json       # Three-digit zero-padded map files
│   ├── Map002.json
│   └── ...
├── js/
│   ├── plugins/          # js/plugins/ — JavaScript plugin files (*.js)
│   └── plugins.js        # Plugin manifest (load order + config)
├── img/
│   ├── faces/            # NPC face portraits
│   ├── characters/       # Character walk sprites
│   ├── sv_actors/        # Side-view battler sprites
│   ├── pictures/         # In-game picture displays
│   └── ...
└── audio/
    ├── bgm/              # Background music
    ├── bgs/              # Background sounds
    ├── me/               # Music effects (fanfares, game over)
    └── se/               # Sound effects

Critical Safety Rules

These rules exist because RPG Maker's JSON files use positional IDs — the array index is the ID. Breaking these rules corrupts references silently, with no error at load time.

Rule 1: MapInfos.json is append-only

data/MapInfos.json is the map tree the RPG Maker editor uses to display and navigate maps. Never delete or reorder entries.

  • Entries are indexed by their position in the array.
  • When a map is deleted in the editor, its slot becomes null — not removed.
  • New maps are always appended at the end.
  • Deleting or reordering breaks the editor's map tree, often silently.

Rule 2: Never renumber IDs

All database arrays (Actors.json, Skills.json, Items.json, Enemies.json, Weapons.json, Armors.json, Classes.json, Troops.json, States.json, Animations.json, Tilesets.json, CommonEvents.json) use positional indexing:

  • Index 0 is always null. This is required by RPG Maker. Do not remove it.
  • Each entry's id field equals its array index.
  • Changing any id or reordering entries breaks every cross-file reference silently.

Safe operations: Only append new entries. Set deleted entries to null (tombstone) rather than removing them. Never shift, sort, or compact the array.

Rule 3: ID references are everywhere

Cross-file references are encoded as integer IDs throughout the project:

Reference typeExample
Dialog text code\N[1] — actor name lookup by ID
Actor's class"classId": 2 in Actors.json
Skill animation"animationId": 5 in Skills.json
Event condition"actorId": 1 in event page condition
Item change commanditem ID 3 in Change Items event command

One wrong ID introduces silent data corruption that only surfaces at runtime.


Safety Principles

Dry-run first

All write scripts default to preview mode. Use --apply to actually write.

bash
# Preview what would change (safe, no file writes):
python scripts/inject_dialog.py --project . --target common-event:1 ...

# Actually write the changes:
python scripts/inject_dialog.py --project . --target common-event:1 ... --apply

Never skip the preview. The dry-run output uses "Draft preview" and "Would modify" language so you and the developer can review before committing.

Backup before write

Every write operation creates a .bak copy of the original file before modifying it. This is enforced by scripts/lib/safe_write.py:

python
# safe_write.py creates filepath + ".bak" via shutil.copy2 before writing

If you detect .bak files after a write, offer to clean them up after the developer confirms the changes are correct.

Validate after write

Run schema validation on any modified JSON file immediately after writing. The schemas in schemas/*.schema.json cover all MV data file types.

bash
python -c "
import json, jsonschema, pathlib
schema = json.loads(pathlib.Path('schemas/actors.schema.json').read_text())
data   = json.loads(pathlib.Path('data/Actors.json').read_text())
jsonschema.validate(data, schema)
print('Valid')
"

Preserve formatting

RPG Maker exports JSON with a specific indentation style. When editing, detect and preserve the existing indentation — do not reformat files unless the developer explicitly requests it. Use load_json_preserving_format() from scripts/lib/safe_write.py to detect indent width automatically.

Re-open project warning

Changes to data/*.json files do not appear in a running RPG Maker editor. Always remind the developer: close and reopen the project in RPG Maker to see changes.


The safe_write.py Library

scripts/lib/safe_write.py is the enforcement mechanism for all safety rules. Every write script in this skill pack uses it. Key functions:

FunctionPurpose
load_json_preserving_format(filepath)Load JSON, detect indentation
validate_positional_array(data, label)Assert index-0 null, IDs match indexes
validate_no_id_changes(original, modified, label)Assert no IDs changed, array not shortened
safe_write(filepath, original, modified, apply, ...)Validate + backup + write (dry-run by default)
add_argparse_write_args(parser)Add standard --apply flag to argparse

Navigation

Detailed reference docs for this skill:

Shared references used by other skills in this pack:


All AI Outputs Are Drafts

All modifications suggested or generated by this skill — and any skill in this pack — are drafts for the developer to review. They are never authoritative decisions about the developer's game.

The developer is the author. The agent is a tool that produces drafts.

  • Never auto-apply changes without explicit --apply confirmation.
  • Never mass-edit database entries without showing before/after for each change.
  • Frame all generated content with language like "Here is a draft — edit as needed before accepting."
  • If you notice a potential issue outside the stated task scope, surface it as an observation, not as an automatic fix.

同梱ファイル

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

よくある質問

AIスキル「Rpgmaker Core」では何ができますか?

Use this skill when working with any RPG Maker MV or MZ project. Triggers: presence of a Game.rpgproject or Game.rmmzproject manifest, data/*.json files named Actors.json/Skills.json/Items.json/Enemies.json/MapInfos.json, or when the user mentions RPG Maker, RPGMaker, MV, MZ, JRPG development, or narrative RPG in a project containing these files. Provides: project structure overview, MV/MZ detection, safety rules (MapInfos.json append-only, ID non-renumbering, dry-run first, backup before write).

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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