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 skills/apache/shardingsphere/code-implementationnpx skills add apache/shardingsphere --skill code-implementationgit 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/skills/apache/shardingsphere/code-implementation)<a href="https://agentmods.dev/skills/apache/shardingsphere/code-implementation"><img src="https://agentmods.dev/badge/skills/apache/shardingsphere/code-implementation.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 | $0.00090 | $0.00838 |
| Opus 5 | $0.00045 | $0.00419 |
| Sonnet 5 | $0.00018 | $0.00168 |
| Haiku 4.5 | $0.00009 | $0.00084 |
Grade A, and why
code-implementation 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 yesterday.
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 — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code Implementation
AGENTS.md remains authoritative for scope, permission, safety, architecture, and task lifecycle. Reading this Skill does not grant write, Git, remote, file-type, or scope authority.
Required References
Read every selected reference through EOF before relying on it. Do not substitute catalog metadata, a summary, another Skill, or ordinary coding judgment for a required repository source.
- For every code-affecting write, read
.codex/skills/code-implementation/references/rules/implementation.md,.codex/skills/code-implementation/references/rules/artifact-removal-and-contract-impact.md, and.codex/skills/code-implementation/references/rules/non-regression.md. Apply each contract, impact, or removal rule only when its own trigger matches. - Before deciding whether tests or test support are required, and before creating or changing them, read
.codex/skills/code-implementation/references/rules/testing.md. - Before choosing or running verification and before handoff, read
.codex/skills/code-implementation/references/verification.md. - For every implementation, fix, or refactor, read
.codex/skills/coding-standards/SKILL.mdthrough EOF and use its Implementation Guidance Mode. Do not run its standalone inventory or physical-line audit unless the user explicitly requests that audit.
Specialized repository Skills compose with this Skill when they write code. Their narrower rules add to these rules and do not replace them.
Workflow
- Apply the pre-write evidence, acceptance, frozen-boundary, baseline, architecture, and source-line gates in
AGENTS.md. Before the first write, derive the exactfile -> allowed change intent -> unmet acceptance criterionwrite allowlist required by the frozen-boundary gate. When the current request clearly authorizes the inferred allowlist, record and freeze it without asking the user to repeat the request; otherwise obtain confirmation of the exact allowlist, then record and freeze it before writing. Expand the frozen allowlist only after the user explicitly authorizes the exact additional path and change intent. - Map every planned production and test change to one unsatisfied acceptance criterion and identify the supported existing paths that the change can affect.
- Classify functional and performance regression risk before the first relevant write. Capture any required behavioral or performance baseline using the protocol in
.codex/skills/code-implementation/references/rules/non-regression.md. - Implement the smallest clear change under
.codex/skills/code-implementation/references/rules/implementation.md, and apply.codex/skills/code-implementation/references/rules/testing.mdto every affected test decision. - After each write, inspect every path and hunk the action may have changed. Stop at the existing scope or authority gate when a required change lies outside the frozen boundary.
- After the last implementation write, reapply the Coding Standards Implementation Guidance Mode to affected files and complete its final manual checklist recheck before final verification. Any later write returns the affected files and rules to this step.
- Run the narrowest meaningful checks under
.codex/skills/code-implementation/references/verification.md, then verify functional and performance non-regression with evidence proportionate to the classified risk. - Complete the repository completion loop, fix every safe in-scope required finding, rerun invalidated checks, and hand off only after a complete review finds no new required issue.
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- yesterday First seen · 36 lines · 90 tokens per session scan A 6563786b671a
code-implementation is a skill published in the GitHub repository apache/shardingsphere (20,793 stars, last pushed today), licensed Apache-2.0. It adds 90 tokens to every session and 838 once invoked, about $0.0005 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 skills, from other repositories
drt-analyze
Analyze DRT cluster health for a given time range. Reconstructs the operations timeline, checks CockroachDB metrics (availability, latency, storage, changefeeds, jobs, goroutines, admission control, LSM, KV prober) and logs for anomalies, correlates findings with disruptive operations to distinguish expected…
redux-to-swr
Migrate React components from Redux + Saga to SWR hooks. Use when converting data fetching from Redux store (reducers, sagas, selectors, connect HOC) to SWR-based hooks in CockroachDB DB Console or cluster-ui.
reduce-unoptimized-query-oracle
Reduce an unoptimized-query-oracle test failure log to the simplest possible reproduction case. Use when you have unoptimized-query-oracle.log files from a failed roachtest and need to find the minimal SQL to reproduce the bug.
mma-investigator
Expert system for investigating MMA (Multi-Metric Allocator) behavior on CockroachDB clusters. Helps oncall engineers diagnose load imbalances, understand rebalancing decisions, and identify why MMA did or didn't act.
review-crdb
Review code changes or PRs for quality, correctness, and reviewability. Use when asked to "review", "check", "provide feedback", or "post a review". Dispatches specialized agents in parallel for thorough analysis.
system-table-change
Use when adding, removing, or modifying columns/indexes on system tables. Provides a checklist covering schema definitions, migrations, version gates, golden files, and test hashes.