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.
git clone --depth 1 https://github.com/Dhirenderchoudhary/unmarkkWrote 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/rules/dhirenderchoudhary/unmarkk/unmark-text-hygiene)<a href="https://agentmods.dev/rules/dhirenderchoudhary/unmarkk/unmark-text-hygiene"><img src="https://agentmods.dev/badge/rules/dhirenderchoudhary/unmarkk/unmark-text-hygiene/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/rules/dhirenderchoudhary/unmarkk/unmark-text-hygiene"><img src="https://agentmods.dev/badge/rules/dhirenderchoudhary/unmarkk/unmark-text-hygiene.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.00310 | $0.00310 |
| Opus 5 | $0.00155 | $0.00155 |
| Sonnet 5 | $0.00062 | $0.00062 |
| Haiku 4.5 | $0.00031 | $0.00031 |
Grade A, and why
unmark-text-hygiene 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 11d 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
Text hygiene before publishing
Before finalising substantial prose a reader will see, run the deterministic invisible-character pass over it.
unmark inspect FILE # see what is there
unmark clean FILE -o OUT # remove it
Scope and rules:
- Apply to articles, documentation, reports, emails, product copy, UI strings, Markdown and HTML prose. Skip code-only tasks — format the code instead.
- Only for content the user owns or is authorised to process.
- Preserve every fact, number, name, citation and required disclosure.
- Never modify code blocks, commands, paths, URLs, identifiers, API names, formulas or verbatim quotations.
- Pass
--keep-spaceswhen non-breaking spaces are doing layout work. - Do not use
--aggressive,--nfkcor--strip-emoji-glueunless the user asks and accepts the effect on multilingual text, emoji and typography.
When reporting, separate what is verified from what is not:
- Verified: invisible characters removed, with counts. Re-inspectable.
- Attempted: prose rewritten, if a rewrite happened.
- Not established: detector evasion, human authorship, or removal of a keyed statistical watermark.
Never compress those into "cleaned", and never claim the result is undetectable or proves who wrote it.
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.
- 11d ago First seen · 37 lines · 310 tokens per session scan A 06313a203f9b
unmark-text-hygiene is a cursor rule published in the GitHub repository Dhirenderchoudhary/unmarkk (6 stars, last pushed 11d ago), licensed MIT. It adds 310 tokens to every session, about $0.0015 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-31.
Other cursor rules, from other repositories
prefer-assertions-over-defensive-checks
Prefer assertions over defensive checks when data is guaranteed to be valid.
as-contract-cast-smell
// ❌ WRONG — bypasses the family ContractSerializer seam const contract = JSON.parse(raw) as Contract; const contract = JSON.parse(raw) as Contract .
no-family-vocabulary-in-framework
The framework domain (packages/1-framework) carries no family- or target-specific vocabulary — types, fields, hooks, or strategy values. Enforced by the no-family-vocabulary Biome plugin plus lint:framework-vocabulary.
use-contract-ir-factories
Use factory functions for creating ContractIR objects instead of manual object creation.
no-barrel-files
Avoid barrel files and unnecessary re-exports.
interface-factory-pattern
Interface-based design with factory functions (keep classes private).