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.
npx agentmods add instructions/zircote/markdown-lsp/claude-mdgit clone --depth 1 https://github.com/zircote/markdown-lspWrote 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.
[](https://agentmods.dev/instructions/zircote/markdown-lsp/claude-md)<a href="https://agentmods.dev/instructions/zircote/markdown-lsp/claude-md"><img src="https://agentmods.dev/badge/instructions/zircote/markdown-lsp/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00282 | $0.00282 |
| Opus 5 | $0.00141 | $0.00141 |
| Sonnet 5 | $0.00056 | $0.00056 |
| Haiku 4.5 | $0.00028 | $0.00028 |
Grade A, and why
markdown-lsp 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 3d 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.
This is a copy
100% identical to lsp-tools CLAUDE.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
CLAUDE.md (project context)
This repository is a template for building Claude Code automations and MCP servers.
Repo goals
- Be easy to fork.
- Provide a sane default MCP server in TypeScript.
- Provide examples of Claude Code commands and hooks.
Key files
.mcp.json: Claude Code MCP server configuration (project-scoped)..claude/settings.json: Hook configuration..claude/commands/: Custom commands that show up as/.....claude/hooks/: Hook scripts.src/index.ts: MCP server entrypoint.
Development conventions
- Prefer minimal diffs.
- Keep scripts safe and portable.
- Keep documentation in sync (README + skills files).
When adding tools
- Use
zodschemas. - Return text via
{ content: [{ type: "text", text: "..." }] }. - Avoid side effects by default; require explicit user intent for destructive operations.
When adding hooks
- Hooks are configured in
.claude/settings.json. - Keep hooks fast and deterministic.
- Prefer blocking only high-confidence dangerous operations.
Docs:
- Hooks: https://code.claude.com/docs/en/hooks
- Slash commands: https://code.claude.com/docs/en/slash-commands
- MCP: https://code.claude.com/docs/en/mcp
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.
- 3d ago First seen · 41 lines · 282 tokens per session scan A fbb4fa67ba4d
markdown-lsp CLAUDE.md is an instructions file published in the GitHub repository zircote/markdown-lsp (3 stars, last pushed 1mo ago), licensed MIT. It adds 282 tokens to every session, about $0.0014 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to lsp-tools CLAUDE.md, differing in 0 lines, and is treated as a copy.
Other instructions, from other repositories
csharp-lsp CLAUDE.md
Instructions for zircote/csharp-lsp, covering claude.md, project overview, setup, key files and conventions.
svelte-lsp CLAUDE.md
Instructions for zircote/svelte-lsp, covering claude.md, project overview, setup, global lsp server and project development tools.
cpp-lsp CLAUDE.md
Instructions for zircote/cpp-lsp, covering claude.md, project overview, setup, key files and conventions.
python-lsp CLAUDE.md
Instructions for zircote/python-lsp, covering claude.md, project overview, setup, key files and hook system.
go-lsp CLAUDE.md
Instructions for zircote/go-lsp, covering claude.md, project overview, setup, key files and hook system.
yaml-lsp CLAUDE.md
Instructions for zircote/yaml-lsp, covering claude.md, project overview, setup, key files and conventions.