docstring
OfficialAutomate PyTorch docstring creation, effortlessly.
Software Engineering#code quality#developer tools#documentation#pytorch#sphinx#reStructuredText#docstring
Authorpytorch
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill streamlines the process of writing and updating docstrings for PyTorch functions and methods, ensuring they adhere to official PyTorch conventions. It eliminates the guesswork and manual effort involved in formatting, parameter documentation, and example inclusion, allowing developers to focus on code logic rather than documentation syntax.
Core Features & Use Cases
- Convention Adherence: Automatically guides the generation of docstrings following Sphinx/reStructuredText format, including raw strings, function signatures, and cross-references.
- Structured Documentation: Ensures inclusion of brief descriptions, mathematical formulas, notes, warnings,
Args,Keyword Args,Returns, andExamplessections. - Use Case: When developing a new PyTorch function, use this Skill to quickly generate a compliant docstring template, ensuring all necessary sections are covered and correctly formatted, saving significant review time.
Quick Start
Write a docstring for a new PyTorch function my_new_function(input: Tensor, value: float) -> Tensor that applies a custom activation.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: docstring Download link: https://github.com/pytorch/pytorch/archive/main.zip#docstring Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.