Download Swagger File
Downloads Swagger files for API documentation, streamlining integration and understanding of APIs.
Install on your platform
We auto-selected Claude Code based on this skillβs supported platforms.
Run in terminal (recommended)
claude mcp add download-swagger-file npx -- -y @trustedskills/download-swagger-file
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"download-swagger-file": {
"command": "npx",
"args": [
"-y",
"@trustedskills/download-swagger-file"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill allows an AI agent to download a Swagger (OpenAPI) file from a given URL. It retrieves the specified OpenAPI definition and provides it for use in API documentation, testing, or code generation. The downloaded file can then be parsed and utilized by other tools or skills.
When to use it
- Generating API Documentation: You need to automatically download an OpenAPI specification to generate documentation for a backend service.
- Automated Testing: You want to retrieve the Swagger definition programmatically to create automated tests against an API.
- Code Generation: An agent needs to download and parse an OpenAPI file to generate client code or server stubs.
- API Discovery: You're exploring new APIs and need a way to quickly obtain their specifications.
Key capabilities
- Downloads Swagger/OpenAPI files from URLs.
- Supports standard OpenAPI definition formats.
- Provides the downloaded content as output.
Example prompts
- "Download the Swagger file from
https://example.com/openapi.json." - "Get the OpenAPI specification at
https://api.mycompany.com/swagger.yamland save it as 'my_api.yaml'." - βCan you retrieve the API definition from this URL:
https://public-api-docs.example/v1/openapi.json?β
Tips & gotchas
- Ensure the provided URL is accessible and points to a valid OpenAPI (Swagger) file. A 404 error will indicate an invalid or unavailable resource.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates β what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
π Community
Passed automated security scans.