/formae:upgradefrom formae
Upgrades the local formae binary when the connected agent is newer. Confirms before acting and warns about pinned formae.
Ships in formae. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Triggered when check_health or a version-skew notice reports that the connected agent is newer than the local formae binary. The launcher refreshes its own managed copy on startup; this skill is for an explicit refresh or for an install outside the managed tree.
Before doing anything:
check_health MCP tool to retrieve the current local formae version and the connected agent version.Local formae : 0.84.1
Agent version: 0.87.0
formae they deliberately pinned to an older version in order to stay compatible with a specific agent. If they are running a self-managed agent they want to keep in sync at a specific version, they should upgrade the agent first or decline here.Do not probe the filesystem for this. There is exactly one formae per machine and the launcher already decided which one; a machine can have a leftover copy in the managed tree that is not the binary in use, so test -x ~/.formae-ai/opt/bin/formae answers the wrong question and would send you at a binary the MCP never runs.
Read the answer out of the check_health output from Step 1. There are two shapes it can take, because a formae below the MCP's floor fails before any skew notice can be produced:
check_health errored with "formae is too old" — the message names the binary and whose it is. That is the strongest signal: the MCP cannot work at all until it is upgraded. Follow the route the message gives.check_health succeeded with a skew notice — the agent is merely newer than formae. If the notice says "Run /formae:upgrade to update formae" it is the managed install (Step 3a); if it names a path and says the plugin will not change it, it is the user's own (Step 3b, using that path).If check_health succeeded and there is no skew notice, there is nothing to upgrade — say so and stop.
For the user's own install, do not assume sudo. Ask where it came from, or look at the path: a binary under $HOME is theirs to replace without privilege, while one under /opt or /usr/local will need it.
Source the bundled helper and call provision_pkg with FORMAE_FORCE_PROVISION=1 so it reinstalls even when the binary is already present:
sh -c '. "$CLAUDE_PLUGIN_ROOT/scripts/provision.sh"; FORMAE_FORCE_PROVISION=1 provision_pkg formae "${FORMAE_MCP_CHANNEL:-stable}"'
If the MCP binary itself is also behind the agent, upgrade it the same way:
sh -c '. "$CLAUDE_PLUGIN_ROOT/scripts/provision.sh"; FORMAE_FORCE_PROVISION=1 provision_pkg formae-mcp "${FORMAE_MCP_CHANNEL:-stable}"'
Notes:
provision_pkg <pkg> <channel> installs <pkg> from <channel> into ~/.formae-ai/opt; the binary lands at ~/.formae-ai/opt/bin/<pkg>.FORMAE_FORCE_PROVISION=1 bypasses the fast-path skip that would leave an already-present binary untouched.$CLAUDE_PLUGIN_ROOT is set by the plugin runtime to the plugin's root directory; scripts/provision.sh lives there.stable; it can be overridden with FORMAE_MCP_CHANNEL (e.g. dev).Do NOT attempt a non-interactive sudo command. Instead, tell the user to run the upgrade themselves in a terminal. Provide the appropriate command for their install:
bash -c "$(curl -fsSL https://hub.platform.engineering/get/setup.sh)" -- install --channel stable --yes formae
formae update subcommand available:
sudo formae update --channel stable
Repeat the pinned-formae warning: if they pinned this version intentionally, upgrading here will replace it.
Once they confirm the upgrade is done, move to Step 4.
After the upgrade (either path):
check_health to confirm the version-skew notice is gone.formae, report the updated local version. The notice names the binary actually in use, so compare that against what you upgraded.formae-mcp) was also upgraded, note that the new MCP binary only takes effect on the next launch of the harness — the running instance cannot hot-swap itself. The local formae version is picked up immediately on the next tool call (the version cache is keyed on path + mtime + size, so the new binary is seen without restarting).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
formae@formae-marketplace is listed by platform-engineering-labs/formae-marketplace — review the source before installing
npx claudepluginhub platform-engineering-labs/formae-marketplace --plugin formae23 skills in this plugin
/formae-applyUse when the user wants to deploy infrastructure, apply a forma file, reconcile a stack, update a stack, or make planned infrastructure changes/formae-authorUse when the user wants to start authoring formae infrastructure or deploy something NEW with formae — e.g. 'I want to deploy X with formae', 'build a k8s app with formae', 'set up infrastructure for Y', 'create a new forma file for my service', 'write formae IaC for Z'. The front door that triages where the work happens, sets up plugin schema deps, and dispatches to focused authoring skills. NOT for applying an existing forma file (use formae-apply) or operating existing infra./formae-configUse when the user wants to switch, list, save, edit, delete, or compare formae configuration profiles in ~/.config/formae/Other plugins' skills for the same job