/sanitize-artifacts:sanitize-artifactsfrom sanitize-artifacts
Inspect and revise generated artifacts so they read as natural, standalone deliverables, without leaking prompt instructions, conversation history, implementation constraints, or production process artifacts into user-facing content.
Ships in sanitize-artifacts. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when the user asks you to inspect, clean up, sanitize, revise, polish, or quality-check artifacts produced during the current work session.
This skill is especially important when the artifact was produced through iterative prompting, corrective instructions, examples, constraints, or vibe-coding-style collaboration.
Revise the artifact so that it stands on its own as a coherent final deliverable.
The artifact must not expose unnecessary traces of:
The final artifact should look like it was intentionally designed for its real audience, not assembled from the conversation that produced it.
Treat the conversation as production context, not automatically as artifact content.
Before preserving any statement in the artifact, classify it as one of the following:
Only category 1 should appear directly in the artifact.
Category 2 should be reflected indirectly through structure, tone, scope, assumptions, defaults, examples, naming, or design choices.
Category 3 should be removed.
Look for and remove or rewrite content that unnecessarily says or implies:
Do not remove such content mechanically. Keep it only when the intended audience genuinely needs to know it.
If the user gave an example to communicate intent, do not copy that example into the artifact unless the artifact itself specifically needs it.
Examples from the conversation are usually diagnostic material, not final content.
Use examples to infer:
Do not let examples accidentally become the topic of the artifact.
User constraints should normally affect the artifact's design, not appear as explicit disclaimers.
For example:
Bad:
This guide does not use Git, Homebrew, or additional CLI tools.
Better:
Share the project folder using Google Drive.
The better version applies the constraint without exposing it as a production rule.
When sanitizing an artifact, check:
Prefer rewriting over explaining.
Do not add a report about what you sanitized unless the user asks for one.
When editing, preserve the artifact's intended purpose, technical correctness, and necessary user-facing requirements.
Remove production residue by converting it into natural artifact design.
For example:
When asked to sanitize an artifact, output the revised artifact itself.
Do not preface the artifact with process commentary such as:
A brief label is acceptable only if needed for clarity.
If the user asks for both the sanitized artifact and a change summary, put the artifact first and the summary after it.
The sanitized artifact should feel intentional, unified, and audience-native.
A reader should not be able to infer the prompting history, internal constraints, or corrective conversation unless those details are genuinely part of the deliverable.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub kotomiya07/skills --plugin sanitize-artifacts