# Auto Doc Script

> Automates documentation for Python and Bash scripts. Use when the user wants to apply Google-style docstrings or generate a README summary for a directory of scripts.

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

---


# Auto Doc Script

This skill helps you maintain high-quality documentation for your scripts and directories.

## Capabilities

1. **Inline Documentation**: Applies Google-style docstrings to Python functions and classes.
2. **Directory README**: Generates a `README.md` for the current directory summarizing all scripts.

## Workflows

### Documenting a Single Script
When a user asks to "document a script" or "apply Google style":
1. Read the script content.
2. Refer to [google_style.md](references/google_style.md) for the exact format.
3. Update the docstrings in the script.

### Generating a Directory README
When a user asks to "summarize this directory" or "create a README":
1. List all scripts in the directory.
2. For each script, extract a brief summary (first line of docstring or comment).
3. Use the template [readme_template.md](assets/readme_template.md) to generate the final `README.md`.
4. Replace `{{DIR_NAME}}`, `{{DESCRIPTION}}`, and `{{SCRIPT_LIST}}` with actual data.

## Tips
- Always check if the file is Python (`.py`) or Bash (`.sh`) before applying styles.
- If the user doesn't specify a style, default to Google Style for Python.

