Download for MacApple silicon, macOS 14+
Skill

docstring

@pytorch Updated 2026-10-18

Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.

autograddeep-learninggpumachine-learningneural-networknumpypythontensor

Install

With your agent

Install OMGSkills skill "pytorch/pytorch:docstring" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/pytorch/pytorch /tmp/pytorch && ln -s /tmp/pytorch/.agents/skills/docstring ~/.claude/skills/docstring

From README

PyTorch Docstring Writing Guide This skill describes how to write docstrings for functions and methods in the PyTorch project, following the conventions in torch/tensordocs.py and torch/nn/functional.py.