agentleFS
jwm-axonijwm-axoni/claude-workbench/skills/migrate/SKILL.md

migrate

Skill2 starsChanged 5 days agoMITView on GitHub

Upgrade, repair or adopt a workbench. Brings an existing workbench up to the installed plugin version without overwriting anything the person edited, resolves .workbench-new conflicts, repairs missing folders or CLAUDE.md files, refreshes connector status, and converts an older or hand-built vault into the workbench layout with the person's approval. Use for "upgrade my workbench", "something's broken", "I updated the plugin", "migrate my vault", or /workbench:migrate.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident, sdd and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JkudjoSkill

    incident

    Production incident response — structured triage, hypothesis tree, safe remediation, incident record

    Also in 4 projects that use this

  • liatrio-labsSkill

    sdd

    Execute the Liatrio Spec-Driven Development (SDD) workflow when explicitly invoked by the user. NOTE: this skill is NOT intended to be dynamically loaded or automatically triggered; it should only ever be explicitly called by the user.

    Also in 4 projects that use this

  • BerryKuipersSkill

    scaffold

    Detect project stack, apply architecture patterns, wire quality gates, and scaffold features. Use when bootstrapping a project, adding a vertical slice, wiring CI/CD, adding Docker compose, or setting up quality gates.

    Also in 4 projects that use this

  • MicrosoftSkill

    init

    Also in 8 projects that use this

  • agenticnotetakingSkill

    upgrade

    Apply plugin knowledge base updates to an existing generated system. Consults the Ars Contexta research graph for methodology improvements, proposes skill upgrades with research justification. Never auto-implements. Triggers on "/upgrade", "upgrade skills", "check for improvements", "update methodology".

    Also in 3 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 50 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the workbench is a git repo, check that the working tree is clean, or commit what's there with message pre-migrate snapshot.

    line 23
  2. Very specific:

    If the profile is missing (for example the workbench was built by hand), reconstruct it from Context/me.md and the root CLAUDE.md, confirm …

    line 34
  3. Very specific:

    If they'd rather take the new version wholesale, move theirs to Archive/Superseded/ with the date in the name first, then put the new one …

    line 81
  4. Very specific:

    Run the schedules skill. Routine prompts rarely change, but times or the routine set might.

    line 93
  5. Very specific:

    When setup hands you a foreign folder, or someone asks to bring an existing vault into the workbench:

    line 103
  6. Very specific:

    Never delete. If something doesn't fit anywhere, it goes to Archive/Superseded/.

    line 119

“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “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

Workbench migrate

Three jobs, one skill: upgrade a workbench to the installed plugin version, repair one that's drifted, and adopt a folder that predates the workbench.

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/workbench.py" detect --root "<workbench>"

If state is fresh or foreign

There's no workbench here yet. Run the setup skill instead; it handles adoption.

If state is workbench

1. Snapshot first

If the workbench is a git repo, check that the working tree is clean, or commit what's there with message pre-migrate snapshot. If it isn't a git repo, copy .workbench/ and every CLAUDE.md to .workbench/backup-YYYY-MM-DD/ before changing anything. Say which one you did.

2. Refresh the profile

Load .workbench/profile.json. Re-check connections the way setup step 3 does (one read-only call per tool) and update each tool's status in the profile. New connections are the most common reason a routine starts doing more after an upgrade. Ask whether anything else changed: role, hours, tools, routines. Don't re-interview from scratch.

If the profile is missing (for example the workbench was built by hand), reconstruct it from Context/me.md and the root CLAUDE.md, confirm it with them, and save it.

3. Plan and apply

python3 "${CLAUDE_PLUGIN_ROOT}/scripts/workbench.py" plan  --root "<workbench>"
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/workbench.py" apply --root "<workbench>"

Summarize the plan before applying: folders to add, files to update, conflicts. What each op means:

  • create: missing file, written fresh.
  • update: a plugin-managed file nobody edited, refreshed to the new version.
  • keep: a content page (people, projects, logs, me.md, GOALS.md…) or a pinned file. Never touched.
  • conflict: a plugin-managed file someone edited. Theirs stays; the new version lands beside it as <file>.workbench-new.

New vault files in v0.2.0

Upgrading from 0.1.x, apply creates four files additively, through the same hash-manifest path:

  • Tracking/COMMITMENTS.md — the commitments register (dream maintains, weekly closes)
  • Tracking/Signals/RUN_LEDGER.md — the run ledger (every routine appends one line)
  • Context/surfacing.md — what the briefing always or never raises
  • .gitignore — only if the vault is a git repository (vault_home: repo, or a .git folder when the profile doesn't say)

Missing files are created. A file the person already has under one of those names is never overwritten: apply reports it as a conflict and writes <file>.workbench-new beside it. Merge it like any other conflict (step 4): usually keep theirs, add the template's headings or columns the routines need, then pin it. While you're in the profile, set surface and vault_home if they're missing, and meetings_via if they record meetings (offer the connector-first choice from setup step 3; an existing Meetings/ export keeps working if they'd rather leave it) (ask; detect's git_repo is a hint, not an answer), so the schedules skill can derive the runner.

4. Resolve conflicts

For each .workbench-new (also run status to catch older leftovers):

  1. Diff it against their file. Most conflicts are a root or folder CLAUDE.md where they added a rule or a standing exception. Those additions are deliberate; keep every one.
  2. Merge: start from their file, bring in the new version's changes that don't contradict their edits, and keep their additions verbatim.
  3. Show the merged result in brief and get a yes. Write it over their file, delete the .workbench-new, then run pin --path "<file>" so the merge is recorded as their version.

If they'd rather take the new version wholesale, move theirs to Archive/Superseded/ with the date in the name first, then put the new one in place.

5. Content migrations

Some versions change the shape of content pages (a renamed section, a new frontmatter field). The script never edits content, so do these by hand, and only the ones listed in the plugin's CHANGELOG.md between the installed version and the current one. Respect ownership: change a dream-owned block only in the format the dream will keep writing. Log each one.

6. Reschedule

Run the schedules skill. Routine prompts rarely change, but times or the routine set might.

7. Record it

Append to Tracking/FRICTION_LOG.md under ## Resolved: date, "migrated vX → vY", files updated, conflicts merged, content migrations done. Then tell them what changed in plain words: what they'll notice tomorrow morning, not a file list.

Adopting an older or hand-built vault

When setup hands you a foreign folder, or someone asks to bring an existing vault into the workbench:

  1. detect gives adopt_suggestions (e.g. Journal/ → Daily/, Clients/ → Organizations/). Walk through them with the person. For each yes, move the folder's contents into the workbench folder, one folder at a time. Bare wikilinks survive moves; path-style links ([[Clients/Acme]]) don't, so rewrite those to bare form as you go.
  2. Old templates folders: don't carry them over. The schema now lives in each folder's CLAUDE.md. Move the old templates to Archive/Superseded/.
  3. Old scheduled prompts or slash commands that duplicate a routine: list them, and let the schedules skill replace them.
  4. Pages without frontmatter: leave them. The weekly maintenance pass adds type and tags over the following weeks without a big-bang rewrite.
  5. Log each move in this week's Tracking/Signals/YYYY-MM-DD_weekly.md under ## Moved (create the file if it doesn't exist, with that one section), so the moves are reversible.

Never delete. If something doesn't fit anywhere, it goes to Archive/Superseded/.

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.