跳到正文
cccskills
免费在 GitHub 公开中文介绍

trpc-compat

根据发布标签、变更历史和 PostHog 调用记录,检查 tRPC 改动对已发布客户端的兼容性,选择变更方式,评估是否能移除弃用功能,并梳理故障恢复方案。

原文查看原文说明

Check that a tRPC change is safe for released desktop, mobile, CLI, and SDK builds, pick the compatible pattern, and decide when a deprecated procedure can be removed. Use when changing, renaming, or removing an existing procedure, input field, or output field in packages/trpc or packages/host-service, when reviewing such a PR, or when a deploy broke released clients.

ParadevAI/Paradev星标 15,720(GitHub 15,720 + cccskills 0)
集成工具Sentry

实测评分 未实测

查看安装方法

适用场景

  • 确认 API 改动对已发布应用的影响
  • 兼容地调整输入或输出
  • 判断能否移除弃用的处理过程
  • 规划 API 更新后的故障恢复

中文介绍

功能

在更改 tRPC 已公开的处理过程、输入或输出之前,检查改动是否与已发布的应用兼容。技能会从发布标签和变更历史中查找调用方,并结合 PostHog 的调用记录进行判断。它会根据改动类型建议兼容方案,例如新增处理过程、添加可选输入,或保留旧名称作为别名。

适用场景

修改 packages/trpc 或 packages/host-service、审查相关拉取请求,或调查仅在旧版应用中出现的故障时,可以使用此技能。它也能整理移除弃用处理过程所需的依据,并梳理 API 与客户端的发布顺序。

使用示例

  • “请确认这个返回值改动是否会影响已发布的应用。”
  • “请检查这个弃用的处理过程是否可以移除。”
  • “API 发布后旧版应用出现故障,请整理恢复方案。”

注意事项

代码库需要包含发布标签、最低支持版本和监控事件。查询使用情况时会使用 PostHog,调查故障时会参考 Sentry。调用记录只抽取 1%,因此没有记录并不能单独证明某项功能无人使用。提高最低支持版本需要产品层面的决定。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足会使用 git 和 gh 命令,并说明记录抽样率为 1%,但操作确认范围有限。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足依赖发布标签、最低版本、PostHog 和 Sentry,但未提供配置步骤。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月29日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md6.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

tRPC compatibility

On 2026-09-23, #7726 changed page.list from a bare array to { items, nextCursor }. It updated every caller on main, so typecheck and tests passed. Desktop 1.30.0–1.30.2 still called .map on the result, and every workspace view crashed (SEV1, 337 Sentry events, postmortem "page.list response change crashed released desktop apps"). CI only sees main. This skill is how you check the builds CI cannot see.

1. Find released callers

Search the release tags, not main. Run git fetch --tags first in a fresh clone.

PROC='page\.list(?!Paginated)'   # the procedure path; exclude longer names that share the prefix
FLOOR=1.29.0                     # MINIMUM_DESKTOP_VERSION in apps/api/src/app/api/desktop/version/route.ts
for v in $({ echo "$FLOOR"; git tag -l 'desktop-v*' | sed 's/^desktop-v//'; } | awk '!/-/' | sort -uV | sed -n "/^$FLOOR\$/,\$p"); do
  git rev-parse -q --verify "refs/tags/desktop-v$v" >/dev/null || continue
  git grep -q -P "$PROC" "desktop-v$v" -- apps/desktop && echo "desktop-v$v calls it"
done
  • Desktop: every desktop-v* tag at or above the floor is live.
  • CLI: same loop with cli-v* tags and -- packages/cli. The CLI has no floor, so check every tag you can; old installs stay in use.
  • Mobile: no tags, and MINIMUM_MOBILE_VERSION is 1.0.0. If apps/mobile on main calls it, or git log -S shows it ever did, treat it as called by a live build.
  • SDK: packages/sdk calls procedures by string (/api/trpc/<procedure>). Search main and git log -S the same way.
  • host-service procedures: callers are desktop, CLI, and mobile, and the host can be older or newer than the client. See packages/host-service/AGENTS.md.

Any hit means the procedure is live. Its input and output are frozen.

2. Check usage data

The API samples 1% of calls into the PostHog event api_procedure_called. Run this in the PostHog SQL editor or through the PostHog MCP:

SELECT properties.client_product AS product, properties.client_version AS version,
       count() * 100 AS est_calls, max(timestamp) AS last_seen
FROM events
WHERE event = 'api_procedure_called' AND properties.procedure = 'page.list'
  AND timestamp > now() - INTERVAL 30 DAY
GROUP BY product, version ORDER BY product, version

Zero rows is weak evidence for a rarely called procedure: 1% of a small number rounds to zero. Calls from web and from builds older than the x-superset-client header are not recorded.

3. Pick the pattern

You want toDo thisExample
Change an output shapeNew procedure; old one keeps its shapepage.list + page.listPaginated (#7756)
Add an inputNew optional field, default in the handler (safe: old clients do not send it)
Accept a new input shapeAccept both, convert server-siderrule + triggers in automation/schema.ts
Rename a procedureNew name; old name stays as a @deprecated aliastask.all → task.list in task/task.ts
Drop an inputKeep accepting it and ignore itbranch in task/schema.ts
Drop an output fieldKeep sending it until removal is allowedthe plugins catalog field that #7317 removed crashed old desktops
Drop or rename a DB columnPick the procedure's output columns first, keep the old fielddb.query.*.find* without columns returns every column
Make an input stricterOnly on a new input or procedurepublishPageSchema is .strict() from the start, so a newer CLI fails loudly on an older server
Change an error code, default, or sort orderNew procedure, or a new optional input that opts in (absent keeps the old behavior)desktop branches on NOT_FOUND and CONFLICT
Call a new procedure from a clientMerge the API first, then the client after the API is live#7317's API deploy stalled two days behind migration 0119

To check the API is live, the latest Deploy Production run after your API merge must have passed: gh run list --workflow deploy-production.yml --branch main --limit 5.

In client code, expect the unknown: guard new optional fields, handle enum values the client has not seen, and keep a failing widget from taking its parent view down with it. #7726 crashed the whole workspace view from one menu.

Keep the schema migration in its own PR. #7726 had a migration inside it, so the bad API change could not be reverted.

4. Remove a deprecated procedure or field

Only when both are true:

  • Step 1 finds no call in a live desktop tag and no call from mobile, CLI, or SDK.
  • Step 2 shows no calls from a live version over the last 30 days.

If a live desktop build still calls it, the only path is to raise MINIMUM_DESKTOP_VERSION. That is a product decision; ask, do not do it in a cleanup PR. Put the evidence in the PR description, as d1aee0922f did for device.heartbeat.

5. If released clients are already broken

  1. Confirm with Sentry: a new desktop issue that starts at the API deploy time.
  2. Does the PR that broke it include a migration that production already applied?
    • No: revert the PR. The API redeploys on merge.
    • Yes: write a forward fix that restores the old contract and moves the new shape to a new procedure, as #7756 did. Do not roll back the migration.
  3. Tell affected users to reload (Cmd+R). Some needed to restart the app or the terminal daemon.

Checklist

  • Step 1 run for every procedure whose input or output changed, with the result in the PR
  • No existing input field is new-required, renamed, retyped, or more strictly validated
  • No existing output field is removed, renamed, retyped, wrapped, or newly nullable, including through a DB column change on a find* without columns
  • No change to an existing error code, default limit, sort order, or meaning of null
  • No change to a procedure's type (query, mutation, subscription), the link, or the transformer
  • No new required header or stricter auth on an existing procedure
  • Client code that needs a new procedure merges after the API is live in production
  • Every new input field is optional with a server-side default
  • A replaced procedure is kept as a @deprecated alias
  • No schema migration in the same PR as the contract change
  • Removals: step 1 and step 2 evidence is in the PR

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

10x

免费有简介

检查 Superset 的使用情况,找出适合当前工作方式但尚未使用的功能,给出建议并介绍选项;用户选定后,可协助设置定时运行、并行工作区或共享任务等功能。

  • 查找尚未使用的 Superset 功能
  • 设置定时运行的智能体
  • 在多个工作区并行处理任务
ParadevAI/Paradev1.6万2026年10月29日 更新

automate

免费有简介

把重复任务配置为 Superset 自动化,整理智能体指令、定时或事件触发条件及运行工作区。经明确确认后创建设置,检查已保存的条件,并查看首次运行结果以调整指令。

  • 按日或按周运行任务
  • GitHub 新建拉取请求时启动任务
  • 收到 Slack 指定表情反应时触发
ParadevAI/Paradev1.6万2026年10月29日 更新

browser

免费有简介

通过 Superset 工作区的浏览器查看网页、点击、输入并检查截图或控制台信息,可用于预览运行中的网页应用、检查界面操作和表单流程。

  • 预览本地网页应用
  • 截取页面图像
  • 查看控制台错误
ParadevAI/Paradev1.6万2026年10月29日 更新

依据 Stripe 官方文档和 API 参数定义实现支付、订阅、发票及 Webhook 集成,涵盖产品选择、沙盒测试和事件处理,并通过 Webhook 判断支付与订阅状态。

  • 选择定期扣费产品
  • 实现 Checkout 或发票处理
  • 排查行为异常的 Stripe 集成
ParadevAI/Paradev1.6万2026年10月29日 更新

cdp-verification

免费有简介

通过 Chrome DevTools Protocol 操作正在运行的 Electron 桌面应用,复现界面问题并验证修改。按实际操作流程检查页面跳转,记录截图,并对照路由、滚动位置、焦点元素和保存状态等信息。

  • 在运行中的应用里复现界面问题
  • 检查修复后的页面行为
  • 验证包含页面跳转的操作流程
ParadevAI/Paradev1.6万2026年10月29日 更新

ci-triage

免费有简介

分析 GitHub Actions 失败日志,定位最早的有效错误,区分代码缺陷、环境问题、间歇性失败和原有故障,并对照基准分支说明失败与 PR 的关系及后续处理建议。

  • 调查 PR 检查失败原因
  • 区分不稳定测试与代码缺陷
  • 确认基准分支是否已有故障
ParadevAI/Paradev1.6万2026年10月29日 更新

查看 ParadevAI 的全部技能

报告此技能的问题