Skip to main content
AI/MLpytorch

docstring

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

Stars
100,283
Source
pytorch/pytorch
Updated
2026-05-31
Slug
pytorch--pytorch--docstring
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/pytorch/pytorch/HEAD/.claude/skills/docstring/SKILL.md -o .claude/skills/docstring.md

Drops the SKILL.md into .claude/skills/docstring.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.