Skip to content
Back to skills

Spgr Diff Artifact

ASecurity

Compare two versions of an artifact field by field, summarize the changes, and flag scope changes that require human approval. Use when an artifact is revised and a downstream agent or the orchestrator needs to know what changed, whether scope expanded or contracted, and which agents are affected.

  • 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-diff-artifact --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spgr Diff Artifact?

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

Security grade badge for Spgr Diff Artifact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-diff-artifact/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-diff-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-diff-artifact
description: Compare two versions of an artifact field by field, summarize the changes, and flag scope changes that require human approval. Use when an artifact is revised and a downstream agent or the orchestrator needs to know what changed, whether scope expanded or contracted, and which agents are affected.
disable-model-invocation: true
---

# diff-artifact

## Purpose

Make artifact change legible. When a versioned artifact is revised, downstream agents need to know exactly what moved, whether the change touches scope, and who is impacted. Field-level comparison is deterministic. Long free-text fields get a readable change summary.

## Inputs

| Field | Description |
|-------|-------------|
| `artifact_id` | The artifact to compare across versions |
| `v1_path` | Path to the earlier version |
| `v2_path` | Path to the later version |

## Outputs

| Artifact | Description |
|----------|-------------|
| `diff_result` | Object: `artifact_id`, `artifact_type`, `v1_version`, `v2_version`, `change_summary`, `section_diffs`, `scope_change_detected`, `impact_assessment`, `confidence_changes` |

## Procedure

1. Read both versions with `spgr-read-artifact`.
2. Compare fields. Tag each difference with a change type: `added`, `removed`, `modified`, `confidence_changed`, or `unchanged`. For long text fields, produce a short human-readable summary of the change rather than a raw character diff.
3. Detect scope change. For a PRD, any addition to `scope` or removal from `out_of_scope` is a scope expansion. Any addition to `out_of_scope` is a scope contraction. Either sets `scope_change_detected` true.
4. Build `impact_assessment`: list the agents or artifacts affected by each change and why.
5. Record `confidence_changes` where a section's confidence signal moved, even if its value did not.

## Notes

- A detected scope change is not resolved here. Hand it to the orchestrator, which routes a scope-change escalation to the human. See `spgr-escalate`.
- The registry at `schemas/` defines the comparable fields. Read both versions through `spgr-read-artifact` so each is validated before the diff.

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.