@spences10/pi-skills
Agent Skills management for Pi with profiles, enablement rules, GitHub search/install, and update flows
Package details
Install @spences10/pi-skills from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@spences10/pi-skills- Package
@spences10/pi-skills- Version
0.0.28- Published
- May 23, 2026
- Downloads
- 2,819/mo · 141/wk
- Author
- spences10
- License
- MIT
- Types
- extension
- Size
- 281 KB
- Dependencies
- 2 dependencies · 2 peers
Pi manifest JSON
{
"extensions": [
"./dist/index.js"
],
"image": "https://raw.githubusercontent.com/spences10/my-pi/main/assets/pi-package-preview.png"
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
@spences10/pi-skills

Manage the skills Pi is allowed to discover and use. pi-skills adds
profiles, enable/disable rules, GitHub skill search/install, and
update flows so teams can curate reusable Agent Skills instead of
hand-editing skill directories.
Installation
pi install npm:@spences10/pi-skills
Local development from this monorepo:
pnpm --filter @spences10/pi-skills run build
pi install ./packages/pi-skills
# or for one run only
pi -e ./packages/pi-skills
What it does
Pi already has native skill discovery. This package adds a management layer for Pi skill ecosystems:
- discovers Pi-native skills in
$PI_CODING_AGENT_DIR/skills(default:~/.pi/agent/skills) - discovers project skills recursively in
.agents/**/SKILL.md,.agents/skills/**/SKILL.md,.pi/skills/**/SKILL.md, and root.pi/skills/*.mdfiles - searches public GitHub
SKILL.mdfiles throughgh skill search - previews GitHub-hosted skills through
gh skill preview - installs GitHub-hosted skills through
gh skillwhen GitHub CLI support is available - checks or applies GitHub skill updates through
gh skill update - provides a
/skillscommand and interactive picker
External source import/sync behavior lives in
@spences10/pi-skill-importer.
Commands
/skills
/skills enable <key|name|pattern>
/skills disable <key|name|pattern>
/skills search <query>
/skills add <owner/repo> <skill[@ref]> [--pin ref|--scope project|--dir path|--force]
/skills update --dry-run
/skills update --all
/skills profile create <name>
/skills profile use <name>
/skills refresh
/skills defaults all-enabled
/skills defaults all-disabled
GitHub search, installs, and updates require GitHub CLI gh v2.90.0
or newer with preview gh skill support. The extension delegates
GitHub source tracking, pinning, preview/update metadata, and tree-SHA
comparison to gh skill instead of maintaining a parallel cache.
With a UI available, /skills opens a modal home menu for managing,
adding GitHub skills, updating GitHub skills, refreshing discovery,
profile switching, and profile baseline selection. The Add GitHub
skill flow can install one skill or every SKILL.md found in a
repository. The no-arg search, add, and defaults subcommands use
modal pickers/forms in interactive mode. In headless mode, use the
subcommands directly.
Skill enablement
The extension treats profiles as named skill sets. The active profile
contains include/exclude rules for skill names, keys, sources, or
paths; * wildcards are supported. Legacy top-level enablement is
migrated into the default profile on load.
The extension contributes enabled managed skill paths during Pi resource discovery. Project skills are enabled by default when project resources are allowed, and can still be excluded by profile rules.
Profiles can also be selected by context without hardcoding project
names in code. Contexts support cwd, github_org, and github_repo
predicates; matching any configured predicate activates the profile.
Camel-case githubOrg and githubRepo are accepted on load and
normalized to snake case. Example:
{
"contexts": [
{
"name": "client-workspace",
"profile": "client-projects",
"when": {
"cwd": "~/repos/client-projects/*",
"github_org": "client-org",
"github_repo": ["client-org/app"]
}
}
],
"profiles": {
"default": { "include": [], "exclude": [] },
"client-projects": {
"extends": ["default"],
"include": ["client-*", "project:*"],
"exclude": []
}
}
}
In a custom harness such as my-pi, this can be combined with a
resource filter to enforce disabled skills. In vanilla pi, Pi's own
default skill discovery can still load skills from default locations,
so use pi config or settings filters when you need hard disable
semantics.
Using from a custom harness
import skills, { create_skills_manager } from '@spences10/pi-skills';
// pass `skills` as an ExtensionFactory to your Pi runtime
const manager = create_skills_manager();
my-pi imports this package directly and uses
create_skills_manager() to enforce its built-in skill toggle
behavior.
Development
Package scripts build transitive workspace dependencies first, then
run local tools through Vite+ with vp exec.
pnpm --filter @spences10/pi-skills run check
pnpm --filter @spences10/pi-skills run test
pnpm --filter @spences10/pi-skills run build
License
MIT