generate-graphic

generate-graphic is a skill for Claude Code from localplugins/plugins. It costs 87 tokens per session (1,418 once invoked), scanned A, original, MIT.

A skill for generating on-brand photographic or illustrative graphics with an image model, optionally adding a brand logo and caption. It requires an enabled raster setting, a provider key, and network access.

In plain words
What is it for?
Use it to create hero images, advertisements, backgrounds, or textures when a photo or illustration is needed rather than a text-heavy design.
Why use it?
It handles the image-generation step while keeping the prompt and optional overlays connected to the brand profile.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { loadProfile } from '../../lib/brand.mjs';.

Part of the brand-forge plugin — 4 skills, 5 commands, 2 agents, 1 hook shipped together

Good fit Use it to create hero images, advertisements, backgrounds, or textures when a photo or illustration is needed rather than a text-heavy design.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/localplugins/plugins
agentmods
npx agentmods add skills/localplugins/plugins/generate-graphic

Made for: Claude Code.

Or install brand-forge, the plugin that ships this one along with the rest of its 4 skills, 5 commands, 2 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for generate-graphic

README.md
[![agentmods](https://agentmods.dev/badge/skills/localplugins/plugins/generate-graphic/github.svg)](https://agentmods.dev/skills/localplugins/plugins/generate-graphic)
Your own site
<a href="https://agentmods.dev/skills/localplugins/plugins/generate-graphic"><img src="https://agentmods.dev/badge/skills/localplugins/plugins/generate-graphic/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for generate-graphic

Your own site · 80×15
<a href="https://agentmods.dev/skills/localplugins/plugins/generate-graphic"><img src="https://agentmods.dev/badge/skills/localplugins/plugins/generate-graphic.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,418 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.01418
Opus 5.5 $0.00035 $0.00567
Sonnet 5.5 $0.00017 $0.00284
Haiku 4.5 $0.00009 $0.00142

Measured 3mo ago against content hash 3eff6998c70f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-graphic scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

brand-forge/skills/generate-graphic/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Graphic

Generates an on-brand marketing graphic through an image model — the one opt-in feature that reaches the network — optionally stamped with the brand logo and a caption.

Overview

The generate-graphic skill is the opt-in raster engine. Everything else in brand-forge (logos, social, docs) stays vector and zero-permission; this skill is the only path that calls an external image provider, so it runs only when a user explicitly wants a photographic or illustrative graphic. The generator builds a brand-aware prompt with lib/raster.mjs, calls the provider with lib/genimage.mjs, and can composite a crisp vector logo and caption over the result with lib/composite.mjs. Text is deliberately kept out of the image and added as vector on top.

Prerequisites

  • An active brand profile created with /brand-new. Read loads its color-system.json, typography.json, and visual-identity.md.
  • Two opt-in signals, both required: BRAND_FORGE_RASTER=1 and a provider key (GEMINI_API_KEY by default, or OPENAI_API_KEY). The 30-preflight emitter surfaces this at session start.
  • Authentication: the provider api key is read from that environment variable and sent as a request header, never placed in the URL. No credentials are written to disk.
  • Node.js on the PATH and Write access to an output/ directory.

Instructions

  1. Verify both opt-in signals are set. If either is missing, stop, explain how to enable raster, and offer the vector path (generate-social or a template) instead, which needs neither.

  2. Use Glob to locate the active brand directory, then Read and validate the profile with validateProfile.

  3. Build the prompt with lib/raster.mjs (no network). It encodes the palette in words, the imagery style, and the tone, and turns the brand's don't-rules into an "Avoid:" clause. Warn the user when literal text is requested and route text-heavy work to the vector engine.

    import { loadProfile } from '../../lib/brand.mjs';
    import { buildRasterPrompt } from '../../lib/raster.mjs';
    const profile = loadProfile(activeDir);
    const prompt = buildRasterPrompt(profile, { subject: 'a mountain trail at dawn' });
    

Read the full file on GitHub · 120 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 120 lines · 87 tokens per session scan A 3eff6998c70f

Subscribe to this mod's changes

generate-graphic is a skill published in the GitHub repository localplugins/plugins (5 stars, last pushed 4mo ago), licensed MIT. It adds 87 tokens to every session and 1,418 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

generate-graphic compared with skills from other repositories

generate-graphic next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-graphiclocalplugins/pluginsSkill54mo agoMITA87Claude Code
metrics-dashboardphuryn/pm-skillsSkill28k21d agoMITA47Claude Code
brainstorm-okrsphuryn/pm-skillsSkill28k21d agoMITA49Claude Code
pre-mortemphuryn/pm-skillsSkill28k21d agoMITA79Claude Code
ab-test-analysisphuryn/pm-skillsSkill28k21d agoMITA54Claude Code
outcome-roadmapphuryn/pm-skillsSkill28k21d agoMITA53Claude Code
retrophuryn/pm-skillsSkill28k21d agoMITA52Claude Code