sphinx-1-docstring-style-guide
Sub-skill of sphinx: 1. Docstring Style Guide (+3).
Best use case
sphinx-1-docstring-style-guide is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of sphinx: 1. Docstring Style Guide (+3).
Teams using sphinx-1-docstring-style-guide should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/1-docstring-style-guide/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How sphinx-1-docstring-style-guide Compares
| Feature / Agent | sphinx-1-docstring-style-guide | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of sphinx: 1. Docstring Style Guide (+3).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 1. Docstring Style Guide (+3)
## 1. Docstring Style Guide
```python
# Use Google style (recommended)
def function(arg1: str, arg2: int = 10) -> bool:
"""
Short description of function.
Longer description that provides more detail about
what the function does and how it works.
Args:
arg1: Description of arg1.
arg2: Description of arg2. Defaults to 10.
Returns:
Description of return value.
Raises:
ValueError: If arg1 is empty.
TypeError: If arg2 is not an integer.
Example:
>>> function("hello", 5)
True
Note:
Additional notes about usage.
See Also:
related_function: Description of related function.
"""
pass
```
## 2. Documentation Structure
```
docs/
├── source/
│ ├── _static/
│ │ ├── css/
│ │ │ └── custom.css
│ │ └── images/
│ ├── _templates/
│ │ └── layout.html
│ ├── api/
│ │ ├── index.rst
│ │ └── modules.rst
│ ├── guide/
│ │ ├── installation.rst
│ │ ├── quickstart.rst
│ │ └── advanced.rst
│ ├── tutorials/
│ │ └── basic.rst
│ ├── conf.py
│ ├── index.rst
│ └── changelog.rst
├── build/
├── Makefile
└── requirements.txt
```
## 3. Cross-Reference Best Practices
```rst
.. Use these reference styles
Classes and Methods
~~~~~~~~~~~~~~~~~~~
See :class:`mypackage.core.DataProcessor` for the main class.
Use :meth:`~mypackage.core.DataProcessor.process` method.
The :attr:`mypackage.core.DataProcessor.config` attribute.
Functions
~~~~~~~~~
Call :func:`mypackage.utils.helper` for utility functions.
Modules
~~~~~~~
Import from :mod:`mypackage.core` module.
External References
~~~~~~~~~~~~~~~~~~~
Uses :class:`numpy.ndarray` for array storage.
See :func:`pandas.read_csv` for file loading.
```
## 4. Version Documentation
```rst
.. Document version changes
API Changes
-----------
.. versionadded:: 1.2.0
Added support for Parquet format.
.. versionchanged:: 1.3.0
The ``format`` parameter now defaults to ``'auto'``.
.. deprecated:: 2.0.0
Use :meth:`new_method` instead. Will be removed in v3.0.
.. versionremoved:: 2.0.0
The ``old_param`` parameter has been removed.
```Related Skills
bulk-docstring-addition
Add Google-style docstrings to all public functions and classes in a Python package. Uses AST parsing for precise gap detection, priority ranking by coverage ratio, and multi-file patching.
brand-guidelines
Create and maintain brand guidelines including visual identity, voice and tone, and usage rules. Use for establishing brand standards, style guides, and ensuring brand consistency across materials.
skill-creator-style-1-name
Sub-skill of skill-creator: Style 1: [Name] (+1).
cli-productivity-1-tool-selection-guidelines
Sub-skill of cli-productivity: 1. Tool Selection Guidelines (+2).
sphinx-task-lists
Sub-skill of sphinx: Task Lists.
sphinx-quick-example
Sub-skill of sphinx: Quick Example.
sphinx-math-support
Sub-skill of sphinx: Math Support.
sphinx-integration-with-pyprojecttoml
Sub-skill of sphinx: Integration with pyproject.toml (+2).
sphinx-cross-references
Sub-skill of sphinx: Cross-References.
sphinx-admonitions
Sub-skill of sphinx: Admonitions.
sphinx-7-intersphinx-cross-references
Sub-skill of sphinx: 7. Intersphinx Cross-References (+5).
sphinx-3-index-and-table-of-contents
Sub-skill of sphinx: 3. Index and Table of Contents.