miyagi: Instructions file for Claude Code

CLAUDE.md

miyagi CLAUDE.md is an instructions file for Claude Code from c00p75/miyagi. It costs 399 tokens per session, scanned A, original, MIT.

A set of instructions for Miyagi, a tool that teaches people the ideas behind code written by an AI assistant. It tells contributors how to write lessons, explanations, questions, feedback, and interface text.

In plain words
What is it for?
Use it when developing or editing Miyagi's lessons, prompts, teaching cards, or learner-facing screens.
Why use it?
It keeps teaching content clear and tied to the learner's own project. It also requires technical terms, errors, outputs, and code lines to be explained.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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 miyagi CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/c00p75/miyagi/claude-md/github.svg)](https://agentmods.dev/instructions/c00p75/miyagi/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/c00p75/miyagi/claude-md"><img src="https://agentmods.dev/badge/instructions/c00p75/miyagi/claude-md/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 miyagi CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/c00p75/miyagi/claude-md"><img src="https://agentmods.dev/badge/instructions/c00p75/miyagi/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 399 This file is loaded in full into every session.
When invoked 399 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.00399 $0.00399
Opus 5.5 $0.00160 $0.00160
Sonnet 5.5 $0.00080 $0.00080
Haiku 4.5 $0.00040 $0.00040

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

Security

Grade A, and why

miyagi 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 10d 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 · 39 lines

What it actually says

Miyagi

Miyagi teaches people the ideas in the code their AI assistant writes. This repository holds the MCP server (src/) and the editor extension (vscode/).

Teaching standard: read before writing anything a learner will see

docs/TEACHING.md is the standard for all learner-facing content: cards, lessons, explanations, questions, feedback and interface text. Follow it when you:

  • write or change a prompt in vscode/src/prompts.ts or vscode/src/lesson.ts
  • write built-in lesson text (src/concepts.ts, vscode/src/toolCatalog.ts)
  • write interface copy in vscode/media/panel.js
  • design or mock up a card or screen

The short form the prompts use lives in vscode/src/standards.ts. Keep it in step with docs/TEACHING.md.

The essentials:

  • Explain through the learner's own project, starting from something they know.
  • The learner predicts or guesses before being told.
  • Explain every error, output and code line that is shown.
  • One idea at a time; define every term at Junior depth.
  • End each part with the point in one line, and have the learner say it back.
  • Lessons have eight fixed sections; only the depth (Junior, Mid, Senior) changes.
  • Never invent links, versions, files or line numbers.

Working here

  • Extension: cd vscode && npm run typecheck && npm test. Preview the panel in a browser with npm run harness.
  • Server: npm run typecheck && npm test in the repository root. One terminal test ("watch treats what was already there…") is timing-sensitive and can fail under full-suite load; it passes alone.
  • A model's reply is untrusted input: every prompt has a parser that returns a typed value or null.
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. 10d ago First seen · 39 lines · 399 tokens per session scan A aa237aa315e2

Subscribe to this mod's changes

miyagi CLAUDE.md is an instructions file published in the GitHub repository c00p75/miyagi (0 stars, last pushed 7d ago), licensed MIT. It adds 399 tokens to every session, about $0.0016 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-24.

Related

miyagi CLAUDE.md compared with instructions from other repositories

miyagi CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
miyagi CLAUDE.mdc00p75/miyagiInstructions file07d agoMITA399Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot