Borrowing it
Nothing to install: this file belongs to crossplane-contrib/crossplane-diff. 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/crossplane-contrib/crossplane-diff/main/CLAUDE.mdgit clone --depth 1 https://github.com/crossplane-contrib/crossplane-diffWrote 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/crossplane-contrib/crossplane-diff/claude-md)<a href="https://agentmods.dev/instructions/crossplane-contrib/crossplane-diff/claude-md"><img src="https://agentmods.dev/badge/instructions/crossplane-contrib/crossplane-diff/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.
<a href="https://agentmods.dev/instructions/crossplane-contrib/crossplane-diff/claude-md"><img src="https://agentmods.dev/badge/instructions/crossplane-contrib/crossplane-diff/claude-md.svg" alt="Reviewed on agentmods" width="80" 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.11341 | $0.11341 |
| Opus 5.5 | $0.04536 | $0.04536 |
| Sonnet 5.5 | $0.02268 | $0.02268 |
| Haiku 4.5 | $0.01134 | $0.01134 |
Grade A, and why
crossplane-diff 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 18d 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 — 728 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.
Development Commands
Building and Testing
# Build the binary for your platform
earthly +build
# Run unit and integration tests (fast, ~7s)
# Direct go test - fastest, immediate output
cd cmd/diff
go test ./...
# Via Earthly (ensures consistent environment, caches dependencies)
earthly +go-test
# Run a specific test
go test ./cmd/diff/diffprocessor -run TestCachedFunctionProvider -v
# Run a single test file
go test ./cmd/diff/diffprocessor/diff_processor_test.go -v
# Check test coverage
go test -cover ./cmd/diff/diffprocessor/... -coverprofile=/tmp/coverage.out
go tool cover -func=/tmp/coverage.out
# Pre-PR checks: linting, tests, generation (requires long timeout, can take several minutes)
earthly -P +reviewable
# Fetch Crossplane's CRDs at the crossplane version go.mod pins into cluster/gomod/crds. Required for unit and
# integration tests (run it in a fresh worktree, and again after a crossplane dependency bump). +go-test runs it.
earthly +fetch-crossplane-crds-gomod
# Fetch Crossplane's cluster directory for an image tag into cluster/<tag>. Only e2e uses it, because it must
# match the Crossplane image e2e runs.
earthly +fetch-crossplane-cluster --CROSSPLANE_IMAGE_TAG=main
# Tidy go modules
earthly +generate
Earthly Output Notes:
- By default, Earthly buffers stdout and stderr separately, which can cause interleaved output
- Use
2>&1to merge streams for chronological output:earthly +go-test 2>&1 | tee output.log
End-to-End Tests
E2E tests run against real kind clusters with Crossplane installed. They can take several minutes to complete.
# Full E2E matrix against multiple Crossplane versions (slow, runs serially)
earthly -P +e2e-matrix
# Single E2E test against specific Crossplane version
earthly +e2e --CROSSPLANE_IMAGE_TAG=main
# Overriding FLAGS replaces the default `-labels=crossplane-version=<tag>` filter, so pass it yourself when
# targeting release-1.20; otherwise main-only (v2) tests run against Crossplane v1 and fail
earthly -P +e2e --CROSSPLANE_IMAGE_TAG=release-1.20 --FLAGS="-labels=crossplane-version=release-1.20 -test.run ^TestDiffExistingClaim$"
# Run specific E2E test with verbose logging
earthly -P +e2e --FLAGS="-v=4 -test.run ^TestCompositionDiff"
# Debug E2E: stop on first failure and preserve kind cluster
earthly -i -P +e2e --FLAGS="-test.failfast -fail-fast -destroy-kind-cluster=false"
# Run E2E tests directly (without Earthly wrapper for easier debugging)
go test -c -o e2e ./test/e2e
./e2e -v=4 -test.v -test.failfast -destroy-kind-cluster=false -test.run ^TestSpecificTest
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.
- 18d ago Changed · +6 lines · +161 tokens per session 32576cbc5a12
- 19d ago Changed · +9 lines · +243 tokens per session 2438a314d420
- 21d ago Changed · +6 lines · +141 tokens per session cb4b31a638d1
- 23d ago Changed · +12 lines · +280 tokens per session 6e22252fd7a4
- 26d ago Changed · +45 lines · +928 tokens per session 885b5ef75928
- 27d ago Changed · +41 lines · +898 tokens per session 2739a6745261
- 1mo ago Changed · +7 lines · +141 tokens per session 3b12d7704636
- 1mo ago Changed · +8 lines · +201 tokens per session 34e695c44168
- 1mo ago Changed · +10 lines · +232 tokens per session c797bd319eb0
- 1mo ago First seen · 584 lines · 8,116 tokens per session scan A 69edb956bf47
crossplane-diff CLAUDE.md is an instructions file published in the GitHub repository crossplane-contrib/crossplane-diff (44 stars, last pushed 2d ago), licensed Apache-2.0. It adds 11,341 tokens to every session, about $0.0454 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-08-30.
crossplane-diff CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| crossplane-diff CLAUDE.mdcrossplane-contrib/crossplane-diff | Instructions file | 44 | 2d ago | Apache-2.0 | A | 11,341 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 1,907 | GitHub Copilot |