CLI-only devDependency for downstream repositories that manage AI helper dictionaries.
It is used to:
- validate
skillpack.manifest.json - normalize helper entries with
JSCPID - build deterministic bundle output
- report duplicate helpers before packaging
npm i -D @yu000jp/skillpack-helperAdd scripts to the consuming repository and treat them as the normal workflow:
{
"scripts": {
"skillpack:validate": "skillpack-helper validate ./packs",
"skillpack:build": "skillpack-helper build ./packs --out ./dist",
"skillpack:pack": "skillpack-helper pack ./packs --out ./bundle.json"
}
}Typical flow:
npm run skillpack:validate
npm run skillpack:build
npm run skillpack:packbuild and pack produce a bundle with:
dependencyOrderpackshelperDictionary.canonicalhelperDictionary.duplicates
Example:
{
"dependencyOrder": ["pack-a", "pack-b"],
"helperDictionary": {
"canonical": [
{
"jscpid": "jscpid_0123456789abcdef",
"source": {
"packName": "pack-a",
"helperId": "shared"
}
}
],
"duplicates": [
{
"jscpid": "jscpid_0123456789abcdef",
"kept": {
"packName": "pack-a",
"helperId": "shared"
},
"removed": {
"packName": "pack-b",
"helperId": "shared-copy"
}
}
]
}
}Each pack provides one skillpack.manifest.json file. The important fields are:
nameversionpurposesummarydependsOnhelpers[]
Each helper entry contains:
idtitlepurposetagscontentreferences
createscaffold a new helper packupdateregenerateSKILL.mdfrom the manifestvalidatecheck one pack or a pack treebuildwrite deterministic bundle output to diskpackwrite bundle JSON to stdout or a file
Direct execution is supported when you need it:
npx skillpack-helper validate ./packsschema/skillpack.manifest.schema.json@yu000jp/skillpack-helper/schema/skillpack.manifest.schema.json