agentleFS
neuron-oneneuron-one/GODMODE/skills/development/database/SKILL.md

database

Skill33 starsChanged 8 months agoMITView on GitHub

PostgreSQL and MongoDB database design. Schema design, migrations, indexing, query optimization, RLS security policies. Don't use for application logic or API development.

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use payment, ci-cd and 7 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.
  • lightpointventuresSkill

    payment

    当用户想加支付、收款、集成 Stripe、做订阅付费时使用 — 集成支付系统,支持一次性和订阅

    Also in 3 projects that use this

  • JohnJBorenSkill

    ci-cd

    CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    i18n

    Internationalization and localization

    Also in 3 projects that use this

  • OpenAISkill

    email

    Email sending integration guidance — Resend (native Vercel Marketplace) with React Email templates. Covers API setup, transactional emails, domain verification, and template patterns. Use when sending emails from a Vercel-deployed application.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 5 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check constraints for data integrity

    line 16
  2. Distinctive:

    Always include rollback (down migration)

    line 27
  3. Distinctive:

    Never modify existing migration

    line 28
  4. Distinctive:

    Test migration on copy of production data

    line 29
  5. Distinctive:

    Avoid N+1: use JOINs or eager loading

    line 38
  6. Distinctive:

    Read replicas for heavy read workloads

    line 41

“Common” is measured: kept by at least 6 in 10 of the 16 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 Development

PostgreSQL

  • Normalized schema (3NF minimum)
  • UUID primary keys for distributed systems
  • Created_at/updated_at timestamps on all tables
  • Foreign key constraints with ON DELETE behavior
  • Check constraints for data integrity

Indexing

  • B-tree for equality and range queries
  • GIN for full-text search and JSONB
  • Partial indexes for filtered queries
  • Composite indexes: most selective column first
  • EXPLAIN ANALYZE before and after

Migrations

  • Sequential numbered migrations
  • Always include rollback (down migration)
  • Never modify existing migration
  • Test migration on copy of production data

MongoDB

  • Schema design by access patterns (not normalization)
  • Embedding for 1:few relationships
  • References for 1:many or many:many
  • Compound indexes matching query patterns

Query Optimization

  • Avoid N+1: use JOINs or eager loading
  • Pagination with cursor, not OFFSET
  • Connection pooling (PgBouncer)
  • Read replicas for heavy read workloads

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.