A distributable Claude Code skill that makes Claude significantly better at writing CTRE Phoenix 6 Java code for FRC robots.
When installed, Claude automatically loads Phoenix 6 knowledge when you mention TalonFX, Kraken, CANcoder, Pigeon2, MotionMagic, Phoenix 6, CTRE, or swerve drive in an FRC Java context. It provides:
- 15 Phoenix 5 → 6 migration gotchas (units, API changes, common mistakes)
- Quick-reference cheat sheet (control requests, config patterns, gain table)
- Dense API reference (exact field names, method signatures, enums)
- 8 copy-paste code patterns (subsystem init, position/velocity/MotionMagic control, simulation, follower, CANcoder fusion)
- Phoenix Tuner X + Swerve Generator reference (workflow, TunerConstants fields, integration)
| Tool | File | How |
|---|---|---|
| Claude Code | phoenix6-frc.skill |
Upload via Settings → Features, or unzip into .claude/skills/ |
| GitHub Copilot | copilot-instructions.md |
Copy to .github/copilot-instructions.md in your robot project |
| Cursor (modern) | phoenix6-frc.mdc |
Copy to .cursor/rules/phoenix6-frc.mdc |
| Cursor (legacy) | cursorrules |
Copy to .cursorrules in your robot project |
Download all files from the latest release.
To regenerate the adapter files locally:
python scripts/generate_adapters.py
# Writes copilot-instructions.md, cursorrules, phoenix6-frc.mdc to adapters/- Download or build
phoenix6-frc.skill - In Claude Code: Settings → Features → Upload Skill
- Select
phoenix6-frc.skill
# For this project only (.claude/skills/ in your robot repo):
cp -r phoenix6-frc/ /path/to/robot-project/.claude/skills/phoenix6-frc/
# For all your projects (user-level):
cp -r phoenix6-frc/ ~/.claude/skills/phoenix6-frc/# In your robot project:
git submodule add https://github.com/your-org/ctre-skill .claude/skills/phoenix6-frcpython scripts/package_skill.py
# Produces: phoenix6-frc.skill at the repo rootThe .skill file is a ZIP. You can verify its contents with:
python -c "import zipfile; [print(n) for n in zipfile.ZipFile('phoenix6-frc.skill').namelist()]"-
Run the scraper to fetch updated docs and examples:
python phoenix6-frc/scripts/scrape_phoenix6.py --version 27.0.0
This writes
references/phoenix6-api-scraped.mdandreferences/phoenix6-patterns-scraped.md(note: different filenames — they don't overwrite the curated files). -
Review the diff between scraped output and curated files:
- Check for new control request classes in the controls package
- Check for new config fields in config classes
- Update curated files as needed
-
Update
SKILL.mdfrontmatterphoenix6_versionandfrc_season -
Repackage:
python scripts/package_skill.py
-
Commit and distribute the updated skill
phoenix6-frc/ ← the skill directory (installed by users)
SKILL.md ← skill entrypoint: gotchas, cheat sheet, reference index
references/
phoenix6-api.md ← dense field/method tables (loaded on demand)
phoenix6-patterns.md ← 9 copy-paste Java patterns (loaded on demand)
tuner-x.md ← Tuner X + Swerve Generator reference (hand-authored)
scripts/
scrape_phoenix6.py ← regenerates references from live docs (stdlib only)
scripts/
package_skill.py ← build tool: produces phoenix6-frc.skill
README.md ← this file
.gitignore
phoenix6-frc.skillis excluded from git (.gitignore) — it's a build artifact- The scraper uses Python stdlib only — no
pip installrequired tuner-x.mdis hand-authored and not regenerated by the scraper- All patterns target Java (not C++ or Python)
- Phoenix 6 version covered: 26.1.x (2026 season)