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.
curl -O https://raw.githubusercontent.com/mmadfox/swag2mcp/main/.agents/skills/swag2mcp-cli/SKILL.mdgit clone --depth 1 https://github.com/mmadfox/swag2mcpWrote 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.
[](https://agentmods.dev/skills/mmadfox/swag2mcp/swag2mcp-cli)<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.
<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>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.
| Model | Per session | Once 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 |
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 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/.
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.
- 7d ago First seen · 863 lines · 55 tokens per session scan B 6d35312fc214
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.
Other skills, from other repositories
opencli-sitemap-author
Use when creating or maintaining OpenCLI site sitemaps: agent-facing navigation, page-state, action, workflow, API-reference, pitfall, and fallback knowledge for a website. Use after browser exploration discovers durable site context, when a sitemap is stale, or when promoting local site knowledge into the repo.
omh-rust
This is a Hermes-native rust workflow skill.
omh-code-review
This is a Hermes-native code-review workflow skill.
redteam-web-detail-pack
Routing and boundary guidance for authorized general web application security testing. Use as a web testing router when the attack surface should be dispatched to more specific web vulnerability skills.
android-pentest
A guide for authorized security testing of Android apps, covering APK inspection, runtime testing, traffic capture, code review, and function hooking. An APK is the installable package used by an Android app.
jikegongyuan-perspective
A writing guide based on GeekPark, a Chinese technology publication and entrepreneur community focused on AI, products, startups, and innovation.