Image Slot Allocatorのロゴ

Image Slot Allocator

コミュニティ
XuanRanL
image-slot-allocator

Decide the article's image slots (brief.image_count, default 6 = 1 cover + 5 section images, max 8). Reads outline.json + format_id. Picks H2s to image based on per-format mapping in references/image/format-style-mapping.md. Triggered as Stage 27a of phase-publish image sub-pipeline.

概要

公開者XuanRanL
リポジトリloamwright-SEO-Skill
スキル名image-slot-allocator
スター
52
フォーク
9
同梱ファイル
指示のみ
ライセンスApache-2.0
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/subskills/image/image-slot-allocator .claude/skills/image-slot-allocator
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Image Slot Allocator

⚠️ NOT WIRED into the deterministic pipeline (2026-07-17 audit). There is no image-slot-allocator stage in scripts/pipeline/orchestrator.py's Stage table, nothing produces its declared image_slots.json, and _match_image_slot_to_section exists only as pseudo-code in section-drafter/SKILL.md. In the live pipeline the image contract is: the per-section image_slot: true booleans in outline.json sections[], and image-prompts.json (slot_id source of truth). The designer names slots cover + sequential section_1|section_2|section_3 (see agents/image-prompt-designer.md), and scripts/build/assemble.py auto-injects [IMAGE-SLOT-cover] after the Abstract for no_inline projects. Do NOT rely on this file describing a running stage; it is a design doc for a stage that was never enabled (Rule 6). Wire it before referencing it as live, and if you do, note that its own spec uses sequential section_{i+1} ids.

Decides WHERE images go. Doesn't generate them (that's image-prompt-designer + openai-image-generator).

Inputs

  • workspace/{task_id}/outline.json — section structure
  • workspace/{task_id}/angle.json — format_id
  • state.brief.image_count — default 6 (1 cover + 5 inline; scripts/_core/image_policy.py, raised from 4 on 2026-08-17)

Output

workspace/{task_id}/image_slots.json:

json
{
  "slots": [
    {
      "slot_id": "cover", "purpose": "hero / featured image / OG card",
      "aspect_ratio": "16:9", "size": "3840x2160", "is_featured_image": true,
      "body_render": false,
      "h2_anchor": null, "after_paragraph": 0
    },
    {
      "slot_id": "section_1", "h2_anchor": "1-gloomis-nrx",
      "purpose": "showcase top pick", "aspect_ratio": "4:3", "size": "3264x2448",
      "is_featured_image": false, "body_render": true
    },
    ...
  ]
}

Critical: the cover slot has body_render: false. The drafter MUST NOT emit [IMAGE-SLOT-cover] or ![cover](images/cover.png) in the markdown body — WordPress themes render the featured image at the top of the post automatically, and inlining the cover in the body produces a visible duplicate.

The publisher (wp_publisher.py) defensively filters out images flagged is_featured: true from body placeholder substitution as a backstop, but the cleanest fix is to allocate the cover with body_render: false and never emit a body placeholder for it in the first place.

Allocation by format

Per references/image/format-style-mapping.md — the table lists each format's first three PRIORITY subjects; at the default image_count 6 there are 5 inline slots (scripts/_core/image_policy.py), so continue each format's pattern for slots 4-5:

FormatCoverSection 1Section 2Section 3
listicleoverview herotop pick (#1)mid-list (#5)methodology
how-toconcept overviewstep 1mid stepresult
pillaroverviewsubtype Acore conceptfuture trends
comparisonsplit-screenX strengthsY strengthsverdict viz
reviewhero productfeatures close-upuse caseverdict
case-studyscene setterchallenge vizresults chartlessons learned
definitionabstract concepttype Aexampleapplication
...(per catalog)

Logic

python
def allocate(outline, format_id, image_count=6):
    slots = [
        # Cover always first
        Slot(slot_id="cover", aspect="16:9", size="3840x2160",
             is_featured=True, h2_anchor=None, position="before-abstract"),
    ]
    
    # Pick image_count-1 section H2s based on format
    section_h2s = pick_section_h2s_for_format(outline.sections, format_id, n=image_count - 1)
    for i, h2 in enumerate(section_h2s):
        slots.append(Slot(
            slot_id=f"section_{i+1}",
            aspect="4:3", size="3264x2448",
            is_featured=False,
            h2_anchor=slugify(h2.text),
            position="after-h2-paragraph-1",
        ))
    
    return slots[:image_count]

Handoff

recommended_next_skill: image-prompt-designer

よくある質問

AIスキル「Image Slot Allocator」では何ができますか?

Decide the article's image slots (brief.image_count, default 6 = 1 cover + 5 section images, max 8). Reads outline.json + format_id. Picks H2s to image based on per-format mapping in references/image/format-style-mapping.md. Triggered as Stage 27a of phase-publish image sub-pipeline.

TypingMindでImage Slot Allocatorを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/image/image-slot-allocatorを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Image Slot Allocatorを使えるAIモデルはどれですか?

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

Image Slot Allocatorで使えるAIモデルの数に制限はありますか?

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

AIスキル「Image Slot Allocator」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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