Logo: Image Slot Allocator

Image Slot Allocator

Communautéit
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.

Iwwersiicht

EditeurXuanRanL
Repositoryloamwright-SEO-Skill
Skill-Nummimage-slot-allocator
Stären
52
Forks
9
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    XuanRanL huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Image Slot Allocator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/image/image-slot-allocator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

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
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Image Slot Allocator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Image Slot Allocator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Image Slot Allocator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill 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.

Firwat Image Slot Allocator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Image Slot Allocator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Image Slot Allocator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/image/image-slot-allocator an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Image Slot Allocator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Image Slot Allocator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Image Slot Allocator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Image Slot Allocator gratis?

Jo. XuanRanL huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇