Borrowing it
Nothing to install: this file belongs to lowtidebuild/contract-review. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lowtidebuild/contract-review/main/.claude/commands/export-clean.mdgit clone --depth 1 https://github.com/lowtidebuild/contract-reviewWrote 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.
[](https://agentmods.dev/commands/lowtidebuild/contract-review/export-clean)<a href="https://agentmods.dev/commands/lowtidebuild/contract-review/export-clean"><img src="https://agentmods.dev/badge/commands/lowtidebuild/contract-review/export-clean/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.
<a href="https://agentmods.dev/commands/lowtidebuild/contract-review/export-clean"><img src="https://agentmods.dev/badge/commands/lowtidebuild/contract-review/export-clean.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00306 |
| Opus 5.5 | $0.00000 | $0.00122 |
| Sonnet 5.5 | $0.00000 | $0.00061 |
| Haiku 4.5 | $0.00000 | $0.00031 |
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 1mo 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.
What it actually says
Export External-Clean DOCX
Strip all [INTERNAL]-prefixed comments from a redlined DOCX to produce a version safe for counterparty delivery.
$ARGUMENTS
Process
-
Locate the file: Source
.claude/scripts/workspace-paths.sh. If no file is specified, scan$CRA_OUTPUT_DIRfirst and then any distinct legacy path in$CRA_OUTPUT_DIRSfor redlined DOCX files. Ask the user which one to process if multiple files exist. If only one exists, use it. -
Strip internal comments:
- Unpack the DOCX into raw XML
- Remove all comment entries whose text starts with
[INTERNAL] - Remove corresponding markers from
document.xml, headers, footers, and related threaded-comment metadata parts - Preserve all tracked changes and
[EXTERNAL]comments
-
Repack + scan: Reassemble the DOCX and run
scan-docx-for-internal-markers.pyusing.claude/policies/external-clean-policy.yaml. -
Verify: If the scanner reports any violation, delete/do not deliver the external-clean DOCX and report the part name plus snippet. Otherwise save as
{original_name}_clean.docxbeside the selected source file and report the number of internal comments stripped.
This is a safety-critical operation — the output file must contain zero internal strategy, fallback positions, or negotiation leverage information.
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.
- 1mo ago First seen · 24 lines · 0 tokens per session scan A 0a425d701234
export-clean is a command published in the GitHub repository lowtidebuild/contract-review (41 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 306 tokens. 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.
Other commands, from other repositories
/accreditation-track
Seguimiento de acreditaciones sanitarias (JCI, EFQM, ISO 9001, ISO 15189). Mapea requisitos a evidencias, detecta gaps, genera reportes de cumplimiento. Prepara auditorías y evaluaciones de terceros.
sign
Sign a PDF — stamp a signature block (name + date, or a PNG signature) on a signed copy.
pipeline-minutar-pdf
Pipeline completo de sentença judicial a partir de PDF (conversão, linha-tempo, relatório, análise, fundamentação, merge).
noirdoc-redact
Redact a local file via noirdoc, placing the clean copy in .noirdoc/cache/.
legal-risk
Analyze sourced covenant clauses and merger-agreement MAC/MAE language with page-level quotes and risk classification.
lawsuit-analysis
A command that analyses legal case documents and produces a structured, self-contained HTML report. It can organise people, claims, responses, evidence, and events from documents such as complaints or briefs.