Function docstrings

From proflead/codex-skills-library · View interactive version

Function docstrings is an AI agent skill from the GitHub repository proflead/codex-skills-library. Write concise docstrings for functions. Use when a junior developer needs help describing inputs, outputs, and errors.

How to use this skill

Skill file

Function Docstrings

Purpose

Write concise docstrings for functions.

Inputs to request

Workflow

  1. Describe purpose in one sentence.
  2. List parameters with types and meaning.
  3. State return value and error conditions.

Output

Quality bar

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.