coding-standards

coding-standards is a skill for Claude Code, Codex from apache/shardingsphere. It costs 89 tokens per session (1,243 once invoked), scanned A, original, Apache-2.0.

A repository-specific guide for following Apache ShardingSphere's written coding rules while changing or reviewing code.

In plain words
What is it for?
Use it during implementation, bug fixes, refactoring, code review, or a read-only standards audit.
Why use it?
It reduces inconsistent style and missed project requirements by collecting applicable instructions and checks before work begins.

Skill for Claude CodeCodex

About the project

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.

apache/shardingsphere · 20,793 stars · on GitHub

Install

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.

agentmods
npx agentmods add skills/apache/shardingsphere/coding-standards
Any agent
npx skills add apache/shardingsphere --skill coding-standards
Clone the repo
git clone --depth 1 https://github.com/apache/shardingsphere

Made for: Claude Code, Codex.

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 coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/apache/shardingsphere/coding-standards.svg)](https://agentmods.dev/skills/apache/shardingsphere/coding-standards)
Your own site
<a href="https://agentmods.dev/skills/apache/shardingsphere/coding-standards"><img src="https://agentmods.dev/badge/skills/apache/shardingsphere/coding-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,243 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00089 $0.01243
Opus 5 $0.00044 $0.00622
Sonnet 5 $0.00018 $0.00249
Haiku 4.5 $0.00009 $0.00124

Measured today against content hash 4782e1bd0f54, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coding-standards 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 today.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/build_audit_inventory.py, scripts/tests/test_build_audit_inventory.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.codex/skills/coding-standards/SKILL.md · 78 lines

How it starts

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

Coding Standards

Use this Skill in exactly one of the following modes. Both modes derive compliance only from written standards that actually apply to the target files.

Implementation Guidance Mode

Use this mode when implementing, fixing, refactoring, or reviewing code unless the user explicitly requests a standalone coding-standards compliance audit.

  • Before starting a read-only code review or making the first write in an implementation task, read the portions of CODE_OF_CONDUCT.md, repository-level and path-level AGENTS.md, Checkstyle, Spotless, and other written repository standards that actually apply to every affected file.
  • Before the first write, record a compact applicable-rule checklist; group files governed by the same rules instead of repeating the checklist.
  • For every affected Java file, read the Java naming and Lombok rules through EOF and add each applicable rule to the checklist.
  • For every affected Java file, read the Java expression rules through EOF and add each applicable rule to the checklist.
  • For every affected implementation artifact, read the defensive-code rules through EOF and add each applicable rule to the checklist.
  • Determine whether each rule governs all existing code or only code that is new, modified, touched, submitted, or generated by Codex.
  • Apply every applicable rule to each modified file within the task's authorized scope.
  • After the last write, manually recheck the effective task delta and only the surrounding declarations needed to evaluate every applicable checklist rule.
  • For Java, explicitly verify every applicable CODE_OF_CONDUCT.md coding rule, including declaration order; when a method uses private helpers, verify that those helpers immediately follow the caller and appear in the caller's call order, regardless of the caller's visibility.
  • For Java, explicitly verify every applicable Java naming and Lombok rule against the effective task delta and the surrounding declarations needed to resolve semantic applicability.
  • For Java, explicitly verify every applicable Java expression rule against the effective task delta and the declarations needed to resolve named constants.
  • Explicitly verify every applicable defensive-code rule against the effective task delta and the contracts, producers, consumers, and supported paths needed to determine whether each defensive construct has qualifying evidence.
  • Treat passing Checkstyle and Spotless as evidence only for the rules those tools enforce; neither result replaces the manual recheck.
  • A later write invalidates final-check evidence only for affected files and rules; recheck those portions before verification or handoff.
  • Do not create rules from personal preference, general clean-code principles, or nearby code.
  • Do not scan for or report pre-existing violations outside the current task scope.
  • Run the applicable formatting and standards checks required by the repository workflow.
  • Do not run apply, format, or another file-modifying command unless the current task authority and repository rules authorize every possible write.
  • Do not build a complete file inventory or perform physical-line accounting in this mode.

Read the full file on GitHub · 78 lines

Files

What ships with it

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

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. today Changed · +9 lines · +5 tokens per session 4782e1bd0f54
  2. yesterday First seen · 69 lines · 84 tokens per session scan A 190b4a7af6c7

Subscribe to this mod's changes

coding-standards is a skill published in the GitHub repository apache/shardingsphere (20,793 stars, last pushed today), licensed Apache-2.0. It adds 89 tokens to every session and 1,243 once invoked, about $0.0004 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.

Related

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…

cockroachdb/cockroach · 149 tokens

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.

cockroachdb/cockroach · 53 tokens

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.

cockroachdb/cockroach · 54 tokens

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.

cockroachdb/cockroach · 47 tokens

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.

cockroachdb/cockroach · 49 tokens

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.

cockroachdb/cockroach · 38 tokens