Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
Relational schema design — normalization, keys, constraints, and evolution — use when modeling data or reviewing a schema.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Good schema design is decided once and paid for (or repaid) forever. This skill covers the principles behind durable relational schemas: normalization done pragmatically, key selection, constraints as documentation, and how to evolve a schema without downtime.
Normalize to 3NF by default, denormalize with evidence. First normal form (atomic values, no repeating groups), second (no partial dependencies), third (no transitive dependencies) eliminate update anomalies. Denormalize only for a measured query problem — a cached count or a materialized summary — never preemptively.
Keys carry meaning. Primary keys should be stable, unique, and meaningless if possible: surrogate integer/UUID keys survive business-rule changes that natural keys (email, username, SKU formats) do not. Foreign keys enforce referential integrity — declare them; the database is the last line of defense against orphaned rows.
Constraints are executable documentation. NOT NULL, UNIQUE, CHECK, and
foreign keys encode business rules where they cannot be bypassed. Application
code changes; constraints persist. Prefer the database enforcing "an order must
have a customer" over hoping every code path remembers.
Choose types deliberately. Money → NUMERIC/DECIMAL, never float.
Timestamps → timezone-aware types, stored in UTC. Enums → real enum types or
check constraints for closed sets; lookup tables when the set may grow or needs
metadata. Text with a known max → bounded VARCHAR; unbounded → TEXT.
Design for evolution. Every table gets created_at/updated_at (or
equivalent); soft-delete vs hard-delete is decided per entity; large tables get
their growth strategy up front (partitioning by time, archival policy).
created_at, role, ordering).id PK, <entity>_id FK, *_at timestamps).CHECK (price >= 0)), foreign keys with explicit ON DELETE behavior.NULL shipped_at mean "not
shipped" or "unknown"? Document it or split the state explicitly.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.
中文简介正在准备中。当前显示原文说明。
Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.
中文简介正在准备中。当前显示原文说明。
Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.
中文简介正在准备中。当前显示原文说明。
Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.
中文简介正在准备中。当前显示原文说明。
Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.
中文简介正在准备中。当前显示原文说明。
Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.
中文简介正在准备中。当前显示原文说明。