need_apm now runs apm through scripts/lib/apm.sh, so the suite exercises the repo-pinned 0.39.3 and never a PATH apm. In this repo a missing uv or an apm below 0.39.2 fails rather than skips, so run-tests.sh --strict cannot pass without running these tests. Outside the repo it still falls back to PATH apm and skips without one. Three assertions pinned 0.28.0 behaviour and are updated to 0.39.3's: compile --target claude writes a CLAUDE.md that imports AGENTS.md, an unquoted applyTo fails install closed and deploys nothing, and compile warns when applyTo matches no file. The skill's own text still describes the 0.28.0 behaviour; that is left for a skill update. Refs: #271 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 intoCLAUDE.mdand installs into.claude/rules/withdescriptiondropped, compile writes nothing once rules are installed, an unquotedapplyToinstalls unscoped, 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.
The apm tests need the apm CLI on PATH and skip when it is absent. They assert apm 0.28.0 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