Files
portable-identity-document-…/skills/PID-release-compatibility-checker-skill.md
T
2026-06-20 08:44:28 -06:00

15 KiB

name, description
name description
pid-release-compatibility-checker Run before tagging or publishing updates to the Portable Identity Document template repo; verify that changed files, versions, release metadata, changelog entries, README inventory, skill freshness preflights, receipt paths, and user-owned file policies remain synchronized.

PID Release Compatibility 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 repo files and optionally inspect Git status

Purpose

Run this skill whenever the Portable Identity Document template repo is changed and before the maintainer tags or publishes a new release.

This skill is the final compatibility and release-readiness check for changes such as:

  • PID template edits
  • skill edits
  • new skill files
  • README changes
  • changelog changes
  • release manifest changes
  • new process documents
  • receipt folder or output path changes
  • user-owned configuration changes

The goal is to keep the repo internally consistent so users and agents can safely update to newer versions.

Contract

This skill guarantees:

  • It will inspect changed, added, and removed files when Git metadata is available.
  • It will inspect the core repo inventory even when Git metadata is unavailable.
  • It will verify that VERSION, pid-release.json, CHANGELOG.md, and visible document/skill version notes agree or clearly identify mismatches.
  • It will verify that new maintainer-owned files are listed in pid-release.json and README when appropriate.
  • It will verify that user-owned files remain marked as user-owned and do_not_overwrite.
  • It will verify that PID workflow skills reference the version checker freshness preflight when appropriate.
  • It will verify that receipt paths prefer skills-receipts and preserve legacy skills-recepits only as compatibility context.
  • It will identify release blockers before the maintainer tags the repo.
  • It will produce a concise release compatibility report and, for serious runs, a durable receipt.

Inputs

The skill expects:

  • Local PID template repo path.
  • Intended next version, if known.
  • Optional release type: patch / minor / major.
  • Optional release summary from the maintainer.
  • Optional list of changed files if Git is unavailable.

Default repo files to inspect:

  • VERSION
  • pid-release.json
  • CHANGELOG.md
  • README.md
  • PID-Template.md
  • PID-Maturity-Model-Roadmap.md
  • skills/*.md
  • skills-receipts/

Outputs

This skill produces:

  • Release compatibility report.
  • List of required fixes before tagging.
  • Suggested changelog bullets when missing.
  • Suggested pid-release.json entries for new files when missing.
  • Suggested README inventory additions when missing.
  • Optional skills-receipts/PID-release-compatibility-check-run-receipt-[YYYY-MM-DD].md.

Skill Shape

service

This is one bounded final-check workflow that can be run after any repo edit and before version tagging.

Requires

This skill requires:

  • Ability to read the repo files.
  • Ability to parse pid-release.json when present.
  • Ability to inspect file names and paths.

Optional:

  • Git CLI access for git status, git diff --name-only, git ls-files, and tag checks.
  • Ability to write fixes when the user asks the agent to apply the compatibility updates.

If Git is unavailable, inspect the visible repo files and ask the user for changed-file context when needed.

Ensures

Before finishing, this skill ensures:

  • Release version metadata is checked.
  • Core repo inventory is checked.
  • New files are accounted for in release metadata or intentionally excluded.
  • README inventory is checked.
  • Changelog entry is checked.
  • User-owned file policy is checked.
  • Skill freshness preflight references are checked.
  • Receipt folder naming is checked.
  • Release blockers are listed clearly.
  • A durable receipt is written for serious release checks when file writing is available.

Capabilities

Required host capabilities:

  • CLI tools: optional but useful for Git diff and file inventory.
  • MCP/connectors: not required.
  • Browser access: not required.
  • Filesystem access: required.
  • Network access: not required.
  • Subagent support: optional for larger review passes.
  • Image/document/spreadsheet support: not required.

If a capability is unavailable, use the next-best local inspection method and record the limitation.

State Scope

project

Persistent writes when requested or when a serious release check is performed:

  • skills-receipts/PID-release-compatibility-check-run-receipt-[YYYY-MM-DD].md

Do not update long-term user memory.

Host Primitive Adapter

Map abstract workflow needs to available host actions:

  • Ask user: ask for intended version or release type if missing and needed.
  • Read/write files: read repo files; optionally update release metadata and write receipts.
  • Run shell command: optionally inspect Git status, tracked files, diffs, and tags.
  • Use connector: not normally required.
  • Use browser: not normally required.
  • Create durable report: write the compatibility-check receipt when appropriate.

If the host cannot write files, output copy-ready fixes and tell the user what to update.

Workflow

Phase 1: Identify Release Context

  1. Confirm the repo path.
  2. Read VERSION.
  3. Read pid-release.json.
  4. Read the latest CHANGELOG.md release section.
  5. If Git is available, inspect:
    • changed files
    • untracked files
    • deleted files
    • latest local tags
  6. Ask the user for intended release version only if needed.

Completion criteria:

  • Current release context is known or missing metadata is recorded.

Phase 2: Inventory Changed And Core Files

  1. Build a file inventory from Git or local file listing.
  2. Identify new files that should be maintainer-owned.
  3. Identify user-owned files and generated/local artifacts.
  4. Compare inventory against pid-release.json.
  5. Compare user-facing file list against README.

Completion criteria:

  • Files are classified as maintainer-owned, user-owned, generated/local, or needs-review.

Phase 3: Version Consistency Check

Check:

  • VERSION matches pid-release.json.repo_version.
  • pid-release.json.release_tag matches the version, such as v0.2.0.
  • Skill body versions match the intended repo version when the skill changed.
  • PID-Template.md version line matches the intended repo version when the template changed.
  • PID-Maturity-Model-Roadmap.md version line matches the intended repo version when the roadmap changed.
  • CHANGELOG.md has an entry for the intended version.

Completion criteria:

  • Version mismatches are fixed, reported, or explicitly accepted by the maintainer.

Phase 4: Process Flow Compatibility Check

Check:

  • README.md explains update flow for both Git users and ZIP/manual-download users.
  • PID-version-checker-skill.md exists and covers Git-managed and non-Git/manual update paths.
  • Workflow skills that users run directly include a Freshness Preflight section.
  • Run receipts include local repo version, template version, and update-check status where appropriate.
  • skills-receipts is the active receipt folder.
  • skills-recepits appears only as legacy compatibility text or preserve patterns.

Completion criteria:

  • Update flow remains coherent for normal users and Git users.

Phase 5: User-Owned File Safety Check

Check:

  • PID-update-maintenance-skill-user-variables.md is marked user-owned and do_not_overwrite in pid-release.json.
  • Review drafts, receipts, personal PID drafts, and user PID files are user-owned or excluded from maintainer replacement.
  • New examples or defaults do not require private local maintainer paths.
  • No skill instructs agents to overwrite user config silently.

Completion criteria:

  • User-owned safety rules are intact.

Phase 6: Changelog And README Check

Check:

  • CHANGELOG.md describes the release changes.
  • New user-facing files are listed in README.
  • New maintainer process files are described when needed.
  • Maintainer release process still tells maintainers to update VERSION, pid-release.json, CHANGELOG.md, commit, then tag.

Completion criteria:

  • Human-facing release notes and repo inventory are in sync.

Phase 7: Report And Optional Fixes

Produce a compatibility report with:

  • Ready to tag: yes / no
  • blockers
  • warnings
  • suggested fixes
  • files that should be updated
  • whether the agent applied fixes

If the user asks to apply fixes, update the relevant files and rerun the compatibility checks.

Phase 8: Receipt

For serious release checks, write:

skills-receipts/PID-release-compatibility-check-run-receipt-[YYYY-MM-DD].md

Validation

Before finishing, verify:

  • VERSION was read.
  • pid-release.json parsed successfully or failure was reported.
  • Manifest version and release tag were checked.
  • Changelog current release section was checked.
  • README inventory was checked.
  • New files were classified.
  • User-owned file policy was checked.
  • Freshness preflight references were checked.
  • Receipt path policy was checked.
  • Tag readiness was reported.

Validation Tiers

Tier 1: Fast Deterministic Checks

Run every time:

  • manifest JSON parses
  • VERSION equals manifest version
  • manifest file paths exist or are intentionally patterned/excluded
  • README links to user-facing core files
  • changelog contains current version
  • active receipt path is skills-receipts

Tier 2: Realistic Release Review

Run before tagging:

  • inspect Git status and untracked files
  • inspect changed-file list
  • confirm changed skills have version/freshness/receipt updates
  • confirm new files are in manifest and README when appropriate
  • confirm user-owned files are protected

Tier 3: LLM-As-Judge Or Reviewer Panel

Use when release quality is subjective:

  • changelog clarity
  • README user comprehension
  • whether a change is patch, minor, or major
  • whether a new file should be user-facing or internal

Test Surface

This skill can be tested through:

  • Static checks: required sections exist; no unresolved placeholders.
  • Schema checks: pid-release.json parses and contains required fields.
  • Invariant checks: user-owned files are never marked replace; active receipt folder is skills-receipts.
  • Fixture tests: new skill file missing from manifest; template version mismatch; changelog missing current version; non-Git update instructions missing.
  • Behavioral tests: agent reports blockers before tagging; agent asks before applying fixes.
  • Freshness checks: checker skill itself is listed in pid-release.json.

Coverage And Edge-Case Audit

Before finishing a serious run, map:

  • files changed
  • files added
  • files removed
  • files missing from manifest
  • files missing from README
  • version fields checked
  • changelog entries checked
  • skill preflight sections checked
  • user-owned policy checked
  • receipt path policy checked
  • release blockers

Mark gaps as:

  • [BLOCKER] must fix before tagging
  • [WARNING] should review before tagging
  • [MANUAL] maintainer decision needed
  • [FUTURE] candidate for better release tooling

Edge Cases

Actively handle:

  • repo is not Git-managed
  • Git is unavailable
  • new file is intentionally internal and should not appear in README
  • new file is user-facing and missing from README
  • manifest references a missing file
  • manifest omits a new maintainer-owned file
  • user-owned file is accidentally marked replace
  • template changed but template version did not
  • skill changed but body version did not
  • changelog missing current version
  • release tag does not match VERSION
  • receipt typo path reappears as an active instruction

Regression Rule

If this skill discovers that a release compatibility check previously passed but now misses a drift, create a regression artifact immediately.

Acceptable regression artifacts:

  • updated validation checklist item
  • new manifest rule
  • new README inventory rule
  • new anti-pattern
  • new edge case
  • stronger STOP gate before tagging

Ratchet Rules

When this skill discovers recurring release drift, convert the lesson into at least one durable artifact:

  • update this skill
  • update pid-release.json
  • update README release instructions
  • update changelog format
  • add an anti-pattern
  • add a validation item
  • add a manifest field

Do not only fix the current release. Make the next release harder to drift.

Anti-Patterns

Do not:

  • tag a release before checking version, manifest, README, and changelog alignment
  • add a new skill without adding it to pid-release.json
  • add a new user-facing file without considering README inventory
  • mark user-owned files as replace
  • silently change receipt folder paths
  • leave active instructions pointing to skills-recepits
  • update VERSION without updating pid-release.json
  • update skill behavior without checking freshness preflight and receipt requirements
  • treat a clean Git status as proof of release readiness

Run Receipt

Use this Markdown structure when writing PID-release-compatibility-check-run-receipt-[YYYY-MM-DD].md:

# PID Release Compatibility Check Run Receipt

## Skill Run

- Skill name:
- Skill source/path:
- Skill version:
- Run date:
- Executor/host:
- User request:

## Repo

- Local repo path:
- Git available:
- Changed files:
- Untracked files:

## Intended Release

- VERSION:
- Manifest version:
- Manifest release tag:
- Latest changelog section:
- Intended release type:

## Checks Performed

- Version consistency:
- Manifest inventory:
- README inventory:
- Changelog:
- Freshness preflight:
- Receipt paths:
- User-owned file policy:

## Findings

## Blockers

## Warnings

## Fixes Applied

## Ready To Tag

- Yes / No:
- Recommended tag:

## Ratchet Lessons

## Resume / Audit Notes

## Recommended Next Steps

Receipt Vs Final Report

The final report is for the maintainer.

The run receipt is for future agents, auditors, and maintainers.

Do not rely on the final response as the only record when release metadata was checked, fixes were applied, blockers were found, or the repo was declared ready to tag.

Final Report

When finished, report concisely:

  • whether the repo is ready to tag
  • current version and intended tag
  • blockers
  • warnings
  • fixes applied
  • files still needing maintainer review
  • where the receipt was written, or why it was not written

Suggested Maintainer Prompt

Use the PID Release Compatibility Checker Skill.

I changed this PID template repo and want to make sure it is ready to version and tag.

Check:
- VERSION
- pid-release.json
- CHANGELOG.md
- README.md
- PID-Template.md
- PID-Maturity-Model-Roadmap.md
- skills/*.md
- user-owned file protections
- receipt paths
- freshness preflight references

Tell me whether it is ready to tag, what blockers remain, and what files need updates.

One-Sentence Version

Before tagging a PID repo release, check that versions, manifests, changelog, README, skills, receipt paths, and user-owned file protections all agree.