Agent skill

Database Patterns

by c0x12c in c0x12c/ai-toolkit

Database design patterns including schema design, migrations, soft deletes, and Exposed ORM.

No licenceAuto-check passedDatabases

Install Database Patterns

skills CLI
$ npx skills add c0x12c/ai-toolkit --skill database-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install c0x12c/ai-toolkit database-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/c0x12c/ai-toolkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/database-patterns .claude/skills/database-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
database-patterns
GitHub stars
106
Token cost
~721 tokens
SKILL.md length
321 words
Files
2
Skills in repo
33
Repo updated
First seen
Licence
None found

At a glance

Database design patterns including schema design, migrations, soft deletes, and Exposed ORM.

  • Works in 7 steps: SQL migration file (next number in… → Table object in module-repository/table/ → Entity data class in… → …
  • Creating tables
  • SKILL.md covers Hard Rules, Migration Template, Exposed Table Object and Entity Data Class, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Database Patterns is an agent skill from c0x12c/ai-toolkit. Database design patterns including schema design, migrations, soft deletes, and Exposed ORM. Use when creating tables, writing migrations, or implementing repositories.

Its SKILL.md is about 720 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `code-templates.md`).

It sits in Databases, covering Database schema design and ORMs and data access. It works with SQL.

When your agent uses it

  • Creating tables
  • Writing migrations
  • Implementing repositories

Example prompts

  • “/database-patterns”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. SQL migration file (next number in sequence)
  2. Table object in module-repository/table/
  3. Entity data class in module-repository/entity/
  4. Enum/constants in module-repository/constant/ (if needed)
  5. Repository interface + implementation
  6. Factory bean for repository
  7. Repository tests

What it can do on your machine

Read from SKILL.md and the folder at commit 96b2c9d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Database Patterns loads about 721 tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 321 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~721

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 321 words (~721 tokens).

“SQL migration with table, trigger, and partial indexes for soft delete.”

— opening of SKILL.md by c0x12c
name
database-patterns

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .codex/skills/database-patterns of c0x12c/ai-toolkit.

  • SKILL.md
  • code-templates.md

Open the folder on GitHubat commit 96b2c9d

Compare with similar skills

Database Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Database Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Database Patterns this skillc0x12c/ai-toolkit106—~721Automated safety check: PassNone
DB Migrationskurealnum/dotfiles290—~820Automated safety check: PassNone
Optimizing Ef Core Queriesdotnet/skills5.6k1 repos~2.7kAutomated safety check: PassMIT
Migrationkortix-ai/suna20k—~1.2kAutomated safety check: PassCustom licence
Database FundamentalsDanielPodolsky/ownyourcode2901 repos~1.6kAutomated safety check: PassMIT
Drizzle DatabaseChatbotXIO/ChatbotX878—~2.1kAutomated safety check: PassCustom licence

Similar skills

  • DB Migrations

    kurealnum/dotfiles

    A skill your agent uses when generating or regenerating Drizzle migration files, changing database schema tables or columns, resolving migration sequence conflicts after rebase, reviewing migration…

    290 GitHub stars~820 tokensUpdated 5 mo ago
    DatabasesAuto-check passed
  • Official

    Optimize and improve the performance of slow Entity Framework Core (EF Core) queries: make them generate less SQL, make fewer database round-trips, and return results faster.

    5.6k GitHub starsUsed in 1 repo~2.7k tokens
    DatabasesAuto-check passed
  • Migration

    kortix-ai/suna

    How to change the database schema in this repo. An agent skill from kortix-ai/suna.

    20k GitHub stars~1.2k tokensUpdated today
    DatabasesAuto-check passed
  • Database Fundamentals

    DanielPodolsky/ownyourcode

    Reviews schema design, SQL queries, ORM patterns. An agent skill from DanielPodolsky/ownyourcode.

    290 GitHub starsUsed in 1 repo~1.6k tokens
    DatabasesAuto-check passed
  • Drizzle Database

    ChatbotXIO/ChatbotX

    Work with Drizzle ORM database schema, migrations, relations, and queries in PostgreSQL.

    878 GitHub stars~2.1k tokensUpdated today
    DatabasesAuto-check passed
  • Covers schema conventions and safe rollout for Drizzle database migrations: online indexes, backfills, idempotent SQL and fixing regeneration or rebase conflicts.

    83k GitHub stars~3.5k tokensUpdated today
    DatabasesAuto-check: notes

More from c0x12c/ai-toolkit

All 33 skills in this repo
  • UI UX Pro Max

    c0x12c/ai-toolkit

    UI/UX design intelligence with searchable style, palette, typography, and chart databases.

    106 GitHub stars~2.1k tokensUpdated 3 mo ago
    Auto-check passed
  • API Endpoint Creator

    c0x12c/ai-toolkit

    Creates RPC-style endpoint following layered architecture (Controller → Manager → Repository).

    106 GitHub stars~3.3k tokensUpdated 3 mo ago
    Auto-check passed
  • Backend API Design

    c0x12c/ai-toolkit

    Design RPC-style APIs with layered architecture (Controller → Manager → Repository).

    106 GitHub stars~814 tokensUpdated 3 mo ago
    Auto-check passed
  • CI CD Patterns

    c0x12c/ai-toolkit

    CI/CD pipeline patterns for GitHub Actions, PR automation, and deployment workflows.

    106 GitHub stars~833 tokensUpdated 3 mo ago
    Auto-check passed
  • Content Engine

    c0x12c/ai-toolkit

    Turn one idea into platform-native content for X, LinkedIn, TikTok, YouTube, newsletters.

    106 GitHub stars~986 tokensUpdated 3 mo ago
    Auto-check passed
  • Database Table Creator

    c0x12c/ai-toolkit

    Creates database table with full Kotlin synchronization (SQL migration → Table → Entity → Repository → Tests).

    106 GitHub stars~1.1k tokensUpdated 3 mo ago
    Auto-check passed

Works with

Categories

Questions about Database Patterns

What does Database Patterns do?

Database design patterns including schema design, migrations, soft deletes, and Exposed ORM. Database Patterns is an agent skill from c0x12c/ai-toolkit. Database design patterns including schema design, migrations, soft deletes, and Exposed ORM.

When should I use Database Patterns?

Database Patterns fits situations like: creating tables; writing migrations; implementing repositories.

How do I install Database Patterns in Claude Code?

Run `npx skills add c0x12c/ai-toolkit --skill database-patterns -a claude-code`. Or copy the skill folder (.codex/skills/database-patterns in c0x12c/ai-toolkit) into .claude/skills/database-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Database Patterns in Codex?

Run `npx skills add c0x12c/ai-toolkit --skill database-patterns -a codex`. Or copy the skill folder (.codex/skills/database-patterns in c0x12c/ai-toolkit) into .agents/skills/database-patterns in your project. Codex loads it when a task matches its description.

Can I use Database Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add c0x12c/ai-toolkit --skill database-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/database-patterns, .gemini/skills/database-patterns, .github/skills/database-patterns and .opencode/skills/database-patterns in your project.

What does Database Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Database Patterns is instructions for the agent only.

Does Database Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Database Patterns safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Database Patterns use?

No licence was found for Database Patterns or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Database Patterns use?

About 721 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Database Patterns?

Skills that share tags, products or a category with Database Patterns: DB Migrations (kurealnum/dotfiles, 290 stars), Optimizing Ef Core Queries (dotnet/skills, 5.6k stars), Migration (kortix-ai/suna, 20k stars) and Database Fundamentals (DanielPodolsky/ownyourcode, 290 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Database Patterns?

c0x12c (a GitHub organization) maintains it in c0x12c/ai-toolkit, which has 106 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on June 18, 2026.

Source: c0x12c/ai-toolkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.