description:Check whether a local Portable Identity Document template repo, PID template, and PID skills are current; compare local release metadata against Git tags or a remote manifest when available; summarize available updates; preserve user-owned files; and ask for approval before applying updates.
---
# PID Version Checker Skill
## Compatibility Notes
- Version: 0.2.0
- Status: draft
- Intended hosts:
- Codex Desktop
- Claude Desktop
- ChatGPT with file/context access
- other local or cloud AI agent apps that can read files and optionally use Git or network access
## Purpose
Help a user keep the Portable Identity Document template repo, skills, and process documents current without silently overwriting user-owned configuration or PID content.
This skill is a freshness preflight for the other PID skills. It checks the local repo version, compares it to the latest available version when possible, explains what changed, asks the user whether to update, and records what happened.
Use this URL to check for releases, tags, `VERSION`, `pid-release.json`, `CHANGELOG.md`, and updated skill files when remote access is available and permitted.
If this URL is unavailable or appears to have moved, inspect the current local `README.md`, `pid-release.json`, or release notes for a replacement URL. Maintainers should publish any future release-source move in the README and update this skill with the new canonical URL.
- It will identify the local PID repo version from `VERSION`, `pid-release.json`, Git tags, or file timestamps when version files are missing.
- It will check for newer versions using local Git metadata first, then remote Git tags or a remote manifest only when the host has access and the user permits the check.
- It will summarize the local version, latest known version, and relevant changelog entries.
- It will ask for explicit user approval before applying updates.
- It will preserve user-owned files, especially `skills/PID-update-maintenance-skill-user-variables.md`, review drafts, receipts, and personal PID files.
- It will continue the calling workflow when remote freshness cannot be verified, unless the user explicitly asks to stop.
- It will create or update a durable receipt for serious update checks or any applied update.
## Inputs
The skill expects:
- A local PID template repo path.
- Optional remote URL or Git remote.
- Optional user preference about whether to check remote versions.
- Optional user preference about whether to apply updates now or only report status.
If Git or network access is unavailable, report that freshness could not be fully verified and continue using the local version. If the folder is not a Git repo, do not attempt Git updates; give the user manual download-and-merge instructions.
- Manual files: for non-Git users, compare the current folder to a user-downloaded latest repo folder or ZIP extraction before copying maintainer-owned files.
4. State whether the current folder appears to be Git-managed or manually downloaded/copied.
5. For Git-managed folders, ask whether to apply the update now or continue with the current version.
6. For non-Git folders, explain that the agent cannot safely pull updates automatically. Tell the user to download the latest repo ZIP or specific updated files, then ask the agent to compare and merge them.
- user wants to continue current skill without updating
## Regression Rule
If this skill discovers that update checking previously worked and now breaks, create a regression artifact immediately.
Acceptable regression artifacts:
- updated validation checklist item
- manifest schema rule
- anti-pattern
- edge-case note
- release-process note
- STOP gate before applying updates
## Ratchet Rules
When this skill discovers a recurring versioning mistake, ambiguous update path, failed validation, or risky overwrite case, convert the lesson into at least one durable artifact:
- update this skill
- update `pid-release.json`
- update README release instructions
- update changelog format
- add a manifest field
- add an anti-pattern
- add a validation item
Do not merely fix the current update.
## Anti-Patterns
Do not:
- update files before the user approves
- overwrite user variables or personal PID files
- pretend remote status is known when remote access failed
- treat informal changelog notes as the only source of version truth
- use destructive Git commands without explicit user request
The run receipt is for future agents, auditors, and maintainers.
Do not rely on the final response as the only record when update status was checked, remote checks failed, files were updated, or a user decision was made.
Check local PID template and skill versions, compare them to the latest available release when possible, branch between Git-managed updates and manual download/merge instructions, ask before updating, preserve user-owned files, and record the result so future agents know what happened.