Files
Holocron/plugins/kyberforge/.apm/skills/apm-workflow/SKILL.md
T
Defame1297andClaude Opus 5.5 e6d680a4c5 fix(kyberforge): apply the #273 review to the apm 0.39.3 refresh
- apm-workflow and apm-orchestrate always pass --project to uv run,
  because uv run outside the project silently runs the PATH apm. The
  agent now checks that the reported version equals the pin, or is
  0.39.2 or later where nothing pins it, not only that it exits 0.
- A pin is a quoted apm-cli or apm_cli requirement plus a uv.lock,
  matching the SessionStart hook, in apm-install, uv-pin.md and
  apm-workflow.
- uv-pin.md spells the hook's exact invocation and its environment
  check, and says scripts always pass --project.
- instructions-author and its research note: a Claude rule leaves
  .claude/rules/ only when compile actually wrote it into AGENTS.md;
  install-then-compile dedups it.
- prompt-author: Kiro strips every key with a warning, not silently.
- Record the 0.39.3 executables findings in approvals-and-executables.md
  and the output-profile and type-routing facts in cli-reference.md, and
  cite those digests.
- forge's routing table notes that Kiro gets the body only.

Refs: #273

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

3.2 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.
  • uv run outside the uv project silently runs the PATH apm instead: from outside the repo it reported 0.28.0 where the repo pinned 0.39.3. Hence --project in Step 2.
  • 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 carrying a quoted apm-cli or apm_cli requirement, with a uv.lock beside it.

  • Pinned: run each command as uv run --project <repo root> --frozen apm <args>. 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.