skill-packager
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-09
- Stars
- ★ 0
- Forks
- 0
02 资源文件 29
- 参考文档.github/workflows/ci.yml695 B
- 其他.gitignore46 B
- 脚本bin/cli.js1.4 KB
- 参考文档CHANGELOG.md800 B
- 参考文档CONTRIBUTING.md297 B
- 参考文档docs/API.md1.6 KB
- 参考文档docs/ORCHESTRATION.md360 B
- 参考文档docs/PRD.md447 B
- 参考文档docs/RC_CHECKLIST.md275 B
- 参考文档docs/RELEASE_CANDIDATE.md311 B
- 参考文档docs/SAFETY.md379 B
- 参考文档docs/TASKS.md328 B
- 参考文档examples/basic.md131 B
- 参考文档fixtures/sample.json214 B
- 许可证LICENSE1.0 KB
- 参考文档package-lock.json329 B
- 参考文档package.json1.3 KB
- 参考文档README.md3.1 KB
- 脚本scripts/build.js450 B
- 脚本scripts/package-smoke.js993 B
- 脚本scripts/smoke.js261 B
- 脚本scripts/validate.sh111 B
- 参考文档SECURITY.md517 B
- 脚本src/index.js5.5 KB
- 脚本src/safety.js372 B
- 脚本tests/cli-docs.test.js3.7 KB
- 脚本tests/cli.test.js3.7 KB
- 脚本tests/core.test.js8.4 KB
- 脚本tests/release-contract.test.js1.1 KB
03 SKILL.md 正文
skill-packager
When To Use
Use this skill when creating or reviewing an agent skill package that needs a manifest, examples, tests, and explicit side-effect boundaries.
Required Inputs
- A local repo, fixture, or skill directory depending on the command.
- No network access is required for the default workflow.
Side-Effect Boundaries
All commands operate only on the local filesystem. init <dir> creates <dir> and writes exactly SKILL.md, skill.json, examples/basic.md, and tests/basic.test.md.
By default, init refuses to run if any of those files already exists. --force explicitly authorizes replacing those four scaffold files; it does not delete or overwrite other files in the target directory. Before writing, forced replacement verifies every existing scaffold destination is a writable regular file. If preflight fails, the command exits nonzero without changing any scaffold file. check <dir> is read-only and never repairs or generates files.
Successful init and check commands write one JSON validation object to standard output. The CLI does not produce Markdown reports or accept an output-path option. It must not call live external APIs, publish content, or mutate third-party systems without explicit approval.
Examples
skill-packager --help
skill-packager init ./my-skill --name my-skill
skill-packager check ./my-skill
Validation
Run npm test, npm run check, npm run build, and npm run smoke before treating a package as release-ready.