tutor-ledger

tutor-ledger is a skill for Claude Code from nirholas/ai-tutor-mcp. It costs 57 tokens per session (589 once invoked), scanned A, original, Apache-2.0.

A ledger workflow for reading and closing a pay-as-you-learn tutoring session. It lists each answered question, its charge, and the session total, then produces an attested invoice.

In plain words
What is it for?
Loading a session's status and itemized charges, or closing the session and retrieving its invoice.
Why use it?
It gives a clear record of tutoring costs and seals the final record when the session ends.

Skill for Claude Code

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

Part of the tutor-mcp plugin — 1 skill, 1 MCP server shipped together

Good fit Loading a session's status and itemized charges, or closing the session and retrieving its invoice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nirholas/ai-tutor-mcp/tutor-ledger
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 nirholas/ai-tutor-mcp --skill tutor-ledger
Clone the repo
git clone --depth 1 https://github.com/nirholas/ai-tutor-mcp

Made for: Claude Code.

Or install tutor-mcp, the plugin that ships this one along with the rest of its 1 skill, 1 MCP server.

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 tutor-ledger

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nirholas/ai-tutor-mcp/tutor-ledger"><img src="https://agentmods.dev/badge/skills/nirholas/ai-tutor-mcp/tutor-ledger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 589 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.00057 $0.00589
Opus 5.5 $0.00023 $0.00236
Sonnet 5.5 $0.00011 $0.00118
Haiku 4.5 $0.00006 $0.00059

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

Security

Grade A, and why

tutor-ledger 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 today.

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/tutor-mcp/skills/tutor-ledger/SKILL.md · 40 lines

How it starts

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

Pay-As-You-Learn tutor ledger

The plugin starts @three-ws/tutor-mcp over stdio (npx -y @three-ws/tutor-mcp, bin tutor-mcp). It needs no key or signer. The questions themselves are billed elsewhere. This server only reads and seals the ledger.

Environment (both optional)

  • THREE_WS_BASE: API origin, default https://three.ws.
  • THREE_WS_TIMEOUT_MS: per-request timeout in milliseconds.

Tools

Tool Argument Endpoint
load_session sessionId (string, 1-100 characters) GET /api/tutor/session?sessionId=...
close_session sessionId (string, 1-100 characters) POST /api/tutor/session with { sessionId, action: "end" }

What comes back

load_session returns status (open or closed), questionCount, lineItems (one per answered question: question text, level, output tokens, cost in atomic units, a $x.xxxxxx string and a timestamp), totalAtomics and totalUsd. A session that is already closed also returns its invoice. An unknown sessionId returns an empty open session.

close_session seals the ledger. It sets status to closed, stamps a SHA-256 attestation over the line items and total, and returns closedAt, lineItems, totalAtomics, totalUsd and attestation. After closing, no more questions can be billed to that session. Closing is free and moves no funds, because the learner was already charged per question.

Worked example

Request: "How much has session calc-101 cost, and give me the invoice."

  1. Call load_session with { "sessionId": "calc-101" } and report questionCount and totalUsd.
  2. Closing is irreversible, so confirm with the user that they want the session sealed.
  3. Call close_session with { "sessionId": "calc-101" } and return the attestation with the itemized lineItems.

Notes

  • Do not invent a sessionId. Use the one the user gives you, since the id is how the ledger is addressed.
  • Closing cannot be undone. Always load first and confirm before closing.

Read the full file on GitHub · 40 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. today First seen · 40 lines · 57 tokens per session scan A f453ecadfee2

Subscribe to this mod's changes

tutor-ledger is a skill published in the GitHub repository nirholas/ai-tutor-mcp (9 stars, last pushed today), licensed Apache-2.0. It adds 57 tokens to every session and 589 once invoked, about $0.0002 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-11-11.

Related

tutor-ledger compared with skills from other repositories

tutor-ledger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tutor-ledgernirholas/ai-tutor-mcpSkill9todayApache-2.0A57Claude Code
fatqat-workbenchxi-zhao/OpenQuantumSkill72yesterdayMITA73Codex
local-rag-searchnkapila6/mcp-local-ragSkill1342mo agoMITA80Claude Code, Codex
blazemeter-usage-billingBlazemeter/bzm-mcpSkill2615d agoApache-2.0A67Claude Code, Codex
award-travelAwardTravelFinder/mcpSkill1211d agoMITA164Claude Code
find-my-bookings-and-balancesAwardTravelFinder/mcpSkill1211d agoMITA97Claude Code
cancel-or-change-awardAwardTravelFinder/mcpSkill1211d agoMITA69Claude Code