fix(kyberforge): fix bats SCRIPT path and clarify test helper install location

Both validate.bats and new-skill.bats constructed SCRIPT using
$(dirname "$BATS_TEST_FILENAME"), which resolves to tests/ — causing
every test to fail with file-not-found. Fixed to use
$BATS_TEST_DIRNAME/../scripts/ to reach the actual scripts/ directory.

Also clarifies that bats-support/bats-assert must be installed from the
repo root (not the skill root) to match where the tests load them from,
and adds text language tags to three output-template code blocks in
skill-audit's SKILL.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-23 19:31:08 +00:00
parent 3709010b34
commit 193c40106d
5 changed files with 12 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ Check each pattern is appropriate and correctly formed:
Open with a coverage line listing every dimension checked:
```
```text
Checked: structure · description · body-discipline · patterns · file-structure · formatting · scripts · internal-consistency
```
@@ -105,7 +105,7 @@ Then output only dimensions that have findings, grouped under H3 headings, FAILs
For each finding:
```
```text
FAIL/SUGGESTION <finding> — file:line
Why: <why this is a problem>
Fix: <exact change — quote before/after where applicable>
@@ -113,7 +113,7 @@ FAIL/SUGGESTION <finding> — file:line
Close with a result block:
```
```text
## Result
PASS / PASS (N suggestions) / FAIL (N fails · M suggestions)