artifact-reuse-pattern

artifact-reuse-pattern is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 27 tokens per session (1,165 once invoked), scanned A, original, MIT.

A workflow for keeping one evolving document up to date instead of creating a new copy for every change. It is intended for agents maintaining plans, walkthroughs, and other project records.

In plain words
What is it for?
Use it for implementation plans, status documents, walkthroughs, and other files that change throughout a multi-step engineering task.
Why use it?
It prevents duplicate drafts from cluttering a repository and reduces the chance that an agent or teammate follows an outdated version.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents; mentions Claude Code; mentions Codex.

Part of the major-ai-skills plugin — 147 skills, 7 plugins shipped together

Good fit Use it for implementation plans, status documents, walkthroughs, and other files that change throughout a multi-step engineering task.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alivirgo/major-ai-skills/artifact-reuse-pattern
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alivirgo/Major-AI-Skills --skill artifact-reuse-pattern
Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 7 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for artifact-reuse-pattern

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/artifact-reuse-pattern/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/artifact-reuse-pattern)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/artifact-reuse-pattern"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/artifact-reuse-pattern/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for artifact-reuse-pattern

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/artifact-reuse-pattern"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/artifact-reuse-pattern.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,165 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00027 $0.01165
Opus 5 $0.00014 $0.00583
Sonnet 5 $0.00005 $0.00233
Haiku 4.5 $0.00003 $0.00117

Measured today against content hash 408326df64bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

artifact-reuse-pattern scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/artifact-reuse-pattern/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Persistent Living Artifact Mutation Pattern

Overview

When executing multi-phase engineering tasks, poorly designed agents generate new markdown files for every status update (plan_v1.md, plan_v2.md, revised_plan.md, final_summary.md).

Creating duplicate files pollutes repository search indices, degrades RAG vector embeddings, confuses subagents with conflicting historical drafts, and wastes thousands of generation tokens.

The Persistent Living Artifact Pattern enforces a single canonical document per domain (e.g. implementation_plan.md, walkthrough.md) and updates it via in-place differential edits (replace_file_content), maintaining a pristine single source of truth.


Duplicate Proliferation vs. Single Living Artifact

┌─────────────────────────────────────────────────────────────┐
│                 Artifact Lifecycle Comparison               │
│                                                             │
│  Duplicate Proliferation (Anti-Pattern):                    │
│  • Turn 1: `write_to_file("plan_v1.md")` (800 tokens)       │
│  • Turn 5: `write_to_file("plan_v2.md")` (950 tokens)       │
│  • Turn 12: `write_to_file("final_plan.md")` (1,100 tokens) │
│  ↳ 3 duplicate files in repo, 2,850 tokens billed           │
│                                                             │
│  Single Living Artifact (Living Mutation Pattern):          │
│  • Turn 1: `write_to_file("implementation_plan.md")`        │
│  • Turn 5: `replace_file_content("implementation_plan.md")` │
│    ↳ Mutates only the completed phase (45 tokens!)          │
│  • Turn 12: Updates verification status in place            │
│  ↳ 1 canonical file, 92% fewer mutation tokens billed       │
└─────────────────────────────────────────────────────────────┘

The 3 Canonical Agent Artifacts

In standard agentic frameworks (Antigravity IDE, Claude Code, Cursor), maintain strictly 3 canonical state documents in the artifact directory:

Artifact Purpose Lifecycle State
implementation_plan.md Technical architecture, step-by-step roadmap, open questions, and verification gates. Updated in-place as each milestone completes.
walkthrough.md Final user-facing demo, completed changes diffs, validation logs, and media recordings. Appended/updated as milestones pass verification.
scratch/notes.md Temporary scratchpad for ephemeral CLI outputs or quick math. Disposable; never referenced in user plans.

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -4 tokens per session 408326df64bf
  2. 6d ago First seen · 115 lines · 31 tokens per session scan A 52dd7bf6b813

Subscribe to this mod's changes

artifact-reuse-pattern is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed yesterday), licensed MIT. It adds 27 tokens to every session and 1,165 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

snip

You are an expert at writing declarative YAML filters for snip, a CLI proxy that reduces LLM token consumption by filtering shell output.

edouard-claude/snip · 0 tokens

azure-pipelines

Expert knowledge for Azure Pipelines development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing agents/secrets, configuring YAML builds, migrating from Jenkins…

MicrosoftDocs/Agent-Skills · 116 tokens

azure-local

Expert knowledge for Azure Local development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when planning Azure Local racks/SDN, disconnected clusters, Arc VMs, GPU workloads, or…

MicrosoftDocs/Agent-Skills · 112 tokens

azure-arc

Expert knowledge for Azure Arc development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when managing Arc-enabled Kubernetes, data services, Edge Volumes, Agentic Retrieval APIs…

MicrosoftDocs/Agent-Skills · 114 tokens

azure-blob-storage

Expert knowledge for Azure Blob Storage development including troubleshooting, best practices, decision making, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Blob tiers, lifecycle/immutability, NFS/SFTP mounts, static sites, or SDK/CLI data workflows, and…

MicrosoftDocs/Agent-Skills · 112 tokens

azure-defender-for-cloud

Expert knowledge for Azure Defender For Cloud development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when securing VMs, containers/AKS, SQL, storage, multi‑cloud connectors, or…

MicrosoftDocs/Agent-Skills · 127 tokens