ConfluenceImportExport: Skill for Claude Code

.claude/skills/bump-normalization-epoch/SKILL.md

bump-normalization-epoch is a skill for Claude Code from YuriyEnshin/ConfluenceImportExport. It costs 139 tokens per session (1,237 once invoked), scanned A, original, MIT.

A maintenance procedure for a Confluence page exporter that normalizes page content before storing a hash, a value used to detect changes. It updates the version marker and expected test output when that normalization rule changes.

In plain words
What is it for?
Use it after changing XML or HTML normalization, entity handling, attribute sorting, whitespace rules, or removal of changing artifacts.
Why use it?
It prevents old stored hashes from being mistaken for evidence of real edits after the content format changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is YuriyEnshin/ConfluenceImportExport's own configuration. It tells Claude Code how to work on ConfluenceImportExport itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ConfluenceImportExport configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/YuriyEnshin/ConfluenceImportExport/master/.claude/skills/bump-normalization-epoch/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/YuriyEnshin/ConfluenceImportExport

Made for: Claude Code.

Wrote 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.

agentmods badge for bump-normalization-epoch

README.md
[![agentmods](https://agentmods.dev/badge/skills/yuriyenshin/confluenceimportexport/bump-normalization-epoch.svg)](https://agentmods.dev/skills/yuriyenshin/confluenceimportexport/bump-normalization-epoch)
Your own site
<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>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00139 $0.01237
Opus 5 $0.00069 $0.00619
Sonnet 5 $0.00028 $0.00247
Haiku 4.5 $0.00014 $0.00124

Measured 8d ago against content hash e9026484a67d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.claude/skills/bump-normalization-epoch/SKILL.md · 92 lines

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 ≠ CurrentEpoch is distrusted and the code safely falls back to mtime comparison (see ContentHasher.HasChanged). Bumping the epoch is what actually protects old markers — it makes them opt out instead of silently mismatching.
  • GoldenNormalized — the expected normalization of GoldenInput. A runtime self-check + the unit test ContentHasherTests.Golden_DefaultNormalizerReproducesContract fail 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

  1. Make your normalizer change first. Build.
  2. Run the golden tripwire — it should now fail:
    dotnet build tests/ConfluencePageExporter.Tests/ConfluencePageExporter.Tests.csproj
    tests/ConfluencePageExporter.Tests/bin/Debug/net10.0/ConfluencePageExporter.Tests.exe --filter-method "*Golden_DefaultNormalizerReproducesContract*"
    
    Shouldly prints the actual normalized string next to the expected one.
  3. Refresh GoldenNormalized to 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. ⚠️ GoldenNormalized contains a real U+00A0 non-breaking space (decoded from &nbsp; in GoldenInput), 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 touch GoldenInput — it's the fixed canary; only GoldenNormalized changes.
  4. Increment CurrentEpoch by 1.
  5. Add a history line to the CurrentEpoch doc-comment, matching the existing style (History: 1 = initial; 2 = strip ac:macro-id …; 3 = …), describing what the new epoch changes.
  6. Re-run ContentHasherTests (and the full suite). Golden passes; Xml_RegimeTrusted_AndEpochCurrent confirms the regime is trusted at the new epoch.
  7. 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 both CHANGELOG.md and CHANGELOG.en.md. A pure internal refactor with byte-identical output shouldn't have needed an epoch bump at all.

Read the full file on GitHub · 92 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. 8d ago First seen · 92 lines · 139 tokens per session scan A e9026484a67d

Subscribe to this mod's changes

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.

Related

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.

stevelr/anytype · 46 tokens

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…

sbroenne/mcp-server-powerpoint · 122 tokens

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.

wjxcom/wjx-ai-kit · 140 tokens

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…

CrestApps/CrestApps.AgentSkills · 125 tokens

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…

CrestApps/CrestApps.AgentSkills · 137 tokens

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…

CrestApps/CrestApps.AgentSkills · 149 tokens