Claude
Cursor
GitHub Copilot
Skill
preset-import-export
Inspect and route direct Superset import/export workflows for dashboards, charts, datasets, databases, saved queries, themes, and asset bundles. Use only for direct API workflows; Do not use for MCP-only work.
Virus-scanned
Reviewed automatically before listing.
Download
preset-io-agent-skills-plugins_preset-api-skills_skills_preset-import-export-73d2674.zip · 3 KB
Install
skills CLI
npx skills add https://github.com/preset-io/agent-skills/tree/master/plugins/preset-api-skills/skills/preset-import-export
Claude Code
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install preset-io-agent-skills@llmmart
Git
git clone https://github.com/preset-io/agent-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole preset-io/agent-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
preset-import-export
Use for workspace asset import/export endpoint selection and disclosure review.
Always
- Auth and conventions come from
preset-api(JWT exchange, base URLs, Rison); resolve the workspace hostname through the Management API when it is not already known. - Treat imports as mutations, and exports as potential disclosure of SQL, metadata, UUIDs, tags, related dataset/database YAML, and credential-bearing fields — confirmation-gated, naming workspace, endpoint, object IDs or bundle, destination, and expected disclosure or mutation.
- Route overwrite, sparse-update, all-assets restore, database import, and secret-bearing import to
preset-destructive-imports.
Decision Rules
- Distinguish export disclosure from import mutation.
- Classify overwrite imports as destructive.
- Disclose bundle secret handling.
- Require validation before import.
Workflow Order
- Inspect request and bundle metadata.
- Choose export or import path.
- Prepare disclosure or mutation approval summary.
- Confirm before any export or import execution.
Retrieve
- Export endpoints and approvals: references/export-workflows.md
- Import endpoints and mutation routing: references/import-workflows.md
- Bundle disclosure and secret redaction: references/bundle-secrets-and-disclosure.md
- OpenAPI checks and safe smoke validation: references/validation-and-smoke.md
Files (agent-skills)
-
references
-
bundle-secrets-and-disclosure.md 1.2 KB
# Bundle Secrets And Disclosure Use this reference before inspecting, sharing, storing, or summarizing import/export bundles. Exported bundles can include: | Category | Examples | |---|---| | SQL and analytics logic | virtual dataset SQL, saved query SQL, chart query context | | Object metadata | dashboard layout, tags, owners, UUIDs, descriptions | | Database metadata | connection names, engine names, schemas, table metadata | | Credential-bearing fields | SQLAlchemy URIs, `extra` JSON, encrypted extras, SSH tunnel settings | | Secret material | passwords, private keys, private key passwords, OAuth/access tokens when supplied for import | ## Handling Rules - Never print import secrets. - Never paste passwords, private keys, SQLAlchemy URIs, access tokens, refresh tokens, or signed values into Markdown examples, logs, PR comments, or handoff notes. - Redact credential-bearing fields before summarizing bundle contents. - Confirm the destination path before writing export archives. - Confirm the source path before reading import archives. If the user needs a bundle review, report object types, counts, names when safe, and redacted risk notes rather than raw archive contents. -
export-workflows.md 1.3 KB
# Export Workflows Use this reference for Superset workspace export endpoint guidance. Exports can disclose SQL text, dashboard layout, dataset metadata, database metadata, tags, object UUIDs, and credential-bearing engine or `extra` fields. Confirm before all Superset asset exports, including object-scoped chart/dashboard exports: the API has no non-related export mode, and chart/dashboard bundles can include related dataset/database YAML. ## Export Endpoints | Surface | Endpoint | |---|---| | All assets | `GET /api/v1/assets/export/` | | Dashboards | `GET /api/v1/dashboard/export/` | | Dashboard as example | `GET /api/v1/dashboard/{pk}/export_as_example/` | | Charts | `GET /api/v1/chart/export/` | | Datasets | `GET /api/v1/dataset/export/` | | Databases | `GET /api/v1/database/export/` | | Saved queries | `GET /api/v1/saved_query/export/` | | Themes | `GET /api/v1/theme/export/` | Before a gated export, summarize: 1. Workspace hostname. 2. Export endpoint. 3. Object IDs or whether this is an all-assets export. 4. Expected included related objects. 5. Where the archive will be written. 6. Expected disclosure, including SQL or credential-bearing metadata. Load [bundle-secrets-and-disclosure.md](bundle-secrets-and-disclosure.md) before inspecting or sharing export bundle contents. -
import-workflows.md 1.1 KB
# Import Workflows Use this reference for Superset workspace import endpoint guidance. Imports mutate workspace metadata. Database imports can require passwords, SSH tunnel passwords, private keys, private key passwords, or encrypted extra secrets. Use `preset-destructive-imports` for overwrite, sparse-update, all-assets restore, database import, or secret-bearing import workflows. ## Import Endpoints | Surface | Endpoint | |---|---| | All assets | `POST /api/v1/assets/import/` | | Dashboards | `POST /api/v1/dashboard/import/` | | Charts | `POST /api/v1/chart/import/` | | Datasets | `POST /api/v1/dataset/import/` | | Databases | `POST /api/v1/database/import/` | | Saved queries | `POST /api/v1/saved_query/import/` | | Themes | `POST /api/v1/theme/import/` | Before importing, summarize: 1. Workspace hostname. 2. Import endpoint. 3. Bundle path and contained object types. 4. Whether overwrite, sparse update, or passwords are provided. 5. Expected objects created or changed. 6. Rollback or restore plan. Never print import secrets or embed them in Markdown examples. -
validation-and-smoke.md 1.1 KB
# Validation And Smoke Patterns Use this reference for safe import/export validation. ## Preferred Validation For smoke validation, prefer OpenAPI presence checks for import/export endpoints: ```python openapi = client.workspace("GET", hostname, "/_openapi") paths = openapi.get("paths", {}) assert "/api/v1/assets/export/" in paths assert "/api/v1/dashboard/import/" in paths ``` Verify candidate endpoints against the target workspace's own `/api/v1/_openapi` response before relying on public docs. ## Live Smoke Limits - Do not live-test imports without explicit approval. - Do not live-test exports unless the user explicitly approves the disclosure and destination path. - Do not inspect exported archive contents without applying [bundle-secrets-and-disclosure.md](bundle-secrets-and-disclosure.md). - Do not use production workspaces for import smoke tests unless the user explicitly approves the exact bundle and rollback plan. Use `preset-destructive-imports` before testing overwrite, sparse-update, all-assets restore, database import, or secret-bearing import workflows.
-
-
SKILL.md 1.8 KB
--- name: preset-import-export description: Inspect and route direct Superset import/export workflows for dashboards, charts, datasets, databases, saved queries, themes, and asset bundles. Use only for direct API workflows; Do not use for MCP-only work. --- # preset-import-export Use for workspace asset import/export endpoint selection and disclosure review. ## Always - Auth and conventions come from `preset-api` (JWT exchange, base URLs, Rison); resolve the workspace hostname through the Management API when it is not already known. - Treat imports as mutations, and exports as potential disclosure of SQL, metadata, UUIDs, tags, related dataset/database YAML, and credential-bearing fields — confirmation-gated, naming workspace, endpoint, object IDs or bundle, destination, and expected disclosure or mutation. - Route overwrite, sparse-update, all-assets restore, database import, and secret-bearing import to `preset-destructive-imports`. ## Decision Rules - Distinguish export disclosure from import mutation. - Classify overwrite imports as destructive. - Disclose bundle secret handling. - Require validation before import. ## Workflow Order 1. Inspect request and bundle metadata. 2. Choose export or import path. 3. Prepare disclosure or mutation approval summary. 4. Confirm before any export or import execution. ## Retrieve - Export endpoints and approvals: [references/export-workflows.md](references/export-workflows.md) - Import endpoints and mutation routing: [references/import-workflows.md](references/import-workflows.md) - Bundle disclosure and secret redaction: [references/bundle-secrets-and-disclosure.md](references/bundle-secrets-and-disclosure.md) - OpenAPI checks and safe smoke validation: [references/validation-and-smoke.md](references/validation-and-smoke.md)
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.