Documentation

From XSpoonAi/spoon-awesome-skill · View interactive version

Documentation is an AI agent skill from the GitHub repository XSpoonAi/spoon-awesome-skill. Auto-generate API reference documentation from Python code.

How to use this skill

Skill file

Documentation Generator

A high-impact skill that parses Python source code and generates a standardized Markdown API reference. It utilizes AST parsing to extract docstrings, function signatures, and class structures.

Quick Start

# Generate docs for a file
result = await agent.run_tool("generate_docs", file_path="src/client.py")
print(result)

Scripts

| Script | Purpose |

|--------|---------|

| doc_gen.py | Generates Markdown documentation from Python files |

Environment Variables

None required. Uses standard library ast.

Best Practices

  1. Ensure your code has partial docstrings for better output.
  2. Use this to keep README.md or API.md up to date automatically.
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.