oceanbase-skills CLAUDE.md

oceanbase-skills CLAUDE.md is an instructions file for Claude Code from weejar/oceanbase-skills. It costs 1,357 tokens per session, scanned A, original, Apache-2.0.

Instructions for using a collection of reference guides about OceanBase, a distributed database that supports MySQL-compatible and Oracle-compatible modes. They explain how to choose only the guide relevant to a question and account for version differences.

In plain words
What is it for?
Use it when answering OceanBase questions, writing SQL or configuration, explaining database concepts, or checking features across OceanBase versions and compatibility modes.
Why use it?
It helps a coding agent produce advice that matches the selected database mode and OceanBase version instead of mixing incompatible SQL or features. The guides cover many database topics, but the input does not list them all.

Instructions file for Claude Code

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

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 instructions/weejar/oceanbase-skills/claude-md
Clone the repo
git clone --depth 1 https://github.com/weejar/oceanbase-skills

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 oceanbase-skills CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/weejar/oceanbase-skills/claude-md.svg)](https://agentmods.dev/instructions/weejar/oceanbase-skills/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/weejar/oceanbase-skills/claude-md"><img src="https://agentmods.dev/badge/instructions/weejar/oceanbase-skills/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,357 This file is loaded in full into every session.
When invoked 1,357 The same file — it is already loaded in full.
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.1 $0.01357 $0.01357
Opus 5 $0.00678 $0.00678
Sonnet 5 $0.00271 $0.00271
Haiku 4.5 $0.00136 $0.00136

Measured 5d ago against content hash a268349afafc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

oceanbase-skills 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 5d 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 · 139 lines

How it starts

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

CLAUDE.md — Guidance for Claude Code (and other AI coding agents)

Skill Set Overview

This directory contains 96 reference guides for OceanBase Database. Each file is a self-contained reference on one specific topic. Load only the file(s) relevant to the user's question.

How to Use These Skills

  1. Identify the category from the user's question using AGENTS.md routing table
  2. Read only the needed file(s) — do not load entire directories
  3. Apply the content to generate SQL, code, configurations, or explanations
  4. Check dual-mode notes — many topics differ between MySQL Mode and Oracle Mode

OceanBase Version Baseline

  • Baseline: OceanBase V4.2 (both MySQL Mode and Oracle Mode)
  • V4.4 features: marked with > **V4.4+**: ... callout blocks
  • V4.5 features: marked with > **V4.5+**: ... callout blocks
  • If the user does not specify a version, assume V4.2 and mention V4.4/V4.5 features as optional upgrades

Dual Compatibility Modes

OceanBase supports two compatibility modes that affect SQL syntax, data types, PL/SQL, and system views:

Aspect MySQL Mode Oracle Mode
SQL dialect MySQL-compatible Oracle-compatible
PL/SQL Not supported Supported
Date type DATE (no time) DATE (with time)
Dual table Not needed SELECT 1 FROM dual
Empty string ='' is true ='' is NULL
System views information_schema DBA_*, USER_*, ALL_*

When generating code or SQL, always clarify which mode the user is using if it's not obvious from context.

Key Concepts Unique to OceanBase

  • Tenant: Isolation unit (like a database instance). Each tenant has its own resource units.
  • Resource Unit (Unit): Hardware resource definition (CPU, memory, disk). Assigned to zones.
  • Resource Pool: Collection of resource units distributed across zones.
  • Zone: Failure domain (like a data center rack). Replicas are distributed across zones.
  • Paxos: Consensus protocol for log replication and leader election.
  • Log Stream: Replication pipeline for a partition's redo logs.
  • Tablegroup: Groups tables so that partitions with the same mapping end up on the same server (enables local joins).
  • LS (Log Stream): The unit of log replication in OceanBase's distributed architecture.

Read the full file on GitHub · 139 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. 5d ago First seen · 139 lines · 1,357 tokens per session scan A a268349afafc

Subscribe to this mod's changes

oceanbase-skills CLAUDE.md is an instructions file published in the GitHub repository weejar/oceanbase-skills (2 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 1,357 tokens to every session, about $0.0068 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-31.