Skip to content
Back to skills

Spgr Archive Artifact

ASecurity

Move a superseded or retired artifact to the dated archive store, append an archive index entry, and clear the active-store copy. Use when an artifact is superseded by a new version or retired, so the active store holds only current artifacts and history stays recoverable.

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

Security analysis

A100/100

Scanned November 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Spgr Archive Artifact?

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

Security grade badge for Spgr Archive Artifact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-archive-artifact/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-archive-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-archive-artifact
description: Move a superseded or retired artifact to the dated archive store, append an archive index entry, and clear the active-store copy. Use when an artifact is superseded by a new version or retired, so the active store holds only current artifacts and history stays recoverable.
disable-model-invocation: true
---

# archive-artifact

## Purpose

Keep the active artifact store free of stale versions while preserving an auditable history. Archiving is deterministic. The skill moves the artifact to a dated path, records an index entry, and confirms the active copy is cleared so no agent reads a superseded artifact by accident. 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 archive |
| `reason` | Why it is being archived, for example superseded or retired |
| `superseded_by` | Optional artifact ID of the replacement |
| `archived_by` | Agent or human identifier |

## Outputs

| Artifact | Description |
|----------|-------------|
| `archive_result` | Object: `artifact_id`, `archive_path`, `archive_timestamp`, `reason`, `superseded_by`, `archived_by`, `archive_confirmed`, `active_store_cleared` |

## Procedure

1. Read the artifact with `spgr-read-artifact` to capture its `artifact_id`, `artifact_type`, and `version`.
2. Write a copy to the archive store at `archive/{artifact_type}/{YYYY-MM}/{artifact_id}-{version}.json` using `spgr-write-file`.
3. Append an index entry to the central archive index: `artifact_id`, `artifact_type`, `archived_at`, `reason`, `superseded_by`, `archive_path`.
4. Remove the artifact from the active store and set `active_store_cleared` true. Confirm the archive copy exists first so the artifact is never lost between steps.
5. Append a decision-log entry to the replacement artifact, if any, recording what it supersedes.

## Notes

- To roll back, read the archived copy with `spgr-read-artifact`, re-validate with `spgr-validate-artifact`, write it back to the active store, and record the rollback rationale with `spgr-log-decision`.
- Archive before writing a new version of the same artifact, so the active store never holds two live versions at once.

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.