Skip to content
cccskills
FreePublished on GitHub

doc-generator

Auto-generate docs from code: API reference, architecture docs, inline comments. Use when the user asks to generate documentation, create API references, document code, or produce architecture diagrams from existing code.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5 stars(GitHub 5 + cccskills 0)

Run score Not tested

See how to install

Files included (1)

  • SKILL.md6.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Doc Generator

API Reference Generation

OpenAPI/Swagger from Code

# FastAPI — automatic OpenAPI generation
from fastapi import FastAPI
from pydantic import BaseModel

app = FastAPI(title="My API", version="1.0.0")

class Item(BaseModel):
    name: str
    price: float
    tags: list[str] = []

@app.get("/items/{item_id}")
async def read_item(item_id: int, q: str | None = None):
    """Get an item by ID with optional query filter."""
    return {"item_id": item_id, "q": q}

@app.post("/items/", response_model=Item)
async def create_item(item: Item):
    """Create a new item. Returns the created item."""
    return item

# Generate docs
# python -m uvicorn main:app --reload
# Docs at http://localhost:8000/docs

JSDoc (JavaScript/TypeScript)

/**
 * Calculate the total order value including tax and discounts.
 * @param {Order} order - The order to calculate
 * @param {boolean} includeTax - Whether to include tax (default: true)
 * @returns {number} Total order value
 * @throws {Error} If order is invalid
 * @example
 * const total = calculateTotal(order);
 */
function calculateTotal(order: Order, includeTax: boolean = true): number {
    let total = order.subtotal;
    if (includeTax) total += order.tax;
    total -= order.discount;
    return total;
}

Go Doc Comments

// CalculateTotal computes the final order total including tax and discounts.
// It returns an error if the order subtotal is negative.
//
// Example:
//   total, err := CalculateTotal(order)
//   if err != nil {
//       log.Fatal(err)
//   }
func CalculateTotal(order Order) (float64, error) {
    if order.Subtotal < 0 {
        return 0, fmt.Errorf("negative subtotal: %f", order.Subtotal)
    }
    return order.Subtotal + order.Tax - order.Discount, nil
}

Architecture Documentation

Mermaid Diagrams

flowchart TD
    A[Client] --> B[API Gateway]
    B --> C[Auth Service]
    B --> D[Order Service]
    D --> E[(Database)]
    D --> F[Cache]
    F --> E
    
    style A fill:#e1f5fe
    style E fill:#fff3e0
    style F fill:#f3e5f5
sequenceDiagram
    participant User
    participant API
    participant DB
    participant Cache
    
    User->>API: GET /api/users/123
    API->>Cache: GET user:123
    Cache-->>API: HIT: {name: "Alice"}
    API-->>User: 200 OK
    
    User->>API: POST /api/orders
    API->>DB: INSERT order
    DB-->>API: OK id=456
    API->>Cache: SET order:456 TTL=3600
    API-->>User: 201 Created
classDiagram
    class Order {
        +int id
        +float subtotal
        +float tax
        +float discount
        +calculateTotal() float
        +validate() bool
    }
    class User {
        +int id
        +string email
        +authenticate(password) bool
    }
    Order "1" --> "1" User : belongs to

PlantUML

@startuml
left to right direction
actor User
rectangle "Backend" {
  boundary "API"
  control "OrderService"
  entity "Database"
}
User -> API : request
API -> OrderService : process
OrderService -> Database : query
@enduml

Inline Documentation

Docstring Standards

"""Module-level docstring.

This module handles order processing including validation,
pricing, and fulfillment.

Attributes:
    MAX_ORDER_SIZE: Maximum items per order (default: 100)
    TAX_RATE: Current tax rate (default: 0.08)
"""

def process_order(order: Order) -> OrderResult:
    """Process an order and return the result.

    Validates the order, calculates totals, and prepares
    it for fulfillment.

    Args:
        order: The Order object to process.

    Returns:
        OrderResult with status, total, and fulfillment_id.

    Raises:
        ValidationError: If order is invalid.
        InsufficientStockError: If items are out of stock.

    Examples:
        >>> result = process_order(my_order)
        >>> result.status
        'confirmed'
    """
    validate_order(order)
    total = calculate_total(order)
    fulfillment_id = fulfill(order, total)
    return OrderResult(status="confirmed", total=total, fulfillment_id=fulfillment_id)

README Structure

# Project Name

One-line description of what this project does.

## Installation

\`\`\`bash
pip install -r requirements.txt
# or
npm install
\`\`\`

## Usage

\`\`\`python
from project import MyClass
obj = MyClass()
result = obj.run()
\`\`\`

## API Reference

| Function | Description | Params | Returns |
|----------|-------------|--------|---------|
| \`run()\` | Execute main logic | config: dict | Result |

## Architecture

\`\`\`
┌─────────┐     ┌─────────┐     ┌─────────┐
│  Client  │────▶│  API    │────▶│ Database│
└─────────┘     └─────────┘     └─────────┘
\`\`\`

## Testing

\`\`\`bash
pytest tests/ -v --cov=src
\`\`\`

## Contributing

1. Fork the repository
2. Create a feature branch
3. Run tests: \`pytest\`
4. Submit a pull request

Configuration-Driven Docs

# docs-config.yaml
project:
  name: MyAPI
  version: 1.0.0
  description: "REST API for order management"

sources:
  - path: src/
    language: python
    parser: sphinx

output:
  format: markdown
  dest: docs/
  include:
    - api_reference
    - architecture
    - examples

templates:
  function: |
    ### {name}
    
    {summary}
    
    **Parameters:**
    {params}
    
    **Returns:** {returns}
    
    **Raises:** {raises}

Doc Generation Commands

# Python — Sphinx
sphinx-apidoc -o docs/ src/
make html

# Python — pdoc
pdoc src/ --html -o docs/

# TypeScript — TypeDoc
npx typedoc src/index.ts

# Go — godoc
go doc ./...
# or
golangci-docgen

# Rust — rustdoc
cargo doc --no-deps --open

# Java — Javadoc
javadoc -d docs/ src/**/*.java

Documentation Checklist

  • All public functions have docstrings
  • API endpoints documented with request/response schemas
  • Architecture diagram included
  • Installation instructions tested
  • Code examples work (run them)
  • CHANGELOG updated
  • CONTRIBUTING guide present
  • License file included
  • README link to full docs

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

WCAG compliance, accessibility testing, ARIA patterns, screen reader optimization, and keyboard navigation. Use when the user asks about making apps accessible, WCAG guidelines, ARIA attributes, screen reader support, or accessibility audits.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Generate AI music using ACE-Step 1.5 via ACE Music's free API. Use when the user asks to create, generate, or compose music, songs, beats, instrumentals, or audio tracks. Supports lyrics, style prompts, covers, and repainting. Free API, no cost.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

A continuously adaptive skill suite that empowers Clawdbot to act as a versatile coder, business analyst, project manager, web developer, data analyst, and NAS metadata scraper. It intelligently discovers free resources, adapts to user context, and ensures reliable, proven guidance across multiple domains.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

High-fidelity intelligence gathering and data assimilation. Focuses on synthesizing fragmented data into a comprehensive target operational picture.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Use when Codex needs proactive task queues, heartbeat routines, scheduled follow-up, or continuous work loops instead of waiting for prompts.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.

The English summary is being prepared. Showing the original description.

ProjectZeroDays/FreeAI_AI_Inference_Workstation5Updated Sep 4, 2026

See all skills by ProjectZeroDays

Report a problem with this skill