schema-design
Skill3 starsChanged 30 days agoMITView on GitHub
Design data structures, invariants and migrations for an identified datastore. Triggers on "data model", "数据模型".
5 other projects use a version of this.
Adopted by
Most recently taken up by
- butterbase-ai/butterbase-plugintheir own version, first seen Oct 8, 2026
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- gmanch94/claude-code-aidlc-templatetheir own version, first seen Jul 11, 2026
- butterbase-ai/butterbase-skillstheir own version, first seen Jun 10, 2026
- HamzaSheikh768/Agents-Skills-Laptheir own version, first seen Feb 4, 2026
Used with
Projects with it also use migrations.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
orangehrmSkillmigrations
Reference for OrangeHRM database migrations — the `installer/Migration/V{x}/Migration.php` pattern, what runs them (the installer for fresh databases, the upgrader for existing instances), the `MIGRATIONS_MAP` registry, and the helpers available inside a migration (`SchemaHelper`, `LangStringHelper`, `ConfigHelper`, `DataGroupHelper`). Use whenever the user is writing a new migration, bumping the version, debugging a failed migration, recovering a half-applied schema, asking how install vs upgrade decide which migrations to run, or asking about schema changes / lang-string updates / `hs_hr_config` writes / FK handling. **All 5.x migrations use Doctrine DBAL via `SchemaHelper` and `createQueryBuilder()` — raw SQL is the legacy V3.3.3 pattern (imported from 4.x) and not used for new work.** Permission seeding inside migrations is documented in the `authorization` skill; this skill covers the migration mechanics, not the permission model.
Also in 3 projects that use this
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- butterbase-ai/butterbase-plugin★ 535same name
- butterbase-ai/butterbase-skills★ 535same name
- nahid-sparktales/agent-dispatcher★ 59same name
- HamzaSheikh768/Agents-Skills-Lap★ 3same name
- gmanch94/claude-code-aidlc-template★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- oss-strategySkill
- specSkill
- researchSkill
- api-designSkill
- architectureSkill
- codebase-designSkill
- design-researchSkill
- domain-modelingSkill
- frontend-designSkill
- imagegenSkill
- image-to-codeSkill
- prompt-engineeringSkill
- prototypeSkill
- auth-implementationSkill
- breakdownSkill
- context-engineeringSkill
- error-handlingSkill
- i18nSkill
- implementSkill
- multi-agent-orchestrationSkill
- cost-optimizationSkill
- performanceSkill
- refactoringSkill
- simplifySkill
- api-testingSkill
- e2e-testingSkill
- load-testingSkill
- tddSkill
- test-generationSkill
- a11y-reviewSkill
- code-reviewSkill
- debuggingSkill
- lintingSkill
- security-reviewSkill
- ci-cdSkill
- deprecation-migrationSkill
- git-workflowSkill
- oss-polishSkill
- shippingSkill
- documentation-auditSkill
- handoffSkill
- incident-responseSkill
- observabilitySkill
- purity-auditSkill
- skill-authoringSkill
- using-skillsSkill
The file
Files
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
- Identify datastore, ownership, access patterns, consistency and retention; do not assume relational storage.
- Model entities or documents, identifiers, constraints and indexes using actual datastore capabilities.
- Evaluate deletion, concurrency, uniqueness and query cost; validate performance using real query plans or representative data.
- Specify backfill, repeated execution, consumer impact and recovery; create a separate SCHEMA only if useful for review.
Output: Suggested paths, subject to human audit: 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 — shared decision boundaries, scope and verification.
- mermaid-diagrams.md — Mermaid erDiagram syntax for entity-relationship diagrams
- human-audit.md — document consent, readability and human review.
- references/schema-patterns.md — normalization trade-offs, index patterns, partitioning strategies, soft-delete policies
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

