database

database is a skill for Claude Code, Codex from Insajin/autopus-adk. It costs 25 tokens per session (1,423 once invoked), scanned A, original, MIT.

A database design and migration guide written in Korean. It covers table structure, naming conventions, common columns, indexes, foreign keys, and versioned migration files.

In plain words
What is it for?
Use it when designing tables, naming database objects, adding indexes or relationships, and creating upgrade or rollback migration scripts.
Why use it?
It helps keep stored data organized and makes database changes safer to apply and undo.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/insajin/autopus-adk/database
Any agent
npx skills add Insajin/autopus-adk --skill database
Clone the repo
git clone --depth 1 https://github.com/Insajin/autopus-adk

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/insajin/autopus-adk/database.svg)](https://agentmods.dev/skills/insajin/autopus-adk/database)
Your own site
<a href="https://agentmods.dev/skills/insajin/autopus-adk/database"><img src="https://agentmods.dev/badge/skills/insajin/autopus-adk/database.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,423 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00025 $0.01423
Opus 5 $0.00013 $0.00711
Sonnet 5 $0.00005 $0.00285
Haiku 4.5 $0.00003 $0.00142

Measured 5d ago against content hash 2ceb6541e077, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

database 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 5d 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.

.omp/skills/database/SKILL.md · 153 lines

How it starts

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

Database Skill

데이터베이스 스키마를 설계하고 안전하게 마이그레이션하는 스킬입니다.

스키마 설계 원칙

정규화 기본

정규형 규칙 예시
1NF 원자값, 반복 그룹 없음 전화번호 배열 → 별도 테이블
2NF 부분 함수 종속 제거 복합 키의 일부에만 의존하는 컬럼 분리
3NF 이행 종속 제거 A→B→C이면 C를 별도 테이블로

명명 규칙

-- 테이블: 복수형, snake_case
CREATE TABLE users (...)
CREATE TABLE order_items (...)

-- 컬럼: snake_case, 의미 명확
user_id, created_at, is_active

-- 인덱스: idx_{table}_{columns}
CREATE INDEX idx_users_email ON users(email);

-- 외래 키: fk_{table}_{ref_table}
CONSTRAINT fk_orders_users FOREIGN KEY (user_id) REFERENCES users(id)

공통 컬럼 패턴

CREATE TABLE users (
    id          BIGSERIAL PRIMARY KEY,
    -- 비즈니스 컬럼
    name        VARCHAR(255) NOT NULL,
    email       VARCHAR(255) NOT NULL UNIQUE,
    -- 감사 컬럼
    created_at  TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    updated_at  TIMESTAMPTZ NOT NULL DEFAULT NOW(),
    deleted_at  TIMESTAMPTZ  -- soft delete
);

마이그레이션 관리

마이그레이션 파일 구조

migrations/
├── 000001_create_users.up.sql
├── 000001_create_users.down.sql
├── 000002_add_user_email_index.up.sql
├── 000002_add_user_email_index.down.sql

프로젝트별 넘버링 규칙

  • 먼저 소유 repo와 migration directory를 확정합니다. 예: Autopus/backend/migrations, db/migrations, database/migrations.
  • 새 migration pair/stem 번호는 해당 directory 안의 기존 *.sql 파일만 기준으로 max(existing_number)+1을 사용합니다. 다른 프로젝트나 workspace root의 번호를 섞지 않습니다.
  • 파일명은 {6자리 zero-padded 번호}_{description}.{up,down}.sql 형식을 사용합니다.
  • 동일 migration directory에 새 파일을 만드는 작업은 병렬로 번호를 예약하지 않습니다. 여러 task가 같은 directory를 만지면 순차 실행하고, 앞 작업이 merge/rebase된 뒤 다음 번호를 계산합니다.
  • .up.sql.down.sql은 같은 번호와 같은 stem (same stem)을 사용합니다. 예: 000425_add_table.up.sql000425_add_table.down.sql.
  • 기존 orphaned migration을 복구하기 위해 missing same-stem counterpart를 추가하는 경우에만 기존 번호 재사용을 허용합니다.
  • 배포된/커밋된 기존 migration은 renumber하지 않습니다. 현재 task에서 만든 uncommitted 파일만 이름을 바꿉니다.
  • 배포 전 검증은 directory 단위로 수행합니다: unpadded 파일, 중복 번호+stem, orphaned up/down, 같은 번호의 다른 description이 있으면 실패로 처리합니다.

Read the full file on GitHub · 153 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. 5d ago First seen · 153 lines · 25 tokens per session scan A 2ceb6541e077

Subscribe to this mod's changes

database is a skill published in the GitHub repository Insajin/autopus-adk (105 stars, last pushed today), licensed MIT. It adds 25 tokens to every session and 1,423 once invoked, about $0.0001 per session on Opus 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.