Agent skill

R2 Outage Toggle

by pytorch in pytorch/test-infra

Disable or re-enable Cloudflare R2 (download-r2.pytorch.org) usage in managev2.py during R2 outages.

Custom licenceAuto-check passedAI & LLM Engineering

Install R2 Outage Toggle

skills CLI
$ npx skills add pytorch/test-infra --skill r2-outage-toggle -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pytorch/test-infra r2-outage-toggle --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pytorch/test-infra.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/r2-outage-toggle .claude/skills/r2-outage-toggle && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
r2-outage-toggle
GitHub stars
113
Token cost
~1.5k tokens
SKILL.md length
470 words
Files
1
Skills in repo
11
Repo updated
First seen
Licence
Custom licence

At a glance

Disable or re-enable Cloudflare R2 (download-r2.pytorch.org) usage in managev2.py during R2 outages.

  • Works in 4 steps: Determine the action and scope → Read the current state → Verify the change → …
  • Tasks that involve Incident response
  • SKILL.md covers When to use this skill, Target file, Key data structures and Instructions, plus 2 more sections
  • Calls python; reaches download-r2.pytorch.org and d21usjoq99fcb9.cloudfront.net

What it does

R2 Outage Toggle is an agent skill from pytorch/test-infra. Disable or re-enable Cloudflare R2 (download-r2.pytorch.org) usage in managev2.py during R2 outages. Can toggle R2 off/on for nightly builds, prod/stable builds, or both. The affected packages are PTFOUNDATIONPACKAGES (torch, torchvision, torchaudio, fbgemmgpu, fbgemmgpugenai, triton, pytorchtriton, pytorchtritonrocm, pytorchtritonxpu).

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Incident response and Deep learning. It works with PyTorch and Cloudflare R2. The repository describes itself as: This repository hosts code that supports the testing infrastructure for the PyTorch organization. For example, this repo hosts the logic to track disabled tests and slow tests…

When your agent uses it

  • Tasks that involve Incident response
  • Tasks that involve Deep learning

Example prompts

  • “/r2-outage-toggle”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Determine the action and scope
  2. Read the current state
  3. Verify the change
  4. Remind about deployment

What it can do on your machine

Read from SKILL.md and the folder at commit 71b3093. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • download-r2.pytorch.org
    • d21usjoq99fcb9.cloudfront.net

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

R2 Outage Toggle loads about 1.5k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 470 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 470 words (~1,501 tokens).

“Modifies s3_management/manage_v2.py to disable or re-enable Cloudflare R2 (download-r2.pytorch.org) URL generation for PyTorch foundation packages. Use during R2 outages to fall back to S3/CloudFront, or to restore R2 usage after an outage is resolved.”

— opening of SKILL.md by pytorch, Custom licence
name
r2-outage-toggle

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/r2-outage-toggle of pytorch/test-infra.

Open the folder on GitHubat commit 71b3093

Compare with similar skills

R2 Outage Toggle next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

R2 Outage Toggle compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
R2 Outage Toggle this skillpytorch/test-infra113—~1.5kAutomated safety check: PassCustom licence
Triaging Issuespytorch/pytorch104k—~4.2kAutomated safety check: PassCustom licence
CI Metricspytorch/pytorch104k—~1.1kAutomated safety check: PassCustom licence
Senior ML Engineerdavila7/claude-code-templates32k3 repos~1.4kAutomated safety check: PassMIT
Flash AttentionLuciole-Studio/Misaka-Agent1391 repos~2.7kAutomated safety check: PassMIT
Docstringpytorch/pytorch104k2 repos~2.6kAutomated safety check: PassCustom licence

Similar skills

  • Triaging Issues

    pytorch/pytorch

    Triages GitHub issues by routing to oncall teams, applying labels, and closing questions.

    104k GitHub stars~4.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • CI Metrics

    pytorch/pytorch

    Query PyTorch CI, GitHub Actions, HUD, Grafana, and infrastructure metrics.

    104k GitHub stars~1.1k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Senior ML Engineer

    davila7/claude-code-templates

    World-class ML engineering skill for productionizing ML models, MLOps, and building scalable ML systems.

    32k GitHub starsUsed in 3 repos~1.4k tokens
    AI & LLM EngineeringAuto-check passed
  • Flash Attention

    Luciole-Studio/Misaka-Agent

    Speed up long-sequence transformer training and inference. An agent skill from Luciole-Studio/Misaka-Agent.

    139 GitHub starsUsed in 1 repo~2.7k tokens
    AI & LLM EngineeringAuto-check passed
  • Docstring

    pytorch/pytorch

    Write docstrings for PyTorch functions and methods following PyTorch conventions.

    104k GitHub starsUsed in 2 repos~2.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Cuda Index Width

    pytorch/pytorch

    Choose 32-bit vs 64-bit index math in PyTorch CUDA kernels. An agent skill from pytorch/pytorch.

    104k GitHub stars~1.6k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from pytorch/test-infra

All 11 skills in this repo
  • Step-by-step playbook for migrating a pytorch/pytorch .github/workflows/.yml from EC2 to OSDC (ARC) runners — covers both dial-up and 100% opt-in patterns, with the inputs that must be plumbed…

    113 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Pytorch Clickhouse

    pytorch/test-infra

    Load this FIRST whenever working with PyTorch CI data (any pytorch/ org repo), the torchci/HUD codebase, or the PyTorch HUD ClickHouse database.

    113 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Find reverts that landed on pytorch/pytorch main but are missing from a release branch (release/X.Y) because the reverted commit was already shipped in a release candidate, and open one cherry-pick…

    113 GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Generate (and optionally open) a PyTorch release tracker / cherry-pick tracking issue from a release announcement, like https://github.com/pytorch/pytorch/issues/180506.

    113 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Generate a PyTorch release validation checklist issue by pulling open/closed issues from a GitHub milestone and cherry-picks from a release tracker issue.

    113 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Update tools/scripts/generatebinarybuildmatrix.py when a PyTorch release goes live.

    113 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Questions about R2 Outage Toggle

What does R2 Outage Toggle do?

Disable or re-enable Cloudflare R2 (download-r2.pytorch.org) usage in managev2.py during R2 outages. R2 Outage Toggle is an agent skill from pytorch/test-infra.py during R2 outages.

When should I use R2 Outage Toggle?

R2 Outage Toggle fits situations like: tasks that involve Incident response; tasks that involve Deep learning.

How do I install R2 Outage Toggle in Claude Code?

Run `npx skills add pytorch/test-infra --skill r2-outage-toggle -a claude-code`. Or copy the skill folder (.claude/skills/r2-outage-toggle in pytorch/test-infra) into .claude/skills/r2-outage-toggle in your project. Claude Code loads it when a task matches its description.

How do I install R2 Outage Toggle in Codex?

Run `npx skills add pytorch/test-infra --skill r2-outage-toggle -a codex`. Or copy the skill folder (.claude/skills/r2-outage-toggle in pytorch/test-infra) into .agents/skills/r2-outage-toggle in your project. Codex loads it when a task matches its description.

Can I use R2 Outage Toggle in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pytorch/test-infra --skill r2-outage-toggle -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/r2-outage-toggle, .gemini/skills/r2-outage-toggle, .github/skills/r2-outage-toggle and .opencode/skills/r2-outage-toggle in your project.

What does R2 Outage Toggle need to run?

Going by SKILL.md and its folder, R2 Outage Toggle needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does R2 Outage Toggle access the network?

SKILL.md names 2 domains. In commands or code: download-r2.pytorch.org and d21usjoq99fcb9.cloudfront.net; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is R2 Outage Toggle safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does R2 Outage Toggle use?

R2 Outage Toggle has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does R2 Outage Toggle use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to R2 Outage Toggle?

Skills that share tags, products or a category with R2 Outage Toggle: Triaging Issues (pytorch/pytorch, 104k stars), CI Metrics (pytorch/pytorch, 104k stars), Senior ML Engineer (davila7/claude-code-templates, 32k stars) and Flash Attention (Luciole-Studio/Misaka-Agent, 139 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains R2 Outage Toggle?

pytorch (a GitHub organization) maintains it in pytorch/test-infra, which has 113 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 8, 2026.

Source: pytorch/test-infra on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.