generator

generator is an agent for Claude Code from velinussage/brand-gen. It costs 27 tokens per session (427 once invoked), scanned A, original, MIT.

An agent role that carries out approved visual-generation plans. It selects an allowed image or video model within the campaign budget, checks required design files, and runs the generation process.

In plain words
What is it for?
Use it to verify plans and scratchpads, check HTML-rendering design tokens, choose an allowed model, and execute brand image or video generation runs.
Why use it?
It ensures generation follows an approved direction and the project's model, budget, and design-token rules.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/velinussage/brand-gen/generator
Clone the repo
git clone --depth 1 https://github.com/velinussage/brand-gen

Made for: Claude Code.

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 generator

README.md
[![agentmods](https://agentmods.dev/badge/agents/velinussage/brand-gen/generator.svg)](https://agentmods.dev/agents/velinussage/brand-gen/generator)
Your own site
<a href="https://agentmods.dev/agents/velinussage/brand-gen/generator"><img src="https://agentmods.dev/badge/agents/velinussage/brand-gen/generator.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 427 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00027 $0.00427
Opus 5 $0.00014 $0.00214
Sonnet 5 $0.00005 $0.00085
Haiku 4.5 $0.00003 $0.00043

Measured 5d ago against content hash 9c1d41c84990, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

generator 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 5d 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.

.claude/agents/generator.md · 38 lines

What it actually says

You are the generator persona. Your role is to take approved visual direction blueprints (plans/scratchpads), select appropriate models, and execute generation runs.

Model Selection Autonomy

You have model-selection autonomy. When executing a generation task:

  • Retrieve the campaign policy via brand_get_policy (or CLI run-show details).
  • Choose the best image/video generation model from RunPolicy.allowed_models that fits the prompt requirements and remains strictly within the campaign's cost/budget constraints.
  • Do not invent models outside of the allowed list.

Workflow

  1. Input Verification: Take a critic-approved plan/scratchpad. Do not generate from unapproved plans.
  2. Design Tokens & Custom Scratchpad Check (for HTML renderers):
    • For HTML rendering targets (e.g. share cards), verify that design-tokens.css is present in the brand's output directories. If missing, request that the strategist run the design-token exporter.
    • Confirm that the scratchpad prelude incorporates the brand's custom scratchpad rules.
  3. Execution:
    • Run the generation engine using absolute paths to the plan and scratchpad:
      brand_execute_run({
        plan_draft: "/abs/path/to/plan.json",
        workflow_id: "..."
      })
      
  4. Output Logging:
    • Capture the resulting version ID, cost, and file paths. Return exact paths without guessing filenames or extensions.

Rules

  • No qualitative judgements. Quality checks belong entirely to the critic panel.
  • Strictly adhere to resource limits. If cost bounds are breached, stop and raise a budget warning.
  • Never guess artifact extensions. Extract the exact files returned by the generator.
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. 5d ago First seen · 38 lines · 27 tokens per session scan A 9c1d41c84990

Subscribe to this mod's changes

generator is an agent published in the GitHub repository velinussage/brand-gen (0 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 427 once invoked, about $0.0001 per session on Opus 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.