Skip to content
Back to skills

Spgr Version Artifact

ASecurity

Stamp a new version on an artifact, incrementing minor on agent revision and major on human approval, and write a tamper checksum once approved. Use when an artifact changes after its first write, or when a human approves an artifact and it must become an immutable baseline.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 11, 2026
ai-agents

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add z4gunn/springer --skill spgr-version-artifact --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spgr Version Artifact?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spgr Version Artifact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-version-artifact/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-version-artifact)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spgr-version-artifact
description: Stamp a new version on an artifact, incrementing minor on agent revision and major on human approval, and write a tamper checksum once approved. Use when an artifact changes after its first write, or when a human approves an artifact and it must become an immutable baseline.
disable-model-invocation: true
---

# version-artifact

## Purpose

Keep artifact history honest. Artifacts are immutable once written, so every change is a new version rather than an edit. This skill computes the next version number, records the version header, and on approval writes a content checksum so downstream agents can detect tampering with a confirmed baseline. The procedure is mechanical and runs correctly on the smallest model tier, so the harness dispatches it as a mechanical unit per the dispatch tiers in `.claude/references/pdca-harness.md`.

## Inputs

| Field | Description |
|-------|-------------|
| `artifact_path` | Path to the artifact to version |
| `version_type` | `draft`, `candidate`, `approved`, or `archived` |
| `producing_agent` | Agent or human identifier applying the version |
| `version_notes` | Short description of what changed |

## Outputs

| Artifact | Description |
|----------|-------------|
| `version_header` | Object: `version`, `version_type`, `producing_agent`, `version_timestamp`, `parent_version`, `version_notes`, `checksum` |

## Procedure

1. Read the current artifact with `spgr-read-artifact` to get its `version` and `version_type`.
2. Compute the next version. Increment the minor number on an agent revision. Increment the major number and reset minor to zero on human approval. If there is no parent version, start at `v0.1-draft`.
3. Set `version_type` from the input. Carry the prior version into `parent_version`.
4. When `version_type` becomes `approved`, compute a checksum over the artifact content and store it in the header. This is the immutability marker for the confirmed baseline.
5. Write the updated artifact with `spgr-write-artifact` semantics (validate, then write). Append a decision-log entry with `spgr-log-decision` recording the version bump and its reason.

## Notes

- Approval is the boundary between mutable and immutable. After an `approved` stamp, a change requires a scope-change escalation, not a silent re-version.
- Downstream agents verify the stored checksum before consuming an approved artifact. A mismatch is an `invalid_reference` condition to escalate.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.