sakumock: Instructions file for Claude Code

CLAUDE.md

sakumock CLAUDE.md is an instructions file for Claude Code from sacloud/sakumock. It costs 3,723 tokens per session, scanned A, original, Apache-2.0.

Development instructions for sakumock, a Go project that provides mock versions of services for testing software without connecting to real services. Each service is a separate package, and a single command can run them together.

In plain words
What is it for?
Use it when adding or changing a mock service, its public configuration API, routes, standalone command, or inclusion in the unified sakumock command.
Why use it?
It gives contributors the project's rules for shared code, service structure, command-line behavior, TLS, logging, and resource IDs. This keeps new mock services consistent and easier to use in tests.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is sacloud/sakumock's own configuration. It tells Claude Code how to work on sakumock 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 sakumock configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sacloud/sakumock. 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/sacloud/sakumock/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/sacloud/sakumock

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sacloud/sakumock/claude-md.svg)](https://agentmods.dev/instructions/sacloud/sakumock/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sacloud/sakumock/claude-md"><img src="https://agentmods.dev/badge/instructions/sacloud/sakumock/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,723 This file is loaded in full into every session.
When invoked 3,723 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.03723 $0.03723
Opus 5 $0.01861 $0.01861
Sonnet 5 $0.00745 $0.00745
Haiku 4.5 $0.00372 $0.00372

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

Security

Grade A, and why

sakumock 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 3d 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 · 122 lines

How it starts

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

sakumock

Service Conventions

The repository is a single Go module (github.com/sacloud/sakumock); each service is a package under its own subdirectory, and shared building blocks live in core/. Services must not import each other; shared code goes through core. All services are also aggregated into a single sakumock binary (cmd/sakumock) exposing each as a subcommand with the same flags as the standalone sakumock-<service> binary; only the unified binary is released (GoReleaser), per-service binaries stay go install-able.

Required public API

The contract is type-enforced: server.go asserts var _ core.ServiceConfig = Config{} and var _ core.Server = (*Server)(nil), so a drifting service fails to build.

  • Config — kong-tagged struct satisfying core.ServiceConfig: Name() (short name = subcommand, e.g. "apprun-dedicated"), ListenAddr() (= Config.Addr), ClientEnv() []core.EnvVar (the SAKURA_ENDPOINTS_* override(s) a client sets to reach this mock — the single source for the env var name, used by startup logs, sakumock env, and service link), Doc() (= Doc), NewServer(opts core.ServerOptions) (applies the shared opts, adapts NewHandler). Add a field to core.ServerOptions to inject a dependency into every service without changing the interface.
  • Command — embeds Config, adds Routes bool / Docs bool and Run(ctx) error; shared by the standalone and unified binaries. --routes prints the route table, --docs the embedded README, then exit.
  • Doc stringREADME.md embedded in doc.go.
  • NewHandler(cfg Config) (*Server, error) — handler without listener (return nil error when construction cannot fail; keep the signature uniform).
  • NewTestServer(cfg Config) *Server — starts an httptest.Server (panics on error).
  • *Server satisfies core.Server: http.Handler + Routes() []core.Route + TestURL() ("" when built by NewHandler, never panics) + Close().

File structure

  • store.go (Store interface, domain types), store_memory.go, new_store.go (factory)
  • handler.go — HTTP handlers and JSON types
  • route.gorouteTable() is the single source of truth driving both buildMux() and Routes()
  • validate_gen.go + generate.go — generated validation tables and their //go:generate directive; validate_overrides.go for declared spec gaps
  • server.go — Config, Server, NewHandler, NewTestServer
  • cli.goCommand; Run sets up logging/tracing, prints routes/docs, or serves via core.Serve, and holds the startup log lines
  • doc.go//go:embed README.md
  • cmd/sakumock-<service>/ — thin standalone entrypoint (core.NotifyContext for signals)
  • Makefile, README.md, openapi/

Read the full file on GitHub · 122 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. 3d ago Changed · -68 lines · -5,424 tokens per session 8a2e961431bc
  2. 7d ago First seen · 190 lines · 9,147 tokens per session scan A 026a6e868f58

Subscribe to this mod's changes

sakumock CLAUDE.md is an instructions file published in the GitHub repository sacloud/sakumock (11 stars, last pushed 4d ago), licensed Apache-2.0. It adds 3,723 tokens to every session, about $0.0186 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.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens