api-docs

api-docs is a skill for Claude Code, Codex from potato-castle/mono-memory-mcp. It costs 14 tokens per session (662 once invoked), scanned B, original, MIT.

A tool that creates Swagger-style HTML documentation for a project's web API. An API is a set of endpoints that software uses to send and receive data; the tool gets its information from mono-memory records.

In plain words
What is it for?
Use it to create or update an HTML reference for API endpoints, including their request and response details.
Why use it?
It turns stored notes about API routes, request data, responses, and changes into a browsable document, while avoiding unnecessary regeneration when nothing changed.

Skill for Claude CodeCodex

Part of the mono-memory-mcp plugin — 6 skills, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/potato-castle/mono-memory-mcp/api-docs
Any agent
npx skills add potato-castle/mono-memory-mcp --skill api-docs
Clone the repo
git clone --depth 1 https://github.com/potato-castle/mono-memory-mcp

Made for: Claude Code, Codex.

Or install mono-memory-mcp, the plugin that ships this one along with the rest of its 6 skills, 1 MCP server.

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 api-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/potato-castle/mono-memory-mcp/api-docs.svg)](https://agentmods.dev/skills/potato-castle/mono-memory-mcp/api-docs)
Your own site
<a href="https://agentmods.dev/skills/potato-castle/mono-memory-mcp/api-docs"><img src="https://agentmods.dev/badge/skills/potato-castle/mono-memory-mcp/api-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 662 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00014 $0.00662
Opus 5 $0.00007 $0.00331
Sonnet 5 $0.00003 $0.00132
Haiku 4.5 $0.00001 $0.00066

Measured 4d ago against content hash f1f267852f3b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

api-docs 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 4d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat ~/.claude/plugins/mono-memory-mcp/api-docs-template/index.html

Makes network callslowCapability

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

- Keep all template features: Try it panels, auth dropdown, param tables, Send/Copy curl
skills/api-docs/SKILL.md · 75 lines

How it starts

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

API Docs Generator

Steps

  1. Detect project name from current directory name.

  2. Search API-related memories in parallel:

    • memory_search(query: "API endpoint route", project: "<project>")
    • memory_search(query: "request response schema", project: "<project>")
    • memory_search(query: "API change update", project: "<project>")
    • memory_context(project: "<project>", section: "api")
  3. memory_timeline(project: "<project>", limit: 100) — filter API-relevant ones.

  4. Combine and deduplicate all results.

  5. Cache check: Read .api-docs-cache.json if it exists.

    • Compare memory IDs and created_at with cache.
    • Determine new, updated, removed memories.
    • If no changes: print No changes detected. api-docs.html is up to date. and stop.
  6. Patch mode (api-docs.html exists AND partial changes):

    • Read existing api-docs.html
    • Edit only changed endpoint sections (add/update/remove)
    • MUST NOT re-read template files
    • Skip to step 9
  7. Full mode (first run OR too many changes):

    • Read template via Bash:
      cat ~/.claude/plugins/mono-memory-mcp/api-docs-template/index.html
      cat ~/.claude/plugins/mono-memory-mcp/api-docs-template/styles.css
      cat ~/.claude/plugins/mono-memory-mcp/api-docs-template/script.js
      
      MUST NOT search or explore — just read these 3 files directly.
    • Generate single self-contained HTML (inline CSS + JS)
    • Group endpoints by base path (e.g. /api/v1/users/*Users)
    • Keep all template features: Try it panels, auth dropdown, param tables, Send/Copy curl
  8. Save cache .api-docs-cache.json:

    {
      "generated_at": "<ISO timestamp>",
      "memories": [{"id": "<uuid>", "created_at": "<timestamp>"}]
    }
    
  9. If no API memories found:

    No API-related memories found for project "<project>".
    
    Save some first:
    - memory_save(project: "<project>", content: "GET /api/users - returns paginated user list", tags: "api,endpoint")
    - memory_init(project: "<project>", section: "api", content: "REST API base URL: /api/v1 ...")
    

Read the full file on GitHub · 75 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. 4d ago First seen · 75 lines · 14 tokens per session scan B f1f267852f3b

Subscribe to this mod's changes

api-docs is a skill published in the GitHub repository potato-castle/mono-memory-mcp (3 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 662 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens