swag2mcp: Skill for Claude Code

.agents/skills/swag2mcp-cli/SKILL.md

swag2mcp-cli is a skill for Claude Code, Codex from mmadfox/swag2mcp. It costs 55 tokens per session (8,760 once invoked), scanned B, original, Apache-2.0.

A reference guide for using swag2mcp from the terminal. swag2mcp connects APIs described by OpenAPI or Swagger specifications to AI agents through MCP, a tool-connection standard.

In plain words
What is it for?
Use it to initialize a workspace, configure API specifications, start an MCP server, list APIs, search endpoints, and invoke supported API calls.
Why use it?
It helps you find the right command, option, or configuration structure without having to learn the CLI from its source code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is mmadfox/swag2mcp's own configuration. It tells Claude Code and Codex how to work on swag2mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything swag2mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mmadfox/swag2mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mmadfox/swag2mcp/main/.agents/skills/swag2mcp-cli/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mmadfox/swag2mcp

Made for: Claude Code, Codex.

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 swag2mcp-cli

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mmadfox/swag2mcp/swag2mcp-cli"><img src="https://agentmods.dev/badge/skills/mmadfox/swag2mcp/swag2mcp-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,760 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. 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.00055 $0.08760
Opus 5 $0.00028 $0.04380
Sonnet 5 $0.00011 $0.01752
Haiku 4.5 $0.00006 $0.00876

Measured 7d ago against content hash 6d35312fc214, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade B, and why

swag2mcp-cli scanned grade B with 2 findings 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 7d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo mv swag2mcp /usr/local/bin/

Makes network callslowCapability

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

curl http://localhost:8080/health
.agents/skills/swag2mcp-cli/SKILL.md · 863 lines

How it starts

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

swag2mcp-cli — CLI Reference Skill

This document describes every CLI command in swag2mcp. Use it when you need to tell a user how to interact with the tool from the terminal.

When this skill activates

This skill activates when the user asks to:

  • Set up swag2mcp or initialize a workspace
  • Connect an API to an AI agent / LLM
  • Add, configure, or manage API specifications (OpenAPI/Swagger)
  • Start an MCP server for API access
  • Explore, search, or invoke API endpoints through MCP tools
  • Work with Open-Meteo, Binance, PokéAPI, icanhazdadjoke, or similar APIs

Example user requests that trigger this skill

User says What the skill does
"Set up swag2mcp" Downloads and installs swag2mcp, runs swag2mcp init .
"Initialize a workspace for my APIs" Runs swag2mcp init . in current directory
"List my configured APIs" Runs swag2mcp ls
"Start the MCP server for my specs" Runs swag2mcp mcp
"Show me what APIs are available" Calls spec_list MCP tool
"Find an endpoint to get BTC price" Calls search MCP tool
"Call the API to get a random dad joke" Calls invoke MCP tool
"How do I add authentication to my API?" Guides through auth config in YAML
"Export my workspace as a backup" Runs swag2mcp export

Workspace creation rules

When the user asks to create a project or workspace, create it in a .swag2mcp subdirectory of the current folder:

User says Command
"Create a project in the current folder" mkdir -p .swag2mcp && swag2mcp init ./.swag2mcp
"Create a project called my-api" mkdir -p my-api/.swag2mcp && swag2mcp init ./my-api/.swag2mcp
"Set up swag2mcp" (no path) mkdir -p .swag2mcp && swag2mcp init ./.swag2mcp
"Initialize a workspace for my APIs" mkdir -p .swag2mcp && swag2mcp init ./.swag2mcp

Always create the workspace in a .swag2mcp subdirectory of the user's current directory unless they specify a custom path. This creates swag2mcp.yaml, cache/, specs/, responses/, and auth_scripts/ inside .swag2mcp/.

Read the full file on GitHub · 863 lines

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. 7d ago First seen · 863 lines · 55 tokens per session scan B 6d35312fc214

Subscribe to this mod's changes

swag2mcp-cli is a skill published in the GitHub repository mmadfox/swag2mcp (0 stars, last pushed 27d ago), licensed Apache-2.0. It adds 55 tokens to every session and 8,760 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.