什麼是 mongodb-query-and-index-optimize?
MongoDB 查詢最佳化和索引策略。在編寫查詢、建立索引、建立聚合管道或偵錯緩慢操作時使用。在「慢查詢」、「建立索引」、「最佳化查詢」、「聚合管道」、「解釋輸出」、「COLLSCAN」、「ESR 規則」、「複合索引」、「部分索引」、「TTL 索引」、「文字搜尋」、「地理空間」、「$indexStats」、「分析器」上觸發。 來源:romiluz13/mongodb-agent-skills。
MongoDB 查詢最佳化和索引策略。在編寫查詢、建立索引、建立聚合管道或偵錯緩慢操作時使用。在「慢查詢」、「建立索引」、「最佳化查詢」、「聚合管道」、「解釋輸出」、「COLLSCAN」、「ESR 規則」、「複合索引」、「部分索引」、「TTL 索引」、「文字搜尋」、「地理空間」、「$indexStats」、「分析器」上觸發。
透過命令列快速安裝 mongodb-query-and-index-optimize AI 技能到你的開發環境
來源:romiluz13/mongodb-agent-skills。
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-optimizeMongoDB 查詢最佳化和索引策略。在編寫查詢、建立索引、建立聚合管道或偵錯緩慢操作時使用。在「慢查詢」、「建立索引」、「最佳化查詢」、「聚合管道」、「解釋輸出」、「COLLSCAN」、「ESR 規則」、「複合索引」、「部分索引」、「TTL 索引」、「文字搜尋」、「地理空間」、「$indexStats」、「分析器」上觸發。 來源:romiluz13/mongodb-agent-skills。
開啟你的終端機或命令列工具(如 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 中使用
https://github.com/romiluz13/mongodb-agent-skills