MySQL Database

MySQL Database is a skill for Claude Code from delphicleancode/delphi-spec-kit. It costs 31 tokens per session (7,071 once invoked), scanned C, original, MIT.

A set of Delphi development patterns for MySQL and MariaDB, database systems used to store and query application data, through FireDAC, Delphi's database access library.

In plain words
What is it for?
Use it to create tables, stored procedures, triggers, repositories, versioned migrations, JSON data, full-text search, partitioning, or insert-or-update operations.
Why use it?
It provides repeatable approaches for connecting to these databases and using their data, search, replication, and schema-change features.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to create tables, stored procedures, triggers, repositories, versioned migrations, JSON data, full-text search, partitioning, or insert-or-update operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/delphicleancode/delphi-spec-kit/mysql-database
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 delphicleancode/delphi-spec-kit --skill mysql-database
Clone the repo
git clone --depth 1 https://github.com/delphicleancode/delphi-spec-kit

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 MySQL Database

README.md
[![agentmods](https://agentmods.dev/badge/skills/delphicleancode/delphi-spec-kit/mysql-database/github.svg)](https://agentmods.dev/skills/delphicleancode/delphi-spec-kit/mysql-database)
Your own site
<a href="https://agentmods.dev/skills/delphicleancode/delphi-spec-kit/mysql-database"><img src="https://agentmods.dev/badge/skills/delphicleancode/delphi-spec-kit/mysql-database/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 MySQL Database

Your own site · 80×15
<a href="https://agentmods.dev/skills/delphicleancode/delphi-spec-kit/mysql-database"><img src="https://agentmods.dev/badge/skills/delphicleancode/delphi-spec-kit/mysql-database.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,071 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00031 $0.07071
Opus 5.5 $0.00012 $0.02828
Sonnet 5.5 $0.00006 $0.01414
Haiku 4.5 $0.00003 $0.00707

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

Security

Grade C, and why

MySQL Database scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

| `BOOLEAN` / `BOOL` | `ftBoolean` / `AsBoolean` | Alias ​​for `TINYINT(1)` | | `JSON` | `ftMemo` / `AsString` | Native JSON (MySQL 5.7+) | | `BLOB` | `ftBlob` / `AsBytes` | Binary data | | `LONGBLOB` | `ftBlob` / `AsByt
.claude/skills/mysql-database/SKILL.md · 853 lines

How it starts

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

MySQL Database — Skill

Use this skill when working with MySQL or MariaDB databases in Delphi projects via FireDAC.

When to Use

  • When configuring FireDAC connection with MySQL or MariaDB
  • When creating tables, stored procedures, functions, triggers and views
  • When implementing Repositories with FireDAC + MySQL
  • When working with native JSON (MySQL 5.7+), Full-Text Search, Partitioning
  • When planning schema migrations (versioned scripts)
  • When developing web applications with MySQL backend

MySQL Versions

Version Relevant News
5.7 Native JSON, Generated Columns, sys schema, Group Replication
8.0 Recursive CTEs, Window Functions, DEFAULT (expr), Roles, INVISIBLE indexes, NOWAIT/SKIP LOCKED
8.4 LTS LTS release, Firewall improvements, Plugin improvements
9.0+ Vector type, JavaScript stored programs (preview)

MariaDB

Version Relevant News
10.2 Recursive CTEs, Window Functions, DEFAULT (expr)
10.3 INVISIBLE columns, INTERSECT/EXCEPT, Sequences
10.5 INET6 type, JSON_TABLE, S3 storage engine
11.0+ Release Calendar, UUID v7, VECTOR type

Recommendation: Use MySQL 8.0+ or ​​MariaDB 10.5+ for new projects.

FireDAC connection with MySQL

Minimum Configuration

unit MeuApp.Infra.Database.MySQL.Connection;

interface

uses
  FireDAC.Comp.Client,
  FireDAC.Phys.MySQL,       //Driver MySQL
  FireDAC.Phys.MySQLDef,    //Defaults do MySQL
  FireDAC.Stan.Def,
  FireDAC.DApt;

type
  ///<summary>
  ///MySQL connection factory via FireDAC.
  ///</summary>
  TMySQLConnectionFactory = class
  public
    class function CreateConnection(
      const AServer: string;
      const ADatabase: string;
      const AUserName: string = 'root';
      const APassword: string = '';
      APort: Integer = 3306
    ): TFDConnection;
  end;

implementation

uses
  System.SysUtils;

class function TMySQLConnectionFactory.CreateConnection(
  const AServer, ADatabase, AUserName, APassword: string;
  APort: Integer): TFDConnection;
begin
  if ADatabase.Trim.IsEmpty then
    raise EArgumentException.Create('ADatabase não pode ser vazio');

  Result := TFDConnection.Create(nil);
  try
    Result.DriverName := 'MySQL';
    Result.Params.Values['Server'] := AServer;
    Result.Params.Values['Port'] := APort.ToString;
    Result.Params.Database := ADatabase;
    Result.Params.UserName := AUserName;
    Result.Params.Password := APassword;

    { Configurações recomendadas }
    Result.Params.Values['CharacterSet'] := 'utf8mb4';  //ALWAYS utf8mb4 (suporta emoji/4-byte)

    { Opções do driver FireDAC }
    Result.FormatOptions.StrsTrim2Len := True;
    Result.FetchOptions.Mode := fmAll;
    Result.ResourceOptions.AutoReconnect := True;
    Result.TxOptions.Isolation := xiReadCommitted;

    Result.Connected := True;
  except
    Result.Free;
    raise;
  end;
end;

Read the full file on GitHub · 853 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. 1mo ago First seen · 853 lines · 31 tokens per session scan C 4cfa4ebc512e

Subscribe to this mod's changes

MySQL Database is a skill published in the GitHub repository delphicleancode/delphi-spec-kit (56 stars, last pushed 6mo ago), licensed MIT. It adds 31 tokens to every session and 7,071 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). 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

offensive-sqli

SQL injection testing skill for offensive security assessments and bug bounty hunting. Covers error-based, UNION-based, boolean/time-based blind, out-of-band, second-order, NoSQL, GraphQL, WebSocket, and JSON-operator SQLi. Includes WAF bypass techniques, database-specific exploitation (MySQL, MSSQL, PostgreSQL…

SnailSploit/Claude-Red · 117 tokens

db-whisperer

Diagnoses and improves application-layer databases: Postgres, MySQL, SQLite, and MongoDB. Covers EXPLAIN ANALYZE, slow query detection, index strategy, N+1 detection, schema migrations with up/down scripts, connection pooling, replication setup, and vacuum/analyze operations. Use this skill when the user says "this…

mturac/hermes-supercode-skills · 131 tokens

pipeline-architect

Designs and implements data pipelines: ETL/ELT, streaming, batch processing, schema migrations, and data warehouse architecture. Covers Kafka, Airflow, dbt, Spark, ClickHouse, BigQuery, Snowflake, Redis Streams, and more. Use this skill when the user asks about data pipelines, ETL jobs, data transformation, streaming…

mturac/hermes-supercode-skills · 148 tokens

weaviate-data-ingestion

Upload and process data into local Weaviate collections with support for single objects, batch uploads, and multi-modal content.

saskinosie/weaviate-claude-skills · 30 tokens

weaviate-query-agent

Search and retrieve data from local Weaviate using semantic search, filters, RAG, and hybrid queries.

saskinosie/weaviate-claude-skills · 27 tokens

weaviate-local-setup

Set up and manage a local Weaviate instance using Docker.

saskinosie/weaviate-claude-skills · 19 tokens