跳到正文
cccskills
免费在 GitHub 公开

documentation-generator

Auto-generate documentation for code, APIs, databases, and projects. Use when the user asks about generating README files, API docs, code documentation, JSDoc/docstrings, or project documentation.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation星标 5(GitHub 5 + cccskills 0)
集成工具PostgreSQL

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md5.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Documentation Generator

README Template

# Project Name

One-line description of what this project does.

## Features

- Feature 1
- Feature 2
- Feature 3

## Quick Start

### Prerequisites

- Node.js 20+
- PostgreSQL 16

### Installation

```bash
git clone https://github.com/user/repo
cd repo
npm install

Setup

cp .env.example .env
# Edit .env with your configuration
npm run db:migrate
npm run dev

Usage

# Development
npm run dev

# Build
npm run build

# Test
npm run test

API Reference

MethodEndpointDescription
GET/api/usersList all users
POST/api/usersCreate user
GET/api/users/:idGet user by ID

Configuration

VariableDescriptionDefault
PORTServer port3000
DATABASE_URLDatabase connection-
LOG_LEVELLogging levelinfo

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing)
  5. Open a Pull Request

License

MIT


## JSDoc (TypeScript/JavaScript)

```typescript
/**
 * Calculates the total price including tax.
 * 
 * @param items - Array of items with price property
 * @param taxRate - Tax rate as decimal (e.g., 0.1 for 10%)
 * @returns Total price including tax, rounded to 2 decimal places
 * @throws {Error} If items array is empty
 * @example
 * ```ts
 * const total = calculateTotal([{ price: 10 }, { price: 20 }], 0.1);
 * // Returns 33
 * ```
 */
function calculateTotal(items: Array<{ price: number }>, taxRate: number): number {
  if (items.length === 0) throw new Error('Items cannot be empty');
  const subtotal = items.reduce((sum, item) => sum + item.price, 0);
  return Math.round(subtotal * (1 + taxRate) * 100) / 100;
}

/**
 * User authentication result.
 * @property success - Whether authentication succeeded
 * @property token - JWT token (only if success is true)
 * @property error - Error message (only if success is false)
 */
interface AuthResult {
  success: boolean;
  token?: string;
  error?: string;
}

Python Docstrings

def calculate_total(items: list[dict], tax_rate: float) -> float:
    """Calculate the total price including tax.

    Args:
        items: List of dictionaries with 'price' key.
        tax_rate: Tax rate as decimal (e.g., 0.1 for 10%).

    Returns:
        Total price including tax, rounded to 2 decimal places.

    Raises:
        ValueError: If items list is empty.

    Examples:
        >>> calculate_total([{"price": 10}, {"price": 20}], 0.1)
        33.0
    """
    if not items:
        raise ValueError("Items cannot be empty")
    subtotal = sum(item["price"] for item in items)
    return round(subtotal * (1 + tax_rate), 2)

API Documentation (OpenAPI)

openapi: 3.1.0
info:
  title: My API
  version: 1.0.0
  description: |
    API for managing users and posts.
    
    ## Authentication
    All endpoints require Bearer token authentication.
    
    ## Rate Limiting
    - 100 requests per minute
    - 429 status code when exceeded

paths:
  /users:
    get:
      summary: List users
      tags: [Users]
      parameters:
        - name: limit
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
        - name: offset
          in: query
          schema:
            type: integer
            default: 0
      responses:
        "200":
          description: User list
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/UserList"

components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        email:
          type: string
          format: email

Changelog Format

# Changelog

## [1.2.0] - 2024-01-15

### Added
- User profile customization
- Dark mode support
- Export to PDF feature

### Changed
- Improved dashboard performance
- Updated dependency versions

### Fixed
- Fixed login timeout issue
- Resolved memory leak in worker

### Removed
- Deprecated v1 API endpoints

## [1.1.0] - 2024-01-01

### Added
- Initial release features

Architecture Decision Record

# ADR-001: Use PostgreSQL as Primary Database

## Status: Accepted

## Context
We need a relational database that supports:
- Complex queries and joins
- JSON storage for flexible fields
- Full-text search
- ACID compliance

## Decision
Use PostgreSQL 16 as our primary database.

## Consequences

### Positive
- Mature ecosystem with excellent tooling
- Native JSONB support
- Strong community

### Negative
- Requires more setup than SQLite
- Larger memory footprint

Documentation Best Practices

  1. Write for your audience (developer vs user)
  2. Include code examples
  3. Keep documentation near the code
  4. Use consistent formatting
  5. Document decisions, not just code
  6. Include setup instructions
  7. Version your documentation
  8. Review docs with code changes

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

ace-music

免费

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

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.

中文简介正在准备中。当前显示原文说明。

ProjectZeroDays/FreeAI_AI_Inference_Workstation52026年9月4日 更新

查看 ProjectZeroDays 的全部技能

报告此技能的问题