claude-tutor: Instructions file for Claude Code

CLAUDE.md

claude-tutor CLAUDE.md is an instructions file for Claude Code from kirilxd/claude-tutor. It costs 1,046 tokens per session, scanned A, original, MIT.

A guide for Claude Tutor, a Claude Code plugin that teaches through lessons, quizzes, spaced review, and a dashboard. It explains the plugin’s skills, hooks, data structures, commands, and tests.

In plain words
What is it for?
Use it to work on learning, quiz, review, resource, or dashboard features and to run the relevant hook, trigger, functional, or dashboard tests.
Why use it?
It shows how the instructional workflows and enforcement code fit together, reducing the chance of changing one layer without checking the others.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

This is kirilxd/claude-tutor's own configuration. It tells Claude Code how to work on claude-tutor 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 claude-tutor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kirilxd/claude-tutor. 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/kirilxd/claude-tutor/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/kirilxd/claude-tutor

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 claude-tutor CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kirilxd/claude-tutor/claude-md.svg)](https://agentmods.dev/instructions/kirilxd/claude-tutor/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kirilxd/claude-tutor/claude-md"><img src="https://agentmods.dev/badge/instructions/kirilxd/claude-tutor/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,046 This file is loaded in full into every session.
When invoked 1,046 The same file — it is already loaded in full.
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.01046 $0.01046
Opus 5 $0.00523 $0.00523
Sonnet 5 $0.00209 $0.00209
Haiku 4.5 $0.00105 $0.00105

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

Security

Grade A, and why

claude-tutor CLAUDE.md 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.md · 73 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What This Is

A Claude Code plugin that turns Claude into a personal tutor with spaced repetition. Users install it via the plugin marketplace and interact through slash commands (/learn, /quiz, /review, /resources, /dashboard) or natural language.

Testing

node tests/test-hooks.js                              # Hook unit tests (27 tests, instant)
./evals/run-trigger-eval.sh                           # Natural language trigger routing (17 prompts)
./evals/run-functional-eval.sh                        # End-to-end workflows (21 checks)
node skills/dashboard/server/tests/dashboard.test.js  # Dashboard tests (30 scenarios)

Run hook tests after any change to hooks/enforce-paths.js or data schemas.

Architecture

The plugin has three layers that work independently:

Skills (skills/*/SKILL.md) — Markdown instructions that Claude follows. Not code. Each skill defines a multi-phase workflow (e.g., learn: clarify scope → research → generate plan → save). Skills reference data paths and schemas but don't enforce them.

Hooks (hooks/) — Node.js scripts that enforce data integrity at write time:

  • enforce-paths.js — PreToolUse hook on Write/Edit. Blocks wrong paths, schema leakage between plan/progress files, unknown fields, and score format errors. This is the safety net for when Claude invents field names.
  • session-start.js — SessionStart hook. Reads spaced repetition data and prints overdue review reminders.

Dashboard (skills/dashboard/server/) — Express server at localhost:3847. Reads/writes the same JSON files as the CLI. Has its own validation (validate.js) that mirrors the hook logic plus SM-2 algorithm implementation.

Data Layout

All user data lives in ~/.claude/learning/ (absolute path, never relative):

Path Purpose Allowed top-level fields
~/.claude/learning/index.json Topic registry topics (map of slug → metadata)
~/.claude/learning/profile.json Learner preferences learningStyle, background, createdTopics
~/.claude/learning/plans/<slug>-<date>.json Learning plans topic, slug, created, level, goal, depth, timeCommitment, modules, totalEstimatedTime, diagnostic
~/.claude/learning/progress/<slug>.json Quiz progress topic, quizzes, weakAreas, strongAreas, overallScore, spacedRepetition

Read the full file on GitHub · 73 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 · 73 lines · 1,046 tokens per session scan A 3aa20bf1e7d0

Subscribe to this mod's changes

claude-tutor CLAUDE.md is an instructions file published in the GitHub repository kirilxd/claude-tutor (123 stars, last pushed 1mo ago), licensed MIT. It adds 1,046 tokens to every session, about $0.0052 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-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens