Borrowing it
Nothing to install: this file belongs to YuriyEnshin/ConfluenceImportExport. 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/YuriyEnshin/ConfluenceImportExport/master/.claude/skills/bump-normalization-epoch/SKILL.mdgit clone --depth 1 https://github.com/YuriyEnshin/ConfluenceImportExportWrote 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/skills/yuriyenshin/confluenceimportexport/bump-normalization-epoch)<a href="https://agentmods.dev/skills/yuriyenshin/confluenceimportexport/bump-normalization-epoch"><img src="https://agentmods.dev/badge/skills/yuriyenshin/confluenceimportexport/bump-normalization-epoch.svg" alt="Measured on agentmods" 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.00139 | $0.01237 |
| Opus 5 | $0.00069 | $0.00619 |
| Sonnet 5 | $0.00028 | $0.00247 |
| Haiku 4.5 | $0.00014 | $0.00124 |
Grade A, and why
bump-normalization-epoch 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Bump the normalization contract (epoch + golden)
Why this exists
The normalized storage format of each page is hashed (SHA-256) and stored in its
.id* marker (h = hash, ne = epoch). On the next sync, ContentHasher
recomputes the hash and compares — that's how a real local edit is told apart
from an mtime-only touch (editor re-save, pretty-print, copy, touch, VCS
checkout), eliminating false "changed locally" conflicts.
That only holds while the recipe is stable. If you change normalization so
its output differs, every marker written under the old recipe now hashes
differently → the tool either cries wolf on untouched pages or misses genuine
edits. The guard is a two-part contract in
NormalizationContract:
CurrentEpoch— stamped into new markers. A marker whose epoch ≠CurrentEpochis distrusted and the code safely falls back to mtime comparison (seeContentHasher.HasChanged). Bumping the epoch is what actually protects old markers — it makes them opt out instead of silently mismatching.GoldenNormalized— the expected normalization ofGoldenInput. A runtime self-check + the unit testContentHasherTests.Golden_DefaultNormalizerReproducesContractfail the build the instant normalized output drifts. That red test is the intended tripwire that sends you here.
When to run
Any change that can alter normalized output: XmlContentNormalizer,
RegexContentNormalizer, the HtmlEntities table, attribute-sort / whitespace /
volatile-artifact-stripping rules, the hash algorithm, or switching the active
IContentNormalizer.
Steps
- Make your normalizer change first. Build.
- Run the golden tripwire — it should now fail:
Shouldly prints the actual normalized string next to the expected one.dotnet build tests/ConfluencePageExporter.Tests/ConfluencePageExporter.Tests.csproj tests/ConfluencePageExporter.Tests/bin/Debug/net10.0/ConfluencePageExporter.Tests.exe --filter-method "*Golden_DefaultNormalizerReproducesContract*" - Refresh
GoldenNormalizedto the new normalized output. Two ways:- Derive it by hand — apply your new rule to the existing
GoldenNormalized(usually the cleaner path, since the change is known and local); or - Copy the actual string from the failing assertion.
⚠️
GoldenNormalizedcontains a real U+00A0 non-breaking space (decoded from inGoldenInput), not an ASCII space — preserve it exactly. Console copies of nbsp are error-prone, so prefer deriving by hand and eyeball that single character. Normally you do not touchGoldenInput— it's the fixed canary; onlyGoldenNormalizedchanges.
- Derive it by hand — apply your new rule to the existing
- Increment
CurrentEpochby 1. - Add a history line to the
CurrentEpochdoc-comment, matching the existing style (History: 1 = initial; 2 = strip ac:macro-id …; 3 = …), describing what the new epoch changes. - Re-run
ContentHasherTests(and the full suite). Golden passes;Xml_RegimeTrusted_AndEpochCurrentconfirms the regime is trusted at the new epoch. - CHANGELOG if user-visible. An epoch bump that fixes phantom "local changed"
diffs is user-facing (e.g. epoch 2 shipped in v2.12.1 to fix Confluence
canonicalization noise) — add a
### Исправлено/### Измененоentry to[Unreleased]in bothCHANGELOG.mdandCHANGELOG.en.md. A pure internal refactor with byte-identical output shouldn't have needed an epoch bump at all.
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.
- 8d ago First seen · 92 lines · 139 tokens per session scan A e9026484a67d
bump-normalization-epoch is a skill published in the GitHub repository YuriyEnshin/ConfluenceImportExport (5 stars, last pushed 26d ago), licensed MIT. It adds 139 tokens to every session and 1,237 once invoked, about $0.0007 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 skills, from other repositories
anyr
Use when reading, searching, creating, or updating Anytype documents (objects, spaces, types, properties, files, chats) from the command line with the configured anyr CLI, including JSON output patterns for scripting.
powerpoint-cli
PowerPoint CLI automation skill for Windows presentations. Use when a coding agent needs token-efficient, scriptable, or unattended PowerPoint automation via pptcli commands. Best for CI/CD, scheduled jobs, batch processing, PowerShell workflows, and bulk deck edits. Supports slides, shapes, text frames, tables…
wjx-survey-ppt
Instructions for turning Wenjuanxing questionnaire responses into a presentation report. Wenjuanxing, also called 问卷星, is a platform for creating surveys and collecting answers.
orchardcore-ai-documents
Skill for configuring AI Documents in Orchard Core with CrestApps modules. Covers document upload, text extraction, chunking, vector indexing, and Retrieval-Augmented Generation (RAG) for AI chat. Supports PDF, OpenXml (docx, xlsx, pptx), and plain-text formats with file-system or Azure Blob storage and Azure AI…
orchardcore-ai-documents-extractors
Skill for adding PDF and OpenXml text extraction to CrestApps Orchard Core AI Documents. Covers PDF, DOCX, XLSX, PPTX, processor registration, supported file types, upload processing, and extraction troubleshooting. Use this skill when requests mention AI Documents extractors, PDF document processing, OpenXml document…
orchardcore-content-transfer
Skill for bulk content import and export in Orchard Core using CrestApps Content Transfer. Covers CSV and Excel formats, transfer templates, mappings, background jobs, chunked uploads, filters, custom file-format providers, and content-type transfer settings. Use this skill when requests mention Orchard Core bulk…