Open Bug 2020717 Opened 9 months ago Updated 4 months ago

Create a /trainhop Claude Code skill for newtab train-hop operational procedures

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

People

(Reporter: maxx, Assigned: nbarrett)

References

(Blocks 1 open bug)

Details

NOTE - This skill may live in the /newtab plugin in the firefox-aidev-plugins repo.

Summary

The newtab CLAUDE.md covers train-hop compatibility concepts (what's trainhoppable, @backward-compat convention, Nimbus/Glean patterns), but operational procedures are not captured anywhere for agents. A dedicated skill would give agents a guided workflow when performing or debugging a train-hop.

The skill should cover:

Pre-hop checklist

  • Run ./mach newtab update-locales and review ./mach newtab locales-report output; understand what "pending" vs "missing" strings mean and what's acceptable to ship
  • Verify runtime-metrics-N.json files in webext-glue/metrics/ are up to date; delete stale ones for versions off Release

Testing train-hop compatibility

  • How to use ./mach try --preset desktop-newtab-trainhop --artifact to verify compat on Beta/Release in CI
  • What the M-trainhop-beta (bc) and M-trainhop-rel (bc) Treeherder jobs mean and how to interpret failures

Local debugging on Beta/Release

  • Build the XPI from objdir: dist/xpi-stage/newtab@mozilla.org.xpi
  • Use Firefox Developer Edition as a Beta stand-in; unbranded builds for Release
  • about:config prefs to set: xpinstall.signatures.required=false, browser.newtabpage.resource-mapping.log=true, browser.newtabpage.trainhopAddon.version=any
  • Install via about:addons → gear → "Install Add-on From File"; verify version in about:support

When train-hop compat is broken

  • No train-hops should be performed on the affected channel until fixed
  • Steps to investigate: check automation logs, reproduce locally, push a fix to try with the trainhop preset

Performing the hop

  • Note that the actual signing/shipping procedure is internal tooling documented on Confluence; the skill should point there rather than reproduce it

The /trainhop orchestrator skill has been created and is up-to-date with the current train-hop procedure. It is waiting on testing from another member of the team. The PR lives here: https://github.com/mozilla/firefox-aidev-plugins/pull/8

You need to log in before you can comment on or make changes to this bug.