Skip to content
Back to skills

Spgr Read Artifact

ASecurity

Parse a stored artifact, validate it against its registered schema, and return its header, content fields, confidence map, and decision log. Use when an agent needs to consume an upstream artifact (a PRD, NFR, architecture decision, and so on) before acting on it, optionally reading only specific sections.

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

Security analysis

A100/100

Scanned November 11, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Spgr Read Artifact?

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

Security grade badge for Spgr Read Artifact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/z4gunn-spgr-read-artifact/badge)](https://www.skillsdirectory.com/skills/z4gunn-spgr-read-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-read-artifact
description: Parse a stored artifact, validate it against its registered schema, and return its header, content fields, confidence map, and decision log. Use when an agent needs to consume an upstream artifact (a PRD, NFR, architecture decision, and so on) before acting on it, optionally reading only specific sections.
disable-model-invocation: true
---

# read-artifact

## Purpose

Give agents a parse-and-validate read path so no agent acts on an artifact it has not confirmed is well-formed and version-matched. Reading is deterministic. The skill loads the file, validates against the registry, and returns structured fields plus the confidence map the consuming agent needs to decide what is safe to use directly.

## Inputs

| Field | Description |
|-------|-------------|
| `artifact_path` | Path to the artifact JSON in the store |
| `sections` | Optional list of content sections to return. Defaults to all |
| `index` | Optional boolean. When true, return only the header line per artifact: id, type, version, status, the confidence map summary, and the first sentence of the content, for a path or a directory of artifacts. The caller then fetches by id |
| `expected_type` | Optional type the caller expects. A mismatch is an error |

## Outputs

| Artifact | Description |
|----------|-------------|
| `read_result` | Object: `artifact_id`, `artifact_type`, `schema_version`, `version_match`, `producing_agent`, `timestamp`, `confidence_map`, `artifact_fields`, `decision_log`, `read_errors` |

## Procedure

1. Read the file with `spgr-read-file` and parse it as JSON.
2. Validate with `spgr-validate-artifact`. If the schema version does not match the registry, set `version_match` false and report it in `read_errors`. Do not return fields as trustworthy when validation fails.
3. If `expected_type` is given and differs from the artifact's `artifact_type`, return an error rather than guessing.
4. When `sections` is given, return and validate only those sections. This keeps reads cheap when an agent needs a subset of a large artifact. When `index` is true, read only the envelope header and the first sentence of each artifact under the path and return one line each, no content fields. A unit that does not yet know which artifact it needs opens the index first and a full artifact second, never the corpus.
5. Return the structured `read_result`, including the `confidence_map` so the caller can tell which sections are `confirmed`, `proposed`, or `needs-human-input`.

## Notes

- The registry at `schemas/` defines the fields. Reference it through `spgr-validate-artifact` rather than restating field lists here.
- Cache parsed artifacts by `artifact_id` plus `schema_version` within a session to avoid repeated disk reads when several agents consume the same artifact.
- A consumer must not act on a `needs-human-input` section until a HIL checkpoint resolves it.

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.