/zstack-backend:mongodb-best-practicesfrom zstack-backend
设计或审查 MongoDB 文档模型、查询索引和并发更新,诊断连接与性能问题,并评估数据迁移和运行变更风险。
Ships in zstack-backend. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
根据真实访问模式、数据规模和一致性要求判断设计,先取证再优化。不把关系模型直接改写为文档,也不默认嵌入全部数据、增加索引、使用事务或分片。
| 任务 | 资料 |
|---|---|
| 嵌入与引用、增长、验证器、结构演进、回填 | 模型与演进 |
| 查询、聚合、分页、索引和执行计划 | 查询与索引 |
| 条件更新、唯一性、事务、读写一致性和重试 | 并发与一致性 |
| 连接、超时、运行故障、安全与高风险变更 | 连接与运行 |
只加载受影响主题。Atlas Search、Vector Search、流处理和分片设计需要具体任务及对应版本资料,不作为普通 CRUD 的默认前置流程。
$out 或 $merge。不要为了诊断默认开启 profiler、扫描全库或导出敏感数据。参考 MongoDB 官方 Agent Skills 的 schema-design、connection 和 query-optimizer 主题,独立编写以下工程检查。保留访问模式与上下文优先的思路;移除对 MCP/Atlas 的强制依赖、通用连接参数及仅凭查询形态就认定索引方案的做法。具体机制以目标版本、驱动和官方文档为准。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub calvingit/skills --plugin zstack-backend7 skills in this plugin
/api-contracts设计、审查或演进 API 与事件 Schema,检查实现与契约是否一致、调用方是否兼容,以及生成产物是否与源文件同步。/backend-developmentApply backend engineering practices when changing server-side APIs, services, persistence, integrations, or background processing./event-driven-backend设计或审查消息、事件、Webhook 与后台任务的投递、消费、确认、重试和重放流程,检查异步业务副作用与恢复语义。/java-coding-guidelines编写、修改或审查 Java 代码时,按项目约定和《Java 开发手册(黄山版)》检查编码规约。Other plugins' skills for the same job