CommunityCodierung & Entwicklunggithub.com

sickn33/api-documentation-generator

Erstelle umfassende, entwicklerfreundliche API-Dokumentation aus Code, inklusive Endpunkten, Parametern, Beispielen und Best Practices

Was ist api-documentation-generator?

Dieses Skill generiert automatisch vollständige API-Dokumentation aus Ihrem Code. Es extrahiert Endpunkte, Parameter, Rückgabetypen und Beispiele, um eine konsistente und aktuelle Dokumentation zu erstellen. Das Skill unterstützt gängige Sprachen wie JavaScript/TypeScript, Python und Java sowie Frameworks wie Express, FastAPI und Spring Boot. Es analysiert Router-Definitionen, Middleware und Decoratoren, um eine menschenlesbare Referenz zu erzeugen. Die Ausgabe kann in Markdown, OpenAPI/Swagger oder HTML erfolgen. Für Entwicklerteams spart es Zeit, reduziert Fehler und stellt sicher, dass die Dokumentation immer mit dem Code synchron bleibt. Es kann in CI/CD-Pipelines integriert werden und erfordert keine manuelle Pflege.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/api-documentation-generator

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht api-documentation-generator?

Erstelle umfassende, entwicklerfreundliche API-Dokumentation aus Code, inklusive Endpunkten, Parametern, Beispielen und Best Practices.

Funktionen

  • Automatische Extraktion: Analysiert Router, Controller und Endpunktdefinitionen aus Ihrem Code.
  • Umfassende Details: Zeigt HTTP-Methoden, Pfade, Abfrageparameter, Pfadparameter, Anfragekörper und Antwortformate an.
  • Beispielgenerierung: Erstellt automatisch Anfrage- und Antwortbeispiele basierend auf Typdefinitionen.
  • Best Practices: Fügt Hinweise zu Authentifizierung, Paginierung, Fehlerbehandlung und Ratenbegrenzung hinzu.
  • Mehrere Ausgabeformate: Unterstützt Markdown, OpenAPI 3.0 und benutzerdefiniertes HTML.

Unterstützte Plattformen

  • Claude Code
  • Cursor
  • Codex CLI

Installation

  1. Kopiere die Skill-Datei in dein Projektverzeichnis:
    cp -r sickn33/api-documentation-generator /pfad/zu/deinem/projekt/.skills/
    
  2. Stelle sicher, dass die Konfiguration in .skills/config.yml vorhanden ist (siehe unten).

Konfiguration

Erstelle oder bearbeite .skills/config.yml:

skills:
  - name: sickn33/api-documentation-generator
    config:
      languages: ["javascript", "python", "java"]
      frameworks: ["express", "fastapi", "spring-boot"]
      outputFormat: "markdown"
      includeExamples: true

Verwendung

Führe den folgenden Befehl in deinem Projekt aus:

skill generate-docs [Pfad_zum_Code] -o [Ausgabepfad]

Beispiel:

skill generate-docs ./src -o ./docs/api.md

Optionen

ParameterBeschreibungStandardwert
--inputPfad zum Quellcode./src
--outputAusgabepfad für die Dokumentation./docs/api.md
--formatAusgabeformat (markdown, openapi, html)markdown
--frameworkErwartetes Framework (optional)Auto-Erkennung
--include-best-practicesBest Practices einfügentrue

Wie es funktioniert

  1. Code-Analyse: Das Skill durchsucht den angegebenen Quellcode nach Endpunkt-Definitionen (z. B. app.get() in Express, @app.get() in FastAPI, @RequestMapping in Spring Boot).
  2. Metadaten-Extraktion: Für jeden gefundenen Endpunkt werden Pfad, Methode, Parameter (Pfad, Abfrage, Header, Body) und Antwortformat extrahiert.
  3. Beispiel-Generierung: Basierend auf Typen oder vorhandenen Tests werden realistische JSON-Beispiele generiert.
  4. Best Practices: Automatisch angewandte Hinweise zu Authentifizierung, Paginierung, Fehlerbehandlung und Caching.
  5. Dokumentation: Erzeugt eine strukturierte Markdown-Datei (oder OpenAPI/HTML) mit allen gesammelten Informationen.

Beispiele

Quellcode (Express.js)

// routes/users.js
const express = require('express');
const router = express.Router();

router.get('/users', async (req, res) => {
  const { limit, offset } = req.query;
  const users = await db.findUsers(limit, offset);
  res.json(users);
});

router.post('/users', async (req, res) => {
  const user = await db.createUser(req.body);
  res.status(201).json(user);
});

Generierte Dokumentation

# API-Endpunkte

## GET /users

- **Beschreibung**: Ruft eine Liste von Benutzern ab.
- **Parameter**:
  - `limit` (Abfrage, optional) – Maximale Anzahl zurückzugebender Benutzer.
  - `offset` (Abfrage, optional) – Anzahl der zu überspringenden Benutzer.
- **Antwort**: `200 OK` – Array von Benutzerobjekten.

## POST /users

- **Beschreibung**: Erstellt einen neuen Benutzer.
- **Anfragekörper**: Benutzerobjekt (JSON).
- **Antwort**: `201 Created` – Das erstellte Benutzerobjekt.

Vorteile

  • Zeitersparnis: Kein manuelles Schreiben von Dokumentation.
  • Konsistenz: Dokumentation bleibt stets mit dem Code synchron.
  • Qualität: Integrierte Best Practices verbessern die Nutzbarkeit.
  • Integration: Einfach in CI/CD-Pipelines integrierbar.

Lizenz

MIT

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

sickn33/3d-web-experience

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

sickn33/agent-memory-mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

sickn33/agent-memory-systems

Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them.

sickn33/ai-agents-architect

Expert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration.

sickn33/api-patterns

API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.

sickn33/api-security-best-practices

Implement secure API design patterns including authentication, authorization, input validation, rate limiting, and protection against common API vulnerabilities

sickn33/app-store-optimization

Complete App Store Optimization (ASO) toolkit for researching, optimizing, and tracking mobile app performance on Apple App Store and Google Play Store

sickn33/architecture

Architectural decision-making framework. Requirements analysis, trade-off evaluation, ADR documentation. Use when making architecture decisions or analyzing system design.

sickn33/audio-transcriber

Transform audio recordings into professional Markdown documentation with intelligent summaries using LLM integration

sickn33/aws-serverless

Specialized skill for building production-ready serverless applications on AWS. Covers Lambda functions, API Gateway, DynamoDB, SQS/SNS event-driven patterns, SAM/CDK deployment, and cold start optimization.

sickn33/backend-architect

Expert backend architect specializing in scalable API design, microservices architecture, and distributed systems.

sickn33/backend-dev-guidelines

You are a senior backend engineer operating production-grade services under strict architectural and reliability constraints. Use when routes, controllers, services, repositories, express middleware, or prisma database access.

sickn33/bash-linux

Bash/Linux terminal patterns. Critical commands, piping, error handling, scripting. Use when working on macOS or Linux systems.

sickn33/bash-scripting

Bash scripting workflow for creating production-ready shell scripts with defensive patterns, error handling, and testing.

sickn33/brainstorming

Use before creative or constructive work (features, architecture, behavior). Transforms vague ideas into validated designs through disciplined reasoning and collaboration.

sickn33/browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns.

sickn33/browser-extension-builder

Expert in building browser extensions that solve real problems - Chrome, Firefox, and cross-browser extensions. Covers extension architecture, manifest v3, content scripts, popup UIs, monetization strategies, and Chrome Web Store publishing.

sickn33/bullmq-specialist

BullMQ expert for Redis-backed job queues, background processing, and reliable async execution in Node.js/TypeScript applications.

sickn33/bun-development

Fast, modern JavaScript/TypeScript development with the Bun runtime, inspired by [oven-sh/bun](https://github.com/oven-sh/bun).

sickn33/cc-skill-security-review

This skill ensures all code follows security best practices and identifies potential vulnerabilities. Use when implementing authentication or authorization, handling user input or file uploads, or creating new API endpoints.

Verwandte Skills