Skip to content
Back to skills

Schema Design

ASecurity

Design data structures, invariants and migrations for an identified datastore. Triggers on "data model", "数据模型".

  • 3 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 4, 2026
ai-agentsapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add int2t05/engineering-skills --skill schema-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/int2t05-schema-design/badge)](https://www.skillsdirectory.com/skills/int2t05-schema-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema-design
description: Design data structures, invariants and migrations for an identified datastore. Triggers on "data model", "数据模型".
---

# Schema Design

## When to use

- Design data structures, invariants and migrations for an identified datastore.

**Not for:** api-design for transport; deprecation-migration for migration execution.

## Steps

1. Identify datastore, ownership, access patterns, consistency and retention; do not assume relational storage.

2. Model entities or documents, identifiers, constraints and indexes using actual datastore capabilities.

3. Evaluate deletion, concurrency, uniqueness and query cost; validate performance using real query plans or representative data.

4. Specify backfill, repeated execution, consumer impact and recovery; create a separate SCHEMA only if useful for review.

**Output:** Suggested paths, subject to [human audit](../../../references/human-audit.md): `docs/design/SCHEMA.md` if useful beyond schema source.

## Verify

- Structures fit real access patterns; integrity and migration checks are explicit and performance evidence is labelled.

## References

- [engineering-principles.md](../../../references/engineering-principles.md) — shared decision boundaries, scope and verification.
- [mermaid-diagrams.md](../../../references/mermaid-diagrams.md) — Mermaid erDiagram syntax for entity-relationship diagrams
- [human-audit.md](../../../references/human-audit.md) — document consent, readability and human review.
- [references/schema-patterns.md](references/schema-patterns.md) — normalization trade-offs, index patterns, partitioning strategies, soft-delete policies

Files in this skill

  • SKILL.md6.7 KB
  • agents/openai.yaml157 B
  • references/schema-patterns.md8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.