Borrowing it
Nothing to install: this file belongs to julianoczkowski/mcp-modus. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/julianoczkowski/mcp-modus/main/CLAUDE.mdgit clone --depth 1 https://github.com/julianoczkowski/mcp-modusWrote 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/julianoczkowski/mcp-modus/claude-md)<a href="https://agentmods.dev/instructions/julianoczkowski/mcp-modus/claude-md"><img src="https://agentmods.dev/badge/instructions/julianoczkowski/mcp-modus/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.1 | $0.01467 | $0.01467 |
| Opus 5 | $0.00733 | $0.00733 |
| Sonnet 5 | $0.00293 | $0.00293 |
| Haiku 4.5 | $0.00147 | $0.00147 |
Grade A, and why
mcp-modus 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 7d 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.
How it starts
The opening of the file, as written. The whole thing — 174 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 Overview
MCP Modus is a Model Context Protocol (MCP) server that provides AI assistants with access to Modus Web Components documentation. It runs as a standalone Node.js process that communicates via stdio using JSON-RPC, serving documentation from pre-bundled files.
Development Commands
Build & Development
# Build TypeScript to JavaScript (required before testing/running)
npm run build
# Watch mode for development (auto-rebuild on changes)
npm run watch
# Test the server (runs the built server via dist/index.js)
npm test
# Update documentation from GitHub (downloads latest docs)
npm run update-docs
Testing During Development
# After making changes to src/index.ts:
npm run build && npm test
Architecture
Core Structure
The codebase implements a single-file MCP server with three main responsibilities:
-
Documentation Loading (
src/index.ts:89-160)- Loads markdown files from
docs/(49 components),rules/(6 design rules), andsetup/(5 guides) - Parses filenames to extract component names and categories
- Stores in-memory arrays:
this.docs,this.rules,this.setup - Path resolution handles both development (
dist/../docs) and production (dist/docs) layouts
- Loads markdown files from
-
MCP Tool Registration (
src/index.ts:162-350)- Registers 10 MCP tools via
ListToolsRequestSchemahandler - Handles tool invocations via
CallToolRequestSchemahandler - Tools are categorized: 4 component tools, 3 design rule tools, 3 setup tools
- Registers 10 MCP tools via
-
Tool Implementations (
src/index.ts:352-757)- Search tools use case-insensitive string matching across content
- Get tools use direct lookups with normalized names
- List tools organize data by categories extracted from markdown frontmatter
Communication Flow
IDE/Claude Desktop → stdio (JSON-RPC) → MCP Server (Node.js) → in-memory docs → stdio (JSON-RPC) → IDE/Claude Desktop
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.
- 7d ago First seen · 174 lines · 1,467 tokens per session scan A acd45af33829
mcp-modus CLAUDE.md is an instructions file published in the GitHub repository julianoczkowski/mcp-modus (4 stars, last pushed 2mo ago), licensed MIT. It adds 1,467 tokens to every session, about $0.0073 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-31.
Other instructions, from other repositories
create-trimble-app copilot-instructions.md
Copilot instructions for julianoczkowski/create-trimble-app, covering modus react app - copilot instructions, commands, design system (9 colors only), component patterns and critical bugs.
create-trimble-app styles.instructions.md
Instructions for julianoczkowski/create-trimble-app, covering css and design system patterns, color variables, custom border utilities, custom opacity utilities and forbidden patterns.
create-trimble-app typescript.instructions.md
Instructions for julianoczkowski/create-trimble-app, covering typescript patterns for modus components, event type casting, common event types, component ref types and modal ref pattern.
create-trimble-app components.instructions.md
Instructions for julianoczkowski/create-trimble-app, covering modus wrapper component patterns, event handling pattern, state management, props pattern and modal implementation.
create-trimble-app demos.instructions.md
Instructions for julianoczkowski/create-trimble-app, covering demo page patterns, page structure, demo section pattern, styling rules and interactive examples.
create-trimble-app pages.instructions.md
Instructions for julianoczkowski/create-trimble-app, covering application page patterns, page structure, layout patterns, navigation and styling rules.