/formae:setupfrom formae
Sets up formae in the current environment: signs into the hosted platform or configures a self-hosted profile, then verifies the agent is reachable.
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.
Gets a machine from "nothing configured" to "you can work with your infrastructure", whichever way the user runs formae.
Do the steps in order. Each one answers a question the next depends on, and the ordering is what keeps this skill from tripping the same no-profile prompt it exists to resolve: steps 1 to 4 touch no agent-backed tool, so none of them needs a working agent or an existing profile.
Run list_profiles.
It is a pure read that needs no agent and no profile, and it answers both questions at once: if it returns, the plugin is working, and what it returns is what this machine holds.
Do not use check_health for this. It also requires a reachable agent, so on
a machine that has none it reports a failure that is not about setup at all.
For Codex and OpenCode, also confirm the MCP server entry exists in the harness config and add it if missing.
This skill assumes hosted. Do not ask.
/formae:setup is advertised in one place: the hosted console. Someone running it
therefore came from there, and asking which of the two they are on makes a user
answer a question their own last click already answered. (The question is not
written out anywhere in this file on purpose: a quoted question is a thing a model
skimming for its next action can end up asking.)
The one reader this does not describe is someone who came here before the console, which is the case step 4 exists to close. They are still hosted, so the assumption holds; they just take the longer way round.
That is not true of anything else. A user who reaches for some other tool with no profile on disk genuinely could be either, and the MCP asks them — the question lives there, where the ambiguity is real, and not here.
list_profiles shows them with no
active marker. Ask which one to use, call use_profile with it, then go to
step 4. Do not skip this: with no active profile every agent-backed tool
refuses, so check_health in step 5 would fail for a reason that has nothing
to do with the agent.The one exception: if the user volunteers that they self-host, believe them and go to step 7 instead. Do not prompt for it.
Sign in first. Do not ask whether they have an account, and do not send them anywhere yet.
An invitation is claimed at the invited user's first sign-in, so someone who has
never heard of formae's console may still finish login with a working agent
already waiting for them. Sending them to the console first costs them a trip
they never needed. And for a user who genuinely has no organization, signing in
is not wasted either: the session it opens is what makes the second pass in step
4 cheap.
So:
Decide the flow before you start one. A browser sign-in redirects to
127.0.0.1 on this machine, so it only works where a browser can reach
that. Check cheaply first:
[ -f /.dockerenv ] && echo container; echo "DISPLAY=${DISPLAY:-unset} SSH=${SSH_CONNECTION:-none}"
A container, an SSH session, or no DISPLAY on Linux all mean no local
browser: pass device: true. Otherwise start the browser flow and say that
they should tell you if they have no browser here.
Getting this wrong costs a round trip — the first flow is abandoned and a second one started, and the code from the first no longer works.
Call login.
Show them exactly what it returns — the URL to open, or the verification URL and the code to type. This is the whole point of the step; they cannot continue without it.
Wait for them to say they have finished.
Call complete_login.
If login reports that they are already signed in, that is a success: it means
a valid session was already open. Carry on to step 4.
If complete_login reports that they are signed in but the profiles could not
be written, do not start another sign-in. Their session is saved and a second
one fixes nothing; the problem is between formae and the control plane. Report
what the tool said and stop there.
Do not tell them to run a formae command. This skill drives the journey through its tools; handing the user a CLI command to run and paste back makes them the transport between two things that can already talk to each other. If the reason a step failed is not in what the tool returned, that is a gap in the tool, not a task to delegate to the user.
Run list_profiles again.
A profile exists and one is active → tell them which, and go to step 5.
No profiles were written. This is a real outcome, not a failure to report around: it means their account covers no installations yet, so there is no agent to point a profile at. Do not treat it as a sign-in failure and do not start another sign-in; the session is fine, they just have nothing to connect to.
Finish the trip rather than ending on it:
Send them to
console.formae.ai to create an
organization and provision an agent. Use that link, with the ?from=mcp on
it. It tells the console the reader came from here, so it stops closing
their signup by telling them to run /formae:setup — which is what they are
already inside — and points them back to this session instead.
Wait until they say the agent is set up. It takes about a minute.
Call login again.
There is normally no second browser hop: the session from step 3 is still
open, so login reports that they are already signed in and goes straight on
to enumerating what their account now covers, which is what writes the
profile. It returns that result itself.
Only call complete_login if this login hands you a URL or a device
code. That means the session lapsed and a real flow started, so show it to
them and wait, exactly as in step 3. Calling complete_login after a login
that already finished is an error: there is no sign-in in progress for it to
complete, and it will say so.
Run list_profiles once more.
If the second pass still writes no profiles, stop and say so. Do not loop again on your own. Report what you found and let them decide; asking the same question a third time only spends their time.
Do not fall back to telling them to run formae login --hosted in a
terminal. It reads as a diagnostic step but it is a dead end: it makes the
user carry output between two components that are already connected, and on a
machine where formae is not on the user's own PATH it fails with
command not found, which looks like a broken install and is not one.
Run check_health.
This is the first step that needs a reachable agent, which is why it is last.
/formae:upgrade.write_profile; do not send them to formae profile edit.A reachable agent is not the finish line: a hosted installation with no cloud
account registered cannot manage anything yet. Run list_cloud_connections and
read what it says. Its wording can collapse three different outcomes into what
looks like one failure — tell them apart, because only one of the three is
actually a problem:
list_cloud_connections refuses because
connect needs a hosted profile (the active profile is self-hosted/classic),
or it refuses with a requires formae >= version floor (the connected
formae is too old to support the check). Neither means anything is wrong: a
classic setup has no installation-wide cloud-account registry to check in
the first place, and an old-but-working hosted setup is still a working
setup. Skip this step silently. Do not report a failure and do not
mention a version floor unless the user asks — just close the journey as
below, exactly as if the check had come back clean.Registered connections exist. Name each one (cloud and account). Say they are registered, never verified, working, or that formae can manage them: this reports what the control plane has on file, not that the role has been used successfully.
The listing completed and came back empty. No cloud account is registered yet. Say so, and offer to connect one.
Offer to connect "a cloud account", and do not name a cloud. Which
cloud is /formae:connect's first question, and naming one here answers
it on the user's behalf: a model that has just been told which clouds work
will offer that one directly, and the choice never gets made.
An affirmative answer is not enough to act on: do not hand off and stop
here. Continue straight into the /formae:connect flow and let it open
with its own first question.
Close the journey in every outcome except the genuine cannot-determine one: once the step did not apply, or a cloud account is confirmed registered (found already, or just connected), tell them they can work with their infrastructure, and offer a first step: listing what they have, or authoring something new.
Once the connection and cloud-account checks above are complete, call get_codebase_context with the selected profile and the actual harness working_directory. This is local context discovery, not an installation-wide preference. No global active codebase exists.
A fresh hosted installation returns none: continue without asking for a project directory. Pkl authoring will use prepare_authoring in a disposable workspace when needed. If registered candidates need selection, present them once; report a missing directory or corrupt registry rather than silently switching away. Carry the explicit selection to authoring/apply. A user who wants to keep IaC locally can opt in naturally through formae-project-init and successful register_codebase; setup never creates or registers a hidden persistent project.
Before no-codebase authoring, check the actual connected desired-stack-extraction and shared-drift-resolution capabilities. An older agent may be reachable and usable while still requiring an existing complete codebase for authoring. Do not infer new workflow support from local CLI version or declare an older installation upgraded.
Reached only when the user volunteered that they run their own agent.
Call use_profile with name: "default", which creates the default profile if it
does not exist and makes it active. Then, in a sentence or two: the profile points
at a local agent on http://localhost:49684, offer to repoint it yourself with
write_profile if their agent is somewhere else, and offer to help author a first
forma.
There is nothing to sign in to on a self-hosted setup, so do not offer it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
23 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/formae@formae-marketplace is listed by platform-engineering-labs/formae-marketplace — review the source before installing
npx claudepluginhub platform-engineering-labs/formae-marketplace --plugin formae