Files
Holocron/plugins/kyberforge/.apm/skills/apm-workflow/SKILL.md
T
Defame1297andClaude Opus 5.5 0fb106b731 fix(kyberforge): run the repo-pinned apm from apm-workflow
apm-workflow spelled every command as bare apm, which in a repo that pins
apm with uv runs whatever is on PATH, possibly an apm that refuses the
repo's lockfile. Add a step that checks for the pin and runs
uv run --frozen apm there, and the PATH apm otherwise. apm-orchestrate's
version check now probes the same apm.

Bring the references level with apm 0.39.3: the Copilot marketplace
output profile, get_effective_type() still ignoring the declared type,
plain apm audit's exit codes, the uv form of the CI example, and audit
--ci needing an apm at least as new as the lock's writer. Bump
metadata.version to 1.0.4.

Refs: #273

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
2026-12-02 11:59:17 +00:00

3.1 KiB

name, description, metadata
name description metadata
apm-workflow Use when authoring, installing, or publishing an apm package, its apm.yml and the dependencies it declares, or an apm marketplace — even when the user does not say "apm". Not the apm binary or an agent runtime -> `apm-install`.
version category source_keys
1.0.4 apm
context7-microsoft-apm
apm-cli-0-39-3-uv-experiments

Gotchas

  • MCP server secrets in apm.yml (headers, env vars) must use ${VAR} indirection, never literal values, so they resolve at install or runtime and are never committed.
  • apm experimental enable registries must run before a registries: block or registry.* config takes effect anywhere — configure, install or publish. Without it, declaring one silently does nothing: no error, no warning.
  • apm.yml's type: selects which primitives are processed and is never checked against what .apm/ holds, so apm install and apm compile can exit 0 having shipped none of the ones you expected. Set it to cover every primitive the package ships, and confirm the deployed output, not the exit code. Mechanics: references/configure.md.

Step 1 — Dispatch

Condition Flow Reference
Author or edit apm.yml, or scaffold a new package (apm plugin init) configure references/configure.md
Resolve or fetch the dependencies apm.yml declares (apm install, apm install [PACKAGE_REF]) install references/install.md
Build a marketplace, register a package into it (local: hand-edit apm.yml; remote: apm marketplace package add), or register someone else's as a consumer (apm marketplace init/check/package add/add) marketplace references/marketplace.md
Generate per-target output, bundle, or publish (apm compile, apm pack, apm publish) compile references/compile.md
Validate integrity/policy or wire a CI gate (apm audit, apm audit --ci) audit references/audit.md

Read the reference file matching the resolved flow — it carries that flow's own traps, and names a sibling file wherever one flow genuinely depends on another's detail.

Step 2 — Choose the apm command

The references spell every command as bare apm. Before running one, check whether the repo pins apm: a pyproject.toml at the repo root naming apm-cli in a dependency group, with a uv.lock beside it.

  • Pinned: run each command as uv run --frozen apm <args>, adding --project <repo root> from a subdirectory. Run uv sync --frozen once per checkout first; the first sync needs the network. A bare apm there runs whatever is on PATH, which may be older than the repo's pin and refuse its lockfile.
  • Not pinned: use the apm on PATH. If it is missing, or refuses the repo's lockfile as too new, hand off to apm-install.

Installing apm, or adding or moving the pin, belongs to apm-install.

Step 3 — Execute

Follow the matched reference file's instructions. Report back which apm command(s) were run (or drafted, if the user asked for a plan rather than execution), spelled as invoked, and their outcome.