bunjs-apidog

bunjs-apidog is a skill for Claude Code from MadAppGang/claude-code. It costs 44 tokens per session (4,913 once invoked), scanned A, original, MIT.

Guidance for documenting Bun.js APIs with OpenAPI, a standard format for describing endpoints, request data, and responses, and for syncing those descriptions with Apidog.

In plain words
What is it for?
Use it to create OpenAPI 3.0 specifications, document routes and schemas, import them into Apidog, and maintain API documentation.
Why use it?
It keeps API documentation and endpoint definitions organized so teams can understand and maintain an API more easily.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/import-to-apidog.sh.

Part of the dev plugin — 47 skills, 12 commands, 14 agents shipped together

Good fit Use it to create OpenAPI 3.0 specifications, document routes and schemas, import them into Apidog, and maintain API documentation.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code
agentmods
npx agentmods add skills/madappgang/claude-code/bunjs-apidog

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 47 skills, 12 commands, 14 agents.

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 bunjs-apidog

README.md
[![agentmods](https://agentmods.dev/badge/skills/madappgang/claude-code/bunjs-apidog.svg)](https://agentmods.dev/skills/madappgang/claude-code/bunjs-apidog)
Your own site
<a href="https://agentmods.dev/skills/madappgang/claude-code/bunjs-apidog"><img src="https://agentmods.dev/badge/skills/madappgang/claude-code/bunjs-apidog.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00044 $0.04913
Opus 5 $0.00022 $0.02457
Sonnet 5 $0.00009 $0.00983
Haiku 4.5 $0.00004 $0.00491

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

Security

Grade A, and why

bunjs-apidog scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

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

curl -X POST "https://api.apidog.com/v1/projects/${APIDOG_PROJECT_ID}/import-openapi" \
plugins/dev/skills/backend/bunjs-apidog/SKILL.md · 866 lines

How it starts

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

Bun.js OpenAPI and Apidog Integration

Overview

This skill covers OpenAPI specification creation and Apidog integration for Bun.js TypeScript backend applications. Learn how to document APIs with OpenAPI 3.0, use Apidog-specific extensions, import specifications via REST API, and maintain synchronized API documentation.

When to use this skill:

  • Creating OpenAPI specifications for API documentation
  • Synchronizing API specs with Apidog projects
  • Importing endpoints and schemas to Apidog
  • Managing API documentation lifecycle

See also:

  • dev:bunjs - Core Bun patterns, HTTP servers, database access
  • dev:bunjs-architecture - Layered architecture, camelCase conventions
  • dev:bunjs-production - Production deployment patterns

Why Apidog

Apidog is a comprehensive API development platform that combines:

  • API Design - Visual OpenAPI editor
  • API Documentation - Auto-generated, always up-to-date docs
  • API Testing - Built-in testing tools
  • API Mocking - Mock servers for frontend development
  • Team Collaboration - Shared workspace for teams

Environment Variables

Required:

APIDOG_PROJECT_ID=your-project-id     # From Apidog project settings
APIDOG_API_TOKEN=your-api-token       # From Apidog account settings

How to get these:

  1. APIDOG_PROJECT_ID: Open your Apidog project → Settings → Project ID
  2. APIDOG_API_TOKEN: Apidog Account → Settings → API Tokens → Generate Token

OpenAPI Spec Creation

Basic Structure

openapi: 3.0.0
info:
  title: My API
  version: 1.0.0
  description: API for managing resources

servers:
  - url: https://api.example.com/v1
    description: Production server
  - url: https://staging-api.example.com/v1
    description: Staging server
  - url: http://localhost:3000
    description: Development server

components:
  schemas:
    # Define reusable data models here
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

paths:
  # Define API endpoints here

Read the full file on GitHub · 866 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. 5d ago First seen · 866 lines · 44 tokens per session scan A de4dcfb30559

Subscribe to this mod's changes

bunjs-apidog is a skill published in the GitHub repository MadAppGang/claude-code (279 stars, last pushed 5mo ago), licensed MIT. It adds 44 tokens to every session and 4,913 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

openapi-expert

Expert-level OpenAPI/Swagger specification for API design, documentation, and code generation. Use when the user mentions swagger, API specs, REST, API design, or documentation, or when the task involves OpenAPI Specification, Webhooks, or Polymorphism.

personamanagmentlayer/pcl · 57 tokens

api-contract-documentation

Produce or review API contract documentation for Salesforce integrations: versioning policy artifacts, request/response schema specs, error code catalogs, rate limit documentation, OpenAPI generation for sObjects. Trigger keywords: Salesforce API versioning policy, API end-of-life policy, document API endpoints, REST…

PranavNagrecha/AwesomeSalesforceSkills · 116 tokens

api-contract-documentation

Use this skill when producing or reviewing API contract documentation for Salesforce integrations: versioning policy artifacts, request/response schema specs, error code catalogs, rate limit documentation, and OpenAPI generation for sObjects. Trigger keywords: Salesforce API versioning policy, API end-of-life policy…

BanibrataChatterjee/AwesomeSalesforceSkills · 107 tokens

API Documentation Generator

AI-powered API documentation generation tool that auto-generates comprehensive API docs from source code, including OpenAPI/Swagger specs, Postman collections, and markdown documentation with examples and authentication details.

XSpoonAi/spoon-awesome-skill · 41 tokens

api-design

API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs. Use when specifying the wire contract an endpoint exposes, choosing a versioning scheme, or standardizing error response bodies across…

yonatangross/orchestkit · 76 tokens

API Contract Validator

Validate API responses against OpenAPI/Swagger specifications, JSON Schema definitions, and consumer-driven contracts to prevent breaking changes.

PramodDutta/qaskills · 26 tokens