/formae:formae-stack-designfrom formae
Guides users on grouping resources into Formae stacks, drawing reconciliation boundaries, and understanding stacks/targets/policies relationships.
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.
Help the user decide how to group resources into stacks, where to draw boundaries, and how stacks, targets, and policies relate. This is a guidance skill — it does not mutate infrastructure. It results in a proposed design that the user then authors.
Before advising, read formae://docs/stack-design for the canonical reference. Also read formae://docs/forma-structure if the user is about to start authoring files.
The most important fact about stacks: apply --mode reconcile makes the stack match its PKL exactly. It will delete any resource in the stack that is not declared in the PKL. The stack is the blast radius of one reconcile.
Ask the user:
Rule of thumb: don't put resources with very different change cadences or risk levels in the same stack.
A target is a cloud account or endpoint (e.g., an AWS account, a Kubernetes cluster, a Grafana instance). A stack is a reconcile group. These two concepts are independent:
Resolvables (cross-resource references) can cross both stack and target boundaries — so don't let target boundaries force your stack grouping.
Targets can chain: the config of one target can reference a resource from another target via a resolvable. This is how multi-plugin stacks wire together. Classic example:
appCluster).appCluster.res.endpoint and appCluster.res.certificateAuthority to configure its API server connection.Each target declares its resources, but the targets themselves form a dependency chain. This chaining is expressed via resolvables in PKL — not by merging everything into one stack.
To see a real example of this pattern, offer to pull one via list_plugin_examples (e.g., lgtm-observability or bookstore):
"I can pull the
lgtm-observabilityexample withlist_plugin_examplesto show how the AWS → k8s → Grafana target chain is wired in real PKL. Want me to do that?"
If Stack B's resources reference a resource in Stack A via a resolvable, Stack A must be applied first. When proposing a multi-stack split, always call this out explicitly:
apply stack-a → apply stack-b.This ordering is the user's responsibility — formae does not automatically sequence multi-stack applies.
Two policy types are available on a stack, and both reinforce the "group by lifecycle" principle:
These policies are another strong reason to split by lifecycle and protection level. Point the user to the formae-policy skill when they are ready to author policies.
Walk through these questions with the user:
Inventory intent. What resources are involved? What plugins/targets? (If unknown, offer to call list_resources or list_targets to see what's already there.)
Group by change cadence and risk.
Identify cross-stack references. Any resource that another stack depends on becomes a producer. Map these edges and confirm the apply order.
Check target boundaries. Does the split respect or cut across target boundaries? Both are valid — confirm intentionality.
Sketch the proposed split. Before the user authors anything, offer to lay out:
Hand off to authoring. Once the design is agreed, continue through formae-author with the selected source context. In mode none, discuss implementing the agreed stacks and resources; source layout is internal. In mode codebase, follow formae://docs/forma-structure and the selected project's conventions. Use formae-project-init only when the user explicitly opts into maintaining a new codebase; ordinary stack design does not imply that choice.
formae://docs/stack-design before advising; the canonical content there overrides any heuristic above.formae-policy when TTL or auto-reconcile details come up — don't duplicate that skill's workflow here.What 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