agentleFS
dustinkeetondustinkeeton/wafflestack/.claude/skills/waffle-upgrade/SKILL.md

waffle-upgrade

Skill2 starsChanged 3 months agoApache-2.0View on GitHub

Move this repo's wafflestack pin to the toolkit's current version — runs migrations, re-renders, and doctors. Use to adopt a new toolkit release; review the diff before committing.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run *that* command verbatim, and review *its* output instead.

    line 32
  2. Distinctive:

    Only after one of those actually moves the version is "already up to date" a true report.

    line 48
  3. Very specific:

    Handle doctor's verdict: If upgrade ends with drift or warnings, surface them and recommend the fix (usually /waffle-render to restore, or …

    line 73

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Upgrade the toolkit pin

Wraps wafflestack upgrade — it moves this repo's version pin to the toolkit version being run, applies any ordered migrations between the two versions, bumps the pinned toolkitRef config keys to the toolkit that rendered, re-renders the current selection, and runs doctor. It takes no refs. Your job is to run it and then review what changed before anything is committed.

Run it

npx --yes github:dustinkeeton/wafflestack upgrade

The version this moves TO is the version you RAN (read this before reporting "already up to date")

upgrade renders the content of the toolkit npx just fetched — it cannot render a version it is not. And since #469 waffle.toolkitRef defaults to a pin — the release that rendered this repo — so the command above normally fetches the toolkit you are already on, and it reports already on toolkit X. That is the expected first result, not a misconfiguration and not "you are up to date": an upgrade from a pinned ref is always a two-step move, and step 1 is asking the pinned CLI which release to reach for. Escalate, in this order:

  1. The run printed a newer toolkit release exists: vX.Y.Z — … run: followed by a command. Run that command verbatim, and review its output instead. It is the release you actually want, and the pinned CLI just told you how to reach it.
  2. It said already on toolkit X and printed no such line (a CLI predating this check, or one whose release lookup could not answer). Probe with the ref unpinned — strip the #tag:

    npx --yes github:OWNER/REPO upgrade

    That normally runs at a genuine release, or refuses and names the exact pinned command to run instead. The refusal is the answer, not a failure — run the command it prints.

    There is a third outcome, and it is the dangerous one. The gate refuses only what it can prove is unreleased; a probe that cannot establish its own provenance (a network blip, a dlx-shaped layout) resolves to unverified, which fails open — it warns and renders anyway, from the default branch. So if the probe neither refuses nor reports a real release, stop and report — do not let it render. Rendering default-branch content into the repo is the exact failure this pinning exists to prevent.

  3. Only after one of those actually moves the version is "already up to date" a true report.

The pins move themselves from there on: a successful upgrade rewrites a release-pinned waffle.toolkitRef / doctor.toolkitRef in .waffle/waffle.yaml to the toolkit that rendered, before the render — so the new pin lands in the skills and the doctor workflow in the same run. An unpinned key is left floating and an absent one is never introduced; that is deliberate, not a miss. Neither key needs introducing when absent: both stack defaults are pinned to the release that rendered the lock (github:dustinkeeton/wafflestack#vX.Y.Z — doctor.toolkitRef since #461, waffle.toolkitRef since #469), so the re-render alone moves the workflow's pin and every /waffle-* skill's.

Review the diff (the point of this skill)

upgrade narrates the version move, the changelog between versions, migrations applied, any pin bumps, and the render. After it completes:

  1. Read the changelog span it printed — call out anything a consuming repo must act on (behavior changes, renamed keys, new required config, removed items).
  2. Diff the rendered output so the user sees exactly what moved in their tree — including .github/, which carries the doctor workflow's pinned ref:
    git diff -- .waffle/ .claude/ .github/
    Summarize the substantive changes; distinguish pure re-renders from behavior changes. Call out any toolkitRef bump explicitly: it changes which toolkit CI and the skills fetch.
  3. Handle doctor's verdict. If upgrade ends with drift or warnings, surface them and recommend the fix (usually /waffle-render to restore, or resolving a migration note), rather than reporting success.
  4. Do not commit automatically. Present the diff and let the user (or the git-workflow skill) commit the render + lock + version bump together.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.