get-convex/agent-skills

convex-performance-audit

用实际读写与订阅信号定位Convex性能问题

  • 历史版本 SKILL.md
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

convex-performance-audit 是什么?

convex-performance-audit 围绕实际慢页面或高成本函数,检查读取放大、响应式订阅、写入竞争和函数限额。它先取得部署或代码证据,再沿一条用户流程追踪全部读写与同表相关函数,避免无数据就大改结构。

中文说明由本站依据来源整理;英文原文保留在页面下方。

适合用在

  • 页面更新慢、读字节或文档过多、OCC竞争、超时或订阅数量异常。

这些情况不适合

  • 小表轻流量且没有实际问题时,为了理想架构就创建汇总表或迁移数据。
按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 convex-performance-audit,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 convex-performance-audit

请在 Codex 的当前工作环境中安装并检查 convex-performance-audit 这个 Skill。

项目身份:get-convex/agent-skills / convex-performance-audit
来源:https://github.com/get-convex/agent-skills/blob/dc1093bc645f17b17b15943c994289be6453f466/skills/convex-performance-audit/SKILL.md
已定位的源文件:skills/convex-performance-audit/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 提供具体慢流程、当前工程与目标部署;有Health或CLI insights最好,缺运行数据时只能明确按代码审查。

会得到什么

  • 带具体代码与运行信号的性能发现、修复及行为回归或前后指标。

实际使用顺序

  1. 收集真实insights或Health信号,区分高读取、竞争、订阅或函数预算,再读取对应参考。
  2. 确定页面入口、useQuery等调用、读写表及同表函数,逐条追踪get/query/patch等访问。
  3. 根据证据选择索引、读取范围、订阅或写热点修复,相关兄弟函数一起核对;需要迁移的大改先形成可审阅方案。
  4. 对比行为和访问路径,确认无漏记录、旧数据兼容和订阅变化;没有前后测量不能宣称性能提升百分比。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

用 convex-performance-audit 检查“团队任务列表加载慢”。先读取目标部署insights与列表调用,追踪读写表和同表兄弟函数,区分全表读取、订阅失效与OCC。只提出有证据的修复;若需要新汇总表或回填,先说明方案与迁移范围。
预期结果

预期根据信号给出具体瓶颈与验证方式,未测量时不承诺加速幅度;本站未执行本例。

使用前先看这些限制

使用条件与边界

  • 没有insights不等于健康,也不能据此断言需要大型重构。
  • 单一函数指标可能只是症状,相关读写与订阅都可能放大成本。
针对这个 Skill 的疑问

常见问题

发现collect就必须重写吗?

来源允许已知小表的简单扫描,重点是增长边界、热点及测量信号;不能只凭方法名判断严重程度。

需要核对时再展开原文

来源原文与资料状态

来源版本
历史源文件(2026-06-17T09:00:27+08:00);原目录已变更,本页解释所链接的历史版本,不代表当前安装方式。
源文件
已保存 SKILL.md,抓取于 2026-11-17T10:54:39.348Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

skills/convex-performance-audit/SKILL.md · 抓取时间 2026-11-17T10:54:39.348Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read amplification.

查看源文件章节 / Source sections
  • 原文:Convex Performance Audit
  • 原文:When to Use
  • 原文:When Not to Use
  • 原文:Guardrails
  • 原文:First Step: Gather Signals
  • 原文:Signal Routing
  • 原文:Escalate Larger Fixes
  • 工作流程 / Workflow
  • 原文:1. Scope the problem
  • 原文:2. Trace the full read and write set
  • 原文:3. Apply fixes from the relevant reference
  • 原文:4. Fix sibling functions together
  • 原文:5. Verify before finishing
  • 原文:Reference Files
  • 原文:Checklist
原文:Convex Performance Audit

Diagnose and fix performance problems in Convex applications, one problem class at a time.

原文:When to Use

- A Convex page or feature feels slow or expensive - `npx convex insights --details` reports high bytes read, documents read, or OCC conflicts - Low-freshness read paths are using reactivity where point-in-time reads would do - OCC conflict errors or excessive mutation retries - High subscription count or slow UI updates - Functions approaching execution or transaction limits - The same performance pattern needs fixing across sibling functions

原文:When Not to Use

- Initial Convex setup, auth setup, or component extraction - Pure schema migrations with no performance goal - One-off micro-optimizations without a user-visible or deployment-visible problem

原文:Guardrails

- Prefer simpler code when scale is small, traffic is modest, or the available signals are weak - Do not recommend digest tables, document splitting, fetch-strategy changes, or migration-heavy rollouts unless there is a measured signal, a clearly unbounded path, or a known hot read/write path - In Convex, a simple scan on a small table is often acceptable. Do not invent structural work just because a pattern is not ideal at large scale

原文:First Step: Gather Signals

Start with the strongest signal available: 1. If deployment Health insights are already available from the user or the current context, treat them as a first-class source of performance signals. 2. If CLI insights are available, run `npx convex insights --details`. Use `--prod`, `--preview-name`, or `--deployment-name` when needed. - If the local repo's Convex CLI is too old to support `insights`, try `npx -y convex@latest insights --details` before giving up. 3. If the repo already uses `convex-doctor`, you may treat its findings as hints. Do not require it, and do not treat it as the source of truth. 4. If runtime signals are unavailable, audit from code anyway, but keep the guardrails above in mind. Lack of insights is not proof of health, but it is also not proof that a large refactor is warranted.

原文:Signal Routing

After gathering signals, identify the problem class and read the matching reference file. | Signal | Reference | | -------------------------------------------------------------- | ----------------------------------------- | | High bytes or documents read, JS filtering, unnecessary joins | `references/hot-path-rules.md` | | OCC conflict errors, write contention, mutation retries | `references/occ-conflicts.md` | | High subscription count, slow UI updates, excessive re-renders | `references/subscription-cost.md` | | Function timeouts, transaction size errors, large payloads | `references/function-budget.md` | | General "it's slow" with no specific signal | Start with `references/hot-path-rules.md` | Multiple problem classes can overlap. Read the most relevant reference first, then check the others if symptoms remain.

文件 SHA256:7a3943446e7c654d4d37b960cd75f10eae89d6e9ef57c9bf72fd4b9754cd31d1

仓库许可证记录:未提供;not-established,查看来源。

Skills.sh收录简介 · 2026-07-28

Audits Convex performance for reads, subscriptions, write contention, and function limits. Use for slow features, insights findings, OCC conflicts, or read…

查看历史简介来源

这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。

历史收录数据

Skill标识convex-performance-audit
来源仓库get-convex/agent-skills
榜单快照2026-07-28
榜单口径Skills.sh累计安装量
快照名次231
快照累计安装量92300

历史资料说明

  • 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
  • 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。

此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源