visualize

visualize is a command for coding agents from danielraffel/generous-corp-marketplace. It costs 16 tokens per session (2,250 once invoked), scanned B, original, MIT.

A command that creates high-resolution images from design ideas using OpenAI DALL-E 3 or Google Gemini Imagen.

In plain words
What is it for?
Use it to make interface mockups, concept illustrations, or other prototype images based on a design brief and selected idea.
Why use it?
It turns written product ideas into visual material for inspection and discussion, when an image-generation provider is configured.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the design-partner plugin — 1 skill, 4 commands, 1 agent shipped together

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 commands/danielraffel/generous-corp-marketplace/visualize
Clone the repo
git clone --depth 1 https://github.com/danielraffel/generous-corp-marketplace

Or install design-partner, the plugin that ships this one along with the rest of its 1 skill, 4 commands, 1 agent.

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 visualize

README.md
[![agentmods](https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/visualize.svg)](https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/visualize)
Your own site
<a href="https://agentmods.dev/commands/danielraffel/generous-corp-marketplace/visualize"><img src="https://agentmods.dev/badge/commands/danielraffel/generous-corp-marketplace/visualize.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,250 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00016 $0.02250
Opus 5 $0.00008 $0.01125
Sonnet 5 $0.00003 $0.00450
Haiku 4.5 $0.00002 $0.00225

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

Security

Grade B, and why

visualize scanned grade B with 2 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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

### 5. Show Prompt and Offer Copy Option

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -o "${images_dir}/${filename}" "${imageUrl}"
plugins/design-partner/commands/visualize.md · 349 lines

How it starts

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

Design Partner Visualize Command

For Claude: Generate actual images using DALL-E 3 or Gemini Imagen based on design ideas.

Process

1. Check API Key Availability

# Run detection script
node ${CLAUDE_PLUGIN_ROOT}/scripts/detect-api-keys.js

If no keys found, inform user:

No image generation providers configured.

To generate images, you'll need an API key from:
- OpenAI DALL-E 3: https://platform.openai.com/api-keys (~$0.04/image)
- Google Gemini: https://aistudio.google.com/app/apikey (~FREE/image)

Run /dp:providers setup to configure.

2. Load Context

  • Read .claude/dp.local.md to get:
    • Current idea (if idea-id provided, load that specific idea)
    • Design Brief (users, job, constraints)
    • Current budget and spend

3. Use AskUserQuestion (2 questions)

{
  "questions": [
    {
      "question": "What type of image should I generate?",
      "header": "Image Type",
      "multiSelect": false,
      "options": [
        {
          "label": "UI Mockup",
          "description": "Realistic product screenshot or interface"
        },
        {
          "label": "Concept Illustration",
          "description": "Artistic representation of the idea"
        },
        {
          "label": "User Scenario",
          "description": "Person using the product in context"
        },
        {
          "label": "Marketing Visual",
          "description": "Hero image for landing page or presentation"
        }
      ]
    },
    {
      "question": "Which provider should I use?",
      "header": "Provider",
      "multiSelect": false,
      "options": [
        {
          "label": "DALL-E 3 (OpenAI) - $0.04",
          "description": "Best quality, photorealistic (Recommended)"
        },
        {
          "label": "Gemini 3 Pro - Free (preview)",
          "description": "Good quality, budget-friendly"
        },
        {
          "label": "Use my default",
          "description": "Auto-select based on your settings"
        }
      ]
    }
  ]
}

Read the full file on GitHub · 349 lines

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 · 349 lines · 16 tokens per session scan B e3e03a026f10

Subscribe to this mod's changes

visualize is a command published in the GitHub repository danielraffel/generous-corp-marketplace (11 stars, last pushed 6d ago), licensed MIT. It adds 16 tokens to every session and 2,250 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (asks the agent to reveal its instructions, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.