Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

convex-performance-audit凸绩效审计

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

822,096

周安装

34,580

GitHub Stars

25

下载量

287,872
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:convex-performance-audit(凸绩效审计)
来源仓库:https://github.com/get-convex/agent-skills
仓库路径:skills/convex-performance-audit
安装命令:
npx skills add https://github.com/get-convex/agent-skills --skill convex-performance-audit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/get-convex/agent-skills --skill convex-performance-audit

简介

诊断并解决读取、写入、订阅和功能限制方面的 Convex 性能问题。

  • 涵盖四个问题类别:热路径读取和数据放大、OCC 写入冲突和争用、订阅成本和反应性开销以及函数执行或事务大小限制
  • 首先从部署运行状况洞察或 CLI 工具收集信号,然后根据问题类型路由到相关参考指南
  • 强调跟踪完整的读取和写入集,识别同一表上的同级函数,并跨相关代码路径一致地修复模式
  • 包括防止过度设计小规模或低流量应用程序的防护措施,以及针对需要迁移安全部署的侵入性修复的升级指南

SKILL.md

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.

  1. 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.
  2. 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.

SignalReference
High bytes or documents read, JS filtering, unnecessary joinsreferences/hot-path-rules.md
OCC conflict errors, write contention, mutation retriesreferences/occ-conflicts.md
High subscription count, slow UI updates, excessive re-rendersreferences/subscription-cost.md
Function timeouts, transaction size errors, large payloadsreferences/function-budget.md
General "it's slow" with no specific signalStart with references/hot-path-rules.md

Multiple problem classes can overlap. Read the most relevant reference first, then check the others if symptoms remain.

Escalate Larger Fixes

If the likely fix is invasive, cross-cutting, or migration-heavy, stop and present options before editing.

Examples:

  • introducing digest or summary tables across multiple flows
  • splitting documents to isolate frequently-updated fields
  • reworking pagination or fetch strategy across several screens
  • switching to a new index or denormalized field that needs migration-safe rollout

When correctness depends on handling old and new states during a rollout, consult skills/convex-migration-helper/SKILL.md for the migration workflow.

Workflow

1. Scope the problem

Pick one concrete user flow from the actual project. Look at the codebase, client pages, and API surface to find the flow that matches the symptom.

Write down:

  • entrypoint functions
  • client callsites using useQuery, usePaginatedQuery, or useMutation
  • tables read
  • tables written
  • whether the path is high-read, high-write, or both

2. Trace the full read and write set

For each function in the path:

  1. Trace every ctx.db.get() and ctx.db.query()
  2. Trace every ctx.db.patch(), ctx.db.replace(), and ctx.db.insert()
  3. Note foreign-key lookups, JS-side filtering, and full-document reads
  4. Identify all sibling functions touching the same tables
  5. Identify reactive stats, aggregates, or widgets rendered on the same page

In Convex, every extra read increases transaction work, and every write can invalidate reactive subscribers. Treat read amplification and invalidation amplification as first-class problems.

3. Apply fixes from the relevant reference

Read the reference file matching your problem class. Each reference includes specific patterns, code examples, and a recommended fix order.

Do not stop at the single function named by an insight. Trace sibling readers and writers touching the same tables.

4. Fix sibling functions together

When one function touching a table has a performance bug, audit sibling functions for the same pattern.

After finding one problem, inspect both sibling readers and sibling writers for the same table family, including companion digest or summary tables.

Examples:

  • If one list query switches from full docs to a digest table, inspect the other list queries for that table
  • If one mutation isolates a frequently-updated field or splits a hot document, inspect the other writers to the same table
  • If one read path needs a migration-safe rollout for an unbackfilled field, inspect sibling reads for the same rollout risk

Do not leave one path fixed and another path on the old pattern unless there is a clear product reason.

5. Verify before finishing

Confirm all of these:

  1. Results are the same as before, no dropped records
  2. Eliminated reads or writes are no longer in the path where expected
  3. Fallback behavior works when denormalized or indexed fields are missing
  4. Frequently-updated fields are isolated from widely-read documents where needed
  5. Every relevant sibling reader and writer was inspected, not just the original function

Reference Files

  • references/hot-path-rules.md - Read amplification, invalidation, denormalization, indexes, digest tables
  • references/occ-conflicts.md - Write contention, OCC resolution, hot document splitting
  • references/subscription-cost.md - Reactive query cost, subscription granularity, point-in-time reads
  • references/function-budget.md - Execution limits, transaction size, large documents, payload size

Also check the official Convex Best Practices page for additional patterns covering argument validation, access control, and code organization that may surface during the audit.

Checklist

  • Gathered signals from insights, dashboard, or code audit
  • Identified the problem class and read the matching reference
  • Scoped one concrete user flow or function path
  • Traced every read and write in that path
  • Identified sibling functions touching the same tables
  • Applied fixes from the reference, following the recommended fix order
  • Fixed sibling functions consistently
  • Verified behavior and confirmed no regressions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.16%
按下载量换算101,216

Claude

28.73%
按下载量换算82,706

Cursor

18.61%
按下载量换算53,573

Gemini CLI

8.81%
按下载量换算25,362

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills