Image Slot Allocator logo

Image Slot Allocator

Community
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.

Overview

PublisherXuanRanL
Repositoryloamwright-SEO-Skill
Skill nameimage-slot-allocator
Stars
52
Forks
9
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by XuanRanL on GitHub. Read the source before you install it.

Installation

Install the Image Slot Allocator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/image/image-slot-allocator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Slot Allocator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Slot Allocator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Slot Allocator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Frequently asked questions

What does the Image Slot Allocator AI skill do?

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.

Why use Image Slot Allocator on TypingMind?

Because you install it once and use it with any model. Image Slot Allocator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Slot Allocator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/image/image-slot-allocator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Image Slot Allocator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Slot Allocator?

As many as you like. As long as a model supports skills, you can use Image Slot Allocator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Slot Allocator AI skill free?

Yes. It is published on GitHub by XuanRanL under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇