Skip to main content
plugin

preset-cli-skills — Claude Code plugin: features and installation

This plugin guides Claude Code through Preset CLI tasks with sup, from data exports to terminal SQL and CI/CD workflows. Changes require a preview and explicit confirmation.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install preset-cli-skills@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official
Open on GitHub

What preset-cli-skills does

The package contains two skills. preset-cli handles read and export workflows, while preset-cli-mutations covers commands that change state. The agent can select a workspace, read dashboards, charts, datasets and saved queries, run ad-hoc SQL, and work with JSON, CSV or YAML output.

Install the superset-sup package and configure SUP_PRESET_API_TOKEN and SUP_PRESET_API_SECRET. Supply credentials through environment variables or sup config auth, never as command-line text. Before a write, the agent must preview the change and obtain confirmation naming the target workspace and literal flags. This package is for CLI work; MCP requests and HTTP or SDK code belong to other workflows.

What it helps with

  • export Preset dashboards and datasets
  • run an ad-hoc SQL query from a terminal
  • prepare sup commands for CI/CD
  • preview a cross-workspace resource promotion

Example prompts for the agent

  • Use sup to list my workspaces as JSON.
  • Export the dashboards and datasets from the selected workspace.
  • Prepare a chart promotion to the target workspace and show the planned changes first.

How to install preset-cli-skills

Plugin marketplace

/plugin install preset-cli-skills@claude-plugins-official
/plugin marketplace add anthropics/claude-plugins-official

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about preset-cli-skills

How do I install preset-cli-skills in Claude Code?

Run /plugin marketplace add anthropics/claude-plugins-official first, then /plugin install preset-cli-skills@claude-plugins-official.

What does preset-cli-skills do?

It guides Claude Code through Preset CLI workflows using sup, including resource reads and exports, terminal SQL, and automation. Mutating commands require a preview and user confirmation.

What do I need to use preset-cli-skills?

Install superset-sup and configure SUP_PRESET_API_TOKEN and SUP_PRESET_API_SECRET through environment variables or sup config auth. Keep credentials out of command-line arguments.

Source text

preset-cli-skills · Apache-2.0
# Preset CLI Skills

Installable Preset CLI skill package. Drives the `sup` CLI (PyPI package `superset-sup`) for shell one-liners, batch exports, ad-hoc SQL, and CI/CD automation.

## Surface Selection

- Use this package only when the user explicitly asks for `sup`, the Preset CLI, shell one-liners, scripting, batch exports, ad-hoc SQL from a terminal, or CI/CD automation that is simpler as a single command than as an HTTP call.
- If the user mentions MCP, MCP tools, MCP clients, Superset MCP, Preset MCP, or Copilot/MCP behavior, do not use this package. Use the separate `preset-mcp-skills` package.
- If the user wants in-process HTTP, REST endpoints, Python `requests`, SDKs, or curl examples, do not use this package. Use the separate `preset-api-skills` package.
- If both API and MCP plugins are installed, MCP intent wins over resource type. A dashboard, chart, dataset, or SQL Lab request should still use MCP guidance when the user asked for MCP.
- If a CLI workflow lacks the needed capability, stop and ask whether to switch to the API surface. Do not silently escalate.

## Skills

| Skill | Description |
|---|---|
| [preset-cli](skills/preset-cli/SKILL.md) | Drive the `sup` CLI for non-destructive shell, scripting, and CI/CD workflows: install, authentication via `SUP_PRESET_API_TOKEN` / `SUP_PRESET_API_SECRET`, workspace selection, JSON/CSV/YAML/porcelain output, ad-hoc SQL, and read/export of dashboards, charts, datasets, databases, and queries. Foundation skill for the rest of the CLI package. |
| [preset-cli-mutations](skills/preset-cli-mutations/SKILL.md) | State-changing `sup` CLI operations - single-workspace writes (`sup chart push`, `sup dashboard push`, `sup dataset push`, `--force`, `--overwrite`) and cross-workspace promotion (`sup sync create/run/validate`) - with mandatory preview, confirmation templates, and secret-handling guardrails loaded by construction. |

Each `SKILL.md` is small and always-loaded once routed; detailed examples live in `references/` files the agent loads on demand.

The references are intentionally split by task so routine routing does not require loading the full command catalog: install/auth, config precedence, workspace selection, output formats, asset filter matrices, SQL/data safety, saved-query reads, mutation preview, confirmation templates, and cross-workspace sync each live in focused files.

## Quick Start

```bash
pip install superset-sup

export SUP_PRESET_API_TOKEN="your-api-token"
export SUP_PRESET_API_SECRET="your-api-token-secret"

sup config auth
sup config show
sup workspace list --json
```

The `sup` entry point ships in the `superset-sup` PyPI package and authenticates with `SUP_PRESET_API_TOKEN` / `SUP_PRESET_API_SECRET` (these are distinct from `PRESET_CLIENT_ID` / `PRESET_CLIENT_SECRET` used by `preset-api-skills`). Never paste the token/secret directly on the command line; use environment variables or `sup config auth`.

## Client Entry Points

- Claude Code: `.claude-plugin/plugin.json` plus `skills/*/SKILL.md`; Claude plugin installs do not load package-level `AGENTS.md` or `CLAUDE.md` context.
- Claude web/Desktop custom skills: build per-skill ZIPs with `node scripts/build-claude-web-skills.mjs --source plugins/preset-cli-skills/skills --out dist/claude-web-flat-cli-skills`.
- OpenAI Codex: `.codex-plugin/plugin.json` plus `AGENTS.md`.
- Gemini CLI: `skills/*/SKILL.md`; `AGENTS.md` is only for legacy context imports.
- Direct repository readers: `AGENTS.md`.
- Cursor: `.cursor-plugin/plugin.json`.
- GitHub Copilot: `.github/copilot-instructions.md`.

## Safety Policy

Default to non-destructive reads and exports. Before any state-changing `sup` command - `sup chart push`, `sup dashboard push`, `sup dataset push`, `sup user push`, `sup user invite`, any `--force` or `--overwrite` invocation, or `sup sync run` against any target workspace - preview the change first (native `--dry-run` for `sup sync run`, `sup user push`, and `sup user invite`; pull-and-diff against the target for chart/dashboard/dataset push which have no native `--dry-run`), summarize source workspace, target workspace, asset IDs/types, and any destructive flags, then get explicit user confirmation that names the target workspace and the literal flag strings.

Never paste `SUP_PRESET_API_TOKEN`, `SUP_PRESET_API_SECRET`, or any bearer token into a command line; rely on environment variables and `sup config auth`. Redact tokens, refresh tokens, database passwords, and any credential surfaced in `sup` output before sharing transcripts, logs, or screenshots.

The CLI safety policy is captured in [`skills/preset-cli/references/safety-policy.md`](skills/preset-cli/references/safety-policy.md) and loaded by every CLI skill in this package on demand. It is intentionally CLI-flavored and does not link out to `preset-api-skills` so this package remains independently installable.

© Preset · Apache-2.0 · preset-io/agent-skills

Similar plugins

All plugins for DevOps and infrastructure →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor