datagsm-server: Skill for Claude Code

.agents/skills/database-schema/SKILL.md

database-schema is a skill for Claude Code from themoment-team/datagsm-server. It costs 24 tokens per session (803 once invoked), scanned A, original, MIT.

A guide for designing database tables, columns, relationships, and indexes, including how they map to JPA entities. It also asks which database migration tool is being used before giving migration advice.

In plain words
What is it for?
Use it when creating or reviewing a database schema, choosing indexes, naming keys, defining common timestamps, or mapping tables to application entities.
Why use it?
It reduces inconsistent names, missing standard fields, and inefficient indexes that can make databases harder to maintain or query.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; installed under .agents/ (shared by several agents).

This is themoment-team/datagsm-server's own configuration. It tells Claude Code how to work on datagsm-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything datagsm-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to themoment-team/datagsm-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/themoment-team/datagsm-server/master/.agents/skills/database-schema/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/themoment-team/datagsm-server

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/themoment-team/datagsm-server/database-schema"><img src="https://agentmods.dev/badge/skills/themoment-team/datagsm-server/database-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 803 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.00024 $0.00803
Opus 5.5 $0.00010 $0.00321
Sonnet 5.5 $0.00005 $0.00161
Haiku 4.5 $0.00002 $0.00080

Measured 29d ago against content hash cda4caf072fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

database-schema 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 29d 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.

.agents/skills/database-schema/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 Schema Design Guide

Before providing schema guidance, ask the user about their migration tooling:

AskUserQuestion: "DB 마이그레이션 도구로 무엇을 사용하고 있나요?"
options:
  - Flyway
  - Liquibase
  - 사용하지 않음 (JPA DDL auto)

Then provide the relevant migration section below along with the core conventions.


Naming Conventions

  • Tables: snake_case, plural (users, api_keys)
  • Columns: snake_case (created_at, is_active)
  • FK columns: {referenced_table_singular}_id (user_id, club_id)
  • Index names: idx_{table}_{columns} (idx_users_email)
  • UK names: uq_{table}_{columns} (uq_users_email)

Standard Columns

Include in every entity table:

id         BIGINT       NOT NULL AUTO_INCREMENT PRIMARY KEY,
created_at DATETIME(6)  NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
updated_at DATETIME(6)  NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6)

Index Strategy

  • Single column used frequently in WHERE: simple index
  • WHERE + ORDER BY combination: composite index (WHERE column first)
  • Low-cardinality columns (is_active, status enum): indexing rarely helps
-- Composite index example
CREATE INDEX idx_posts_user_created ON posts (user_id, created_at DESC);

Migration — Flyway

(Include this section if the user selected Flyway)

File naming: V{version}__{description}.sql

db/migration/
  V1__create_users.sql
  V2__add_api_keys.sql
  V3__add_index_users_email.sql
-- V2__add_api_keys.sql
CREATE TABLE api_keys (
    id         BIGINT      NOT NULL AUTO_INCREMENT PRIMARY KEY,
    user_id    BIGINT      NOT NULL,
    key_value  VARCHAR(64) NOT NULL,
    created_at DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
    updated_at DATETIME(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
    CONSTRAINT fk_api_keys_user FOREIGN KEY (user_id) REFERENCES users (id),
    CONSTRAINT uq_api_keys_value UNIQUE (key_value)
);

Migration — Liquibase

(Include this section if the user selected Liquibase)

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. 29d ago First seen · 127 lines · 24 tokens per session scan A cda4caf072fe

Subscribe to this mod's changes

database-schema is a skill published in the GitHub repository themoment-team/datagsm-server (29 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 803 once invoked, about $0.0001 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-10-08.

Related

database-schema compared with skills from other repositories

database-schema next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-schemathemoment-team/datagsm-serverSkill29yesterdayMITA24Claude Code
spring-ecosystem-docspledgeandgrow/pledge-skillsSkill103mo agoMITA43Claude Code, Codex
woocommerce-performancefinsilabs/awesome-ecommerce-skillsSkill6314d agoMITB26Claude Code, Codex
database-enumerationblacklanternsecurity/red-runSkill30214d agoAGPL-3.0A56Claude Code, Codex
tucache-cachingtri5m/tutu-cacheSkill484mo agoMITA43Claude Code, Codex
database-engineerbuiphucminhtam/forgewrightSkill495d agononeA45Claude Code
databasemiles990/claude-software-skillsSkill269mo agoMITA14Claude Code, Codex