mysql: Instructions file for Claude Code

CLAUDE.md

mysql CLAUDE.md is an instructions file for Claude Code from sakiladb/mysql. It costs 3,522 tokens per session, scanned A, original, BSD-3-Clause.

A maintainer guide for a MySQL Docker image containing the Sakila sample database, a common example database for learning and testing. It explains the image's build process, health check, shared release setup, and required database structure.

In plain words
What is it for?
Building and checking the Docker image, verifying that MySQL is ready, maintaining the Sakila tables and views, and coordinating schema changes with sq tests.
Why use it?
It records the compatibility rules needed by the sq command-line tool's tests, so changes to the sample database do not silently break related projects.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sakiladb/mysql/claude-md/github.svg)](https://agentmods.dev/instructions/sakiladb/mysql/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sakiladb/mysql/claude-md"><img src="https://agentmods.dev/badge/instructions/sakiladb/mysql/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.

agentmods 80×15 button for mysql CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sakiladb/mysql/claude-md"><img src="https://agentmods.dev/badge/instructions/sakiladb/mysql/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,522 This file is loaded in full into every session.
When invoked 3,522 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03522 $0.03522
Opus 5.5 $0.01409 $0.01409
Sonnet 5.5 $0.00704 $0.00704
Haiku 4.5 $0.00352 $0.00352

Measured 2mo ago against content hash ac9de562ba50, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mysql CLAUDE.md scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Transparent to `gh attestation verify` and Scout; only a raw referrers-API `curl` is affected.
CLAUDE.md · 213 lines

How it starts

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

CLAUDE.md

Maintainer guide for sakiladb/mysql — a MySQL Docker image preloaded with the Sakila sample database, published to Docker Hub and GitHub Container Registry.

One of the sakiladb image family (postgres, mysql, mariadb, sqlserver, oracle, clickhouse, rqlite). The release machinery in How releases work is shared across the family (the reference template lives in sakiladb/postgres); the build details in How the image is built are MySQL-specific. The org-level landing page (github.com/sakiladb) is rendered from the sakiladb/.github repo (profile/README.md); edit it there to change the family overview.

Purpose

These images exist primarily as test fixtures for the sq CLI. sq's suite runs against every variant and asserts a uniform Sakila schema, so each image must expose the same object set: 16 tables + 7 views (see The dataset). Treat that as a hard consistency contract.

Because the schema is coupled to sq's tests, a schema change here is a cross-repo change: sq's expectations must be updated in lockstep or its suite breaks against the new image. The relevant sq files are testh/sakila/sakila.go (the canonical AllTbls/AllTblsViews sets and per-table column/count constants), libsq/driver/driver_test.go (per-image table/view counts), and cli/cmd_inspect_test.go.

The dataset

The standard Sakila database, preloaded and owned by the sakila user: 16 tables + 7 views. MySQL Sakila is the origin of the whole family — the other variants are ported from it (via jOOQ) — so this image is the reference, not a port. One trim keeps it consistent with engines that can't easily represent spatial types:

Read the full file on GitHub · 213 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. 2mo ago First seen · 213 lines · 3,522 tokens per session scan A ac9de562ba50

Subscribe to this mod's changes

mysql CLAUDE.md is an instructions file published in the GitHub repository sakiladb/mysql (24 stars, last pushed 2mo ago), licensed BSD-3-Clause. It adds 3,522 tokens to every session, about $0.0141 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mysql CLAUDE.md compared with instructions from other repositories

mysql CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mysql CLAUDE.mdsakiladb/mysqlInstructions file242mo agoBSD-3-ClauseA3,522Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode