Repository navigation
Commit 8e4bc48
authored
ci: check agent skills against the Agent Skills specification (#102)
The skills in `.claude/skills` had nothing checking them against the
[Agent Skills specification](https://agentskills.io/specification). A
new **Skills** workflow (`.github/workflows/skills.yml`) validates them
with
[coolapso/agent-skills-validator](https://github.com/coolapso/agent-skills-validator),
on pull requests that change the skills or the workflow.
- **One job for every skill.** It sets `matrix: false` and `path:
.claude/skills/*/`, so the action installs the validator once and
validates every skill in one call, rather than a job per skill that each
installs it. With an exact version to install, it makes no GitHub API
calls either.
- **Pinned to the release's commit**:
`coolapso/agent-skills-validator@92cb02f7838e7d76e9f79f0558802d72927db6a9
# v0.2.0`, the commit that `v0.2.0` tags. Pinned to a commit, the action
can't tell which release it is and installs the *latest* validator, so
the workflow also sets `version: v0.2.0`. A comment above the step says
to change the two together.
- **Strict.** The specification's recommendations count as errors too;
today that is only AS010, a `SKILL.md` over 500 lines.
- **Pull requests only, read-only.** Skills reach `main` only through
pull requests, so a run after the merge would add nothing. The job has
`contents: read` and no secrets.
- **Not a required check.** It doesn't run on pull requests that leave
the skills alone, which a required check would wait on forever. The
workflow's header says so.
The pull-requests skill and the Checks section of `docs/development.md`
mention the new check.
## Verified
- The v0.2.0 validator (its linux/arm64 build, checked against the
release's `checksums.txt`) passes all five skills here in strict mode:
`5 skills validated, 5 valid, 0 invalid (0 errors, 0 warnings)`. The
action's own validation step, run locally with these inputs, expands the
glob to all five and validates them in one call: `5 skills validated, 5
valid, 0 invalid (0 errors, 0 warnings)`.
- actionlint 1.7.12 reports nothing for any workflow.
- `cargo xtask check --quick` passes, and `cargo xtask lint-commit`
accepts the title.
- This pull request runs the check itself, as **Skills / Agent Skills
specification** ([its
run](https://github.com/hyperstructure/fctl/actions/runs/39177634519)):
one job installs v0.2.0 (`Resolved CLI version request: v0.2.0 (action
ref: 92cb02f7838e7d76e9f79f0558802d72927db6a9)`, checksum verified) and
validates all five skills in one call: `5 skills validated, 5 valid, 0
invalid (0 errors, 0 warnings)`.
The v0.2.0 release isn't an immutable GitHub release. The action checks
the binary against the release's own `checksums.txt`, so the commit pin
fixes the action's code, but the binary is only as fixed as the
release's files. With no secrets and a read-only token, there is little
a replaced binary could reach.
The same workflow, in each repository with skills:
- #102
- hyperstructure/design#15
- hyperstructure/fctl-site#21
- hyperstructure/sandbox#7
Session: https://app.fctl.sh/s/ses_01M58NR0YMZ8D5F6JMNPHGF1J1
Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>1 parent 2ac21ae commit 8e4bc48
3 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments