agentleFS
HaibaraAiAPTXHaibaraAiAPTX/frontend-openapi-skills/skills/download-openapi/SKILL.md

download-openapi

Skill1 starsChanged 47 days agoMITView on GitHub

Download remote OpenAPI/Swagger JSON specification from a URL to local file using aptx-ft CLI. TRIGGER when user mentions: (1) fetch/pull/download swagger or openapi from URL, (2) save API spec to openapi.json locally, (3) get API documentation from server, or (4) prepare local input for code generation. DO NOT TRIGGER when: generating code/types from local file, reading existing openapi.json, downloading non-OpenAPI files, or authentication is required.

  • Installs packages

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Does NOT support YAML format

    line 48
  2. Distinctive:

    Does NOT handle authenticated URLs (Bearer Token, etc.)

    line 49
  3. Distinctive:

    Does NOT support custom request headers

    line 50
  4. Distinctive:

    Only validates JSON syntax, not OpenAPI specification validity

    line 51

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Download OpenAPI JSON

Download OpenAPI 3.x JSON specification from a remote URL.

Prerequisites

pnpm add -D @aptx-js/frontend-tk-cli

Usage

pnpm exec aptx-ft input download --url <url> --output <file>

Alternative (without pnpm):

npx aptx-ft input download --url <url> --output <file>

Example

pnpm exec aptx-ft input download --url https://api.example.com/swagger.json --output ./openapi.json

Workflow

  1. Confirm the OpenAPI URL with user
  2. Choose output path (recommended: ./openapi.json)
  3. Execute download command
  4. Pass the file path to other skills (generate-models, generate-artifacts)

Output

  • Local OpenAPI JSON file (e.g., ./openapi.json)

Boundaries

This skill only handles OpenAPI JSON format downloads:

  • Does NOT support YAML format
  • Does NOT handle authenticated URLs (Bearer Token, etc.)
  • Does NOT support custom request headers
  • Only validates JSON syntax, not OpenAPI specification validity

For these cases, download manually and use other tools.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.