add-preset

add-preset is a command for Claude Code from reggiechan74/cc-plugins. It costs 37 tokens per session (1,359 once invoked), scanned A, original, MIT.

A command for adding a custom image-generation preset to the nano-banana tool. It updates the preset's configuration, reference documentation, and skill instructions.

In plain words
What is it for?
Use it to define a preset's name, category, image shape, and output-size tier.
Why use it?
It avoids editing several image-generation configuration files by hand when introducing a new preset.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the nano-banana plugin — 2 skills, 1 command shipped together

Good fit Use it to define a preset's name, category, image shape, and output-size tier.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add reggiechan74/cc-plugins
Claude Code
/plugin install nano-banana

Made for: Claude Code.

Or install nano-banana, the plugin that ships this one along with the rest of its 2 skills, 1 command.

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 add-preset

README.md
[![agentmods](https://agentmods.dev/badge/commands/reggiechan74/cc-plugins/add-preset/github.svg)](https://agentmods.dev/commands/reggiechan74/cc-plugins/add-preset)
Your own site
<a href="https://agentmods.dev/commands/reggiechan74/cc-plugins/add-preset"><img src="https://agentmods.dev/badge/commands/reggiechan74/cc-plugins/add-preset/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 add-preset

Your own site · 80×15
<a href="https://agentmods.dev/commands/reggiechan74/cc-plugins/add-preset"><img src="https://agentmods.dev/badge/commands/reggiechan74/cc-plugins/add-preset.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,359 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.00037 $0.01359
Opus 5.5 $0.00015 $0.00544
Sonnet 5.5 $0.00007 $0.00272
Haiku 4.5 $0.00004 $0.00136

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

Security

Grade A, and why

add-preset 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 1mo 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.

nano-banana-plugin/commands/add-preset.md · 134 lines

How it starts

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

Add Custom Preset

Add a new image generation preset to nano-banana, updating config.json, presets.md, and SKILL.md.

Arguments received: $ARGUMENTS

File Paths

All paths are relative to $CLAUDE_PLUGIN_ROOT/skills/nano-banana/:

  • Config: $CLAUDE_PLUGIN_ROOT/skills/nano-banana/config.json
  • Presets reference: $CLAUDE_PLUGIN_ROOT/skills/nano-banana/references/presets.md
  • Skill reference: $CLAUDE_PLUGIN_ROOT/skills/nano-banana/SKILL.md

Step 1: Parse Arguments

Extract from $ARGUMENTS:

  • slug — the preset identifier (e.g. chalk-drawing)
  • --category — one of: Technical, Business, Creative, UI/UX, Photography, Specialized
  • --aspect — default aspect ratio (default: 1:1)
  • --size — default resolution tier (default: 2K)

Valid aspect ratios: 1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9 Valid sizes: 512px, 1K, 2K, 4K Valid categories: Technical, Business, Creative, UI/UX, Photography, Specialized

Step 2: Gather Missing Information

Read $CLAUDE_PLUGIN_ROOT/skills/nano-banana/config.json to check whether a preset with this slug already exists. If it does, inform the user and stop.

For any missing required fields, use AskUserQuestion to collect them one at a time:

  1. If slug is missing or invalid (contains spaces or uppercase): ask for a valid slug.
  2. If category is missing or invalid: ask the user to choose from the six valid categories.
  3. Always ask for the prompt prefix — the core style instruction prepended to every prompt. Tell the user:
    • It should describe medium, style, lighting, quality anchors, and exclusions
    • It must end with a space and a period+space: ". "
    • Aim for 30–60 words
    • Example: "Chalk illustration on dark blackboard: soft chalk texture with visible dust marks, limited warm color palette, bold outlines with rough edges, slightly imperfect hand-drawn feel, educational diagram quality. "
  4. Always ask for a When to Use description (1–2 sentences describing ideal use cases).
  5. Always ask for Tips (1–2 sentences of prompt engineering advice specific to this style).

Read the full file on GitHub · 134 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. 1mo ago First seen · 134 lines · 37 tokens per session scan A f51a3b3d187a

Subscribe to this mod's changes

add-preset is a command published in the GitHub repository reggiechan74/cc-plugins (7 stars, last pushed 1mo ago), licensed MIT. It adds 37 tokens to every session and 1,359 once invoked, about $0.0001 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-11-01.

Related

add-preset compared with commands from other repositories

add-preset next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
add-presetreggiechan74/cc-pluginsCommand71mo agoMITA37Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code
implementgithub/spec-kitCommand154ktodayMITA14Claude Code