preset-cli

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

A command-line interface for Preset, a hosted data-visualization and SQL platform. It is intended for shell scripts, automation, continuous integration and delivery (CI/CD), and agent-driven workflows.

In plain words
What is it for?
It helps developers read metadata, run bounded read-only SQL queries, retrieve chart data, export results, and automate Preset workflows through the terminal.
Why use it?
It avoids manually operating Preset for repeatable command-line tasks and provides structured output for scripts. It also separates safe reads from actions that can overwrite or change data.

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 It helps developers read metadata, run bounded read-only SQL queries, retrieve chart data, export results, and automate Preset workflows through the terminal.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-cli.svg)](https://agentmods.dev/skills/preset-io/agent-skills/preset-cli)
Your own site
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-cli"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-cli.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 768 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.00058 $0.00768
Opus 5 $0.00029 $0.00384
Sonnet 5 $0.00012 $0.00154
Haiku 4.5 $0.00006 $0.00077

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

Security

Grade A, and why

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

plugins/preset-cli-skills/skills/preset-cli/SKILL.md · 50 lines

How it starts

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

preset-cli

Use as the foundation for shell, scripting, CI/CD, and agent-driven Preset workflows through the sup CLI.

Always

  • CLI surface only; stay on MCP or direct API if that's what the user requested.
  • Default to --json for automation and agent consumption.
  • Keep SUP_PRESET_API_TOKEN / SUP_PRESET_API_SECRET out of command lines and shared output; use env vars or sup config auth, never paste secrets on the command line.
  • Route push, sync, overwrite, and --force to preset-cli-mutations.
  • Redact tokens and credential-bearing output in transcripts.

Decision Rules

  • Classify CLI vs MCP vs direct API intent before acting; if MCP or direct API was requested, defer to that plugin.
  • Run metadata reads and explicitly requested data-returning reads (e.g. sup sql, sup chart data) on familiar workspaces directly with bounded output; for sup sql, this direct path requires a pure single-statement SELECT. Load safety policy before mutations, SQL that is not a pure single-statement SELECT, untrusted-source SQL, unfamiliar workspaces, or broad outputs.
  • Choose output format based on the downstream consumer: --json for automation, --csv for files, default Rich for humans, --porcelain for shell pipelines.
  • If a command group is not named on this card, load command coverage before composing commands.
  • For mutating intent, stop and load preset-cli-mutations rather than continuing on this card. Non-SELECT SQL is confirmation-gated by the safety policy even when it is pasted by the user for a familiar workspace.

Workflow Order

  1. Establish install, auth, and workspace context.
  2. Choose output format.
  3. Classify risk (metadata read vs data-returning read vs mutation).
  4. Load the focused reference for the operation.
  5. Run only the safe / read command.
  6. Redact output before sharing.

Retrieve

Read the full file on GitHub · 50 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 · 50 lines · 58 tokens per session scan A 8a87a6e7a364

Subscribe to this mod's changes

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