/formae:formae-patchfrom formae
Applies urgent targeted infrastructure changes, hotfixes, or incident response patches without a full reconcile. Use for scaling during traffic spikes or urgent security fixes.
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.
Use the apply_forma MCP tool in patch mode only for an explicit patch-mode request or stated incident/hotfix intent requiring a temporary intervention. For ordinary updates, including one label, hand off to formae-apply for a complete-stack soft reconcile. Do not infer an incident from a small change, the word "quick", a .patch.pkl filename or existing drift.
profile)apply_forma (and get_command_status) hit the formae agent's API directly and take an optional profile argument. If the user is working against a specific environment (e.g. prod, staging), pass that profile name as profile on the apply_forma call and any get_command_status follow-up so it targets that environment — for this session only, without changing global state. Patches are usually incident/hotfix work against one environment. If which environment they mean is unclear and list_profiles shows more than one, ask first. Never use use_profile to "set up" this session — the active profile is global and shared with the user's CLI and any other open sessions. When no profile is named, the active profile is used. Requires formae >= 0.87.0.
Patch only applies the changes explicitly specified in the forma file. Other resources are untouched. Use this for:
For ordinary configuration changes, prepare the complete affected stack and use reconcile without force. Never choose patch to avoid resolving drift or because only a partial file is currently available. Keep the selected source context on both preview and real submission. Explain the temporary nature of a patch in its confirmation. Do not immediately reconcile merely to make the patch permanent; this incident operation deliberately defers reconciliation. On the next requested reconcile, follow the saved drift preference.
Reuse the selected get_codebase_context result. For codebase, keep the incident snippet inside the selected project and carry its binding context. For none, call prepare_authoring for the affected stack in a fresh ~/.formae-ai/scratch/<operation-id>/ directory, then author a separate minimal patch Pkl file inside it using its schema dependencies. Carry the returned context on apply. This workspace is temporary; never register it. Keep it until outcome/retry inspection is complete, then remove it.
In mode none, present the targeted infrastructure change and its actual
outcome. Temporary files, source diffs and cleanup stay internal; use the
launcher-selected formae executable from MCP initialization for local CLI work.
apply_forma with mode: patch, simulate: truemessage; the user can edit it or clear it with message: "" in the ordinary confirmationapply_forma with mode: patch, simulate: falseget_command_status to monitor progress:
sleep 5). Do NOT poll in a tight loop.After a successful patch, always remind the user:
This change was made through formae as a temporary patch. When reviewing this temporary intervention, reconcile it into the stack's desired state or revert it. With automatic acceptance enabled, the next requested reconcile keeps nonconflicting patch changes and shows them in its preview.
Follow formae-fix-code-drift for that later decision. A patch is not a change
made outside formae; use its recorded origin when explaining it.
Do not immediately reconcile or update maintained desired source merely to make this patch permanent. At the next requested soft reconcile, auto_absorb covers nonconflicting patches as well as external changes; only conflicts need a keep/revert decision. Default prompt and legacy auto_absorb_external still ask about patches. Follow formae-fix-code-drift for the combined preview and ordinary apply confirmation. Resolution controls apply only to soft reconcile, never patch.
pkl eval to evaluate forma files — ALWAYS use formae eval --output-consumer machine. Forma files use formae-specific extensions that only the formae CLI can resolve, and --output-consumer machine ensures parseable output instead of human-formatted text.formae-apply skillWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
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//formae-connectUse when the user wants to connect a cloud account to their hosted formae installation, or add another one — e.g. 'connect my AWS account', 'give formae access to account 123456789012', 'add a second AWS account', 'formae can't see my resources yet'./formae-depsUse when the user wants to add or remove a plugin schema dependency in an existing formae project's PklProject — e.g. 'add the grafana plugin', 'I need cloudflare DNS', 'drop the azure dependency'./formae-destroyUse when the user wants to destroy, delete, or tear down infrastructure resources, stacks, or environments