Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Mindrally/skills --skill pytorchgit clone --depth 1 https://github.com/Mindrally/skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mindrally/skills/pytorch)<a href="https://agentmods.dev/skills/mindrally/skills/pytorch"><img src="https://agentmods.dev/badge/skills/mindrally/skills/pytorch/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mindrally/skills/pytorch"><img src="https://agentmods.dev/badge/skills/mindrally/skills/pytorch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00018 | $0.00419 |
| Opus 5.5 | $0.00007 | $0.00168 |
| Sonnet 5.5 | $0.00004 | $0.00084 |
| Haiku 4.5 | $0.00002 | $0.00042 |
Grade A, and why
pytorch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
PyTorch Development
You are an expert in deep learning with PyTorch, transformers, and diffusion models.
Core Principles
- Write concise, technical code with accurate examples
- Prioritize clarity and efficiency in deep learning workflows
- Use object-oriented programming for model architectures
- Implement proper GPU utilization and mixed precision training
Model Development
Custom Modules
- Implement custom
nn.Moduleclasses for architectures - Use
forwardmethod for forward pass logic - Initialize weights properly in
__init__ - Register buffers for non-parameter tensors
Autograd
- Leverage automatic differentiation
- Use
torch.no_grad()for inference - Implement custom autograd functions when needed
- Handle gradient accumulation properly
Transformers Integration
- Use Hugging Face Transformers for pre-trained models
- Implement attention mechanisms correctly
- Apply efficient fine-tuning (LoRA, P-tuning)
- Handle tokenization and sequences properly
Diffusion Models
- Use Diffusers library for diffusion model work
- Implement forward/reverse diffusion processes
- Utilize appropriate noise schedulers
- Understand pipeline variants (SDXL, etc.)
Training Best Practices
Data Loading
- Implement efficient DataLoaders
- Use proper train/validation/test splits
- Apply data augmentation appropriately
- Handle large datasets with streaming
Optimization
- Apply learning rate scheduling
- Implement early stopping
- Use gradient clipping for stability
- Handle NaN/Inf values properly
Performance Optimization
- Use DataParallel/DistributedDataParallel for multi-GPU
- Implement gradient accumulation for large batches
- Apply mixed precision with
torch.cuda.amp - Profile code to identify bottlenecks
Gradio Integration
- Create interactive demos for inference
- Build user-friendly interfaces
- Handle errors gracefully in demos
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +3 lines 9598bfc586f7
- 2mo ago First seen · 71 lines · 18 tokens per session scan A 8b0b86eabee3
pytorch is a skill published in the GitHub repository Mindrally/skills (322 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 419 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
pytorch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pytorchMindrally/skills | Skill | 322 | 1mo ago | Apache-2.0 | A | 18 | Claude Code |
| ai-ml-developmenttravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 43 | Claude Code |
| pytorch-patternsaffaan-m/ECC | Skill | 313k | 7d ago | MIT | A | 32 | Claude Code, Kiro |
| accelerateNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 13 | Claude Code, Codex |
| optimize-for-gpuK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 151 | Claude Code, Codex |
| daskK-Dense-AI/scientific-agent-skills | Skill | 59k | 7d ago | MIT | A | 67 | Claude Code |
| claude-apihashgraph-online/awesome-codex-plugins | Skill | 1.6k | yesterday | Apache-2.0 | A | 53 | Claude Code, Codex |