♻️ Restructure CLI package layout - #1
Merged
Merged
Conversation
- Move the CLI and public modules from scripts/ to cli.js and src/ - Update package exports, package files, and source validation commands - Preserve validation behavior and report missing skill directories Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This was referenced Aug 31, 2026
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the CLI and its modules out of
scripts/and into the package root so@stoe/skill-authoringinstalls and resolves like a normal npm package instead of a repository script.Changes
scripts/skill-authoring.jstocli.jsandscripts/src/**tosrc/**bin,exports, andfilesinpackage.jsonand the bin path inpackage-lock.jsonpublishConfigalongside the other publish metadatanpm testto scansrcinstead ofscripts/srcSKILL.mdindiscover.jsso validation reports the missing file as an error instead of skipping the directorysuccessto thelog.jsseverity map and fall back safely for unknown severitiesAffected area
CLI entry point, core helpers, package exports.
Checklist
npm run formatpasses with no unstaged diffs.npm testpasses with no new errors.README.mdis updated when CLI options, validation rules, or package exports change. Documentation lands in 📝 Document standalone CLI package #3.package.jsonexportsandfilesare updated when modules are added, moved, or removed.Security checklist
npm audit --audit-level=highreports no new high or critical findings.Verification
npm testpassesnpx prettier --check .reports no formatting driftnpm audit --audit-level=highfinds 0 vulnerabilitiessha256sumcomparison confirms every moved file is byte-identical except the two behavior fixes described aboveAdditional context
The two behavior fixes are intentionally included here because they are corrections to the moved modules, not separable changes.
Stack
Part of a stacked PR series turning
@stoe/skill-authoringinto a standalone CLI package (bottom to top):stoe/rewrite-cli-source)stoe/add-cli-tests)stoe/document-standalone-package)stoe/add-community-docs)stoe/add-repository-governance)