Files
holocron/plugins/kyberforge/.apm/skills/apm-workflow/SKILL.md
Defame1297 1e4aab53a7 refactor(kyberforge): retrofit apm-workflow to the ADR-0020 contract
Description 817 -> 324 chars, body 421 -> 237 words, Gotchas 6 -> 2.

The five capability clauses, the second trigger register and the prose
boundary form go; one trigger clause, the indirect trigger and one
boundary clause remain. Four of six Gotchas move into the flow file that
every branch needing them already loads.

Two stay in the always-loaded body because a dispatch body must carry the
gates common to every branch, not just the dispatch table: the MCP secret
indirection rule, and the `apm experimental enable registries`
precondition. The first pass moved registries into references/configure.md
alone, which stranded it -- references/compile.md documents publishing to a
registry and references/install.md resolves dependencies through one, and
neither points at configure.md. Declaring a registry without the
precondition is a silent no-op, so the failure had no signal.

Also drops an unsourced claim the compression pass introduced (that apm
checks `type:` going forward -- no source supports it), corrects the MCP
rationale to install *or* runtime per configuration.md:98, and repoints
two apm-orchestrate back-references that pointed at body Gotchas which had
moved.

Refs #99

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MWb5RQgCL1ye7cGp2RPb2u
2026-08-30 16:31:11 +00:00

2.1 KiB

name, description, metadata
name description metadata
apm-workflow Use when the user wants to author, scaffold, install, compile, publish, or audit an apm package, an apm.yml manifest, or an apm marketplace, or register someone else's to consume — even when they do not say "apm" explicitly, e.g. "set up the package manifest". Not the apm binary itself or an agent runtime -> `apm-install`.
category source_keys
apm
context7-microsoft-apm

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.

Step 1 — Dispatch

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

Read only the reference file matching the requested action — each is self-contained for its concern, and each carries the traps specific to its flow.

Step 2 — 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) and their outcome.