最新 微软与美国政府警告:重大技术故障还将持续 The Verge
产品与应用 ●●●○○

GitHub Copilot 推出画布功能,用自然语言构建自定义工作流

GitHub Copilot app for Beginners: How to build custom workflows with canvases

摘要Summary

GitHub 博客介绍 Copilot 应用中的画布(canvas)功能:用户在 agent 会话中输入 /create-canvas 并用自然语言描述需求,即可生成看板、仪表盘、表单等可交互界面。画布为双向共享状态,agent 与用户可同时修改,并可保存为扩展供团队或个人复用。

GitHub's blog introduces canvases in the GitHub Copilot app: users open an agent session, run the /create-canvas skill, and describe the interface they want in plain English to generate boards, dashboards, forms, and other interactive surfaces. Canvases have bidirectional shared state so the agent and user can edit simultaneously, and they can be saved as extensions for team or personal reuse.

  • 输入 /create-canvas 并用自然语言描述即可生成界面
  • 画布状态双向共享,用户与 agent 可同时修改
  • 可保存为扩展复用,社区已有现成模板

全文对照Full text · 中 / EN

大多数工具为你提供一组固定的屏幕,并要求你将自己的工作适应其中。但如果你可以从想要的工作流程开始,并让界面围绕它成形,会怎样呢?

Most tools give you a fixed set of screens and ask you to fit your work into them. But what if you could start with the workflow you want instead and have the interface take shape around it?

这就是 GitHub Copilot 应用中画布背后的理念。画布,也称为画布扩展,是一个你和智能体共享的可定制界面。它可以是一个看板、问题分类板、发布清单、仪表盘、表单,甚至是一个电子表格:一个根据你的工作方式塑造的 UI。

That’s the idea behind canvases in the GitHub Copilot app . A canvas, also called a canvas extension, is a customizable interface that you and the agent share. It can be a kanban board, an issue triage board, a release checklist, a dashboard, a form, or even a spreadsheet: a UI shaped to how you work.

由于画布是双向的,智能体可以在工作时更新它,你也可以使用按钮、卡片、过滤器和其他控件来进行更改。就像使用一个实时共享的白板一样。

Because the canvas is bidirectional, the agent can update it as it works, and you can use buttons, cards, filters, and other controls to make changes too. Just like using a live shared whiteboard.

要创建画布,你无需手动编写任何代码或进行设计。只需打开一个智能体会话,输入 /create-canvas 技能,并用简单的英语描述你想要的内容。

To create a canvas, you don’t have to do any coding or design by hand. Just open an agent session, enter the /create-canvas skill , and describe what you want in plain English.

确保你的提示涵盖三件事:

Make sure your prompt covers three things:

然后,智能体将构建界面并在右侧面板中打开它,而你无需编写文件或处理布局。一个描述就变成了一个可立即使用的自定义工具。

Then, the agent will build the interface and open it in the right-side panel without you having to write files or mess with the layout. One description becomes a custom tool that’s ready to use.

由于界面是根据你的描述生成的,你的第一个版本只是一个起点,你可以不断改进直到满意为止。

Because the interface is generated from your description, your first version is just a starting point, and you can keep refining until you’re happy.

你可以要求智能体添加一列或过滤器,拉取你打开的拉取请求,或者将整个画布变成你一天的清单。智能体将修改画布以匹配。虽然没有固定的布局菜单,但如果你能描述一个工作流程,你很可能就能将其变成一个画布。

You could ask the agent to add a column or filter, pull in your open pull requests, or turn the entire canvas into a checklist for your day. The agent will revise the canvas to match. While there isn’t a fixed menu of layouts, if you can describe a workflow, you can likely turn it into a canvas.

一旦创建,你的画布将保存为扩展,因此你可以再次使用它。你可以将其保留在项目中供团队共享,或者将其保存为仅供你个人使用的个人扩展。

Once created, your canvas is saved as an extension, so you can use it again. You can keep it with the project for your team to share or save it as a personal extension just for you.

画布的真正的强大之处在于你和智能体可以同时继续工作。

The real power of a canvas is that you and the agent can both keep working at the same time.

当你点击按钮、更新字段或移动卡片时,画布的共享状态会立即改变。智能体看到相同的更新,无需单独的发送或同步步骤。

When you click a button, update a field, or move a card, the canvas’ shared state changes immediately. The agent sees the same update without a separate send or sync step.

反过来也一样。你可以让 agent 使用 canvas 自身的能力——也就是你能使用的相同操作——来添加发布说明或移动卡片,然后观察该变更出现在界面中。你不是发送命令并等待响应,而是在共同引导工作。

It works the other way, too. You can ask the agent to use the canvas’ own capabilities—the same actions available to you—to add a release note or move a card, then watch that change appear in the interface. Instead of sending a command and waiting for a response, you’re steering the work together.

创建一个有用的 canvas 从三个简单问题开始:

Creating a useful canvas starts with three simple questions:

不确定从哪里开始?社区已经通过 Awesome Copilot 分享了现成的 canvas 扩展,包括发布说明工具、看板、问题分类工作流等。安装一个接近你需求的扩展,然后让 agent 按照你完善自己创建的 canvas 的方式,为你的工作流定制它。

Not sure where to begin? The community has shared ready-made canvas extensions through Awesome Copilot , including release notes tools, kanban boards, issue triage workflows, and more. Install one that’s close to what you need, then ask the agent to customize it for your workflow in the same way you would refine a canvas you created yourself.

从小处着手:打开一个会话,运行 /create-canvas,并为你当前正在处理的事情描述一个简单的看板或清单。

Start small: open a session, run /create-canvas , and describe a simple board or checklist for something you’re working on now.

当开发者需要比聊天框更实在的东西时,该怎么办?canvas 登场了。

What is a developer to do when they need something more tangible than a chat box? Enter canvases.

在这篇博客文章中,我解释如何使用基于 GitHub Security Lab Taskflow Agent AI 框架的新模糊测试任务流。

In this blog post, I explain how to use the new fuzzing taskflow based on the GitHub Security Lab Taskflow Agent AI framework.

我们如何重建 GitHub Copilot 应用中的 diff 界面,以打开一个包含数百条内联审查评论的百万行拉取请求。

How we rebuilt the diff surface in the GitHub Copilot app to open a million-line pull request with hundreds of inline review comments.