shiki: Instructions file for Claude Code

CLAUDE.md

shiki CLAUDE.md is an instructions file for Claude Code from sazardev/shiki. It costs 44,176 tokens per session, scanned A, original, MIT.

Repository instructions for Shiki, a Rust note-taking app with a terminal interface, covering its project structure, commands, versioning, and documentation website.

In plain words
What is it for?
Use them when changing Shiki's core, configuration, terminal interface, command-line app, documentation, or workspace-wide Rust code. They also point to the design specification and test layout.
Why use it?
They give a coding agent the project's intended design and the commands needed to build, check, format, lint, and test it consistently.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sazardev/shiki/claude-md"><img src="https://agentmods.dev/badge/instructions/sazardev/shiki/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44,176 This file is loaded in full into every session.
When invoked 44,176 The same file — it is already loaded in full.
Security scan A 1 finding. 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.44176 $0.44176
Opus 5.5 $0.17670 $0.17670
Sonnet 5.5 $0.08835 $0.08835
Haiku 4.5 $0.04418 $0.04418

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

Security

Grade A, and why

shiki CLAUDE.md scanned grade A with 1 finding 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 5d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`whisper-blas-bin-*.zip`), with the model (`ggml-*.bin`) downloaded once via `curl`/`wget` from
CLAUDE.md · 2,112 lines

How it starts

The opening of the file, as written. The whole thing — 2,112 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.

Project

shiki (私記) is a TUI note-taking app written in Rust, inspired by Yazi's three-pane layout and modal navigation. Notes are plain Markdown files with YAML frontmatter, organized into "notebooks" (directories, each its own git repo). Full design spec, motivation, keybindings, config format, and included themes are documented in IDEA.md — read it before making architectural changes, since it's the source of truth for intended behavior (layout, CLI commands, config schema, etc).

Commands

cargo build --workspace              # build everything
cargo check --workspace              # fast type-check (use this while iterating)
cargo clippy --workspace --all-targets -- -D warnings   # lint; CI enforces -D warnings, so match it locally
cargo fmt --all                      # format (run after editing, before checking clippy)
cargo run -p shiki-cli -- <args>     # run the binary, e.g. `-- new "titulo"`, `-- daily`, no args launches the TUI
cargo test -p shiki-tui panel_drawer::tests   # single module, e.g. while iterating on one file
cargo test -p shiki-tui clicking_the_button_row   # single test by (substring of) name
cargo audit                          # CI runs this too; ignore list is .cargo/audit.toml

There are 504 #[test]s: 242 in shiki-core, 27 in shiki-config, 196 in shiki-tui, 33 in shiki-cli, plus 1 in shiki-native-host and 5 in shiki-desktop (shiki-mcp has none yet — its tool bodies are thin wrappers over already-tested shiki-core logic, verified instead by a manual stdio protocol smoke test) — cargo test --workspace is green. They're all inline #[cfg(test)] modules inside the source files (no tests/ dirs, no #[ignore], no fixture setup), so the pattern set by panel_drawer::tests (shiki-tui/src/panel_drawer.rs) — covering drawer_hit_at's mouse coordinate math as a plain function of numbers, not &App — is the norm. When adding tests, put them as #[cfg(test)] modules in the relevant file; shiki-core/shiki-config have no TUI/terminal dependency, so they're the easiest to unit test. For shiki-tui, prefer designing the function to not need &App in the first place (as drawer_hit_at does) over constructing a full App in a test.

Read the full file on GitHub · 2,112 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. 5d ago Changed · +5 lines · +127 tokens per session fb15ebd919f0
  2. 1mo ago Changed f36a539a5a65
  3. 1mo ago Changed · +41 lines · +959 tokens per session fd169e5d19e3
  4. 1mo ago Changed · +230 lines · +4,759 tokens per session a96a1f06daee
  5. 1mo ago Changed · +18 lines · +424 tokens per session 15f0ca15ee15
  6. 1mo ago Changed · +10 lines · +225 tokens per session ff85b807ee34
  7. 2mo ago First seen · 1,808 lines · 37,682 tokens per session scan A 3c1827d2f109

Subscribe to this mod's changes

shiki CLAUDE.md is an instructions file published in the GitHub repository sazardev/shiki (335 stars, last pushed yesterday), licensed MIT. It adds 44,176 tokens to every session, about $0.1767 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

shiki CLAUDE.md compared with instructions from other repositories

shiki CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
shiki CLAUDE.mdsazardev/shikiInstructions file335yesterdayMITA44,176Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode