Convex Optimize

作者 get-convex2cfe645c87f9无许可证63 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6天前更新

Audit and optimize an existing Convex app: security, scale, upgrades, observability.

AI 生成的概览

通过就绪报告审计现有 Convex 应用,并规划与执行升级和可观测性修复。

功能
该技能为现有 Convex 应用定义了一套修复工作流。它会识别应用及其部署类型,使用 launch-readiness 提供的评分就绪报告,检查已固定的 @convex-dev 组件是否过期,并在缺少可观测性时提议安装错误捕获工具。随后它给出统一的优先级计划,仅在明确确认后应用修复,并在之后重新评估以展示分数变化。
适用场景
适用于现有 Convex 应用需要安全、扩展性、升级或可观测性审查并随后进行具体修复的场景。适合希望先做只读评估、再对已部署应用进行受控且经确认变更的团队。
运行要求
仅为说明文档,不包含脚本。需要具备 convex/ 目录和 schema 的 Convex 项目,并依赖名为 launch-readiness、check-updates 和 sentinel 的配套能力,以及 fixCapability 调度机制。
<!-- 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

  1. Detect the app: a convex/ directory, the schema, and whether it's an anonymous or cloud deployment.
  2. 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.
  3. UPGRADE: run check-updates against the pinned @convex-dev/* components and fold stale-component (staleness-class) findings into the same plan.
  4. OBSERVABILITY: if the readiness report flagged an observability gap (no prod error capture), offer to install sentinel.
  5. 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.
  6. 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.

来源与署名

来源:get-convex/agent-skills位于skills/convex-optimize提交2cfe645

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架