update-api-reference — community update-api-reference, sandbox, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0

About this Skill

Perfect for API Maintenance Agents needing automated OpenAPI documentation updates with swaggo annotations. Regenerate the OpenAPI reference documentation after adding, modifying, or removing API endpoints in sandbox-api. Run this whenever handler signatures, route paths, or swag annotations change.

blaxel-ai blaxel-ai
[9]
[5]
Updated: 3/10/2026

Agent Capability Analysis

The update-api-reference skill by blaxel-ai is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for API Maintenance Agents needing automated OpenAPI documentation updates with swaggo annotations.

Core Value

Empowers agents to regenerate API references using OpenAPI docs and swaggo annotations, ensuring accurate and up-to-date documentation with a single command, leveraging Swagger 2.0 and OpenAPI specifications.

Capabilities Granted for update-api-reference

Regenerating API documentation after endpoint changes
Updating type name references for consistency
Converting Swagger 2.0 to OpenAPI for compatibility

! Prerequisites & Limits

  • Requires swaggo annotations in Go handler code
  • Needs makefile configuration for automated documentation generation
  • Limited to OpenAPI and Swagger 2.0 specifications
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

update-api-reference

Install update-api-reference, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Update the API Reference (OpenAPI Docs)

The OpenAPI spec is generated from swaggo annotations in the Go handler code. After changing any endpoint, regenerate the docs.

Run the Full Reference Update

bash
1make reference

This single command:

  1. Runs swag init to parse Go annotations → generates sandbox-api/docs/swagger.yaml and docs.go
  2. Fixes type name references (replaces filesystem.Directory with Directory)
  3. Converts Swagger 2.0 → OpenAPI 3.0 via swagger2openapi
  4. Adds Bearer auth security scheme to all endpoints
  5. Runs fixopenapi.sh for additional patches

The output file is sandbox-api/docs/openapi.yml.


How Swag Annotations Work

Annotations are Go comments above handler functions. Example:

go
1// HandleGetFile retrieves a file from the sandbox filesystem. 2// 3// @Summary Get file or directory 4// @Description Returns file content or directory listing 5// @Tags filesystem 6// @Produce application/octet-stream 7// @Param path path string true "File path" 8// @Success 200 {string} string "File content" 9// @Failure 404 {object} ErrorResponse 10// @Router /filesystem/{path} [get] 11func (h *FileSystemHandler) HandleGetFile(c *gin.Context) {

Key annotation fields:

  • @Summary — short description (shown in API reference)
  • @Description — longer explanation
  • @Tags — group endpoints in the UI (filesystem, process, network, codegen)
  • @Param — parameter: name location type required "description"
    • locations: path, query, body, header
  • @Success / @Failure — response codes with type and description
  • @Router — path and HTTP method [get|post|put|delete]
  • @Accept / @Produce — request/response content types

Where the Docs Live

FilePurpose
sandbox-api/docs/openapi.ymlFinal OpenAPI 3.0 spec (commit this)
sandbox-api/docs/docs.goAuto-generated Go embed of the spec
sandbox-api/docs/fixopenapi.shPost-processing patches

After Adding a New Endpoint

  1. Add swag annotations to your handler function
  2. Register the route in sandbox-api/src/api/router.go
  3. Run make reference
  4. Review the diff in sandbox-api/docs/openapi.yml to confirm your endpoint appears correctly
  5. Commit both the handler changes and the updated openapi.yml and docs.go

Verify the Generated Docs

Open the Swagger UI at http://localhost:8080/swagger/index.html while the dev server is running. It reads docs.go which is embedded at build time.


Troubleshooting

  • swag: command not found: Run make dependencies first
  • Missing endpoint in output: Check that your handler has a @Router annotation and the function is exported
  • Type not found: Ensure the struct is in the same package or imported and annotated with @Description
  • swagger2openapi not found: Run npm install -g swagger2openapi or npx swagger2openapi (the Makefile uses npx)

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is update-api-reference?

Perfect for API Maintenance Agents needing automated OpenAPI documentation updates with swaggo annotations. Regenerate the OpenAPI reference documentation after adding, modifying, or removing API endpoints in sandbox-api. Run this whenever handler signatures, route paths, or swag annotations change.

How do I install update-api-reference?

Run the command: npx killer-skills add blaxel-ai/sandbox/update-api-reference. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for update-api-reference?

Key use cases include: Regenerating API documentation after endpoint changes, Updating type name references for consistency, Converting Swagger 2.0 to OpenAPI for compatibility.

Which IDEs are compatible with update-api-reference?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for update-api-reference?

Requires swaggo annotations in Go handler code. Needs makefile configuration for automated documentation generation. Limited to OpenAPI and Swagger 2.0 specifications.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add blaxel-ai/sandbox/update-api-reference. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use update-api-reference immediately in the current project.

Related Skills

Looking for an alternative to update-api-reference or another community skill for your workflow? Explore these related open-source skills.

View All

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

Generate customizable widget plugins for the prompts.chat feed system

149.6k
0
AI

flags

Logo of vercel
vercel

The React Framework

138.4k
0
Browser

pr-review

Logo of pytorch
pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration

98.6k
0
Developer