What problem does it solve?
PyTorch's Sphinx documentation build emits coverage warnings for public APIs that lack autodoc directives, leaving gaps in the official reference. This Skill systematically removes entries from the coverage_ignore_functions and coverage_ignore_classes lists in docs/source/conf.py and inserts the correct automodule, currentmodule, autofunction, and autoclass directives into the matching .md or .rst files under docs/source/.
Core Features & Use Cases
- Batch Processing of Module Groups: Selects complete module groups from the ignore lists, verifies each function has a real docstring, and processes them in batches of 5–15 functions.
- Docstring Verification: Runs a Python check to confirm each function has meaningful documentation content before adding it to the doctree, avoiding empty or stub-only pages.
- Sphinx Coverage Verification: Runs
make coverage and reads docs/build/coverage/python.txt to confirm 100% coverage across all modules before cleaning up commented-out entries.
- Use Case: A PyTorch maintainer wants to close documentation gaps for
torch.ao.quantization.fx.convert. Use this Skill to remove those functions from the ignore list, add the proper automodule and autofunction directives to the corresponding doc file, and verify the coverage report shows zero undocumented APIs.
Quick Start
Use the document-public-apis skill to document the next batch of undocumented functions from the coverage ignore lists in docs/source/conf.py.