/formae:formae-destroyfrom formae
Destroys infrastructure resources via the formae agent's destroy_forma MCP tool. Covers file-based and query-based destruction, simulation-before-destroy workflow, environment targeting, and progress polling.
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 destroy_forma MCP tool to remove infrastructure resources.
profile)In mode none, describe the affected resources/stacks, destructive effects,
warnings, confirmation and confirmed outcomes. Keep disposable files, source
edits, extraction and cleanup internal. Maintained-codebase mode still reports
source catch-up and conflicts separately from the destruction outcome.
destroy_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 destroy_forma call and any get_command_status follow-up so it targets that environment — for this session only, without changing global state. Destroying the wrong environment is especially damaging, so be strict here. 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.
Destruction can be specified two ways (mutually exclusive):
Use get_codebase_context to identify any selected maintained source. File-based destruction carries the selected context and uses a file inside that project or the prepared disposable directory. For no-codebase file work, use prepare_authoring and keep its PklProject/dependencies available. Query destruction has no local source context; do not pass context with query. Its explicit query and final simulation define the operation.
After terminal destruction, remove only the corresponding declarations from the selected maintained project, preserving unrelated edits and reporting conflicts separately. A disposable workspace can be removed after outcome/retry inspection. A failed-create desired-intent diagnostic requires investigation/recovery; never infer successful deletion or remove its source merely from missing inventory.
destroy_forma with simulate: truedestroy_forma with simulate: falseget_command_status to monitor progress:
sleep 5). Do NOT poll in a tight loop.| User wants to... | Approach |
|---|---|
| Tear down a stack | query: "stack:staging" |
| Remove specific resources | query: "type:AWS::S3::Bucket label:temp-data" |
| Destroy what's in a file | file_path: "/path/to/forma.pkl" |
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.What SKILL.md sets; muted values are Claude Code's defaults
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-discoverUse when the user wants to find unmanaged resources in their cloud accounts, see what's not managed by formae, or run a discovery scan