database-designer

database-designer is a skill for Claude Code, Codex from AIDotNet/MoYuCode. It costs 41 tokens per session (820 once invoked), scanned A, original, MIT.

A database design assistant for PostgreSQL, MySQL, SQLite, and MongoDB. It helps model data, organize tables or collections, improve indexes, and prepare migration scripts.

In plain words
What is it for?
Use it to design schemas, create entity-relationship models, normalize data, optimize indexes, and write database migrations.
Why use it?
It helps avoid poorly structured data, slow lookups, and risky changes when designing or updating a database.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to design schemas, create entity-relationship models, normalize data, optimize indexes, and write database migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aidotnet/moyucode/database-designer
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 AIDotNet/MoYuCode --skill database-designer
Clone the repo
git clone --depth 1 https://github.com/AIDotNet/MoYuCode

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 database-designer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aidotnet/moyucode/database-designer"><img src="https://agentmods.dev/badge/skills/aidotnet/moyucode/database-designer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 820 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.00041 $0.00820
Opus 5.5 $0.00016 $0.00328
Sonnet 5.5 $0.00008 $0.00164
Haiku 4.5 $0.00004 $0.00082

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

Security

Grade A, and why

database-designer 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 3mo 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/community/database-designer/SKILL.md · 127 lines

How it starts

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

Database Designer Skill

Description

Design and optimize database schemas with Entity-Relationship modeling, normalization, and migration scripts.

Trigger

  • /db-design command
  • User requests database schema design
  • User needs migration scripts

Prompt

You are a database architect that designs efficient, scalable database schemas.

PostgreSQL Schema Example

-- Users table
CREATE TABLE users (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    email VARCHAR(255) NOT NULL UNIQUE,
    password_hash VARCHAR(255) NOT NULL,
    name VARCHAR(100) NOT NULL,
    avatar_url TEXT,
    email_verified BOOLEAN DEFAULT FALSE,
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW()
);

-- Create index for email lookups
CREATE INDEX idx_users_email ON users(email);

-- Posts table with foreign key
CREATE TABLE posts (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
    title VARCHAR(255) NOT NULL,
    content TEXT,
    status VARCHAR(20) DEFAULT 'draft' CHECK (status IN ('draft', 'published', 'archived')),
    published_at TIMESTAMPTZ,
    created_at TIMESTAMPTZ DEFAULT NOW(),
    updated_at TIMESTAMPTZ DEFAULT NOW()
);

-- Composite index for user's posts
CREATE INDEX idx_posts_user_status ON posts(user_id, status);

-- Full-text search index
CREATE INDEX idx_posts_search ON posts USING GIN(to_tsvector('english', title || ' ' || content));

-- Updated_at trigger
CREATE OR REPLACE FUNCTION update_updated_at()
RETURNS TRIGGER AS $$
BEGIN
    NEW.updated_at = NOW();
    RETURN NEW;
END;
$$ LANGUAGE plpgsql;

CREATE TRIGGER users_updated_at
    BEFORE UPDATE ON users
    FOR EACH ROW EXECUTE FUNCTION update_updated_at();

Entity Framework Core Migration

public class CreateUsersTable : Migration
{
    protected override void Up(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.CreateTable(
            name: "Users",
            columns: table => new
            {
                Id = table.Column<Guid>(nullable: false, defaultValueSql: "gen_random_uuid()"),
                Email = table.Column<string>(maxLength: 255, nullable: false),
                PasswordHash = table.Column<string>(maxLength: 255, nullable: false),
                Name = table.Column<string>(maxLength: 100, nullable: false),
                CreatedAt = table.Column<DateTime>(nullable: false, defaultValueSql: "NOW()")
            },
            constraints: table =>
            {
                table.PrimaryKey("PK_Users", x => x.Id);
            });

        migrationBuilder.CreateIndex(
            name: "IX_Users_Email",
            table: "Users",
            column: "Email",
            unique: true);
    }

    protected override void Down(MigrationBuilder migrationBuilder)
    {
        migrationBuilder.DropTable(name: "Users");
    }
}

Read the full file on GitHub · 127 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. 3mo ago First seen · 127 lines · 41 tokens per session scan A 8eb20f8d6e4a

Subscribe to this mod's changes

database-designer is a skill published in the GitHub repository AIDotNet/MoYuCode (86 stars, last pushed 10mo ago), licensed MIT. It adds 41 tokens to every session and 820 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

database-designer compared with skills from other repositories

database-designer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-designerAIDotNet/MoYuCodeSkill8610mo agoMITA41Claude Code, Codex
fastapi-init-skilljiushiwon/wg-skillsSkill1548d agoApache-2.0A229Claude Code, Codex
database-experttravisjneuman/.claudeSkill115todayMITA36Claude Code
agent-database-experttravisjneuman/.claudeSkill115todayMITA49Claude Code
ring:mapping-service-resourcesLerianStudio/ringSkill2181mo agoApache-2.0A97Cursor
database-schema-designerOneWave-AI/claude-skillsSkill4551mo agoMITA141Claude Code, Codex
database-migratorOneWave-AI/claude-skillsSkill4551mo agoMITA76Claude Code