agentleFS
philippe-desplatsphilippe-desplats/second-brain/.claude/skills/sb-update/SKILL.md

sb-update

Skill8 starsChanged 5 days agoMITView on GitHub

Upgrade this second brain to a newer boilerplate release, one release at a time, running the upgrade prompt each CHANGELOG section ships with every approval gate kept. Use for "sb-update", "update my second brain", "upgrade the workspace". Not for first-time setup, use /sb-init.

1 other project uses a version of this.

Adopted by

Most recently taken up by

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. Very specific:

    After the last write of a run, add one line to the operations log with --skill sb-update, see AGENTS.md, Logging writes.

    line 10
  2. Distinctive:

    The upgrade prompts are the authority: Follow each one literally, phase by phase.

    line 66
  3. Distinctive:

    One release at a time, in ascending order: Never jump to the latest prompt from an older version, each prompt states the versions it …

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
<objective> Bring a cloned workspace from its `boilerplate_version` to a newer release without copy-pasting prompts by hand. The skill finds every release between the two, reads the upgrade prompt each one ships in `CHANGELOG.md`, picks the stock or the customized variant, and runs it release by release with the owner approving every write into a data zone. The upgrade prompts stay the single source of truth: this skill orchestrates them and never re-implements what they do. </objective>

After the last write of a run, add one line to the operations log with --skill sb-update, see AGENTS.md, Logging writes. Log one line per release applied, --action "upgraded to vX.Y.Z".

<quick_start>

/sb-update                 # upgrade to the latest release, one release at a time
/sb-update --to v0.6.3     # stop at a given release
/sb-update --plan          # show the plan (releases, prompt variant per release) and stop

</quick_start>

<flags>
FlagEffect
--to vX.Y.ZTarget release instead of the latest tag
--planPlan only: print the releases and the prompt picked for each, write nothing
</flags><workflow> 1. **Init** → Preconditions: workspace root, clean git tree, current version, upstream remote and tags, a snapshot of this skill 2. **Plan** → Releases to walk, prompt source, stock or customized per release, owner approval of the plan 3. **Apply** → For each release in order: extract its prompt, follow it with its own gates, verify, record the commit 4. **Report** → Versions moved, per-release outcome, damage hits left on purpose, what only the owner can verify </workflow>

<step_files>

StepFilePurpose
00steps/step-00-init.mdPreconditions, versions, upstream, skill snapshot
01steps/step-01-plan.mdRelease list, prompt variant per release, plan approval
02steps/step-02-apply.mdRun each release's prompt in order, commit gate between releases
03steps/step-03-report.mdFinal summary and what remains to verify by hand

</step_files>

<state_variables>

VariableTypeSet by
{current_version}stringstep-00 (boilerplate_version of .sb-config.json, updated by step-02 after each release)
{target_tag}stringstep-00 (--to, or the highest release tag)
{plan_only}booleanstep-00
{snapshot}pathstep-00 (copy of this skill, the only place later steps are read from)
{releases}liststep-01 (tags strictly above {current_version} up to {target_tag}, ascending)
{prompt_source}stringstep-01 (always {target_tag}: its CHANGELOG holds every prompt corrected in place)
{variant}mapstep-01 (release to stock or customized)
{outcomes}liststep-02 (per release: done, stopped, hits left, commit sha)

</state_variables>

<execution_rules>

  • Read the steps from {snapshot} once step-00 has made it, never from .claude/skills/sb-update/. Each release checks out .claude (and the other harness infrastructure paths, .agents .codex .gemini .qwen .kiro .githooks .aider.conf.yml), which replaces this skill mid-run, and a step read after that would come from another version.
  • The upgrade prompts are the authority. Follow each one literally, phase by phase. When this skill and a prompt disagree, the prompt wins and you say so in the report.
  • Every gate of a prompt is a gate with the owner. "Show me the diff and wait for my approval" means asking the owner (see AGENTS.md, Asking the owner) with the diff, never an assumed yes. Never batch the approvals of 2 shapes or 2 intents.
  • One release at a time, in ascending order. Never jump to the latest prompt from an older version, each prompt states the versions it accepts.
  • Never commit, push, or delete a note on your own. Between 2 releases the next prompt needs a clean tree: ask the owner to commit, or commit with their explicit approval of the message, then continue.
  • Never write upstream. Fetch only. If upstream points at a URL you did not expect, stop and ask.
  • Stop on any failed precondition and say which one, rather than improvising around it. </execution_rules>

<entry_point> FIRST ACTION: Load steps/step-00-init.md. </entry_point>

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.