tutor-ledger
БесплатноБез исполняемых скриптовНе проверенRead a three.ws Pay-As-You-Learn tutoring session's itemized running tab and close it for an attested invoice, using the tutor-mcp tools. Use when asked what…
от nirholas★ 289 звёзд на 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, defaulthttps://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."
- Call
load_sessionwith{ "sessionId": "calc-101" }and reportquestionCountandtotalUsd. - Closing is irreversible, so confirm with the user that they want the session sealed.
- Call
close_sessionwith{ "sessionId": "calc-101" }and return theattestationwith the itemizedlineItems.
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.
Установить tutor-ledger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tutor-ledger?
Read a three.ws Pay-As-You-Learn tutoring session's itemized running tab and close it for an attested invoice, using the tutor-mcp tools. Use when asked what a learning session has cost so far or to finalize and invoice a session.
Как установить скилл tutor-ledger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tutor-ledger запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic