Instantiate Asset Packのロゴ

Instantiate Asset Pack

組織
SummerEngine
instantiate-asset-pack

Lay out a whole create-asset-sheet pack in the scene: composites, paint order, Sprite2D and NinePatch.

概要

公開者SummerEngine
リポジトリsummer
スキル名instantiate-asset-pack
スター
91
フォーク
8
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SummerEngine/summer.git /tmp/summer
mkdir -p .claude/skills
cp -r /tmp/summer/library/skills/instantiate-asset-pack .claude/skills/instantiate-asset-pack
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

instantiate-asset-pack — Instantiate Asset Pack into Scene

A pack ArtAsset (produced by create-asset-sheet) is a bundle of cropped slice PNGs with per-slice metadata. This skill is the runtime side: given a pack, lay its slices into the current scene as a correctly-grouped, correctly-layered set of nodes.

For wiring individual widget slices (9-slice panels, progress bars, toggles), this skill delegates to use-widget-asset. This skill handles the pack-level layout: grouping composites, paint order, spatial offset, naming.

When to use

  • "Import the dungeon UI pack."
  • "Spawn the settings panel from that asset sheet I just made."
  • "Bring the whole biome pack into this scene."
  • "Add the card frame composite from pack X."
  • User has a pack ArtAsset in their library and wants it placed in the scene, not just imported as files.

When NOT to use

  • User wants a single slice → import it directly as a Sprite2D (or use-widget-asset if it's a UI widget).
  • User wants to generate a new pack → create-asset-sheet.
  • User wants to apply a slice as a material/texture on a 3D mesh → not the pack flow; see asset-strategy.

Pack JSON shape

The per-slice fields this skill cares about:

FieldUsed for
nameNode name
urlTexture path (after summer_import_from_url)
bboxSpatial offset of composite children relative to parent
zOrderz_index on the Sprite2D; sort children by this ascending
isCompositeFilter out parent slices (flat previews, not runtime assets)
parentSliceIndexGroup children to their composite parent
pairWithToggle ON/OFF pair link
widgetWrap in NinePatchRect / TextureProgressBar via use-widget-asset
categoryDecide wrapper type — ui → Control tree, else Node2D/Sprite2D

Legacy fallback: slice.zOrder ?? slice.layerIndex ?? packFileIndex, slice.isComposite ?? slice.isReference ?? false. packFileIndex is the iteration counter when looping packFiles[], not a stored field.

Standalone child slice

A standalone slice has no parentSliceIndex and isn't a composite parent. Spawn as a single Sprite2D:

  1. Import the slice URL via summer_import_from_url to get a res:// path.
  2. summer_add_node — type Sprite2D, name slice.name.
  3. summer_set_prop — texture = res://....
  4. If slice.zOrder is set, summer_set_prop — z_index = slice.zOrder.

If the slice has a widget field, hand off to use-widget-asset after step 1.

Composite parent + children

A composite parent (isComposite: true) is the flat preview the wizard made of the assembled panel. Do not spawn it. Its children — slices whose parentSliceIndex points back at it — are the real runtime assets.

Recipe:

  1. Skip the parent. Filter out isComposite: true slices unless the user asked for the flat preview.
  2. Group children. Collect every slice whose parentSliceIndex matches this parent's index.
  3. Sort children by zOrder ascending. Lower zOrder renders behind. Use the legacy fallback chain.
  4. Spawn a Node2D parent named after the composite parent's name (e.g. settings_panel).
  5. For each child, in sorted order:
    • Import child.url → res:// path.
    • summer_add_node Sprite2D under the Node2D, name = child.name.
    • summer_set_prop — texture = res://....
    • summer_set_prop — z_index = child.zOrder.
    • summer_set_prop — position = Vector2(child.bbox.x - parent.bbox.x, child.bbox.y - parent.bbox.y).
  6. Apply widget post-processing to any child with a widget field — see next section.

Widget post-processing

When a child slice has widget.kind set, the bare Sprite2D is not the right node. Replace or wrap it per the widget mapping:

widget.kindNodeMapping
panel, buttonNinePatchRectframeMargins[0..3] → patch_margin_left/top/right/bottom
progress_barTextureProgressBarfillRect → stretch_margin_*; orientation → fill_mode
sliderHSlider/VSlider + NinePatchRect tracktrack uses frameMargins; slider sits on top
toggleTextureRectSwap texture between this slice and packFiles[pairWith].url

Delegate the actual wiring (percentage-to-pixel conversion, node-specific props) to use-widget-asset. This skill places the node; that skill configures the geometry.

Naming convention

  • slice.name is canonical. The wizard's classifier produces snake_case names (play_button, health_bar_fill, settings_panel). Use as the node name verbatim.
  • If the user said "name them with prefix X" (e.g. "prefix everything with hud_"), prepend: hud_play_button.
  • Composite parent's name becomes the Node2D wrapper name.
  • If a name collides with an existing node in the scene, suffix _1, _2, etc. Do not silently overwrite.

Examples

Both examples are summer_batch arguments; scenePath names the scene that receives the nodes.

Example 1 — Standalone slice import

Pack has one non-composite slice, crate_wooden, no widget metadata. Place it at scene origin:

json
{
  "scenePath": "res://scenes/level.tscn",
  "ops": [
    {
      "op": "AddNode",
      "parent": ".",
      "type": "Sprite2D",
      "name": "crate_wooden"
    },
    {
      "op": "SetProp",
      "path": "./crate_wooden",
      "key": "texture",
      "value": "res://assets/images/crate_wooden.png"
    },
    {
      "op": "SetProp",
      "path": "./crate_wooden",
      "key": "position",
      "value": "Vector2(0, 0)"
    },
    { "op": "SaveScene" }
  ]
}

Example 2 — Composite panel with three children

Pack has a composite parent settings_panel (filtered out) plus three children:

  • panel_bg — zOrder 0, bbox offset (0, 0), widget.kind = panel, frameMargins present
  • apply_button — zOrder 1, bbox offset (40, 120), widget.kind = button, frameMargins present
  • close_icon — zOrder 2, bbox offset (220, 8), no widget
json
{
  "scenePath": "res://ui/settings.tscn",
  "ops": [
    {
      "op": "AddNode",
      "parent": ".",
      "type": "Node2D",
      "name": "settings_panel"
    },
    {
      "op": "AddNode",
      "parent": "./settings_panel",
      "type": "NinePatchRect",
      "name": "panel_bg"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/panel_bg",
      "key": "texture",
      "value": "res://assets/images/panel_bg.png"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/panel_bg",
      "key": "z_index",
      "value": 0
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/panel_bg",
      "key": "position",
      "value": "Vector2(0, 0)"
    },
    {
      "op": "AddNode",
      "parent": "./settings_panel",
      "type": "NinePatchRect",
      "name": "apply_button"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/apply_button",
      "key": "texture",
      "value": "res://assets/images/apply_button.png"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/apply_button",
      "key": "z_index",
      "value": 1
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/apply_button",
      "key": "position",
      "value": "Vector2(40, 120)"
    },
    {
      "op": "AddNode",
      "parent": "./settings_panel",
      "type": "Sprite2D",
      "name": "close_icon"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/close_icon",
      "key": "texture",
      "value": "res://assets/images/close_icon.png"
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/close_icon",
      "key": "z_index",
      "value": 2
    },
    {
      "op": "SetProp",
      "path": "./settings_panel/close_icon",
      "key": "position",
      "value": "Vector2(220, 8)"
    },
    { "op": "SaveScene" }
  ]
}

After this, hand panel_bg and apply_button to use-widget-asset to set patch_margin_* from their widget.frameMargins.

Note the ops format: position is the engine variant string "Vector2(0, 0)", not a JSON object. z_index is a bare integer. This is the format Summer Engine expects — see summer_docs_read id reference/mcp-tools-reference.

Failure modes

  • Old pack with no zOrder. Fall back to slice.zOrder ?? slice.layerIndex ?? packFileIndex. packFileIndex is the iteration counter when looping packFiles[] (not a persisted field). If even layerIndex is missing (very old pack), iteration order is the only signal — accept it.
  • Old pack with no isComposite. Fall back to slice.isComposite ?? slice.isReference ?? false. If both are missing on every slice, treat the whole pack as standalone — no compositing, every slice spawns at origin as its own Sprite2D.
  • Composite parent with no children in the pack. The composite preview is the only thing the user has — render the parent as a regular Sprite2D (do not filter it out in this case).
  • Child references a parent that's missing. Treat the child as standalone. Spawn at Vector2(0, 0) with its own zOrder.
  • Widget with no frameMargins. The vision detector said kind: 'panel' but didn't emit margins. Render as TextureRect (or Sprite2D if outside a Control tree) and skip 9-slice. Do not invent margins.
  • Name collision in scene. Suffix _1, _2, etc. Never overwrite an existing node.
  • Slice URL fails to import. summer_import_from_url returns an error — skip that slice, log a warning, continue with the rest. Do not abort the whole pack.

Related skills

  • create-asset-sheet — production side; how the pack was made.
  • use-widget-asset — wiring an individual widget slice (NinePatchRect, TextureProgressBar geometry).
  • asset-strategy — broader find-or-generate -> import -> apply flow.

From a shell

No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.

In this skillCommand
summer_docs_readsummer docs read
summer_add_nodesummer engine add-node
summer_batchsummer engine batch
summer_get_scene_treesummer engine get-scene-tree
summer_import_from_urlsummer engine import-from-url
summer_inspect_nodesummer engine inspect-node
summer_set_propsummer engine set-prop
summer_set_resource_propertysummer engine set-resource-property

同梱ファイル

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

よくある質問

AIスキル「Instantiate Asset Pack」では何ができますか?

Lay out a whole create-asset-sheet pack in the scene: composites, paint order, Sprite2D and NinePatch.

TypingMindでInstantiate Asset Packを使うメリットは何ですか?

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

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

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

Instantiate Asset Packを使えるAIモデルはどれですか?

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

Instantiate Asset Packで使えるAIモデルの数に制限はありますか?

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

AIスキル「Instantiate Asset Pack」は無料ですか?

はい。SummerEngineがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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