/formae:formae-depsfrom formae
Adds or removes plugin schema dependencies in a Formae project's PklProject file. For authoring PKL types and IDE completion, not infrastructure changes.
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 this skill to add or remove plugin schema dependencies in an existing formae project's PklProject file. This is authoring-only — schema packages provide PKL types and IDE completion. They do not install resource plugins on the agent and do not make infrastructure changes.
Call list_agent_plugins with an explicit profile. It reports the installation's plugin set and whether the connection is hosted formae or a self-hosted agent.
On hosted formae, refuse to add a schema dependency for a plugin the installation does not report. The types would evaluate locally and the apply would then fail on the agent, which is a worse outcome than the refusal: say the plugin is not reported as installed on this installation, that hosted formae cannot install plugins on demand, and offer what the available set can do instead. For a plugin it does report, take the version from the schema coordinate the tool names rather than from the hub's latest stable, so the project pins what the installation actually runs.
On a self-hosted agent, this is advisory only. Adding a schema dependency for a plugin the agent does not have yet is legitimate: authoring and simulate need only the schema, and the user can install the plugin before applying. Mention it, do not block on it.
If the plugin is present but list_agent_plugins names no schema version for it, stop rather than guessing a package URI. In mode none, explain that the installed plugin's schema is unavailable for preparing this resource change; ask about an alternative supported capability only if useful. In mode codebase, an experienced user may supply a known compatible coordinate. Never invent a coordinate or replace an installed prerelease with an unrelated stable schema.
PklProjectCarry the source context from formae-author. In mode none, use the exact
project_path returned by prepare_authoring; dependency edits and resolution
are internal preparation. Discuss resource capabilities and any material
compatibility issue, not temporary files, diffs or commands. In mode codebase,
use the selected project's PklProject and show relevant source changes. If no
source is prepared, return to formae-author to select context; a missing file
does not opt the user into a maintained project. Never scan arbitrary disk.
For hosted installations, retain the exact installed schema coordinate from
Step 0; do not replace it with the hub's latest stable version. For self-hosted
catalog lookup, use get_hub_plugin. If the name is ambiguous or unknown, use
search_hub_plugins and confirm the intended plugin.
For self-hosted catalog lookup, use the resolved plugin record's selected version.
Trust gate. Check the originatorVerified field. If it is false, surface the originator domain explicitly to the user and ask for confirmation before proceeding. Do not silently add an unverified package.
Add the following block inside the dependencies section of PklProject:
["<name>"] {
uri = "package://hub.platform.engineering/plugins/<name>/schema/pkl/<name>/<name>@<version>"
}
For example, for grafana at version 0.1.3:
["grafana"] {
uri = "package://hub.platform.engineering/plugins/grafana/schema/pkl/grafana/[email protected]"
}
Read the file first, then apply the edit. In mode codebase, show the relevant
diff. In mode none, keep this source edit internal.
After editing PklProject, update PklProject.deps.json with PKL (formae
has no project resolve). Use the companion pkl executable beside the resolved
formae binary, or ~/.formae-ai/opt/bin/pkl, before falling back to PATH. Run from
the selected project directory. Show the command for maintained-codebase work;
in mode none, perform this preparation internally:
pkl project resolve
When pulling examples for the plugin just added, pass the version pinned in PklProject (the @<version> suffix from the dependency uri) as the version argument to list_plugin_examples or get_plugin_example. Do not omit it — the tool's latestStable default may not match the version you just pinned.
Read PklProject, find the named dependency block, and delete it. Show the diff
in mode codebase; keep disposable source edits internal in mode none.
Dangling import check. Search only the selected source for imports of the
dependency before removal. If still used, explain the affected resources and
resolve the user's intended change before proceeding. In mode codebase, list
the affected files as well. Do not silently remove resource declarations or
leave an invalid document merely to complete the dependency edit.
After deleting from PklProject, run pkl project resolve (see Step 2c) to update the lockfile.
This skill manages schema packages only. Schema packages provide PKL types for authoring and formae eval. They do not install resource plugins on the agent.
If the user actually needs the resource plugin to run (i.e., to execute apply against real infrastructure), that is an agent-side install that is out of scope for this skill. Point the user to the formae-plugin-new skill or to docs.formae.io for agent plugin installation instructions.
formae root, and makes no changes to the agent or running infrastructure.originatorVerified is false, surface the originator domain and get explicit user confirmation before adding the dependency.pkl project resolve to update PklProject.deps.json — formae project resolve does not exist. Show commands for maintained-codebase work; keep them internal for mode none..pkl files before confirming a dependency removal.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