agentleFS
kuker24kuker24/OpenCodeBestFriend/skills/mongodb-ops/SKILL.md

mongodb-ops

Skill0 starsChanged 2 months agoMITView on GitHub

Use when the user designs MongoDB schemas, indexes, aggregation, transactions, or Atlas-compatible data access. Not for UI, not for Supabase Postgres, not for deploying Vercel.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    NO UI generation: Do not design or style user interfaces, tables, or components.

    line 24
  2. Distinctive:

    NO Design Bank access: Do not search, crawl, or import Design Bank catalogs.

    line 25
  3. Very specific:

    NO secret exposure: Never print connection strings containing usernames, passwords, or Atlas cluster credentials.

    line 26
  4. Very specific:

    Check package.json or project lockfiles to detect mongodb driver version or mongoose.

    line 32
  5. Distinctive:

    Never invent document schemas out of thin air if existing models or types already define the shape.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

MongoDB Ops

First-party data modeling and access specialist for MongoDB and Mongoose. Handles document schema design, index strategy, aggregation pipelines, transaction boundaries, and Atlas compatibility.

Boundaries & Handoffs

NeedRoute
Visual UI, data visualization, forms, dashboard componentsfound-this-design → impeccable (Design Bank)
Supabase Auth, RLS, Postgres migrationssupabase-ops
Vercel deployment, edge routing, preview URLsvercel-ops
Official MongoDB driver / Mongoose syntaxContext7 (mongodb, mongoose)
MongoDB schema, indexes, aggregations, transactionsmongodb-ops

Explicit Non-Goals & Safety

  • NO UI generation: Do not design or style user interfaces, tables, or components. UI belongs to impeccable. Vendor stack ≠ UI.
  • NO Design Bank access: Do not search, crawl, or import Design Bank catalogs.
  • NO secret exposure: Never print connection strings containing usernames, passwords, or Atlas cluster credentials. Use environment variable placeholders (MONGODB_URI).

Procedure

  1. Repo Evidence First:
    • Inspect existing schemas, Mongoose models (models/, schemas/), or document collections.
    • Check package.json or project lockfiles to detect mongodb driver version or mongoose.
    • Never invent document schemas out of thin air if existing models or types already define the shape.
  2. Official Documentation via Context7:
    • Fetch verified driver or Mongoose query syntax and index options from Context7. Do not hallucinate deprecated query operators.
  3. Indexing & Aggregation Design:
    • Define compound indexes following the Equality, Sort, Range (ESR) rule.
    • Profile aggregation pipelines ($match, $project, $group, $lookup) to avoid memory spills and unindexed collscans.
  4. Data Access Implementation:
    • Implement typed models, repository functions, and schema validation scripts according to established project conventions.

Finish Gate

  • State all modified files (e.g. models, schemas, repositories, migration scripts).
  • Execute project verification commands (npm test, pytest) or report NOT_CONFIGURED if none exist.

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.

Reviews can't be read right now.

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.