Back to skills
SkillHub ClubDesign ProductFull StackDesignerIntegration

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.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
5
Hot score
82
Updated
March 20, 2026
Overall rating
C1.8
Composite score
1.8
Best-practice grade
D41.1

Install command

npx @skill-hub/cli install snakeo-claude-debug-and-refactor-skills-plugin-refactor-pytorch
pytorchrefactoringdeep-learningcode-optimization

Repository

snakeo/claude-debug-and-refactor-skills-plugin

Skill path: plugins/debug-and-refactor/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.

Open repository

Best for

Primary workflow: Design Product.

Technical facets: Full Stack, Designer, Integration.

Target audience: Development teams looking for install-ready agent workflows..

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: snakeo.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install refactor:pytorch into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/snakeo/claude-debug-and-refactor-skills-plugin before adding refactor:pytorch to shared team environments
  • Use refactor:pytorch for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

refactor:pytorch | SkillHub