added
This commit is contained in:
1 parent
0508074371
commit
a5ebd1b7e6
12 files changed
+346
-292
No files matched your search
+103
-101
@@ -1,13 +1,13 @@
|
||||
---
|
||||
name: pid-version-checker
|
||||
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.
|
||||
description: Check whether an AI agent is using the latest server-hosted Portable Identity Document resources; inspect paddlenet.earth discovery files, compare discovered release metadata against local mirrors when present, summarize available updates, preserve user-owned files, and avoid requiring users to download the skill pack.
|
||||
---
|
||||
|
||||
# PID Version Checker Skill
|
||||
|
||||
## Compatibility Notes
|
||||
|
||||
- Version: 0.2.0
|
||||
- Version: 0.2.3
|
||||
- Status: draft
|
||||
- Intended hosts:
|
||||
- Codex Desktop
|
||||
@@ -17,33 +17,44 @@ description: Check whether a local Portable Identity Document template repo, PID
|
||||
|
||||
## 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.
|
||||
Help an AI agent find and use the latest Portable Identity Document template, skills, and process documents without making the user download or maintain the skill pack locally.
|
||||
|
||||
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.
|
||||
This skill is a freshness preflight for the other PID skills. It checks paddlenet.earth discovery assets first, uses the canonical repo as a fallback, compares any local mirror when present, explains what source/version will be used, and records what happened.
|
||||
|
||||
## Release Source
|
||||
|
||||
Current canonical release source:
|
||||
Primary AI entrypoint:
|
||||
|
||||
```text
|
||||
https://projects.eddiesoehnel.com/adminprojects/portable-identity-document-template-OPEN
|
||||
https://paddlenet.earth
|
||||
```
|
||||
|
||||
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.
|
||||
Preferred discovery files:
|
||||
|
||||
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.
|
||||
- `llms.txt`
|
||||
- `agents.md`
|
||||
- `skills.md`
|
||||
- `ai-index.json`
|
||||
- `sitemap.xml`
|
||||
|
||||
Canonical repo fallback:
|
||||
|
||||
```text
|
||||
https://forge.paddlenet.earth/networkSIG/portable-identity-document-template-OPEN
|
||||
```
|
||||
|
||||
Use the discovery files to find releases, tags, `VERSION`, `pid-release.json`, `CHANGELOG.md`, templates, and updated skill files when remote access is available and permitted. Human users should not need to paste the canonical repo URL during normal use.
|
||||
|
||||
## Contract
|
||||
|
||||
This skill guarantees:
|
||||
|
||||
- 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 distinguish Git-managed repos from ZIP/manual-download folders.
|
||||
- It will use Git update commands only when the local folder is a Git repo and the host has permission.
|
||||
- It will instruct non-Git users to download the latest repo ZIP or specific updated files, then help compare and merge those files when available.
|
||||
- It will inspect paddlenet.earth discovery assets before using PID skills or templates.
|
||||
- It will identify the latest discovered PID resource version from discovery assets, `pid-release.json`, `VERSION`, Git tags, or changelog entries when available.
|
||||
- It will compare the discovered version against any local mirror or cached files when the user provides them.
|
||||
- It will summarize discovered source, local/cached source when present, latest known version, and relevant changelog entries.
|
||||
- It will not require the user to download or clone the skill pack for normal PID work.
|
||||
- It will ask for explicit user approval before updating any local mirror.
|
||||
- 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.
|
||||
@@ -52,13 +63,13 @@ This skill guarantees:
|
||||
|
||||
The skill expects:
|
||||
|
||||
- A local PID template repo path.
|
||||
- Optional remote URL or Git remote.
|
||||
- Access to paddlenet.earth discovery assets.
|
||||
- Optional local PID repo mirror path.
|
||||
- Optional user-provided local variables file path.
|
||||
- Optional user preference about whether to check remote versions.
|
||||
- Optional user preference about whether to apply updates now or only report status.
|
||||
- Optional downloaded latest repo ZIP or extracted latest repo folder for non-Git manual comparison and merge.
|
||||
- Optional user preference about whether to update a local mirror now or only report status.
|
||||
|
||||
Default local repo files:
|
||||
Default server/repo files to identify when available:
|
||||
|
||||
- `VERSION`
|
||||
- `pid-release.json`
|
||||
@@ -84,29 +95,30 @@ This is one bounded workflow with clear inputs and outputs. It may be used as a
|
||||
|
||||
This skill requires:
|
||||
|
||||
- Ability to read the local PID repo files.
|
||||
- Ability to ask the user before applying updates.
|
||||
- Ability to inspect paddlenet.earth discovery files or a user-provided copy of them.
|
||||
- Ability to read release metadata from the canonical repo fallback when discovery is incomplete.
|
||||
- Ability to ask the user before updating any local mirror.
|
||||
- Ability to write a receipt when file writing is available.
|
||||
|
||||
Optional:
|
||||
|
||||
- Git CLI access for tags, remotes, fetch, pull, and status.
|
||||
- Network access for remote version checks.
|
||||
- A downloaded latest repo ZIP or extracted latest repo folder for non-Git manual comparison and merge.
|
||||
- Git CLI access for tags, remotes, fetch, pull, and status when maintaining an optional local mirror.
|
||||
- Network access for server discovery and remote version checks.
|
||||
- A local mirror for offline comparison when the user intentionally keeps one.
|
||||
|
||||
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.
|
||||
If network access is unavailable, report that freshness could not be fully verified and continue only with clearly labeled local/cached instructions. Do not tell the user to download the full skill pack as the normal path.
|
||||
|
||||
## Ensures
|
||||
|
||||
Before finishing, this skill ensures:
|
||||
|
||||
- Local version status is reported.
|
||||
- Discovered server resource version status is reported.
|
||||
- Remote/latest version status is reported when available.
|
||||
- Available update details are summarized before any update.
|
||||
- User-owned files are not overwritten without explicit user request.
|
||||
- Update status is recorded in the calling skill receipt when this skill is used as a preflight.
|
||||
- A standalone update-check receipt is created for serious checks or any applied update.
|
||||
- Non-Git users receive clear download-and-merge instructions instead of unsafe automatic overwrite behavior.
|
||||
- Users are not asked to download the skill pack for normal use; local mirror update guidance is treated as an advanced fallback.
|
||||
|
||||
## Capabilities
|
||||
|
||||
@@ -115,12 +127,12 @@ Required host capabilities:
|
||||
- CLI tools: optional but useful for Git version checks.
|
||||
- MCP/connectors: optional.
|
||||
- Browser access: optional; use only if the user wants to inspect a web release page.
|
||||
- Filesystem access: required for local version checks and receipts.
|
||||
- Filesystem access: required for reading optional local variables, optional local mirrors, and writing receipts.
|
||||
- Network access: optional for remote checks.
|
||||
- Subagent support: not required.
|
||||
- Image/document/spreadsheet support: not required.
|
||||
|
||||
If remote capabilities are unavailable, do not fake the result. Say that only local version status was verified.
|
||||
If remote capabilities are unavailable, do not fake the result. Say that only local or cached resource status was verified.
|
||||
|
||||
## State Scope
|
||||
|
||||
@@ -139,7 +151,7 @@ Map abstract workflow needs to available host actions:
|
||||
- Ask user: ask before remote checks if required by host policy, and always before applying updates.
|
||||
- Read/write files: read version files, changelog, and manifest; write receipts.
|
||||
- Run shell command: optionally run Git commands such as `git status`, `git tag --list`, `git fetch --tags`, `git describe`, and `git pull`.
|
||||
- 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.
|
||||
- Manual files: for optional local mirrors, compare maintainer-owned files only after the user provides a newer trusted source and approves the change.
|
||||
- Use connector: not normally required.
|
||||
- Use browser: optional for public release pages.
|
||||
- Create durable report: write the update-check receipt when possible.
|
||||
@@ -148,28 +160,28 @@ If the host cannot provide a required primitive, narrow the workflow and record
|
||||
|
||||
## Workflow
|
||||
|
||||
### Phase 1: Locate Repo And Local Version
|
||||
### Phase 1: Discover Server Resources And Optional Local Version
|
||||
|
||||
1. Confirm the local PID repo path.
|
||||
2. Read `VERSION` if present.
|
||||
3. Read `pid-release.json` if present.
|
||||
4. Read the top of `CHANGELOG.md` if present.
|
||||
5. Detect whether the folder is Git-managed by checking for `.git` or successful Git metadata commands.
|
||||
6. Optionally inspect local Git tags.
|
||||
7. Determine the best local version value.
|
||||
1. Start at paddlenet.earth.
|
||||
2. Inspect available discovery files such as `llms.txt`, `agents.md`, `skills.md`, `ai-index.json`, and `sitemap.xml`.
|
||||
3. Identify PID resource URLs, `VERSION`, `pid-release.json`, `CHANGELOG.md`, templates, and skills.
|
||||
4. If discovery is incomplete, inspect the canonical repo fallback.
|
||||
5. If the user provides a local mirror, read local `VERSION`, `pid-release.json`, changelog, and Git metadata.
|
||||
6. Determine the best discovered version and any local/cached version.
|
||||
|
||||
Completion criteria:
|
||||
|
||||
- Local version is known, or the missing metadata is reported.
|
||||
- Discovered server resource version is known, or the missing metadata is reported.
|
||||
|
||||
### Phase 2: Check Latest Available Version
|
||||
|
||||
Use the safest available method:
|
||||
|
||||
1. If the repo has local Git tags, identify the highest SemVer tag.
|
||||
2. If remote Git access is available and approved, fetch tags or inspect the remote.
|
||||
3. If a remote manifest is available and approved, compare `repo_version`.
|
||||
4. If no remote check is possible, mark latest version as unknown.
|
||||
1. Prefer version metadata found through paddlenet.earth discovery.
|
||||
2. If discovery points to a remote manifest, compare `repo_version`.
|
||||
3. If the canonical repo is accessible, inspect `VERSION`, `pid-release.json`, `CHANGELOG.md`, and tags.
|
||||
4. If a local mirror exists, compare it to the latest discovered server version.
|
||||
5. If no remote check is possible, mark latest version as unknown.
|
||||
|
||||
Completion criteria:
|
||||
|
||||
@@ -177,13 +189,13 @@ Completion criteria:
|
||||
|
||||
### Phase 3: Compare Versions
|
||||
|
||||
1. Compare local version to latest known version.
|
||||
1. Compare any local/cached version to the latest discovered version.
|
||||
2. Classify status:
|
||||
- `current`
|
||||
- `update_available`
|
||||
- `ahead_of_remote`
|
||||
- `unknown_remote`
|
||||
- `missing_local_metadata`
|
||||
- `local_mirror_ahead`
|
||||
- `unknown_discovery`
|
||||
- `missing_discovery_metadata`
|
||||
3. If an update is available, read changelog entries between local and latest when available.
|
||||
|
||||
Completion criteria:
|
||||
@@ -197,32 +209,25 @@ If update is available:
|
||||
1. Summarize what changed.
|
||||
2. List likely files to update.
|
||||
3. List user-owned files that will be preserved.
|
||||
4. State whether the current folder appears to be Git-managed or manually downloaded/copied.
|
||||
4. State whether an optional local mirror exists and whether it appears Git-managed or manually maintained.
|
||||
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.
|
||||
6. For users without a local mirror, explain that no local skill update is needed because the AI should use the server-hosted resources. For optional local mirrors, explain the Git or manual comparison path and ask before changing files.
|
||||
|
||||
Stop here unless the user explicitly approves updating.
|
||||
|
||||
### Phase 5: Apply Approved Update
|
||||
### Phase 5: Apply Approved Update To Optional Local Mirror
|
||||
|
||||
If the user approves:
|
||||
If the user keeps an optional local mirror and approves updating it:
|
||||
|
||||
1. If the repo is Git-managed:
|
||||
- Confirm the worktree status before updating.
|
||||
- Warn if there are uncommitted local changes that may conflict.
|
||||
- Prefer normal Git update mechanisms such as fetch, pull, and tag fetch.
|
||||
- Preserve user-owned files from `pid-release.json`.
|
||||
- Re-read `VERSION`, `pid-release.json`, and relevant skill files after updating.
|
||||
- Report success or any files that need manual review.
|
||||
2. If the folder is not Git-managed:
|
||||
- Do not run Git update commands.
|
||||
- Ask the user to download the latest repo ZIP or specific updated files from the release source.
|
||||
- Ask the user for the path to the extracted latest repo folder or downloaded files.
|
||||
- Compare maintainer-owned files from the downloaded latest copy against the local folder.
|
||||
- Copy or merge only maintainer-owned files after user approval.
|
||||
- Do not overwrite user-owned files unless the user explicitly asks to reset them.
|
||||
- Re-read `VERSION`, `pid-release.json`, and relevant skill files after the manual merge.
|
||||
- Report files changed, files skipped, and any manual review needed.
|
||||
1. Confirm the mirror path and worktree status before updating.
|
||||
2. Warn if there are uncommitted local changes that may conflict.
|
||||
3. Prefer normal Git update mechanisms such as fetch, pull, and tag fetch when the mirror is Git-managed.
|
||||
4. For manually maintained mirrors, compare maintainer-owned files against the trusted server/canonical source before copying or merging.
|
||||
5. Preserve user-owned files from `pid-release.json`, especially `skills/PID-update-maintenance-skill-user-variables.md`.
|
||||
6. Re-read `VERSION`, `pid-release.json`, and relevant skill files after updating.
|
||||
7. Report success or any files that need manual review.
|
||||
|
||||
If the user does not keep a local mirror, do not apply any local skill update. Record that the workflow used server-hosted resources.
|
||||
|
||||
Do not use destructive Git commands such as reset, checkout, clean, or force overwrite unless the user explicitly requests them.
|
||||
|
||||
@@ -240,12 +245,12 @@ Write `skills-receipts/PID-version-check-run-receipt-[YYYY-MM-DD].md` when:
|
||||
|
||||
Before finishing, verify:
|
||||
|
||||
- [ ] Local version source is recorded.
|
||||
- [ ] Repo type is recorded as Git-managed, non-Git/manual, or unknown.
|
||||
- [ ] Remote/latest version source is recorded, or unavailable status is recorded.
|
||||
- [ ] Discovered source and version are recorded.
|
||||
- [ ] Optional local mirror type is recorded as Git-managed, manual, not present, or unknown.
|
||||
- [ ] Discovery/latest version source is recorded, or unavailable status is recorded.
|
||||
- [ ] Update status is classified.
|
||||
- [ ] User approval was requested before any update was applied.
|
||||
- [ ] Non-Git users were given download-and-merge instructions instead of Git commands.
|
||||
- [ ] Users without a local mirror were told no local skill update is required for normal use.
|
||||
- [ ] User-owned files were preserved.
|
||||
- [ ] Receipt was written when required, or inability to write it was reported.
|
||||
|
||||
@@ -258,7 +263,7 @@ Run every time:
|
||||
- `VERSION` and `pid-release.json` agree when both exist.
|
||||
- Manifest JSON parses when available.
|
||||
- The changelog contains the current version when available.
|
||||
- Git-managed vs non-Git/manual folder status is classified.
|
||||
- Optional local mirror status is classified when a mirror exists.
|
||||
- User-owned files are listed before any update proposal.
|
||||
|
||||
### Tier 2: Realistic Workflow Review
|
||||
@@ -267,7 +272,7 @@ Run before applying updates:
|
||||
|
||||
- Check Git worktree status.
|
||||
- Confirm update source.
|
||||
- For non-Git users, confirm the downloaded latest repo folder or files before merging.
|
||||
- For optional manual local mirrors, confirm the trusted newer source before merging.
|
||||
- Re-read version metadata after update.
|
||||
- Confirm user-owned files still exist.
|
||||
|
||||
@@ -285,7 +290,7 @@ This skill can be tested through:
|
||||
- Static checks: required sections exist; no unresolved placeholders; frontmatter has only `name` and `description`.
|
||||
- Schema checks: `pid-release.json` parses as JSON and contains required keys.
|
||||
- Invariant checks: no update without user approval; user-owned files preserved.
|
||||
- Fixture tests: missing `VERSION`; missing manifest; local version older than remote; remote unavailable.
|
||||
- Fixture tests: missing `VERSION`; missing manifest; local mirror older than discovered version; remote discovery unavailable.
|
||||
- Behavioral tests: agent asks before update; agent records skipped remote checks.
|
||||
- Freshness checks: skill version matches `pid-release.json`.
|
||||
|
||||
@@ -293,11 +298,11 @@ This skill can be tested through:
|
||||
|
||||
Before finishing a serious update check, map:
|
||||
|
||||
- local metadata files found or missing
|
||||
- Git metadata found or missing
|
||||
- repo type: Git-managed, non-Git/manual, or unknown
|
||||
- remote access available or unavailable
|
||||
- downloaded latest files available or unavailable for manual update
|
||||
- discovery metadata files found or missing
|
||||
- optional local mirror metadata found or missing
|
||||
- optional local mirror type: Git-managed, manual, not present, or unknown
|
||||
- remote discovery access available or unavailable
|
||||
- optional local mirror available or unavailable for comparison
|
||||
- user-owned files detected
|
||||
- update status
|
||||
- receipt status
|
||||
@@ -321,13 +326,10 @@ Actively handle:
|
||||
- changelog is missing current version
|
||||
- remote fetch fails
|
||||
- network access is unavailable
|
||||
- local repo is ahead of remote
|
||||
- optional local mirror is ahead of the canonical source
|
||||
- user variables file contains private paths
|
||||
- user downloaded a ZIP and is not in a Git repo
|
||||
- user has no Git installed
|
||||
- user downloaded the latest ZIP but has not extracted it
|
||||
- user points to a downloaded folder from the wrong repo or wrong version
|
||||
- manual downloaded files omit `pid-release.json`
|
||||
- manually maintained local mirror is missing `pid-release.json`
|
||||
- user wants to continue current skill without updating
|
||||
|
||||
## Regression Rule
|
||||
@@ -367,8 +369,8 @@ Do not:
|
||||
- treat informal changelog notes as the only source of version truth
|
||||
- use destructive Git commands without explicit user request
|
||||
- run Git update commands in a non-Git folder
|
||||
- tell non-Git users that updates were applied when the user has not downloaded the latest files
|
||||
- copy files from a downloaded ZIP over user-owned files
|
||||
- tell users that a local mirror was updated when no local mirror update occurred
|
||||
- copy server/canonical files over user-owned files
|
||||
- ignore uncommitted local changes
|
||||
- block a PID workflow only because remote freshness could not be checked
|
||||
- bury available updates without telling the user
|
||||
@@ -383,27 +385,27 @@ Use this Markdown structure when writing `PID-version-check-run-receipt-[YYYY-MM
|
||||
## Skill Run
|
||||
|
||||
- Skill name:
|
||||
- Skill source/path:
|
||||
- Skill source URL/path:
|
||||
- Skill version:
|
||||
- Run date:
|
||||
- Executor/host:
|
||||
- User request:
|
||||
|
||||
## Repo
|
||||
## Sources
|
||||
|
||||
- Local repo path:
|
||||
- Remote:
|
||||
- Repo type: Git-managed / non-Git manual folder / unknown
|
||||
- Manual latest files path:
|
||||
- Primary discovery entrypoint:
|
||||
- Canonical repo fallback:
|
||||
- Optional local mirror path:
|
||||
- Optional local mirror type: Git-managed / manual / not present / unknown
|
||||
|
||||
## Local Version
|
||||
## Local Or Cached Version
|
||||
|
||||
- VERSION:
|
||||
- Manifest version:
|
||||
- Git tags:
|
||||
- Changelog version:
|
||||
|
||||
## Latest Known Version
|
||||
## Latest Discovered Version
|
||||
|
||||
- Source:
|
||||
- Version:
|
||||
@@ -452,14 +454,14 @@ Do not rely on the final response as the only record when update status was chec
|
||||
|
||||
When finished, report concisely:
|
||||
|
||||
- local version
|
||||
- latest known version
|
||||
- whether update is available
|
||||
- whether update was applied or declined
|
||||
- whether the update path was Git-managed or manual download/merge
|
||||
- discovered source and version
|
||||
- local/cached version when present
|
||||
- whether a newer discovered version is available
|
||||
- whether an optional local mirror was updated or left unchanged
|
||||
- whether the mirror update path was Git-managed or manual comparison
|
||||
- whether user-owned files were preserved
|
||||
- where the receipt was written, or why it was not written
|
||||
|
||||
## One-Sentence Version
|
||||
|
||||
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.
|
||||
Check paddlenet.earth discovery for the latest PID template and skills, compare any optional local mirror, preserve user-owned files, and record the source/version the agent used so future agents know what happened.
|
||||
Reference in new issue
Block a user