/fiveai-skills:oxmysqlfrom fiveai-skills
Writes server-side SQL for FiveM using oxmysql. Replaces mysql-async with MySQL.query, .single, .scalar, .insert, .update, .prepare, .transaction, and .rawExecute using positional ? placeholders.
Ships in fiveai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Server-side MySQL/MariaDB access for FiveM through the MySQL table (replacement for mysql-async and ghmattimysql).
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.
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).(query, params, callback); use .await to yield instead of nesting callbacks.transaction when several writes must succeed or fail together; it rolls back on any failure.rawExecute only when the normalized result shape of query/prepare is insufficient.| 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 |
oxmysql starts before the resource.? for every value.transaction.single, scalar) before use.Return runnable server-side Lua (or JS) using MySQL.<fn>.await with positional placeholders and no mysql-async syntax.
? placeholders, deprecated @named.Upstream docs: https://overextended.dev/oxmysql
rules/insert.md (opens in a new tab)rules/placeholders.md (opens in a new tab)rules/prepare.md (opens in a new tab)rules/query.md (opens in a new tab)rules/rawExecute.md (opens in a new tab)rules/scalar.md (opens in a new tab)rules/single.md (opens in a new tab)rules/transaction.md (opens in a new tab)rules/update.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub germanfndez/fiveai-skills --plugin fiveai-skills12 skills in this plugin
/esx-frameworkTrigger: ESX, es_extended, xPlayer, PlayerData, ESX.GetPlayerFromId, ESX.RegisterServerCallback, ESX jobs, economy, inventory. Build ESX Legacy resources with server/client functions, xPlayer methods, callbacks and events./fivemanageTrigger: Fivemanage, fmsdk, takeImage, takeServerImage, uploadImage, Log, Info/Warn/Error, player screenshots, logs dashboard. Install and use the Fivemanage SDK for images and centralized logs./fivem-basicsTrigger: FiveM resource, fxmanifest, client/server script, RegisterNetEvent, TriggerServerEvent, TriggerClientEvent, exports, F8 logs, how FiveM works. Structure resources, manifests, events and exports for FiveM Lua./fivem-deploymentTrigger: server artifacts, FXServer, txAdmin, server.cfg, gamebuild, sv_enforceGameBuild, update server, deploy, EOL, recommended build. Pick, pin and deploy a supported FXServer build./fivem-nuiTrigger: NUI, ui_page, SendNUIMessage, SetNUIFocus, RegisterNUICallback, HTML/CSS/JS for FiveM, FiveM menu UI. Build FiveM NUI pages, wire Lua-browser messaging, callbacks and focus./fivem-securityTrigger: security, anti-cheat, exploit, secure events, validate client data, server authority, distance check, rate limit, review server code. Harden FiveM net events and server-side validation.Other plugins' skills for the same job