yd-db-expert SKILL.md skillA

This file is byte-identical to the first copy the registry indexed. Same content hash, so the same checks give both the same grade.

yd-db-expert from leeyudok/agents-scaffold is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add leeyudok/agents-scaffold/yd-db-expert@git:20261024.c5b81d9

Pins git:20261024.c5b81d9 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
leeyudok/agents-scaffold
Path
.claude/skills/yd-db-expert/SKILL.md
Versions recorded
1
Latest version
git:20261024.c5b81d9, committed Oct 24, 2026
Size
9,028 bytes
Repository stars
36
License
MIT

엔진과 무관한 관계형 설계를 다룰 때 사용한다 — 스키마 정규화·키·NULL 의미·DB 제약·소프트 삭제·인덱스 선택 원칙·쿼리 규칙(N+1·플레이스홀더·커서 페이징)·트랜잭션 경계·마이그레이션 단계. PostgreSQL 고유 주제는 yd-pg-expert, Oracle 고유 주제는 yd-oracle-expert, SQLite 고유 주제는 yd-sqlite-expert 를 쓴다.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# yd-db-expert

엔진과 무관한 관계형 설계가 대상이다. 잠금·테이블 재작성·실행계획 읽는 법·타입 세부처럼
엔진마다 다른 동작은 엔진 스킬이 맡는다 — PostgreSQL 은 `yd-pg-expert`, Oracle 은
`yd-oracle-expert`, SQLite 파일은 `yd-sqlite-expert`. 애플리케이션 코드는 각 언어 스킬이 맡는다.

아래 단언 가운데 SQL 의미론에 관한 것은 `scripts/verify_db_claims.py` 가 SQLite 로
재현한다(8장). 같은 의미론은 표준 SQL 이라 PostgreSQL·Oracle 에서도 같다. 엔진마다 갈리는
지점은 본문에 적었다.

## 1. 스키마 설계 — 판단 기준

정규화는 목적이 아니라 **이상현상(anomaly)을 없애는 수단**이다. 3NF 를 기본으로 두고,
역정규화는 **측정된 병목**이 있을 때만, 그리고 **갱신 경로를 하나로 유지**할 수 있을 때만.

설계하기 전에 스스로 답한다:

1. **이 테이블의 한 행은 무엇 하나인가** — 한 문장으로 안 되면 쪼갤 신호다.
2. **자연키인가 대리키인가** — 사업자번호·사번처럼 외부가 소유한 값은 바뀐다.
   대리키(식별자)를 두고 자연키에는 유니크 제약을 건다.
3. **이 컬럼이 NULL 일 수 있는 실제 상황은 무엇인가** — 답이 없으면 `NOT NULL`.
   NULL 은 "모름"이지 "없음"이나 "0"이 아니다.
4. **삭제하면 무엇이 같이 사라져야 하는가** — FK 의 `ON DELETE` 를 의도적으로 정한다.
   기본값에 맡기지 않는다.

### 제약은 애플리케이션이 아니라 DB 에 건다

`NOT NULL`·`UNIQUE`·`CHECK`·`FOREIGN KEY` 는 마지막 방어선이다. 애플리케이션 검증은
사용자 경험용이고, 데이터 무결성은 DB 가 보장한다. **버그·수동 작업·다른 클라이언트는
애플리케이션을 우회한다.** 제약이 없는 테이블에 수동 SQL 세 줄을 넣으면 NULL·중복·음수 잔액이
그대로 들어가고, 제약이 있는 테이블은 셋 다 거부한다.

### NULL 의 의미론

- **`NULL = NULL` 은 참이 아니라 NULL 이다.** `WHERE col = NULL` 은 아무 행도 고르지 못한다.
  `IS NULL` 을 쓴다. `col <> 'x'` 도 NULL 인 행을 고르지 않는다.
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add leeyudok/agents-scaffold/yd-db-expert@sha256:cb1d7234f7a313d4

The line at the top of this page pins the label git:20261024.c5b81d9, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ndciawyekfk4so4t.svg)](https://markdownregistry.com/a/art_ndciawyekfk4so4t)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Oct 24, 2026.

versioncommittedcommitsizeaudit
git:20261024.c5b81d9 latest2026-10-24 c5b81d9 9,028 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9028 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

leeyudok/agents-scaffold · 36 stars · license MIT · pushed 2026-10-25 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ndciawyekfk4so4t
GET https://markdownregistry.com/api/v1/resolve?ref=leeyudok/agents-scaffold/yd-db-expert
GET https://markdownregistry.com/api/v1/blob/cb1d7234f7a313d479a6007f8c5dc06a756010fdfc7b823b6ee132d31b617898

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from leeyudok/agents-scaffold

docs-sync SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/docs-sync/SKILL.md · 코드·설정·프리셋 변경 뒤 문서를 현행화한다. "문서 현행화", "README 갱신", "문서 최신화" 요청 시, 그리고 동작·경로·버전·수치를 바꾼 PR 을 올리기 직전에 사용. 문서의 주장을 실제 코드·명령…
git:20260822.8e0b825 · audit A · 36 stars
example-skill SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/example-skill/SKILL.md · 이 파일을 복제해 프로젝트 스킬을 만든다. 트리거 조건을 description 에 구체적으로 적을 것.
git:20260816.a9fd324 · audit A · 36 stars
grill-me SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/grill-me/SKILL.md · 사용자가 /grill-me 를 호출하거나 아이디어·기능 요청·스펙을 구현 전에 굽고(grill)·압박 검증하고·심문해 달라고 할 때 사용. superpowers:brainstorming 의 opt-in 대체재 —…
git:20260822.35847f9 · audit A · 36 stars
handoff SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/handoff/SKILL.md · 세션을 끊고 다음 세션에 넘긴다 — 재개 가능한 상태를 HANDOFF.md 에 적고, 협업 인프라(GitHub·GitLab·Forgejo·Jira·Plane·Slack)가 있으면 같은 내용으로 이슈를 만들어 URL…
git:20260921.c169293 · audit B · 36 stars
memory-factcheck SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/memory-factcheck/SKILL.md · 에이전트 영속 메모리를 실제 소스와 대조 — 각 메모리의 핵심 단언을 코드·DB·이슈 트래커·파일시스템에 대조해 stale 을 정정하고 dead 를 아카이브 후보로 리포트. 메모리가 30개를 넘거나, 스택/인프라…
git:20260816.a9fd324 · audit A · 36 stars
review SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/review/SKILL.md · 코드 변경사항 전체 리뷰. code-reviewer 에이전트 + security-audit 에이전트를 순차 실행하는 래퍼 스킬. PR/MR 생성 전 또는 리뷰 요청 시 사용.
git:20260925.ba49be6 · audit A · 36 stars
search-first SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/search-first/SKILL.md · 코드를 새로 짜기 전에 기존 솔루션(레포 내부 → 사내 미러 → 패키지 레지스트리 → MCP/스킬 → GitHub)을 먼저 검색하는 워크플로. 새 기능/유틸/의존성 추가 직전, "X 기능 넣어줘" 요청에 코드부터…
git:20261004.c8ec29b · audit A · 36 stars
security-precheck SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/security-precheck/SKILL.md · 외부 보안팀 코드 검사 전 자체 사전점검. security-audit 에이전트(+ 설정돼 있으면 SonarQube 보안 핫스팟)를 돌려 P0/P1/P2로 정리하고, 발견사항을 이슈로 쪼개 병렬 서브에이전트로…
git:20260925.6a0b105 · audit A · 36 stars
skill-evolve SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/skill-evolve/SKILL.md · 스킬 실행 후 피드백을 받아 해당 SKILL.md를 자동 개선하는 메타 스킬. 스킬이 틀렸거나 누락이 있을 때, 또는 새로 배운 함정을 기록할 때 사용.
git:20260925.6a0b105 · audit A · 36 stars
status SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/status/SKILL.md · 프로젝트 상태 한눈에 보기. Git 상태·빌드·테스트·최근 이슈·브랜치 현황을 한 번에 조회. 작업 시작 전 또는 상태 점검 시 사용.
git:20260925.ba49be6 · audit A · 36 stars
yd-agents-yaml SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/yd-agents-yaml/SKILL.md · 저장소의 에이전트 지침을 사람용 AGENTS.md + 기계 판독용 AGENTS.yaml + 검증기 scripts/check-agents-yaml.sh 세 파일로 세팅하거나 갱신한다. AGENTS.yaml 이 없는…
git:20261024.c5b81d9 · audit A · 36 stars
yd-blueprint SKILL.md skill
leeyudok/agents-scaffold · .claude/skills/yd-blueprint/SKILL.md · 프로젝트의 구조·기록 흐름·구현 현황·남은 작업을 JSONL 데이터로 적고 bun+Vite+React 청사진 화면(localhost:5173/blueprint/)으로 띄운다. 청사진·구조도·구현 현황표를 만들거나…
git:20261024.c5b81d9 · audit A · 36 stars

Every file in leeyudok/agents-scaffold

Other files named yd-db-expert

yd-db-expert SKILL.md skill
leeyudok/agents-scaffold · plugins/yd-skills/skills/yd-db-expert/SKILL.md · 엔진과 무관한 관계형 설계를 다룰 때 사용한다 — 스키마 정규화·키·NULL 의미·DB 제약·소프트 삭제·인덱스 선택 원칙·쿼리 규칙(N+1·플레이스홀더·커서 페이징)·트랜잭션 경계·마이그레이션 단계…
git:20261024.27d9360 · audit A · 36 stars
yd-db-expert SKILL.md skill
leeyudok/doksam-skills · skills/yd-db-expert/SKILL.md · 엔진과 무관한 관계형 설계를 다룰 때 사용한다 — 스키마 정규화·키·NULL 의미·DB 제약·소프트 삭제·인덱스 선택 원칙·쿼리 규칙(N+1·플레이스홀더·커서 페이징)·트랜잭션 경계·마이그레이션 단계…
git:20261011.76a7b1a · audit A · 14 stars

Browse by kind, by grade A, or by owner.