| name | validating-package |
| description | Use when a maintainer asks to validate, check, or verify a generated training package ("validate the training package", "/training-generator:validate") without regenerating it. |
Validating a Generated Training Package
Given a training package directory (default: <sourceRoot>/training):
node ${CLAUDE_PLUGIN_ROOT}/scripts/validate-package.mjs <dest> —
structural, schema, identifier, link, placeholder, secret, and safety
checks. Report every ERROR and WARN line verbatim.
claude plugin validate <dest> --strict — the official plugin/marketplace
validation.
cd <dest> && node scripts/selftest.mjs — the package's own independent
self-test (must agree with step 1).
- Check submodule health from the source root:
git submodule status <path> and confirm .gitmodules lists it.
Report pass/fail per step with exact output. If anything fails, name the
smallest fix: content errors need regeneration
(training-generator:generating-training); registration errors need the
register-submodule script; learner-state contamination
(state/progress.json in the clean package) means someone ran the course in
the clean repo — it must be removed before publication.