agentsclimarketplace

Upgrading megapowers

Skill lawzava/megapowers/plugins/megapowers/skills/upgrading-megapowers

Skills, plugins, and hooks that change how coding agents work — Claude Code, Codex, OpenCode, Antigravity. Measured, not vibed.

Install
npx -y skills add lawzava/megapowers --skill upgrading-megapowers

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when asked to update, upgrade, refresh, or migrate Megapowers, check for a newer release, or discover new Megapowers plugins.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

5.5 KB, as published. Nobody here has run it

Upgrading Megapowers

Core principle: Inspect first, preserve policy, approve one exact plan, then verify observed state.

Read the channel reference before choosing commands. Use only the section for the detected harness and install channel. For initial installation, use the repository setup guide instead.

1. Inspect: read only

Identify the harness and every visible Megapowers source. Record installed and enabled plugins, versions, scopes, marketplace or repository, pins, symlinks, forks, local edits, duplicates, hook state, and, on Codex, CLI and app-server parity.

Inspect available plugins and upstream release metadata without changing local state when the channel permits it. If provenance is ambiguous or managed files have local edits, stop before any write and show the conflict.

2. Classify

Classify every installed plugin:

  • Floating marketplace install: target the latest stable release from the same source.
  • Explicit tag, ref, or version: preserve pinned policy. Move to a named pin only with approval; never convert it to floating.
  • Symlinked checkout: update only a clean checkout with an unambiguous upstream.
  • Fork: propose an upstream integration; never overwrite local work.
  • Duplicate or unknown source: report it. Cleanup is a separate opt-in change.

"Latest" means latest stable unless the user names a version, ref, branch, or prerelease.

3. Compare and propose

Separate the plan into:

  1. Upgrades: already-installed plugins with an applicable target.
  2. Available additions: bundles not installed and not overlapping any visible installed plugin, skill, or component.

Rank additions relevant first using repository evidence: language manifests and source, frontend files or design work, and orchestration needs. Offer show all for the full catalog. Describe newly included skills inside an upgraded bundle as part of that upgrade, not as separate installs. Say "available but not installed" unless release history proves when a bundle was introduced.

Report visible overlap as a same-source duplicate or cross-source conflict, not an addition. Do not install an overlapping bundle while both registrations would remain active. If the user explicitly wants it, propose a migration that selects the one registration to keep and lists any disable or removal as an opt-in write.

Optional additions start unselected. Never install one without explicit selection.

Present one summarized approval request immediately before the first write. Include known current and target versions or refs, unresolved target policy if the cache is stale, exact installed upgrades, selected additions, preserved pins, scopes, and sources, warnings, writes, restarts, and verification. Read-only inspection needs no approval. If refresh changes the plan materially, summarize the delta and ask again.

Example approval shape:

Upgrade: <installed plugin>, <current> to <target policy or ref>
Add: <explicitly selected bundle, or none>
Preserve: <source, scope, pin policy>
Warnings: <local edits, duplicates, hooks, restart, or none>
Writes: <marketplace refresh and exact plugin operations>
Verify: <state probes>
Proceed?

4. Apply

After approval, refresh the selected source and upgrade the installed set first. Re-inspect and verify those upgrades before installing any selected additions.

Do not silently change pins or sources, remove duplicates, discard edits, edit settings, trust hooks, or add plugins. Use effect-broker for external effects when available, but do not require that optional plugin.

5. Verify

Re-read actual state. Confirm the approved plugin set, enabled state, versions or refs, pins, scopes, source, duplicates, expected skill discovery after any restart, and hook status. On Codex, compare CLI and app-server/plugin state.

On partial failure, stop before optional additions. Inspect again and report applied, failed, and not attempted actions. Give the safest recovery step. Never claim rollback, loading, or success without observing it.

6. Clean up stale plugin cache versions

A running session resolves plugin hooks through the versioned cache path (cache/<plugin>/<version>) captured at session start. Deleting an old version disables every hook in every session still pinned to it, with no warning beyond a non-zero hook status.

Deleting a stale version is safe only when no session is still running on it. Order matters: upgrade, restart every open session, then delete stale directories. Deleting before every session has restarted is the failure mode: it silently kills that session's hooks, guard and delegate nudge alike, for the rest of its life.

Detection: a hook attachment reporting Plugin directory does not exist for a versioned cache path means this happened. It affects only the sessions still pinned to the deleted version, not the machine as a whole. Restart the affected session to recover.

Common mistakes

  • Refreshing a marketplace before the approval gate because it seems harmless. It is still a write.
  • Calling every uninstalled bundle newly introduced. Availability does not prove release timing.
  • Assuming a failed update restored the old version. Only observed state supports that claim.
  • Deleting a stale plugin cache version before every session on it has restarted. See "Clean up stale plugin cache versions" above.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.