preset-cli-mutations

preset-cli-mutations is a skill for Claude Code from preset-io/agent-skills. It costs 60 tokens per session (698 once invoked), scanned A, original, Apache-2.0.

A guide for using the Preset command-line tool to change charts, dashboards, datasets, and users, including transfers between workspaces.

In plain words
What is it for?
Use it when pushing Preset content, inviting or pushing users, or synchronising content between workspaces through the CLI.
Why use it?
It helps prevent accidental changes by requiring previews, clear source and target workspaces, and confirmation for force or overwrite operations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the preset-cli-skills plugin — 2 skills shipped together

Good fit Use it when pushing Preset content, inviting or pushing users, or synchronising content between workspaces through the CLI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/preset-io/agent-skills/preset-cli-mutations
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.

Any agent
npx skills add preset-io/agent-skills --skill preset-cli-mutations
Clone the repo
git clone --depth 1 https://github.com/preset-io/agent-skills

Made for: Claude Code.

Or install preset-cli-skills, the plugin that ships this one along with the rest of its 2 skills.

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 preset-cli-mutations

README.md
[![agentmods](https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-cli-mutations/github.svg)](https://agentmods.dev/skills/preset-io/agent-skills/preset-cli-mutations)
Your own site
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-cli-mutations"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-cli-mutations/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 preset-cli-mutations

Your own site · 80×15
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-cli-mutations"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-cli-mutations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 698 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.00060 $0.00698
Opus 5 $0.00030 $0.00349
Sonnet 5 $0.00012 $0.00140
Haiku 4.5 $0.00006 $0.00070

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

Security

Grade A, and why

preset-cli-mutations 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 9d 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.

plugins/preset-cli-skills/skills/preset-cli-mutations/SKILL.md · 47 lines

How it starts

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

preset-cli-mutations

Use for state-changing CLI operations: single-workspace writes (push, --force, --overwrite) and cross-workspace promotion (sync).

Always

  • Use preset-cli first to establish auth, workspace, and output context.
  • CLI mutation surface only; route HTTP mutations to preset-api-skills.
  • Preview before execution: native --dry-run for sup sync run, sup user push, and sup user invite; pull-and-diff for sup chart push / sup dashboard push / sup dataset push (no native --dry-run).
  • Identify source AND target workspace explicitly before any cross-workspace operation.
  • Require explicit typed user confirmation that contains the literal --force / --overwrite flag string when applicable.
  • Redact tokens and credential-bearing output in transcripts.

Decision Rules

  • Distinguish single-workspace writes (sup chart/dashboard/dataset push) from cross-workspace sync (sup sync run).
  • Treat --force and --overwrite as destructive flags; never invoke without explicit per-flag confirmation.
  • For mutating command groups not named on this card, load command coverage and stop unless it explicitly marks the command as mutation-gated.
  • Do not let CI / automation context bypass the confirmation step; refuse if no interactive operator is available.
  • Route HTTP mutations to the API plugin; route MCP-driven workflows to the MCP plugin.

Workflow Order

  1. Resolve source and (if cross-workspace) target workspace.
  2. Validate configuration where the command supports it (e.g. sup sync validate) before previewing.
  3. Preview / diff to surface what will change.
  4. Summarize asset counts, target effects, rollback expectations, and any destructive flags.
  5. Ask for typed confirmation containing the literal destructive flag string.
  6. Stop before execution and wait for the typed confirmation.
  7. Execute only after confirmation.

Retrieve

Read the full file on GitHub · 47 lines

Files

What ships with it

6 files 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. 9d ago First seen · 47 lines · 60 tokens per session scan A ca2aace4ddc3

Subscribe to this mod's changes

preset-cli-mutations is a skill published in the GitHub repository preset-io/agent-skills (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 60 tokens to every session and 698 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

business-intelligence-expert

Build comprehensive business intelligence solutions including data warehouses, ETL pipelines, interactive dashboards, and analytical reporting systems. Use when the user mentions BI, data warehousing, star or snowflake schemas, OLAP cubes, ETL/ELT pipelines, dashboards, KPIs, or analytical reporting.

personamanagmentlayer/pcl · 64 tokens

edinet-company-ir-tracker

A workflow for retrieving recent filings from Japan’s EDINET system, the government database for corporate disclosures, for one Japanese company. It groups filings into areas such as financial reports, takeovers, ownership, governance, and events.

Kokai-Data/japan-business-data · 115 tokens

edinet-document-search

A search tool for Japanese financial disclosure documents filed through EDINET, Japan’s government system for company filings. It covers reports such as annual, quarterly, ownership, takeover, and internal-control disclosures.

Kokai-Data/japan-business-data · 128 tokens

search-procurement-portal

A skill for searching Japanese government procurement notices from the official 官公需情報ポータル. It discovers tender announcements with details such as project name, issuing organization, category, and procedure type.

Kokai-Data/japan-business-data · 136 tokens

search-egov-laws

A skill for searching Japanese laws, cabinet orders, and ministerial ordinances through Japan's official e-Gov legal information API. It returns details such as a law's title, identifier, type, and enforcement date.

Kokai-Data/japan-business-data · 111 tokens

edinet-document-fetch

A tool for downloading a specific Japanese financial disclosure from EDINET, Japan’s official system for company filings, after its document ID has been found.

Kokai-Data/japan-business-data · 97 tokens