# AI Artifact Provenance: Documents That Explain Themselves

> Every memo, report or HTML page your agent writes carries its own context: the exact ask, assumptions, rejected options, unknowns and a per-version changelog.

AI Artifact Provenance: Documents That Explain Themselves is a free AI agent skill on Agensi by Anshul Jhawar, in Technical Documentation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Anshul Jhawar](https://www.agensi.io/creators/anshul-jhawar)
- Category: [Technical Documentation](https://www.agensi.io/skills/technical-documentation)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-16
- Security: scan passed (2026-10-16); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-artifact-provenance-documents-that-explain-themselves
- Tags: documentation, automation, ai-governance, reports, provenance

## About this skill

Hand an AI-written memo to your manager and they get the answer, but not the question. They can't see what was asked, what the AI assumed, what it ruled out, what nobody checked, or why version 4 differs from version 3.

This skill fixes that. Before every publish, your agent embeds a small JSON provenance block in the document:

- **ask**: the original request, quoted exactly
- **constraints**: the limits you set, quoted
- **assumptions**: what the agent chose without being told, flagged until you confirm them
- **decisions**: each choice with your quote, the options it rejected, and why
- **unknowns**: what wasn't verified, and how to check it
- **changelog**: one append-only entry per publish, naming the prompt behind it

The block is invisible by default, so the page looks the same. It stays in the file through email, upload and re-hosting. On request, the agent adds a collapsed "How this document was made" panel at the top of the page (inline, no CDN, works under a strict Content Security Policy).

It also works in reverse. Give your agent a document that has a block, and it can answer "why was X rejected?" or list what to challenge.

**Works with:** Claude Code, Codex, Gemini CLI and Cursor: any agent that loads SKILL.md.
**Includes:** SKILL.md, the panel renderer, the full spec, the JSON schema, and worked HTML and Markdown examples.
**No dependencies.** If the open-source `aap` CLI (Node 18+) is available, the agent uses it to validate a document before publishing. Without it, the skill works exactly the same.
**Open source (MIT):** the spec, CLI, Claude Code plugin and git hooks are at github.com/anshuljhawar/ai-artifact-provenance.

## Requires

- GitHub
- Node.js

## Known limitations

It relies on the agent following instructions: only Claude Code's publish hook and the git pre-commit hook (both in the open-source repo) block a document that's missing a block. Unconfirmed assumptions stay flagged until you confirm them. It isn't C2PA or watermarking: it explains why a document looks the way it does, not which model made it.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AI Artifact Provenance: Documents That Explain Themselves skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply adding a 'Summary' section at the end of a document?

It solves the problem of "context loss" by embedding the logic, rejected alternatives, and original constraints directly into the file, ensuring the rationale travels with the document.

### Which AI agents or platforms are compatible with ai artifact provenance?

Any agent that loads the SKILL.md standard: Claude Code, Codex CLI, Gemini CLI, Cursor and others. The output is plain HTML or Markdown, so readers need nothing installed.

### Does this skill require any external software or CLI tools to function?

No. The skill works with nothing installed. If the open-source aap CLI (Node 18+) is available, the agent also uses it to validate a block before publishing and to turn the visible panel on or off.

### Can non-technical readers see the decision history, or is it only for other AI agents?

Yes, it features a 'panel mode' that injects a visible, interactive 'How this document was made' section into HTML artifacts for human readers, while keeping the machine-readable JSON in the background.

### How does the skill handle documents that undergo multiple rounds of revisions?

The skill maintains an append-only changelog within the artifact, tracking every version, trigger, and modification to provide a complete audit trail of how the document evolved.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
