Add registry changeset

From hyperlane-xyz/hyperlane-monorepo · View interactive version

Add registry changeset is an AI agent skill from the GitHub repository hyperlane-xyz/hyperlane-monorepo. Write a changeset file in the `hyperlane-registry` repo for a PR that adds, updates, or modifies warp route config / chain metadata / addresses. Canonical pattern — never run the interactive `pnpm changeset` CLI; write the file directly. Referenced by any skill that opens a registry PR.

How to use this skill

Skill file

Add a Registry Changeset

The hyperlane-registry repo uses changesets to track PR-level changes and drive npm releases of @hyperlane-xyz/registry. Every PR that touches the published surface (warp route configs, chain metadata, addresses, deployments) MUST carry a changeset, otherwise the merge bot blocks the PR and the published package falls behind. Skills that open registry PRs invoke this skill to write the changeset before committing.

Why a dedicated skill

Input

Step 1: Confirm the Registry Path

The changeset must be written to the hyperlane-registry checkout, NOT the monorepo. Determine the registry path:

REGISTRY_PATH="${HYPERLANE_REGISTRY:-$HOME/hyperlane-registry}"
ls -d "$REGISTRY_PATH/.changeset" || { echo "Registry .changeset/ missing — wrong path?" >&2; exit 1; }

If the registry checkout isn't at the expected location, surface the discrepancy to the user before continuing.

Step 2: Choose the Filename

Use the provided slug, OR derive one from the PR scope:

| PR scope | Filename example |

| ---------------------------------------------------- | ------------------------------------------- |

| New warp route deploy | add-<token>-<chains>.md |

| Warp route config update (fees / ISM / hook / owner) | update-<token>-<chains>-<short-change>.md |

| Adding a chain | add-<chain>.md |

| Updating chain metadata (RPCs, blocks, logo, etc.) | update-<chain>-<short-change>.md |

| Fix / backfill | fix-<short-description>.md |

The file must be *.md and live directly under .changeset/. The registry .changeset/config.json enforces the schema.

Step 3: Write the File

The content has TWO parts: a YAML frontmatter block specifying the package + bump, then a free-form markdown body that becomes the changelog entry on publish.

---
'@hyperlane-xyz/registry': <bump>
---

<change summary — one or two sentences, past tense, lowercase, concise>

Bump rules:

Style — per AGENTS.md:

Write changeset descriptions in past tense describing what changed.

Good: "The registry code is restructured by moving filesystem components to a dedicated directory."

Bad: "Restructures the registry code."

Lowercase first letter, no terminal period if it's a single short sentence. Multi-sentence summaries can use sentence case.

Step 4: Validate

Inspect the file before staging:

cat "$REGISTRY_PATH/.changeset/<filename>"

Confirm:

Step 5: Hand Back to the Calling Skill

Return control to the caller. The caller is responsible for staging the changeset alongside the PR's other files:

cd $REGISTRY_PATH
git add .changeset/<filename>
# … plus the warp route config / chain metadata files specific to the change
git commit -m "<commit message scoped to the change>"

Do NOT use git add . or git add -A in the registry checkout. Scope to the changeset + the specific files the PR touches. If a warp apply run was done with the HTTP registry in writeMode, unrelated files may have been written by the server — staging them blindly risks publishing API-keyed RPC overrides. Always run git status first and review the file list before staging.


Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.