export-clean

A command that removes private review material from a staging HTML page, such as version controls, notes, and elements marked for internal use. Staging is a working copy that is not yet public.

In plain words
What is it for?
Use it to prepare staging blog pages, dashboards, or documentation for external review, public screenshots, CMS upload, or blog publishing.
Why use it?
It reduces the risk of uploading comments or internal controls when sharing a page publicly or with a content-management system (CMS).

Command

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.

agentmods
npx agentmods add commands/saigonxiii/evc/export-clean
Clone the repo
git clone --depth 1 https://github.com/SaigonXIII/evc
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00032 $0.00539
Opus 5 $0.00016 $0.00269
Sonnet 5 $0.00006 $0.00108
Haiku 4.5 $0.00003 $0.00054

Measured 2d ago against content hash 6e9df8e56f0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

export-clean 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 2d ago.

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.

_templates/commands/export-clean.md · 74 lines

How it starts

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

Export Clean

Produce a clean, public-ready copy of a staging HTML file with all internal review artifacts stripped. Removes version drawers, internal annotations, and any element marked data-internal.

Usage

/project:export-clean staging/blog/[slug]-blog.html
/project:export-clean staging/dashboards/weekly-report.html [output-path]

When to Use

  • Before sharing a staging page with an external reviewer
  • Before uploading staging HTML as public documentation
  • Before /blog-publish (auto-called, but can be run manually to inspect output)
  • Before taking a public screenshot of a staging page

Steps

1. Resolve input and output paths

  • Input: first arg, must be an existing file in staging/
  • Output: second arg, or defaults to staging/exports/[same-filename]

2. Run the export script

scripts/export-staging.sh [input] [output]

The script:

  • Removes every element with data-internal="..." attribute
  • Strips CSS rules for .version-drawer, .vd-toggle, .vd-label, .vd-body, .vd-hint
  • Removes any <link> to version-drawer.css
  • Collapses orphaned blank lines

3. Verify output

Check the output file:

  • Does not contain data-internal
  • Does not contain version-drawer
  • File size is reasonable (smaller than input but not empty)
  • HTML structure intact (has <html>, <body>)

4. Report

EXPORT CLEAN
════════════════════════════════════════
  Input:   [input-path]
  Output:  [output-path]
  Removed: [N] internal elements
  Size:    [input-kb]KB → [output-kb]KB

  Preview: open [output-path]
════════════════════════════════════════

Rules

  • Never modify the input file — always write a new output
  • If output path already exists, prompt before overwriting
  • Never strip elements without data-internal — this command is specifically for marked elements
  • The script is pure-Python regex-based; it does NOT use a full HTML parser. Nested data-internal elements are not supported (avoid them).

Read the full file on GitHub · 74 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. 2d ago First seen · 74 lines · 32 tokens per session scan A 6e9df8e56f0b

Subscribe to this mod's changes

export-clean is a command published in the GitHub repository SaigonXIII/evc (56 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 539 once invoked, about $0.0002 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-08-30.