Apache ShardingSphere is a database enhancement layer that makes heterogeneous databases easier to access and govern as a unified system, without replacing the underlying databases. It supports distributed database capabilities such as sharding, read-write splitting, SQL federation, encryption, masking, auditing, and traffic control for enterprise data architectures.
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.
npx agentmods add instructions/apache/shardingsphere/agents-mdgit clone --depth 1 https://github.com/apache/shardingsphereWrote 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/apache/shardingsphere/agents-md)<a href="https://agentmods.dev/instructions/apache/shardingsphere/agents-md"><img src="https://agentmods.dev/badge/instructions/apache/shardingsphere/agents-md.svg" alt="Measured on agentmods" 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.04964 | $0.04964 |
| Opus 5 | $0.02482 | $0.02482 |
| Sonnet 5 | $0.00993 | $0.00993 |
| Haiku 4.5 | $0.00496 | $0.00496 |
Grade A, and why
shardingsphere AGENTS.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 2d 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 — 188 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ShardingSphere Codex Development Guide
This repository guide is written for Codex. Keep only stable, repository-wide rules here and rely on Codex for ordinary coding competence. Follow every explicit rule literally; do not replace a repository rule with general judgment unless that rule authorizes it. Paths are relative to the repository root.
Instruction Sources and Routing
CODE_OF_CONDUCT.mdis the authority for contribution, Java, and unit-test style. Inspect the applicable section before changing code or tests and record it when it controls a decision.- Before Maven, E2E, Proxy startup, database clients, IDE/MCP run configurations, commands likely to output more than 100 lines, or large structured analysis, read or reuse
.codex/context/token-efficiency.mdand follow its Mandatory Execution Contract. - Before the first code-affecting write in a task, read
.codex/skills/code-implementation/SKILL.mdthrough EOF and follow it. Its implementation reference defines the repository Codex design style, and every in-scope violation in the effective candidate is a required finding. Code-affecting writes include every production, test, script, or other implementation artifact, including build logic, generated source, and behavior-affecting configuration. Read-only analysis or review, diagnosis-only work, and prose-only changes do not activate this write workflow. Reading a Skill never grants authority or expands scope. - Automatic Skill catalog discovery is diagnostic only. If the catalog does not expose
code-implementationbut the exact repository file is readable, load it by exact path and continue. If a canonical source required for the current task is missing or unreadable, keep ordinary target writes read-only and report the blocker. Only an exact user-authorized policy or harness repair may use the constrained recovery procedure in.codex/harness/agents/policy-maintenance.md; that exception never applies to production or test code. - For read-only code/test analysis, planning, design, or review, read
.codex/skills/code-implementation/references/rules/implementation.md,.codex/skills/code-implementation/references/rules/testing.md, and.codex/skills/code-implementation/references/rules/artifact-removal-and-contract-impact.mdthrough EOF without activating the write workflow. Apply each contract, impact, or removal rule only if triggered; read.codex/skills/code-implementation/references/rules/non-regression.mdthrough EOF when reviewing a current-task candidate. - Before every analysis or change that classifies an artifact as unused or removable, read
.codex/skills/code-implementation/references/rules/artifact-removal-and-contract-impact.mdthrough EOF and apply its complete evidence gate. When a current-task edit removes the last production consumer and the audit proves that no compatibility contract remains, apply its single-model convergence rule. This read-only route does not activate the code-writing workflow. - For runtime diagnosis, read
.codex/context/runtime-triage.mdthrough EOF. Diagnosis remains read-only; if the user authorizes a fix, activatecode-implementationbefore the first code-affecting write. - Before selecting optional cross-cutting Skills for external-version decisions, public-contract design, unexpected failures, performance work, simplification, threat modeling, or high-risk decisions, read
.codex/context/cross-cutting-skills.mdthrough EOF and apply its exact triggers and limits. - Before choosing, running, or assessing repository verification in any task, read
.codex/skills/code-implementation/references/verification.mdthrough EOF. Before handoff, read.codex/context/change-completion.mdthrough EOF and apply every applicable completion step. - Use repository Skills for specialized workflows instead of reproducing their detailed instructions here. Keep task-specific notes in the task, issue, or PR; do not add session notes to this file.
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.
- 2d ago First seen · 188 lines · 4,964 tokens per session scan A 3fc070510d38
shardingsphere AGENTS.md is an instructions file published in the GitHub repository apache/shardingsphere (20,793 stars, last pushed today), licensed Apache-2.0. It adds 4,964 tokens to every session, about $0.0248 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-09-03.
Other instructions, from other repositories
cockroach CLAUDE.md
Claude Code instructions for cockroachdb/cockroach, covering claude.md, cockroachdb development environment, essential commands, build package ./pkg/util/log and build the tests in package ./pkg/util/log.
turso AGENTS.md
AGENTS.md instructions for tursodatabase/turso, covering turso agent guidelines, quick reference, testing, running tests and test organization.
questdb CLAUDE.md
Claude Code instructions for questdb/questdb, covering claude.md, project overview, coding guidelines, tests and questdb's sql dialect.
graphjin AGENTS.md
AGENTS.md instructions for dosco/graphjin, covering graphjin agent guide, architectural overview, directory structure & responsibilities, build commands and coding guidelines.
chdb AGENTS.md
AGENTS.md instructions for chdb-io/chdb, covering agents.md — chdb, 1. fully lazy execution architecture, 2. natural execution triggering (explicit calls prohibited), 3. unified architecture, simplicity first and 4. testing principles.
sq AGENTS.md
Instructions for neilotoole/sq, covering agents.md, about sq, key documents, common commands and conventions.