Convex 应用审计与优化
convex-optimize
审计并优化现有 Convex 应用:涵盖安全性、扩展性、升级和可观测性。
- License 许可
- MIT
- 所属仓库
- openclaw/clawhub
- 最近更新
- 2026-11-15
- Stars
- ★ 9.6k
- Forks
- 1.5k
01 前言 Front Matter
- name
- convex-optimize
- description
- Audit and optimize an existing Convex app: security, scale, upgrades, observability.
03 SKILL.md 正文
<!-- GENERATED from convex-agents content/capabilities/optimize.json — do not edit by hand. -->
Audit and optimize an existing Convex app
The remediation WORKFLOW for an existing app: open with a scored assessment, then act on it — upgrade stale components and set up observability — plan-then-confirm-then-apply. The assessment itself is delegated to launch-readiness (the findings-bus scorer); optimize's distinct value is the actions it takes on the result.
Workflow
- Detect the app: a
convex/directory, the schema, and whether it's an anonymous or cloud deployment. - ASSESS via
launch-readiness— one scored, deduped report across authz/reviewer/advisor/insights with an ordered fix plan. Do not re-run those passes by hand; optimize consumes launch-readiness's report rather than re-implementing the audit. - UPGRADE: run
check-updatesagainst the pinned@convex-dev/*components and fold stale-component (staleness-class) findings into the same plan. - OBSERVABILITY: if the readiness report flagged an observability gap (no prod error capture), offer to install
sentinel. - Present the combined prioritized plan — the launch-readiness score + the fix plan + upgrades + observability, security/data-loss first — and apply only on explicit confirmation, dispatching each fix to its fixCapability.
- After applying, re-run the launch-readiness assessment and show the score delta.
Rules
- Read-only first. Present a plan and CONFIRM before changing any file.
- Delegate the audit to launch-readiness (the findings-bus scorer); don't re-implement reviewer/advisor/insights inline — optimize's job is acting on the report (upgrades + observability), not re-scoring.
- Prioritize security and data-loss risks above style, following launch-readiness's ordering.
- Never auto-land changes on someone's existing prod app; re-assess after applying and show the score moved.
04 同仓库更多 Skills
notes
Turn user-provided notes into a concise agenda.
hosted-research
Read approved reference material for the hosted proof.
Convex 部署性能诊断
convex-advisor
读取 Convex 部署的 72 小时洞察数据(读取限制、OCC 争用),在代码中逐一定位每个事件的根因,报告有证据支撑的性能/成本问题及修复方案。
Convex 应用能力扩展
convex-add
向当前 Convex 应用添加功能——查阅所提供服务的 Convex 能力目录以获取始终最新的流程(计费、定时任务、认证、智能体、搜索等);若不可用则回退到内置托管或 @convex-dev 组件搜索。当用户运行 /add,或要求向现有 Convex 应用添加托管/发布功能或任何后端能力时触发。
Convex 域名购买与绑定
convex-acquire-domain
通过 Convex 为当前 Convex 应用查找并购买域名,然后进行绑定(实验室环境;消费操作)。
Axiom 成本优化分析
controlling-costs
分析 Axiom 查询模式以找出未使用的数据,随后构建仪表盘和监控以实现成本优化。适用于降低 Axiom 成本、查找未使用的列或字段值、识别数据浪费,或跟踪数据摄取支出。