@sudharsank/spfx-enterprise-skills
v0.1.0
Published
Public npx installer for the SPFx Enterprise Skills Pack.
Maintainers
Readme
SPFx Enterprise Skills Installer
This standalone folder contains a portable npm CLI that can be moved into its own repository and published as a public npx installer.
The installer downloads selected skills from the source repository and places them into either:
- a project-local destination, or
- a user-level/global destination.
Why this package exists
The original spfx-enterprise-skills repository is a content repo. It contains the skill folders and SKILL.md files, but it does not yet expose a public installer command.
This package adds that missing distribution layer:
- interactive skill selection
- scriptable CLI flags
- project vs global installs
- host-aware support levels
- a safe path for future skill additions and republishing
- optional local-source installs for development and offline validation
Current support model
This installer intentionally distinguishes between support levels:
- Full support
- the installer writes directly to a stable destination
- Guided support
- the installer stages the selected skills in a safe location and writes host-specific next steps
Current status:
| Host | Project | Global |
| --- | --- | --- |
| generic | full | full |
| copilot | guided | guided |
| vscode | guided | guided |
| cursor | guided | guided |
| claude | guided | guided |
| codex | guided | guided |
| kiro | guided | guided |
| antigravity | guided | guided |
| opencode | guided | guided |
This keeps v1 honest. The package avoids claiming automatic wiring when a host does not expose a well-defined public skill location.
Usage
List skills
npx spfx-enterprise-skills-installer --list-skillsThe command prints a richer catalog grouped by recommendation level so users can quickly see:
- which skills are the best starting point
- which ones are situation-specific
- which ones are optional or style-driven
- what each skill is for and when to install it
List hosts
npx spfx-enterprise-skills-installer --list-hostsInteractive install
npx spfx-enterprise-skills-installer installScripted project install
npx spfx-enterprise-skills-installer install \
--host generic \
--mode project \
--project-path . \
--skills spfx-enterprise-ux-hub,spfx-enterprise-code-and-performanceScripted global install
npx spfx-enterprise-skills-installer install \
--host generic \
--mode global \
--skills allDry run
npx spfx-enterprise-skills-installer install \
--host copilot \
--mode project \
--project-path . \
--skills spfx-enterprise-ux-hub \
--dry-runLocal source override for development
npx spfx-enterprise-skills-installer install \
--host generic \
--mode project \
--project-path . \
--skills spfx-enterprise-ux-hub \
--source-root ../spfx-enterprise-skillsHow installs are written
Full support hosts
generic installs directly into:
- project mode:
<project>/skills/<skill-id>/SKILL.md - global mode:
~/.spfx-enterprise-skills/skills/<skill-id>/SKILL.md
Guided support hosts
Guided hosts stage the skills under a safe host-specific location, for example:
- project mode:
<project>/.spfx-enterprise-skills/<host>/skills/<skill-id>/SKILL.md - global mode:
~/.spfx-enterprise-skills/hosts/<host>/skills/<skill-id>/SKILL.md
The installer also writes an INSTALL-<HOST>.md file with exact next steps.
Publish and update workflow
Before first publish
- Confirm the final npm package name is available.
- Rename the package in
package.jsonif needed. - Move this folder into its own repository when you are ready.
- Publish with your normal npm workflow.
For the fuller maintenance workflow, see PUBLISHING.md.
When adding new skills later
- Add the new skill entry to
src/skills.js. - Point
repoPathto the new source folder in the skills repo. - Update README examples if the support story changes.
- Bump the package version.
- Republish the package.
Additional docs
PUBLISHING.md- release and republish workflowdocs/host-support-matrix.md- rationale behind full vs guided supportdocs/npm-first-publish-workflow.md- first-time public npm publishing runbook
Notes
- The installer currently downloads
SKILL.mdfiles from the source repository at runtime. - For development and local testing, you can override the source with
--source-root. - The source ref is pinned in
src/skills.jsand can be overridden with--source-ref. - If you want fully offline installs later, the next iteration can vendor the skill assets into the package tarball.
