jsonschema CLAUDE.md

jsonschema CLAUDE.md is an instructions file for coding agents from kaptinlin/jsonschema. It costs 2,208 tokens per session, scanned A, original, MIT.

A project instruction file for kaptinlin/jsonschema, a Go library that checks data against JSON Schema rules.

In plain words
What is it for?
Use it when working on this repository, especially for validation behavior, documentation, tests, linting, or benchmarks.
Why use it?
It gives coding agents the project’s commands, workflow rules, and guidance for changing and testing the library safely.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/kaptinlin/jsonschema/claude-md
Clone the repo
git clone --depth 1 https://github.com/kaptinlin/jsonschema

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kaptinlin/jsonschema/claude-md.svg)](https://agentmods.dev/instructions/kaptinlin/jsonschema/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/kaptinlin/jsonschema/claude-md"><img src="https://agentmods.dev/badge/instructions/kaptinlin/jsonschema/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,208 This file is loaded in full into every session.
When invoked 2,208 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02208 $0.02208
Opus 5 $0.01104 $0.01104
Sonnet 5 $0.00442 $0.00442
Haiku 4.5 $0.00221 $0.00221

Measured 5d ago against content hash 6eb9dc556723, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

jsonschema 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 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.

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.

CLAUDE.md · 180 lines

How it starts

The opening of the file, as written. The whole thing — 180 lines — stays where its author put it; the contents beside it link to each section on GitHub.

jsonschema

High-performance JSON Schema Draft 2020-12 validation for Go. The package combines a compiler, a direct validation API for JSON/maps/structs, default-aware unmarshaling, a fluent constructor API, and struct-tag-driven schema generation.

For end-user installation and usage examples, see README.md and the guides in docs/.

Commands

Run commands from this directory.

task help          # Show available task targets
task test          # Run all tests with the race detector
task lint          # Run golangci-lint and go mod tidy checks
task bench         # Run benchmarks
task verify        # Run deps, fmt, vet, lint, test, and govulncheck

Agent Operating Rules

  • Read the relevant source, tests, and SPECS before changing behavior.
  • Think through the user-visible contract and failure cases before coding.
  • Apply KISS, DRY, and YAGNI; prefer the standard library and existing project utilities.
  • Reproduce bugs through the affected public entry point before changing internals.
  • Implement the smallest vertical slice that proves the requested behavior end to end.
  • Keep edits surgical and preserve unrelated worktree changes.
  • Verify against the task's actual acceptance criteria, not a generic command checklist.
  • Load only the context needed for the current decision and follow references on demand.
  • Resolve conflicting evidence in favor of runtime behavior, tests, and the owning SPEC; surface unresolved contract conflicts.
  • Write behavior tests that explain the regression and fail loudly on unsupported states.
  • Do not add policy-only gate scripts that merely restate documentation.
  • Do not add spec-mirror tests when stronger public-behavior coverage already proves the contract.

Agent Workflow

Before designing or modifying behavior, identify and read the relevant document in SPECS/. Confirm the current implementation and tests against that contract, then make the smallest coherent change. If the code and SPEC disagree, resolve which reflects the intended public behavior before editing either one.

Read the full file on GitHub · 180 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 First seen · 180 lines · 2,208 tokens per session scan A 6eb9dc556723

Subscribe to this mod's changes

jsonschema CLAUDE.md is an instructions file published in the GitHub repository kaptinlin/jsonschema (226 stars, last pushed 8d ago), licensed MIT. It adds 2,208 tokens to every session, about $0.0110 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.