oxmysql

oxmysql is a skill for Claude Code from germanfndez/fiveai-skills. It costs 55 tokens per session (839 once invoked), scanned A, original, MIT.

A development guide for OxMySQL, a FiveM library that connects server code to MySQL or MariaDB databases. It covers reading, inserting, changing, and deleting stored data, as well as transactions.

In plain words
What is it for?
Use it when adding player, inventory, economy, or other persistent data to a FiveM resource through SQL queries.
Why use it?
It helps server code store and retrieve game data without writing database integration from scratch.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fiveai-skills plugin — 13 skills shipped together

Good fit Use it when adding player, inventory, economy, or other persistent data to a FiveM resource through SQL queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/germanfndez/fiveai-skills/oxmysql
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 germanfndez/fiveai-skills --skill oxmysql
Clone the repo
git clone --depth 1 https://github.com/germanfndez/fiveai-skills

Made for: Claude Code.

Or install fiveai-skills, the plugin that ships this one along with the rest of its 13 skills.

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 oxmysql

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/germanfndez/fiveai-skills/oxmysql"><img src="https://agentmods.dev/badge/skills/germanfndez/fiveai-skills/oxmysql.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 839 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.
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.00055 $0.00839
Opus 5.5 $0.00022 $0.00336
Sonnet 5.5 $0.00011 $0.00168
Haiku 4.5 $0.00006 $0.00084

Measured 1mo ago against content hash 8a9157d3b43c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oxmysql 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 1mo 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/oxmysql/SKILL.md · 67 lines

How it starts

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

oxmysql

Server-side MySQL/MariaDB access for FiveM through the MySQL table (replacement for mysql-async and ghmattimysql).

Activation Contract

Load this skill when the user writes or edits database code in a FiveM resource: SELECT/INSERT/UPDATE/DELETE, upserts, transactions, MySQL.*, exports.oxmysql, or migrating from mysql-async.

Hard Rules

  • Server only. Add server_script '@oxmysql/lib/MySQL.lua' to fxmanifest.lua above other server scripts.
  • MySQL.Sync.* and MySQL.Async.* (mysql-async compatibility layer) are NOT available. Replace them with MySQL.query, MySQL.scalar, MySQL.single, MySQL.insert, MySQL.update, MySQL.prepare, MySQL.transaction, each with a .await variant.
  • @named placeholders are deprecated: use positional ? with an array of values. prepare accepts only ? (and ?? for column names).
  • Never concatenate user input into SQL; every value goes through a placeholder.
  • Every function takes (query, params, callback); use .await to yield instead of nesting callbacks.
  • Use transaction when several writes must succeed or fail together; it rolls back on any failure.
  • Use rawExecute only when the normalized result shape of query/prepare is insufficient.
  • Prefer MariaDB over MySQL 8 for compatibility.

Decision Gates

Need Call Returns
Many rows MySQL.query.await(sql, params) array of rows
One row MySQL.single.await(sql, params) row or nil
One value (COUNT, one column) MySQL.scalar.await(sql, params) value or nil
Insert MySQL.insert.await(sql, params) insert id
Update / delete count MySQL.update.await(sql, params) affected rows
Hot path, repeated statement MySQL.prepare.await(sql, params) rows / value
Several statements atomically MySQL.transaction.await({ { query, values }, ... }) success boolean
Raw, unnormalized result MySQL.rawExecute.await(sql, params) raw result

Execution Steps

Read the full file on GitHub · 67 lines

Files

What ships with it

9 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. 1mo ago Changed · +24 lines · +55 tokens per session 8a9157d3b43c
  2. 2mo ago First seen · 43 lines · 0 tokens per session scan A b08a842c2f7c

Subscribe to this mod's changes

oxmysql is a skill published in the GitHub repository germanfndez/fiveai-skills (20 stars, last pushed 20d ago), licensed MIT. It adds 55 tokens to every session and 839 once invoked, about $0.0002 per session on Opus 5.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

oxmysql compared with skills from other repositories

oxmysql next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oxmysqlgermanfndez/fiveai-skillsSkill2020d agoMITA55Claude Code
roblox-dataTabooHarmony/roblox-brainSkill16222d agoMITA31Claude Code
database-integrationTMHSDigital/CFX-Developer-ToolsSkill51mo agononeA15Cursor
roblox-cameraTabooHarmony/roblox-brainSkill16222d agoMITA33Claude Code
roblox-lightingTabooHarmony/roblox-brainSkill16222d agoMITA25Claude Code
roblox-localizationTabooHarmony/roblox-brainSkill16222d agoMITA28Claude Code
roblox-luau-coreTabooHarmony/roblox-brainSkill16222d agoMITA40Claude Code