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.

Paspater Updated

File contents

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 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 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.

Paspater/mis-gemini-skills/tree/main/ commit 70fb212e8e

Frequently asked questions

npx skillmds@latest add paspater/auto-doc-script