doc-generator

Version: 1.0.0 Purpose: Generate comprehensive documentation

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "doc-generator" with this command: npx skills add shunsukehayashi/miyabi/shunsukehayashi-miyabi-doc-generator

Doc Generator

Version: 1.0.0 Purpose: Generate comprehensive documentation

Triggers

Trigger Examples

Document "document this", "ドキュメント生成", "add docs"

README "create README", "README作成"

API docs "generate API docs", "API文書"

JSDoc "add JSDoc", "コメント追加"

Documentation Types

  1. JSDoc/TSDoc

/**

  • 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
  • @example
  • const total = calculateTotal([{ price: 100 }], 0.1);
  • // Returns: 110
  • @throws {Error} If items array is empty
  • @see {@link Item} for item structure */ function calculateTotal(items: Item[], taxRate: number): number { // implementation }
  1. Interface Documentation

/**

  • Represents a user in the system.
  • @interface User
  • @property {string} id - Unique identifier
  • @property {string} email - User's email address
  • @property {Date} createdAt - Account creation timestamp */ interface User { id: string; email: string; createdAt: Date; }
  1. README Structure

Project Name

One-line description

npm License

Features

  • Feature 1
  • Feature 2

Installation

```bash npm install package-name ```

Quick Start

```typescript import { something } from 'package-name';

const result = something(); ```

API Reference

functionName(param)

Description of function.

Parameters:

  • param (Type) - Description

Returns: Type - Description

Example: ```typescript const result = functionName('value'); ```

Configuration

OptionTypeDefaultDescription
option1string'default'Description

Contributing

See CONTRIBUTING.md

License

MIT

  1. CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

[1.2.0] - 2025-01-15

Added

  • New feature X (#123)

Changed

  • Updated dependency Y

Fixed

  • Bug in Z (#124)

Deprecated

  • Old API method

Removed

  • Legacy code

Security

  • Fixed vulnerability

Workflow

Step 1: Analyze Code

Find undocumented functions

grep -r "^export function" src/ | grep -v "/**"

Step 2: Generate Docs

For each function/class:

  • Read implementation

  • Understand purpose

  • Write description

  • Add parameters

  • Add return type

  • Add examples

Step 3: Verify

TypeScript doc check

npx typedoc --validation

Lint docs

npx eslint --rule 'jsdoc/*' src/

Best Practices

Do

/**

  • Validates email format.
  • @param email - Email address to validate
  • @returns True if email is valid */ function isValidEmail(email: string): boolean { }

Don't

/**

  • This function validates emails.
  • It takes an email parameter.
  • It returns a boolean. */ function isValidEmail(email: string): boolean { }

Templates

Function Doc

/**

  • [Brief description in imperative mood]
  • [Longer description if needed]
  • @param paramName - [Description]
  • @returns [Description]
  • @example
  • ```ts
  • [Usage example]
  • ```
  • @throws {ErrorType} [When this error occurs]
  • @since [version]
  • @deprecated [Use X instead] */

Class Doc

/**

  • [Brief description]
  • [Longer description]
  • @example
  • ```ts
  • const instance = new ClassName(options);
  • instance.method();
  • ``` */ class ClassName { }

Checklist

  • All public APIs documented

  • Examples included

  • Parameters described

  • Return values described

  • Errors documented

  • README is current

  • CHANGELOG updated

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

ccg

No summary provided by upstream source.

Repository SourceNeeds Review
General

skill-creator

No summary provided by upstream source.

Repository SourceNeeds Review
General

refactor-helper

No summary provided by upstream source.

Repository SourceNeeds Review
General

teachable-course-creator

No summary provided by upstream source.

Repository SourceNeeds Review