deep-learning · mindrally — Claude Code skill: neural net training
Gives your agent a rulebook for neural network work: layer design, optimizers, mixed precision, memory. Useful when you write or refactor model code.
npx skills add Mindrally/skills --skill deep-learning -a claude-codeWhat deep-learning does
The skill frames the agent as an expert in deep learning architectures and model optimization. It carries a set of principles: start simple and add complexity only when needed, keep components modular and reusable, normalize layers properly, get initialization right. For training it covers optimizer choice (Adam, SGD, AdamW), learning rate schedules, gradient clipping and weight decay.
Separate sections deal with memory and scale. Gradient accumulation simulates a larger batch, mixed precision through torch.cuda.amp cuts the footprint, activation checkpointing trades compute for memory. Multi-GPU work is split between DataParallel and DistributedDataParallel, with gradient synchronization and learning rate scaling spelled out. There is also a debugging block: metrics, training progress visualization, gradient flow problems, profiling bottlenecks.
The skill is plain text and runs nothing on its own. It sets the frame the agent reasons inside, so you still check what it suggests. Install goes through npx skills add, and the file lands at ~/.claude/skills/deep-learning/SKILL.md.
What it helps with
- pick an optimizer and learning rate schedule for the task
- split training across GPUs without hand-rolling gradient sync
- fit a run into GPU memory with gradient accumulation and mixed precision
- track down gradients that stop reaching early layers
- keep an experiment reproducible with seeds, logs and checkpoints
Example prompts for the agent
- Design a network architecture for this classification task and justify the layer choices
- Rewrite the training loop with DistributedDataParallel and correct learning rate scaling
- Turn on mixed precision and gradient accumulation so it fits in memory
How to install deep-learning
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill deep-learning -a claude-code2Manually: put the files in place
~/.claude/skills/deep-learning/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/deep-learning/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill deep-learning -a codex2Manually: put the files in place
.agents/skills/deep-learning/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill deep-learning -a cursor2Manually: put the files in place
.cursor/skills/deep-learning/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install Mindrally/skills deep-learning2Manually: put the files in place
.github/skills/deep-learning/SKILL.md1Skills CLI (Vercel)
npx skills add Mindrally/skills --skill deep-learning -a gemini-cli2Platform CLI
gemini skills install https://github.com/Mindrally/skills --path deep-learningManually: put the files in place
.devin/skills/deep-learning/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add Mindrally/skills --skill deep-learning -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about deep-learning
How do I install deep-learning in Claude?
Run npx skills add Mindrally/skills --skill deep-learning -a claude-code. The skill file then sits at ~/.claude/skills/deep-learning/SKILL.md.
What does the deep-learning skill do?
It hands the agent guidelines for network architecture, training strategies, multi-GPU setups, memory optimization and debugging. The agent leans on them while writing or editing model code.
Does this skill require PyTorch?
The skill is text and executes nothing itself. Its guidance does reference torch.cuda.amp and the DataParallel / DistributedDataParallel pair, so the examples assume PyTorch.
Source text
SKILL.md · Apache-2.0
--- name: deep-learning description: Comprehensive deep learning guidelines for neural network development, training, and optimization. metadata: maintainer: Mindrally source: https://github.com/Mindrally/skills --- # Deep Learning You are an expert in deep learning, neural network architectures, and model optimization. ## Core Principles - Design networks with clear architectural goals - Implement proper training pipelines - Optimize for both accuracy and efficiency - Follow reproducibility best practices ## Network Architecture ### Layer Design - Choose appropriate layer types for the task - Implement proper normalization (BatchNorm, LayerNorm) - Use activation functions appropriately - Design skip connections when beneficial ### Model Structure - Start simple, add complexity as needed - Use modular, reusable components - Implement proper initialization - Consider computational constraints ## Training Strategies ### Optimization - Choose appropriate optimizers (Adam, SGD, AdamW) - Implement learning rate schedules - Use gradient clipping for stability - Apply weight decay for regularization ### Data Handling - Implement efficient data pipelines - Apply appropriate augmentations - Handle class imbalance properly - Use proper validation strategies ## Multi-GPU Training ### DataParallel - Use for simple multi-GPU setups - Understand synchronization overhead - Handle batch size scaling ### DistributedDataParallel - Implement for large-scale training - Handle gradient synchronization - Manage process groups properly - Scale learning rates appropriately ## Memory Optimization ### Gradient Accumulation - Simulate larger batch sizes - Handle loss scaling properly - Implement proper gradient synchronization ### Mixed Precision - Use `torch.cuda.amp` or equivalent - Handle loss scaling for stability - Choose appropriate precision for operations ### Checkpointing - Trade compute for memory - Implement activation checkpointing - Choose checkpoint granularity wisely ## Evaluation and Debugging - Implement comprehensive metrics - Visualize training progress - Debug gradient flow issues - Profile performance bottlenecks ## Best Practices - Set random seeds for reproducibility - Log hyperparameters and metrics - Save checkpoints regularly - Document experiments thoroughly
© Mindrally · Apache-2.0 · Mindrally/skills
Similar skills
Everything for AI and ML →deep-learning by other authors comes first.