# Add Documentation

> Generate JSDoc/docstrings for functions

- Skill: `cowork-os/add-documentation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add cowork-os/add-documentation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/cowork-os/add-documentation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: cowork-os (https://skillmd.com/u/cowork-os)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/cowork-os/add-documentation

---


# Add Documentation

## Purpose

Generate JSDoc/docstrings for functions

## Routing

- Use when: Use when users ask for in-code docs, docstring addition, or API-level comments.
- Do not use when: Don't use for content translation or narrative changelogs.
- Outputs: Updated code artifacts with improved inline documentation.
- Success criteria: Retains behavior while improving doc clarity and consistency.

## Trigger Examples

### Positive

- Use the add-documentation skill for this request.
- Help me with add documentation.
- Use when users ask for in-code docs, docstring addition, or API-level comments.
- Add Documentation: provide an actionable result.

### Negative

- Don't use for content translation or narrative changelogs.
- Do not use add-documentation for unrelated requests.
- This request is outside add documentation scope.
- This is conceptual discussion only; no tool workflow is needed.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| path | string | Yes | Path to the file to document |
| style | select | Yes | Documentation style |

## Runtime Prompt

- Current runtime prompt length: 523 characters.
- Runtime prompt is defined directly in `../add-documentation.json`. 

