okf-mysql

okf-mysql is a skill for Claude Code, Codex from xSAVIKx/okf-skills. It costs 61 tokens per session (827 once invoked), scanned A, original, Apache-2.0.

A MySQL connector that converts database structure and comments into Open Knowledge Format bundles, portable packages for documenting data, and can write bundle descriptions back as MySQL comments.

In plain words
What is it for?
Use it to extract tables, columns, keys, and comments from MySQL, or synchronize documentation changes from an OKF bundle back into MySQL.
Why use it?
It keeps schema documentation portable and lets teams move descriptions between an OKF bundle and the database instead of editing every comment manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to extract tables, columns, keys, and comments from MySQL, or synchronize documentation changes from an OKF bundle back into MySQL.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xsavikx/okf-skills/okf-mysql
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.

Any agent
npx skills add xSAVIKx/okf-skills --skill okf-mysql
Clone the repo
git clone --depth 1 https://github.com/xSAVIKx/okf-skills

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 okf-mysql

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xsavikx/okf-skills/okf-mysql"><img src="https://agentmods.dev/badge/skills/xsavikx/okf-skills/okf-mysql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 827 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00061 $0.00827
Opus 5 $0.00030 $0.00413
Sonnet 5 $0.00012 $0.00165
Haiku 4.5 $0.00006 $0.00083

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

Security

Grade A, and why

okf-mysql 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 11d 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.

skills/okf-mysql/SKILL.md · 70 lines

How it starts

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

MySQL OKF Connector

This skill provides a Go-based CLI tool to convert MySQL database schemas and comments (table and column comments) into Open Knowledge Format (OKF) bundles, and synchronize comments back to a MySQL database from an OKF bundle.

When to Use

Use this skill when you need to:

  1. Extract table structures, column definitions, keys, and native MySQL comments from a schema into a portable OKF bundle.
  2. Synchronize business descriptions or documentation changes written in an OKF bundle back into native MySQL table and column comments.

Setup

The connector requires Go 1.24+:

# Install the published binary (Go 1.24+) — no clone needed:
go install github.com/xSAVIKx/okf-skills/skills/[email protected]

# …or build from a clone of the repository:
cd skills/okf-mysql
go build -o okf-mysql .

How to Use

1. Produce an OKF Bundle

Extract database schema metadata and comments:

./okf-mysql produce --host <host> --port <port> --user <user> --password <password> --db <database-name> --out <output-bundle-dir> [--tables <comma-separated-table-names>] [--sample <N>] [--profile]

2. Ingest / Synchronize an OKF Bundle

Synchronize table/column descriptions from the OKF bundle back into database comments:

./okf-mysql ingest --host <host> --port <port> --user <user> --password <password> --db <database-name> --bundle <path-to-okf-bundle> [--sync]

Parameters:

  • --host (default localhost): MySQL host.
  • --port (default 3306): MySQL port.
  • --user (required): MySQL user.
  • --password (required): MySQL password. May also be supplied via the MYSQL_PASSWORD environment variable to keep secrets out of the command line.
  • --db (required): Target database schema.
  • --bundle (required for ingest): Path to the OKF bundle.
  • --out (required for produce): Path to output OKF bundle.
  • --tables (optional): Filter to extract only specific tables.
  • --sample <N> (optional): Embed up to N sample rows per table as a ## Sample section in each table doc (default 0 = none).
  • --profile (optional): Compute per-column statistics (non-null, null, distinct, min, max) and embed a ## Data Profile section.
  • --sync (optional for ingest): If provided, runs ALTER TABLE ... COMMENT = ... and MODIFY COLUMN ... COMMENT ... statements to synchronize descriptions.

Read the full file on GitHub · 70 lines

Files

What ships with it

12 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. 11d ago First seen · 70 lines · 61 tokens per session scan A a05e45344d7d

Subscribe to this mod's changes

okf-mysql is a skill published in the GitHub repository xSAVIKx/okf-skills (33 stars, last pushed 11d ago), licensed Apache-2.0. It adds 61 tokens to every session and 827 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

aql-authoring

This skill should be used when the user asks to "write an AQL query", "optimize an AQL query", "review AQL", or "query openEHR data" — the multi-step authoring/optimization workflow for AQL (Archetype Query Language) over openEHR clinical data. For a one-off explanation of an existing query or a single AQL…

Cadasto/openehr-assistant-plugin · 102 tokens

okf-authoring

Author Open Knowledge Format (OKF) bundles — knowledge represented as a directory of markdown files with YAML frontmatter. Use when asked to create, write, generate, enrich, or validate an OKF bundle or OKF concept docs; to turn a data source (Glue database, API, database, catalog), documentation, or a research topic…

aws-samples/sample-okf-llm-wiki · 102 tokens

refresh-okf-mcp-token

Fetch or refresh an OAuth2 access token for the OKF Data wiki consumption MCP server. Use when the OKF MCP server returns 401/403/unauthorized/expired-token errors, when the user asks to refresh, renew, or get a new OKF MCP token, or when setting up authentication to call the okf-mcp / okfconsumption MCP runtime.

aws-samples/sample-okf-llm-wiki · 83 tokens

postgres

Execute queries on the Postgres database. Use this skill DIRECTLY whenever the user asks anything about database contents, counts, or data — do NOT read compose.yml or SQL migration files first.

CodelyTV/agentic_programming-course · 40 tokens

report-authoring

The report-authoring methodology: required structure, language, evidence discipline, and figure selection. Read BEFORE your first createreport of a conversation - the tool validates shape; this is everything it cannot check.

aws-samples/sample-okf-llm-wiki · 44 tokens

setup

Set up the OKF MCP plugin — outputs a guide for the user to create their /.okf/credentials file with their OAuth2 client id/secret. Use when first enabling the plugin, when headersHelper fails with "Missing credentials", or when the user says "setup okf".

aws-samples/sample-okf-llm-wiki · 60 tokens