The skill still described apm 0.28.0. On 0.39.3 an unquoted applyTo fails install and deploys nothing, the Claude compile writes AGENTS.md behind a CLAUDE.md that only imports it, dedup is per instruction, unscoped rules retire from .claude/rules/ once AGENTS.md carries them, and install skips a hand-authored rule rather than overwriting it. Update the Gotchas, the compatibility line and the target-mapping, schema, verify, improve and create references, the template comment, the tests README and the bats header. Bump metadata.version to 0.1.1. Refs: #273 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
tests/
new-instructions.bats— coversscripts/new-instructions.sh(name validation, package walk-up, no-package refusal, no-op on an existing file, template placeholders) and the apm behaviour the skill's gotchas rest on, run against throwaway packages: a filled scaffold compiles intoAGENTS.mdbehind aCLAUDE.mdthat imports it, and installs into.claude/rules/withdescriptiondropped; compile writes nothing once rules are installed; an unquotedapplyTofails install and deploys nothing; and--validatehides the warnings a real compile prints.
Dependencies
The test file loads bats-support and bats-assert from the repo root's tests/test_helper/, and runs on the repo's bats submodule at tests/bats/. The first bash tests/run-bats.sh initialises the submodules.
In this repo the apm tests run the repo-pinned apm (uv run --frozen apm, through scripts/lib/apm.sh) and fail when it is unavailable; run uv sync --frozen first. Outside this repo they use the apm on PATH and skip when it is absent. They assert apm 0.39.3 behaviour, so a failure after an apm upgrade is a finding about the skill's gotchas, not a flaky test.
From the repo root:
tests/bats/bin/bats plugins/kyberforge/.apm/skills/instructions-author/tests/new-instructions.bats