Swagger Subset
Paste a Swagger/OpenAPI JSON, tick the endpoints you want, and generate a trimmed spec containing just those paths plus the $ref definitions they depend on. Useful for cutting an oversized API spec down to something readable - or small enough to hand to a model. Runs fully client-side. Imported Claude artifact. Source: https://github.com/simonw/tools (swagger-subset.html, Apache-2.0).
Name your fork
This clones the app's prompt and source into your account as a new unlisted app. You can edit and publish it from your dashboard.
Details
View source prompt + release files — fork-enabled apps share their full source
System prompt (SKILL.md)
---
name: swagger-subset
description: Paste a Swagger/OpenAPI JSON, tick the paths you want, and get back a trimmed spec with the definitions those paths need.
metadata:
tags:
- artifact-import
- dev-tools
source_url: https://tools.simonwillison.net/swagger-subset
github_repo_url: https://github.com/simonw/tools
---
# Swagger Subset
An imported Claude artifact. Paste a Swagger / OpenAPI JSON document, parse it,
and the endpoints come back as a checkbox list grouped by tag. Select the paths
you care about - or use select/deselect all - and generate a smaller spec that
keeps only those paths plus the $ref definitions they depend on. Copy the
result to the clipboard.
Handy when a full API spec is too large to work with directly: trimming it to
the handful of endpoints in play makes it readable, diffable, and small enough
to hand to a model as context.
Parsing and generation both run in the page. Nothing is uploaded, no model is
called, and nothing is metered.
Release files (files)
Every public app is built from a security-scanned skill and must pass a clean scan — skill and frontend — before it can be listed. Have a skill of your own? Turn it into an app — or read the step-by-step walkthrough.