Agent Skills: refactor:pytorch

Refactor PyTorch code to improve maintainability, readability, and adherence to best practices. Identifies and fixes DRY violations, long functions, deep nesting, SRP violations, and opportunities for modular components. Applies PyTorch 2.x patterns including torch.compile optimization, Automatic Mixed Precision (AMP), optimized DataLoader configuration, modular nn.Module design, gradient checkpointing, CUDA memory management, PyTorch Lightning integration, custom Dataset classes, model factory patterns, weight initialization, and reproducibility patterns.

ID: snakeo/claude-debug-and-refactor-skills-plugin/refactor:pytorch

Install this agent skill to your local

npx skills add snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:pytorch

Skill Files

The files that make up refactor:pytorch.

Download Skill

More agent skills