emem-tokenise-files

emem-tokenise-files is a skill for Claude Code from Vortx-AI/emem. It costs 195 tokens per session (4,936 once invoked), scanned A, original, Apache-2.0.

A file-citation tool that splits a file into sections or byte ranges, hashes each part, and signs an index linking them to one root. It creates tokens for the whole file or an individual part so others can verify the part came from that file.

In plain words
What is it for?
Use it to create verifiable citations for long files, retrieve one section with its audit path, and check that the section matches the signed file index.
Why use it?
Quoting a small excerpt normally does not prove which file it came from or whether it was changed. These tokens provide a checkable link to the original file without requiring the entire file to be shared.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the emem plugin — 19 skills shipped together

Good fit Use it to create verifiable citations for long files, retrieve one section with its audit path, and check that the section matches the signed file index.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vortx-ai/emem/emem-tokenise-files
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.

Any agent
npx skills add Vortx-AI/emem --skill emem-tokenise-files
Clone the repo
git clone --depth 1 https://github.com/Vortx-AI/emem

Made for: Claude Code.

Or install emem, the plugin that ships this one along with the rest of its 19 skills.

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 emem-tokenise-files

README.md
[![agentmods](https://agentmods.dev/badge/skills/vortx-ai/emem/emem-tokenise-files/github.svg)](https://agentmods.dev/skills/vortx-ai/emem/emem-tokenise-files)
Your own site
<a href="https://agentmods.dev/skills/vortx-ai/emem/emem-tokenise-files"><img src="https://agentmods.dev/badge/skills/vortx-ai/emem/emem-tokenise-files/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.

agentmods 80×15 button for emem-tokenise-files

Your own site · 80×15
<a href="https://agentmods.dev/skills/vortx-ai/emem/emem-tokenise-files"><img src="https://agentmods.dev/badge/skills/vortx-ai/emem/emem-tokenise-files.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,936 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.00195 $0.04936
Opus 5.5 $0.00078 $0.01974
Sonnet 5.5 $0.00039 $0.00987
Haiku 4.5 $0.00019 $0.00494

Measured 4d ago against content hash a13d59120cad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

emem-tokenise-files 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/emem_crypto.py, scripts/tree_proof.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/emem/skills/emem-tokenise-files/SKILL.md · 323 lines

How it starts

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

emem-tokenise-files

Use it when You must cite one part of a large file and not send the file, or prove later that a part was in it.
You need A BLAKE3 tool that you trust, to hash the units of a file that you hold, or a public https URL for each unit. To publish: an Ed25519 key, as emem-sign-and-attest describes. To read: no key. To check offline: BLAKE3.
You get An emem:tree:<file_cid> token for the file, a #row=<i> token for each unit, and for each row its leaf, its audit path and the root.
Calls POST /v1/tree/path (the root over your rows), emem_memory_create (signed write), GET /v1/tree/<file_cid>?row=<i> (MCP emem_tree). For a unit at a public URL: emem_range_hash.

Network use. The commands in this skill send JSON to https://emem.dev and receive JSON from it. Where a step says so, they also receive an image or a raster file. https://emem.dev is the service that the MCP server of the plugin connects to. The commands do not execute what they download.

Signed in. emem_files does this for you. To keep a file on your machine, hash it there and send only the index (action: index), or import the note the offline encoder prints (action: import); emem signs the root and never receives the bytes. To let your agents read the text through emem, use action: add. Then read returns one section with its proof, and search finds sections. For a scanned page or a photo of text, action: ocr reads the text from the image and keeps it as a text file; the image is not kept, and OCR text can be wrong, so check it against the image. The steps below publish a tree in public under your own key, and need the publish scope.

A quoted part of a long file proves nothing about its origin. A tree gives that proof. You hash each unit, and the hashes fold into one root. You write the root into a note and sign the note. A reader then takes one unit, its audit path and your note. The reader checks that the unit was in the file you published. The reader does not see the other units.

Item What it is
pointer.v1 note A markdown index. It has one row for each unit (what, url or ·, offset, length, blake3) and a root: line in its front matter.
emem:tree:<file_cid> The whole tree. The file_cid is the content address of the note.
emem:tree:<file_cid>#row=<i> One unit.
GET /v1/tree/<file_cid>?row=<i or label> The leaf, the audit path and the root for that unit.

The tree has no signature of its own. Your Ed25519 signature over the whole note binds the root. The responder also checks the note. If the rows do not fold to the root: that the note states, it serves no path and returns 409 root_mismatch.

Read the full file on GitHub · 323 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago Changed · +2 lines a13d59120cad
  2. 18d ago Changed · +94 lines · +31 tokens per session be2a866a6015
  3. 22d ago Changed · +77 lines · +7 tokens per session 154516c24e6c
  4. 25d ago Changed · +13 lines 74c22d568351
  5. 1mo ago Changed · +1 lines 8353c75a104d
  6. 1mo ago Changed · +1 lines 917bca4191ce
  7. 2mo ago Changed · +2 lines 3b5374df3bb6
  8. 2mo ago First seen · 133 lines · 157 tokens per session scan A 82175a0bd2ea

Subscribe to this mod's changes

emem-tokenise-files is a skill published in the GitHub repository Vortx-AI/emem (91 stars, last pushed yesterday), licensed Apache-2.0. It adds 195 tokens to every session and 4,936 once invoked, about $0.0008 per session on Opus 5.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-09-29.

Related

emem-tokenise-files compared with skills from other repositories

emem-tokenise-files next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
emem-tokenise-filesVortx-AI/ememSkill91yesterdayApache-2.0A195Claude Code
pdfMemTensor/memmy-agentSkill2.4kyesterdayMITB56Claude Code, Codex
akf-trust-metadata-v2diegosouzapw/awesome-omni-skillsSkill1814mo agoMITA100Claude Code, Codex
akf-trust-metadatalingxling/awesome-skills-cnSkill3421mo agoMITA60Claude Code
pdf-fillgetskillseal/skillsealSkill23mo agoMITA11Claude Code, Codex
akf-trust-metadatadiegosouzapw/awesome-omni-skillsSkill1814mo agoMITA98Claude Code, Codex
akf-trust-metadataDorianGallo/antigravity-awesome-skills-localSkill2todayMITA60Claude Code