preset-api

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

Instructions for preparing direct access to the Preset API, including authentication, request URLs, pagination, parameters, and response handling. Preset is a hosted data-visualisation platform based on Apache Superset.

In plain words
What is it for?
Use them before making direct Preset API requests, unless the work is being done through Preset or Superset MCP tools.
Why use it?
They reduce setup errors and help keep credentials and sensitive API data out of code and logs.

Skill for Claude Code

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

Part of the preset-api-skills plugin — 17 skills shipped together

Good fit Use them before making direct Preset API requests, unless the work is being done through Preset or Superset MCP tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/preset-io/agent-skills/preset-api
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-api
Clone the repo
git clone --depth 1 https://github.com/preset-io/agent-skills

Made for: Claude Code.

Or install preset-api-skills, the plugin that ships this one along with the rest of its 17 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-api

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/preset-io/agent-skills/preset-api"><img src="https://agentmods.dev/badge/skills/preset-io/agent-skills/preset-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 737 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00047 $0.00737
Opus 5 $0.00023 $0.00368
Sonnet 5 $0.00009 $0.00147
Haiku 4.5 $0.00005 $0.00074

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

Security

Grade A, and why

preset-api scanned grade A with 1 finding 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.

The scan reads SKILL.md. This mod also ships 1 executable file (examples/preset_client.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Read and format JSON responses with `curl ... | jq`: use `jq -r` when capturing scalar shell values such as tokens, IDs, and hostnames; use plain `jq` for structured JSON output; do not use inline `python -c` parsers.
plugins/preset-api-skills/skills/preset-api/SKILL.md · 44 lines

How it starts

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

preset-api

Use as the prerequisite for direct Preset API skills. If the user is working through Preset/Superset MCP tools, stay on MCP unless they approve direct API calls.

Always

  • Keep PRESET_CLIENT_ID, PRESET_CLIENT_SECRET, and tokens out of source, logs, reports, and examples.
  • When checking whether credential environment variables are present, use a zsh-safe printenv "$VAR_NAME" pattern. Do not use bash-only indirect expansion such as ${!var}.
  • Read and format JSON responses with curl ... | jq: use jq -r when capturing scalar shell values such as tokens, IDs, and hostnames; use plain jq for structured JSON output; do not use inline python -c parsers. For reusable parsing, load skills/preset-api/examples/preset_client.py instead of improvising.
  • Use the workspace hostname or API base URL directly when it is already known from trusted context (for example, an earlier Management API response or user-supplied configuration); derive it through the Management API when provenance is missing.
  • Run reads directly: metadata reads always; customer-data reads (chart data, samples, distinct values, existing screenshots/thumbnails, own query history) when the user asked in their own message, with row limits as request parameters and summarized output.
  • Require explicit confirmation before mutations, imports, role/RLS changes, guest-token creation, permalink creation, screenshot/thumbnail cache generation, cache invalidation, all asset exports, credential-bearing reads, audit downloads, and SQL that is not a confidently classified single-statement SELECT.
  • When a target, owner, workspace, output destination, SQL classification, or credential boundary cannot be proven from trusted context, fall back to confirmation.

Decision Rules

  • Use existing authenticated Preset API context; never ask users to paste secrets.
  • Select base URL from discovered team, workspace, or Superset workspace facts.
  • Use pagination and Rison for list, filter, sort, and search calls.
  • Load safety policy before risky follow-up calls.
  • If the user starts with direct API intent and mentions MCP only as a fallback, keep direct API intent. Say: "No MCP fallback. MCP tools are a different surface and require separate explicit approval. Stop before MCP calls."
  • Do not stop direct API planning just because MCP was mentioned. Stop only before MCP calls or before direct API operations that require confirmation.

Read the full file on GitHub · 44 lines

Files

What ships with it

4 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 · 44 lines · 47 tokens per session scan A 1f9ca2e29b7b

Subscribe to this mod's changes

preset-api is a skill published in the GitHub repository preset-io/agent-skills (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 47 tokens to every session and 737 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

stripe-projects

Provision SaaS services + sync creds via Stripe Projects.

NousResearch/hermes-agent · 15 tokens

cqrs-implementation

Implement Command Query Responsibility Segregation for scalable architectures. Use when separating read and write models, optimizing query performance, or building event-sourced systems.

wshobson/agents · 35 tokens

gemini-api-agent-platform

Guides the usage of the Gemini API on Agent Platform with the Google Gen AI SDK for enterprise AI applications. Covers SDK usage (Python, JS/TS, Go, Java, C#), capabilities like Live API, tools, multimedia generation, caching, and batch prediction.

davila7/claude-code-templates · 61 tokens

workflow-orchestration-patterns

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.

wshobson/agents · 49 tokens

microservices-patterns

Design microservices architectures with service boundaries, event-driven communication, and resilience patterns. Use when building distributed systems, decomposing monoliths, or implementing microservices.

wshobson/agents · 38 tokens

memstack-automation-webhook-designer

Use this skill when the user says 'webhook', 'webhook handler', 'webhook endpoint', 'receive events', 'HMAC verification', 'idempotency', or needs secure webhook handlers with signature verification, retry handling, and dead letter queues. Do NOT use for full n8n workflows or scheduled tasks.

cwinvestments/memstack · 74 tokens