sheriff-mcp: Instructions file for Claude Code

CLAUDE.md

sheriff-mcp CLAUDE.md is an instructions file for Claude Code from ryansmith4/sheriff-mcp. It costs 2,186 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Sheriff-MCP, a Java server that reads SARIF files—standard reports from code-scanning tools—and helps manage the work of fixing their findings.

In plain words
What is it for?
Use them when developing Sheriff-MCP, checking its version, preparing releases, or changing its MCP tools.
Why use it?
They give coding agents the project background and release rules, including how versions are calculated from Git tags.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

This is ryansmith4/sheriff-mcp's own configuration. It tells Claude Code how to work on sheriff-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sheriff-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ryansmith4/sheriff-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ryansmith4/sheriff-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ryansmith4/sheriff-mcp

Made for: Claude Code.

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 sheriff-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ryansmith4/sheriff-mcp/claude-md.svg)](https://agentmods.dev/instructions/ryansmith4/sheriff-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ryansmith4/sheriff-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/ryansmith4/sheriff-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,186 This file is loaded in full into every session.
When invoked 2,186 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.02186 $0.02186
Opus 5 $0.01093 $0.01093
Sonnet 5 $0.00437 $0.00437
Haiku 4.5 $0.00219 $0.00219

Measured 7d ago against content hash 1f316fb1a4a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sheriff-mcp 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.

CLAUDE.md · 179 lines

How it starts

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

Sheriff-MCP Development Guide

Project Overview

Sheriff-MCP is a Java MCP server for parsing and querying SARIF static analysis reports. It's designed as an AI agent work queue manager for efficiently fixing static analysis issues.

Current Version: Run ./gradlew currentVersion

Versioning

Sheriff-MCP follows Semantic Versioning 2.0.0 via the axion-release-plugin:

  • MAJOR version (X.0.0): Incompatible API changes, breaking changes to MCP tool interface
  • MINOR version (0.X.0): New functionality in a backwards-compatible manner
  • PATCH version (0.0.X): Backwards-compatible bug fixes

Version Source

Version is derived from git tags — there is no version in any file. The plugin reads the nearest v* tag and computes:

  • On a tagged commit (release): 1.0.0
  • After a tagged commit (development): 1.0.1-SNAPSHOT

This version is used by all build tools: Gradle, JReleaser, Jib, MCP Registry, and Java runtime (via generated version.properties).

Release Process

./gradlew release                              # Patch release (1.0.0 → 1.0.1)
./gradlew release -Prelease.increment=minor    # Minor release (1.0.0 → 1.1.0)
./gradlew release -Prelease.increment=major    # Major release (1.0.0 → 2.0.0)
./gradlew release -Prelease.forceVersion=2.0.0 # Explicit version
./gradlew release -Prelease.prerelease=beta    # Pre-release (1.0.0-beta1)
./gradlew release -Prelease.prerelease=rc      # Release candidate (1.0.0-rc1)

The release task creates a git tag (e.g., v1.0.0) and pushes it. No version-bump commits are created.

The tag push triggers the CI/CD pipeline (release.yml):

  • release job: Builds, runs JReleaser (GitHub Release + Sigstore signing) — runs for all tags
  • docker job: Builds and pushes multi-arch Docker image to ghcr.io/ryansmith4/sheriff-mcp via Jib — final releases only
  • mcp-registry job: Publishes to the MCP Registry via mcp-publisher — final releases only
  • docs workflow: Deploys documentation to GitHub Pages

Read the full file on GitHub · 179 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. 7d ago First seen · 179 lines · 2,186 tokens per session scan A 1f316fb1a4a7

Subscribe to this mod's changes

sheriff-mcp CLAUDE.md is an instructions file published in the GitHub repository ryansmith4/sheriff-mcp (0 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 2,186 tokens to every session, about $0.0109 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.

Related

Other instructions, from other repositories