为使用Cline SDK开发AI智能体选择合适的API与参考资料,涵盖自定义工具、会话保存、定时运行和多智能体协作。
- 开发具有自定义工具的AI智能体
- 选择用于保存会话的API
- 配置模型提供方与事件处理
从桌面应用积累的新功能中挑选重点,制作仅显示一次的更新说明,涵盖文案起草、内容添加、测试及应用内预览。
Use when the team wants to catch desktop app users up on recent features with a one-time "What's new" dialog (apps/examples/desktop-app). Guides deciding whether a catch-up is warranted, picking the highlights from the changelog, writing tight copy, adding the entry to webview/lib/whats-new-content.ts, and previewing it from Settings → About. Not for individual releases — those only appear on the About page's release notes.
为桌面应用的What's new对话框制作内容。从上次说明之后的变更记录中,挑选三至四项影响用户工作方式的新功能,准备简短标题、说明和图标。文案获批后,在WHATS_NEW_RELEASES开头添加条目,再进行测试和显示检查。
适合在多次更新积累了新功能后,向现有用户集中介绍。也可用于判断内容是否足以发布更新说明,以及精简功能介绍。
针对apps/examples/desktop-app的现有实现,不用于单次发布或仅含错误修复的说明。验证使用bun,通过Settings → About中的“Show what's new”检查两种主题。下次发布后,现有用户只会看到一次,新安装不会显示。通常只修改内容,发布工作交给publish-desktop。
本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。
AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。
总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月23日 评估。仅供参考,安装前请同时查看原文。
安装前可以查看交给 AI 代理的指令内容。
Use this skill when the user asks to show desktop users what's new, catch users up on recent updates, publish a what's-new modal, or refresh the highlights in Settings → About.
Working directory: run every command below from the repository root.
The desktop app ships every couple of days, so individual releases are never announced in-app; Settings → About always lists the bundled release notes. A catch-up is the exception: once enough notable features have accumulated, one dialog shows them, once, on the first launch after the update that carries it. Publishing one is a content change in a single file plus a preview, nothing else.
apps/examples/desktop-app/webview/lib/whats-new-content.ts as WHATS_NEW_RELEASES, newest first. Each entry has a stable id, a title, and 3–4 highlights (title, description, lucide icon).webview/lib/whats-new.ts stores the last seen id in localStorage (cline.code.whats-new.v1). The app shell (webview/app/page.tsx) shows WhatsNewDialog when the newest id differs from the stored one; closing it, or clicking "See all changes", stores the id.webview/components/whats-new-dialog.tsx) is fixed: violet hero with an eyebrow and headline, a 2×2 grid of highlights, footer with "See all changes" and "Get Started". Do not add per-entry layout options, images, or extra buttons; keep it a content change. The one exception is a spotlight entry (currently only "connectors"): a launch big enough to carry the dialog alone, with its own body and call to action in the dialog. Only add a new spotlight when the team explicitly asks for one.git log --oneline -1 -- apps/examples/desktop-app/webview/lib/whats-new-content.ts
sed -n '1,80p' apps/examples/desktop-app/CHANGELOG.md
Read the changelog sections since the last catch-up (the first entry's id is date-prefixed; the git log above shows when it landed). A catch-up needs 3–4 features a user would change how they work for — new capabilities, not fixes or polish. If there are fewer, say so and stop; the About page already covers everything else. Never ship a catch-up for a single release or for bug fixes.
lucide-react icon that already exists in the codebase or the lucide set (Network, GitBranchPlus, GitPullRequest, Users, Terminal, Mic, Cloud, …).WHATS_NEW_RELEASES in apps/examples/desktop-app/webview/lib/whats-new-content.ts.{
id: "2026-11-cloud-and-voice", // YYYY-MM-<slug>, unique, never reused or edited later
title: "Run it in the cloud",
highlights: [
{ title: "Cloud sessions", description: "…", icon: Cloud },
// 3–4 total
],
},
Import any new icons at the top of the file. The id is what the seen-tracking compares, so changing an existing entry's id would re-show it to everyone; changing its copy would not. Keep old entries in the array; they are harmless and document history.
cd apps/examples/desktop-app
bunx vitest run webview/lib/whats-new.test.ts --config vitest.config.ts # ids unique, newest resolves
bun run typecheck
Then preview in the app. From apps/examples/desktop-app, start bun run dev:sidecar and bun run dev:web (or bun run dev for the native window), open Settings → About → "Show what's new", and check both themes (General → Dark mode). Confirm no description wraps past three lines at the default font size and the headline fits on one line at 560px. Also confirm the dialog appears on launch for a returning user: clear cline.code.whats-new.v1 from localStorage and reload.
publish-desktop skill.WHATS_NEW_RELEASES[0] must be the newest entry. whats-new.test.ts checks id uniqueness but cannot know the intended order.main reaches beta on the next merge.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
为使用Cline SDK开发AI智能体选择合适的API与参考资料,涵盖自定义工具、会话保存、定时运行和多智能体协作。
整理代码变更并按项目模板创建 GitHub 拉取请求,核对关联 Issue、修改原因和测试内容,同时检查分支及提交状态,协助将变更交付评审。
使用OpenTUI构建可交互的终端界面,可选择基础API、React或Solid,并获得组件布局、输入处理、动画和测试方面的指导。
指导将Cline CLI发布到npm,涵盖SDK更新检查、发行说明编写、版本与变更日志更新、测试、标签创建和发布流程。
协助准备 Cline 桌面应用的稳定版、beta 版和 nightly 测试构建,涵盖更新说明、版本调整、签名安装包制作及自动更新分发检查。
协助发布Cline的VS Code扩展,按稳定版、nightly和旧分支紧急修复版的流程,指导版本选择、变更日志准备、审批及发布后验证。