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/patchorbit/domscribe/claude-mdgit clone --depth 1 https://github.com/patchorbit/domscribeWhat 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.01823 | $0.01823 |
| Opus 5 | $0.00911 | $0.00911 |
| Sonnet 5 | $0.00365 | $0.00365 |
| Haiku 4.5 | $0.00182 | $0.00182 |
Grade A, and why
domscribe 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 2d 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 — 153 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. Detailed conventions, testing patterns, and architecture decisions are in .claude/rules/.
What is Domscribe?
Domscribe is a pixel-to-code development tool that lets developers click elements in running web apps, captures runtime context (props, state, events), and maps them to exact source locations for handoff to coding agents via MCP.
How to Work on This Codebase
Read before writing. Understand the existing patterns in a package before adding code. Match the style of what's already there.
Core principles:
- Schema-first — Define Zod schemas, derive types with
z.infer<>. Never hand-write interfaces that duplicate schema shapes. - Named exports only — No default exports. Barrel
index.tsfiles define the public API. - Module boundaries are enforced — Check
tagsinproject.jsonbefore adding cross-package imports. If the boundary disallows it, rethink the design — don't just add a tag. - ESM with
.jsextensions — All imports use.jsextension (compiled output). Module system isnodenext. - Constructor DI — Dependencies injected via
private readonlyconstructor params. No service locators or global containers.
Testing:
- Unit tests mock dependencies. Use
vi.mock()andvi.fn(). Constructor DI makes this clean. - Don't spy on globals (
console, etc.) — test behavior, not log output. - Test-fixtures is the black-box layer — integration/e2e tests there have zero
@domscribe/*imports. They build real apps and validate outputs. - Relay is the exception — its unit tests use real services with temp directories (integration-style).
Don't over-engineer. Match the complexity of existing code. No premature abstractions, no speculative features, no redundant tests.
Commands
# Install dependencies (pnpm, NOT npm)
pnpm install
# Build, lint, and test all packages (excludes test-fixtures)
pnpm build:all
# Build only affected packages
pnpm build:affected
# Single package operations
nx build domscribe-core
nx test domscribe-core
nx lint domscribe-core
nx typecheck domscribe-core
# Run specific tests
nx test domscribe-core -- --testPathPattern=annotation
nx test domscribe-core -- -t "test name"
# Integration tests (test-fixtures package)
nx integration domscribe-test-fixtures
# E2E tests (requires Verdaccio + published packages)
nx e2e domscribe-test-fixtures
# Skip env vars: SKIP_SETUP=1, SKIP_PUBLISH=1, SKIP_INSTALL=1
# Local registry pipeline
pnpm release:local # build → version → sync-dist → publish to Verdaccio
pnpm pipeline:full # publish → install fixtures → integration + e2e
pnpm pipeline:e2e # publish → install fixtures → e2e only
# Verdaccio (local npm registry on port 4873)
npx verdaccio --config .verdaccio/config.yml --listen 4873
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.
- 2d ago First seen · 153 lines · 1,823 tokens per session scan A bc9def09dd3c
domscribe CLAUDE.md is an instructions file published in the GitHub repository patchorbit/domscribe (187 stars, last pushed 23d ago), licensed MIT. It adds 1,823 tokens to every session, about $0.0091 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.
Other instructions, from other repositories
proctor CLAUDE.md
Claude Code instructions for catfish-1234/proctor, covering proctor: project guide, what this is, rules for anyone (or anything) working in this repo, tech stack and project structure.
community CLAUDE.md
Claude Code instructions for nowledge-co/community, covering nowledge community — agent guidelines, registry, universal install contract — skill.md, behavioral guidance and plugin development.
ai-plugin GEMINI.md
Gemini CLI instructions for PostHog/ai-plugin, covering posthog extension, available tool categories and guidelines.
arkon-vault-connector GEMINI.md
Gemini CLI instructions for Havix0101/arkon-vault-connector: Arkon Vault is the shared continuity layer for this user's AI work.
Agentkey AGENTS.md
Instructions for chainbase-labs/Agentkey, covering agents.md, what this repo is, directory structure, key commands and test a local edit against every detected agent.
bookstack-mcp CLAUDE.md
Instructions for ttpears/bookstack-mcp, covering claude.md, project overview, build & development commands, architecture and configuration.