@qvac/skills
v0.6.0
Published
Skills for the QV.AC app — the SKILL.md tree plus a content-addressed bundle of it.
Readme
@qvac/skills
Skills for QV.AC.
A skill is a directory under skills/ with a SKILL.md in it, plus whatever
else it needs alongside — reference notes, scripts, a schema. The SKILL.md
front matter is what the harness reads to build its catalog.
A skill whose folder name is not what users should see, such as a trademark,
declares display_name. It is the @ handle users see and type, so it is one
word: letters, digits, - or _. The folder name stays the skill's key.
The package ships the tree itself and a bundled copy of it, so consumers that can't read a filesystem still get the same bytes.
Entry points
| Import | Contents | Needs a filesystem |
| ----------------------- | ---------------------------------------- | ------------------ |
| @qvac/skills | skillsDir, skillsUrl, SKILLS_HASH | yes |
| @qvac/skills/bundled | SKILLS (path → content), SKILLS_HASH | no |
| @qvac/skills/hash | SKILLS_HASH alone | no |
| @qvac/skills/skills/* | a single file by path | no |
All of them work on Node and Bare. skillsDir only points at anything real
where the package was installed to disk, though — a Bare worklet ships no
node_modules, so it imports ./bundled and writes the tree out itself.
SKILLS_HASH is a sha256 over the sorted path\0content\0 stream, truncated
to 16 hex chars. Consumers key a materialized directory on it, so it has to
match hashBundledSkills in the harness byte for byte.
Compatibility
The @qvac/harness peer dependency is the range these skills need, and its
lower bound is the oldest harness that loads every skill here. An older harness
does not fail outright: it drops a skill it cannot read, sets aside an
operations.json naming a builder it lacks, and runs no command of a skill
whose cli.schema.json it cannot validate.
From @qvac/harness 1.0.0-rc.18 the harness does not depend on this package.
The host installs both and hands the bundle to
Tools.bundledSkillsDir({ skills: SKILLS, hash: SKILLS_HASH }), or passes
skillsDir. An older harness still carries its own copy, and its
bundledSkillsDir ignores a bundle handed to it, so a host there passes
skillsDir. The peer is optional, so installing skills alone, as the
harness does for its tests, pulls in no harness. npm still refuses a harness
below the floor. bun installs one without a word, so a bun host asserts the
floor in its own tests.
npm matches a prerelease only against its own major.minor.patch: a floor of
>=1.0.0-rc.17 accepts 1.0.0-rc.18 and 1.0.0, but not 1.1.0-rc.1.
CI loads the tree with that minimum harness and with the newest one in range, through the harness's own catalog. Run the same check yourself:
npm run compat # the minimum, installed from npm
npm run compat -- newest # the newest in range
npm run compat -- ../qvac-harness # a harness checkout, before it is publishedDevelopment
npm test # node + bare
npm run lintbundled.js and hash.js are generated from skills/ by scripts/build.mjs
Each release is checked before it is published: scripts/verify-release.mjs
rebuilds the tag, requires the same tarball as the checkout about to be
published, and adds its npm integrity, the commit and SKILLS_HASH to the
GitHub release. Check any published version against npm by hand:
npm run verify-release -- 0.1.20License
Apache-2.0
