All skills
alffei avatar

/doc-pipeline

@f00cf3b
by Andrew Chenalffei/skill_share68 stars
17

通过多步骤流水线从 Python 源码生成 API 文档。适用于用户要求为模块编写文档、生成 API 文档或从代码创建说明文档时。

  • 4 files
  • 4.5 KB
  • Updated 6 months ago
  • GitHub

Use this Skill: https://skilld.dev/gh/alffei/skill_share/doc-pipeline

This session only. Nothing lands on disk.

referencesdocstring-style.md

≈351 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Docstring Style Guide

Use Google-style docstrings for all public API documentation.

Function/Method Format

def function_name(param1: str, param2: int = 0) -> bool:
    """One-line summary of what the function does.

    Extended description if the one-liner isn't enough.
    Explain the behavior, not the implementation.

    Args:
        param1: Description of param1. Include valid values if constrained.
        param2: Description of param2. Mention the default behavior.

    Returns:
        Description of the return value. Include possible values.

    Raises:
        ValueError: When param1 is empty.
        TypeError: When param2 is not an integer.

    Example:
        >>> result = function_name("hello", 42)
        >>> print(result)
        True
    """

Class Format

class ClassName:
    """One-line summary of the class.

    Extended description of the class purpose and behavior.

    Attributes:
        attr1: Description of attr1.
        attr2: Description of attr2.

    Example:
        >>> obj = ClassName(attr1="value")
        >>> obj.method()
    """

Rules

  • First line is always a one-line imperative summary ("Return X", "Calculate Y")
  • Leave a blank line between the summary and extended description
  • Document ALL parameters, return values, and raised exceptions
  • Include at least one usage example with expected output

Source: SKILL.md on GitHub

No third-party reports yet.

Signed by skilld at f00cf3b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Dormantupdated 6 months ago
metadata
{
  "pattern": "pipeline",
  "steps": "4"
}

README badge

README badge for alffei/skill_share/doc-pipeline