·mongodb-query-and-index-optimize
</>

mongodb-query-and-index-optimize

MongoDB 查询优化和索引策略。在编写查询、创建索引、构建聚合管道或调试缓慢操作时使用。在“慢查询”、“创建索引”、“优化查询”、“聚合管道”、“解释输出”、“COLLSCAN”、“ESR 规则”、“复合索引”、“部分索引”、“TTL 索引”、“文本搜索”、“地理空间”、“$indexStats”、“分析器”上触发。

158安装·17热度·@romiluz13

安装

$npx skills add https://github.com/romiluz13/mongodb-agent-skills --skill mongodb-query-and-index-optimize

如何安装 mongodb-query-and-index-optimize

通过命令行快速安装 mongodb-query-and-index-optimize AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/romiluz13/mongodb-agent-skills --skill mongodb-query-and-index-optimize
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:romiluz13/mongodb-agent-skills。

SKILL.md

查看原文

Query patterns and indexing strategies for MongoDB, maintained by MongoDB. Contains 46 rules across 5 categories, prioritized by impact. Includes MongoDB 8.0 features: bulkWrite command, $queryStats (introduced in MongoDB 6.0.7, with 8.1/8.2 enhancements), Query Settings, and updateOne sort option. Indexes are the primary tool for query performance—most slow queries are missing an appropriate index.

| Priority | Category | Impact | Prefix | Rules |

| 1 | Index Essentials | CRITICAL | index- | 9 | | 2 | Specialized Indexes | HIGH | index- | 11 | | 3 | Query Patterns | HIGH | query- | 10 | | 4 | Aggregation Optimization | HIGH | agg- | 8 | | 5 | Performance Diagnostics | MEDIUM | perf- | 8 |

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/romiluz13/mongodb-agent-skills --skill mongodb-query-and-index-optimize
分类
</>开发工具
认证
收录时间
2026-03-03
更新时间
2026-03-10

Browse more skills from romiluz13/mongodb-agent-skills

快速解答

什么是 mongodb-query-and-index-optimize?

MongoDB 查询优化和索引策略。在编写查询、创建索引、构建聚合管道或调试缓慢操作时使用。在“慢查询”、“创建索引”、“优化查询”、“聚合管道”、“解释输出”、“COLLSCAN”、“ESR 规则”、“复合索引”、“部分索引”、“TTL 索引”、“文本搜索”、“地理空间”、“$indexStats”、“分析器”上触发。 来源:romiluz13/mongodb-agent-skills。

如何安装 mongodb-query-and-index-optimize?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/romiluz13/mongodb-agent-skills --skill mongodb-query-and-index-optimize 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/romiluz13/mongodb-agent-skills

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-03-03