Skill Exporter
Validates, packages and hashes a skill for a specific target profile. Node built-ins only.
node tooling/skill-exporter/index.mjs system-architect --target atlas
node tooling/skill-exporter/index.mjs --all --target generic
node tooling/skill-exporter/index.mjs --all --target atlas --dry-runOutput: releases/<skill>/<version>/<target>/ containing a verbatim skill/ copy and a release.json with the content hash, file manifest, source provenance, lineage, dependencies and the target's activation rules.
Order of operations
- Validate first. No package is produced from an invalid skill.
SKILL.mdpresent, with a parseable frontmatter block;- frontmatter carries
nameanddescriptionand nothing else; nameis lowercase-hyphen and matches the directory;agents/openai.yamlpresent;- every
references/,scripts/orassets/path mentioned inSKILL.mdresolves — a broken reference rejects the export; - no empty optional directories, no placeholder files;
- catalog sidecar present and valid JSON.
- Check compatibility. The catalog's
compatibility.targetsmust include the requested target. Not every skill is portable —witness-integratorexports foratlasand is skipped everywhere else, by design, rather than shipped broken. - Check runtime requirements against the target profile's
infrastructure. - Hash.
sha256over the sorted file list, path and bytes for each file. The same input always produces the same hash. - Write. Only under the output directory. The canonical source is never mutated.
Exit codes
0 all requested exports succeeded or were skipped as incompatible · 1 at least one skill was rejected as invalid · 2 bad usage.
An incompatible skill is skipped, not failed: incompatibility is a correct answer. An invalid skill is rejected.