decorate

decorate is a command for Claude Code from synaptiai/prompt-decorators. It costs 25 tokens per session (852 once invoked), scanned A, original, Apache-2.0.

A command for managing a catalogue of prompt decorators—reusable additions that change or guide how a prompt is handled—including the always-on list and automatic mode.

In plain words
What is it for?
Use it to browse decorators, preview expansions, enable or disable always-on decorators, and toggle automatic decoration.
Why use it?
It provides one safe interface for viewing or changing decorator settings without editing project files.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter.

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 prompt-decorators plugin — 2 skills, 1 command, 1 hook shipped together

Good fit Use it to browse decorators, preview expansions, enable or disable always-on decorators, and toggle automatic decoration.

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 synaptiai/prompt-decorators
Claude Code
/plugin install prompt-decorators

Made for: Claude Code.

Or install prompt-decorators, the plugin that ships this one along with the rest of its 2 skills, 1 command, 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 decorate

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/prompt-decorators/decorate.svg)](https://agentmods.dev/commands/synaptiai/prompt-decorators/decorate)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/prompt-decorators/decorate"><img src="https://agentmods.dev/badge/commands/synaptiai/prompt-decorators/decorate.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 852 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.00025 $0.00852
Opus 5 $0.00013 $0.00426
Sonnet 5 $0.00005 $0.00170
Haiku 4.5 $0.00003 $0.00085

Measured 8d ago against content hash 81a147caab94, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

decorate 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 8d 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-code-plugin/commands/decorate.md · 93 lines

How it starts

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

/decorate

Manage the prompt-decorators catalogue, always-on list, and auto-decorate mode. The actual work happens in a Python dispatcher; this command is a thin shell around it.

The user invoked: /decorate $ARGUMENTS

Contract

GOAL: Show the user the exact, unmodified output of the dispatcher so they can act on it (e.g., see the decorator list, copy a sigil, confirm an auto mode change). Testable: the output in the fenced block matches what scripts/dispatch.py prints verbatim.

CONSTRAINTS:

  • Command is read-mostly. The only writes are to ~/.config/prompt-decorators/config.json via enable/disable/always/auto subcommands - never to project files.
  • $ARGUMENTS must reach the dispatcher as tokenised argv, NOT as a shell command string. The heredoc below uses a quoted delimiter ('PD_ARGS_EOF') so user-supplied metacharacters cannot escape; the dispatcher then uses shlex.split inside Python for safe tokenisation.
  • Do not interpret or summarise the output unless the user explicitly asks. Relay verbatim.

FORMAT: A fenced code block containing the dispatcher's stdout. If the dispatcher exits non-zero, include the exit code and any stderr.

FAILURE CONDITIONS:

  • Output is paraphrased rather than verbatim.
  • $ARGUMENTS is interpolated into a shell command string (reintroduces the injection vector).
  • The user's config.json is written outside the subcommand's intent (e.g., running list leaves the config modified).

Process

  1. Invoke the dispatcher via a quoted heredoc so shell metacharacters in the user's input can't be executed:

    python3 "${CLAUDE_PLUGIN_ROOT}/scripts/dispatch.py" --args-from-stdin <<'PD_ARGS_EOF'
    $ARGUMENTS
    PD_ARGS_EOF
    
  2. Wrap the output in a fenced code block and return it to the user without edits.

  3. If the user's query is "what decorator should I use for X?" rather than a subcommand, invoke the prompt-decorators-usage skill instead of running this dispatcher - it's better suited to that kind of judgement call.

Read the full file on GitHub · 93 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. 8d ago First seen · 93 lines · 25 tokens per session scan A 81a147caab94

Subscribe to this mod's changes

decorate is a command published in the GitHub repository synaptiai/prompt-decorators (43 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 852 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-30.