documentation
- **MANDATORY**: All Python functions and methods **MUST** have docstrings. - **REQUIRED**: Every module **MUST** contain a module-level docstring explaining the purpose and usage of the module. - Documentation **MUST** be written in English using clear, precise, and easy-to-understand language.
Install / Use
npx skills add dimitritholen/airulesInstalls into whichever agent you are using.
.clinerules
Cline rules
Quality Score
Category
Content & MediaSupported Platforms
Skill content
View source on GitHubPython Project Documentation Rules
General Documentation Principles
- MANDATORY: All Python functions and methods MUST have docstrings.
- REQUIRED: Every module MUST contain a module-level docstring explaining the purpose and usage of the module.
- Documentation MUST be written in English using clear, precise, and easy-to-understand language.
Style and Format
- MANDATORY: Use Google Python Style Guide for docstring conventions unless specified otherwise by project requirements.
- ALWAYS write docstrings using triple double quotes.
- REQUIRED: Include a concise description at the beginning of each docstring followed by a more detailed explanation if necessary.
Content Specifics
Functions and Methods
- MANDATORY:
- A brief description of the function/method.
- List parameters with a description, their type, and if they are optional.
- Describe return type and semantics.
- NEVER include trivial comments inside functions; focus on why something is done, not how.
Classes
- MANDATORY:
- Documentation for each class MUST describe its purpose and behavior in the system.
- Document all public methods and properties.
- If inheritance is used, note how and why it deviates from the base class.
Variables and Constants
- REQUIRED: All global variables and constants MUST be documented explaining their usage and necessity in the module.
Examples and Usage
- ALWAYS provide simple examples in the docstring when introducing complex functions or classes.
- RECOMMENDED: Use examples that illustrate typical use cases and edge cases.
External Documentation
- MANDATORY: If any external libraries or frameworks are used, documentation MUST include their version and relevant details on integration.
- RECOMMENDED: Link to official documentation or relevant sections when referring to external tools or libraries.
Automation and Tools
- REQUIRED:
- Use tools such as
Sphinxfor generating documentation from docstrings. - Integrate documentation generation into the build process to ensure it is always up-to-date.
- Use tools such as
- RECOMMENDED: Configure continuous integration tools to automatically validate documentation against code changes.
Versioning Documentation
- REQUIRED: Update documentation to reflect any changes in code usage or functionality along with code updates.
- ALWAYS maintain a changelog that details significant changes, enhancements, and fixes in the documentation similar to the codebase.
Review and Maintenance
- MANDATORY: All documentation MUST be peer-reviewed before merging changes in code repositories.
- Documentation SHOULD be regularly reviewed and updated to keep pace with changes in the project.
Related Skills
Agent-Reach
84.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.4kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
nanobot
48.5kUltra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps
Scrapling
82.8k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
Security Score
Audited on Invalid Date
