omp packages

pi-skill-watch0.2.0

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

sglj Published 14 days ago MIT ~508 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

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.