fix(kyberforge): bring instructions-author level with apm 0.39.3
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
This commit is contained in:
1 parent
bb84e4ac13
commit
598f88b536
10 files changed
+79
-44
No files matched your search
@@ -1,12 +1,12 @@
|
||||
# tests/
|
||||
|
||||
- **`new-instructions.bats`** — covers `scripts/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 into `CLAUDE.md` and installs into `.claude/rules/` with `description` dropped, compile writes nothing once rules are installed, an unquoted `applyTo` installs unscoped, and `--validate` hides the warnings a real compile prints.
|
||||
- **`new-instructions.bats`** — covers `scripts/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 into `AGENTS.md` behind a `CLAUDE.md` that imports it, and installs into `.claude/rules/` with `description` dropped; compile writes nothing once rules are installed; an unquoted `applyTo` fails install and deploys nothing; and `--validate` hides 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.
|
||||
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:
|
||||
|
||||
|
||||
@@ -191,7 +191,7 @@ need_apm() {
|
||||
# re-pinned to the repo's 0.39.3 (#271), where three behaviours changed: compile
|
||||
# --target claude writes a CLAUDE.md that imports AGENTS.md, an unquoted applyTo
|
||||
# fails install closed, and compile warns when applyTo matches no file. The
|
||||
# skill's own text still describes 0.28.0 in places; see #271's report.
|
||||
# skill's text was brought level with 0.39.3 under #273.
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@test "filled scaffold compiles for the Claude target: CLAUDE.md imports AGENTS.md, which drops the description" {
|
||||
|
||||
Reference in new issue
Block a user