← Catalog

pi-skill-watch

Find upstream changes for installed Pi and Agent Skills without silently overwriting local files.

Extension

Install

Install with PiG

pig install npm:pi-skill-watch

Install with Pi

pi install npm:pi-skill-watch
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/skill-watch.ts"
  ],
  "changelogPath": "./CHANGELOG.md"
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

Pi Skill Watch

A Pi extension that checks standalone installed skills against known GitHub upstreams and reports differences. Pi-managed package resources are left to Pi's built-in package updater (pi update --extensions); this extension does not duplicate package update checks. Checks never modify skill files. Review the report, then decide whether and how to update a standalone skill.

Install

pi install npm:pi-skill-watch

The package is eligible for the Pi package gallery via the pi-package npm keyword.

What it tracks

The extension recursively discovers SKILL.md directories in these user-level roots when present:

  • ~/.pi/agent/skills
  • ~/.agents/skills
  • ~/.claude/skills
  • ~/.codex/skills

For upstreams it reads ~/.agents/.skill-lock.json entries whose source is GitHub. It also knows the official Anthropic frontend-design, pdf, skill-creator skills and ppt-master, which are commonly installed without a lockfile. Other skills without source metadata are reported as local-only; the extension will not guess their upstream.

You can add sources in ~/.pi/agent/skill-upstream-sources.json:

{
  "my-skill": {
    "repo": "owner/repository",
    "skillPath": "skills/my-skill/SKILL.md",
    "ref": "main"
  }
}

ref is optional. When omitted, the repository's default branch is checked. A configured tag or commit stays pinned; the extension will not move it.

Commands and notifications

  • On Pi session start, check each tracked skill at most once per 24 hours; failed checks remain eligible for retry.
  • When an upstream change causes local differences in a standalone skill, show a Skill Updates Available notification with skill names and /skill-watch as the review command. Pi itself handles package-managed resources and points to pi update --extensions.
  • /skill-watch forces a fresh upstream check and shows differing file paths.
  • /skill-watch update <skill-name> applies remote files after interactive confirmation. Existing files are backed up under ~/.pi/agent/pi-skill-watch-backups/; local-only files are preserved and upstream deletions are not applied.
  • First-run local differences are labeled as baseline differences, not as proof that a new update is available; duplicate skill names are reported and skipped as ambiguous.
  • Network/API failures are reported and do not prevent Pi from starting.

The cache is stored at ~/.pi/agent/pi-skill-watch.json; an existing cache at ~/.pi/agent/pi-skill-watch/state.json is read for migration. No skill contents, absolute local paths, credentials, or lockfile data are written to the package or sent to the tracker service; checks only request public GitHub tree metadata.

Privacy and safety

  • No silent updates or file writes to installed skills.
  • No third-party runtime dependencies.
  • GitHub requests are read-only and rate-limited by the daily cache.
  • Package-managed resources should continue to use Pi's package manager (pi update --extensions).

Development

Requires Node.js 22.6+ (for built-in TypeScript stripping in tests).

npm test
npm pack --dry-run

License

MIT. See LICENSE.