pytorch-test-refactoring

pytorch-test-refactoring is a skill for Claude Code, Codex from KarhouTam/agent-skills. It costs 176 tokens per session (5,411 once invoked), scanned A, original, no licence file.

A workflow for reorganizing PyTorch test files so they can run across different hardware accelerators, such as GPUs and other compute devices.

In plain words
What is it for?
It is for refactoring, separating, or reorganizing a named PyTorch test file to improve cross-accelerator compatibility.
Why use it?
It removes assumptions that tests use one specific accelerator, making the tests easier to reuse across supported hardware.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit It is for refactoring, separating, or reorganizing a named PyTorch test file to improve cross-accelerator compatibility.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/karhoutam/agent-skills/pytorch-test-refactoring
Install

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.

Any agent
npx skills add KarhouTam/agent-skills --skill pytorch-test-refactoring
Clone the repo
git clone --depth 1 https://github.com/KarhouTam/agent-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for pytorch-test-refactoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/karhoutam/agent-skills/pytorch-test-refactoring/github.svg)](https://agentmods.dev/skills/karhoutam/agent-skills/pytorch-test-refactoring)
Your own site
<a href="https://agentmods.dev/skills/karhoutam/agent-skills/pytorch-test-refactoring"><img src="https://agentmods.dev/badge/skills/karhoutam/agent-skills/pytorch-test-refactoring/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.

agentmods 80×15 button for pytorch-test-refactoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/karhoutam/agent-skills/pytorch-test-refactoring"><img src="https://agentmods.dev/badge/skills/karhoutam/agent-skills/pytorch-test-refactoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 176 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,411 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00176 $0.05411
Opus 5 $0.00088 $0.02705
Sonnet 5 $0.00035 $0.01082
Haiku 4.5 $0.00018 $0.00541

Measured 10d ago against content hash a10bcceed127, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

pytorch-test-refactoring 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 10d ago.

The scan reads SKILL.md. This mod also ships 20 executable files (agent/harness.py, agent/harnesses/__init__.py, agent/harnesses/claude.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

pytorch-test-refactoring/SKILL.md · 406 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 10d ago First seen · 406 lines · 176 tokens per session scan A a10bcceed127

Subscribe to this mod's changes

pytorch-test-refactoring is a skill published in the GitHub repository KarhouTam/agent-skills (2 stars, last pushed 15d ago), with no licence file. It adds 176 tokens to every session and 5,411 once invoked, about $0.0009 per session on Opus 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-08-31.

Related

Other skills, from other repositories

readme-template

Standard README template for repos — professional structure with badges, overview, table of contents, features/modules, stack, installation, configuration, tests, security, structure, docs, roadmap, contribute, license, author + RepoActivity sections (Star History, repo stats) + profile GIF footer. Use when creating…

pedroiff0/awesome-skills · 72 tokens

docker-single-port-multi-instance

Consolidate multiple Docker Compose app instances (production / test / demo) behind ONE host port using an nginx reverse proxy that routes by URL path prefix (e.g. /demo). Use when a user wants 'one port, several apps/banks' or a demo reachable simultaneously from the main landing page with its own database.

pedroiff0/awesome-skills · 73 tokens

adhoc-verification

Produce fresh, focused, local verification evidence for a code change without relying on the full test suite. Use when a system reminder (or the user) demands ad-hoc verification after an edit, or when you want to prove one behavior in isolation. Covers the correct way to write a throwaway supertest/harness script…

pedroiff0/awesome-skills · 86 tokens

agent-evaluation

This skill should be used when the user asks to "evaluate agent performance", "build test framework", "measure agent quality", "create evaluation rubrics", "implement LLM-as-judge", "compare model outputs", "mitigate evaluation bias", or mentions multi-dimensional evaluation, agent testing, quality gates, direct…

viktorbezdek/skillstack · 115 tokens

playwright-browser-automation

Run automated headless browser testing, scrape dynamic SPAs, capture high-resolution full-page screenshots, and perform visual regression testing with Playwright.

pedroiff0/awesome-skills · 34 tokens

accessibility-testing-best-practices

Use when applying accessibility testing best practices.

LoopyLuci/Skills · 16 tokens