agentleFS
gclmgclm/super-stack/skills/planning/database-design/SKILL.md

database-design

Skill0 starsChanged 8 months agoMITView on GitHub

Design or review database schemas, indexes, constraints, and data access trade-offs before implementation hardens around weak persistence choices.

42 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use intelligent-routing, i18n-localization and 9 more.

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.
  • tiendatworkSkill

    intelligent-routing

    Automatic agent selection and intelligent task routing. Analyzes user requests and automatically selects the best specialist agent(s) without requiring explicit user mentions.

    Also in 3 projects that use this

  • xfstudioSkill

    i18n-localization

    Internationalization and localization patterns. Detecting hardcoded strings, managing translations, locale files, RTL support.

    Also in 5 projects that use this

  • xfstudioSkill

    behavioral-modes

    AI operational modes (brainstorm, implement, debug, review, teach, ship, orchestrate). Use to adapt behavior based on task type.

    Also in 3 projects that use this

  • +8 more from xfstudio

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 41 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a task changes persistence structure, query shape, indexing, or long-term data modeling.

    line 8
  2. Distinctive:

    avoid accidental coupling between application convenience and poor data design

    line 24
  3. Distinctive:

    Consider indexing, integrity, and data-lifecycle implications.

    line 31
  4. Distinctive:

    Consider migration and backfill cost if the data already exists.

    line 32
  5. Very specific:

    Read references/schema-checklist.md when you need a more detailed schema pass.

    line 35

“Common” is measured: kept by at least 6 in 10 of the 41 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Database Design

Use this skill when a task changes persistence structure, query shape, indexing, or long-term data modeling.

Read First

  • current schema, models, or migration files
  • query patterns and access paths
  • data integrity or retention constraints
  • docs/reference/requirements.md and harness/state.md if they exist
  • harness/history.md if it exists
  • references/schema-checklist.md when you need a stronger schema checklist

Goals

  • choose a schema that matches actual query and mutation paths
  • make constraints and invariants explicit
  • surface index, migration, and compatibility implications early
  • avoid accidental coupling between application convenience and poor data design

Steps

  1. Restate the entities, relationships, and lifecycle rules.
  2. Identify the dominant read and write paths.
  3. Design the schema and constraints around those paths.
  4. Consider indexing, integrity, and data-lifecycle implications.
  5. Consider migration and backfill cost if the data already exists.
  6. Report trade-offs rather than pretending there is only one valid shape.

Read references/schema-checklist.md when you need a more detailed schema pass.

Output

Report:

  • entities and relationships
  • recommended schema shape
  • indexes and constraints
  • migration implications
  • trade-offs and risks

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.