章鱼总结
00:00 / 16:14

Peter Yang · 16:14

说话人 0

You can now build and install your own desktop apps on your Mac or PC using Claude artifacts.

现在,你可以使用 Claude Artifacts 在 Mac 或 PC 上构建并安装自己的桌面应用。

In this video, I'm going to show you exactly how I built six different apps, including an illustrated recipe app, a 3D pinball game, a retro Minesweeper, a fish tank simulator, a pressure wash game to clean up your downloads folder, and of course, my 3D kart racer, all without writing or reading a single line of code.

在这段视频中,我将准确展示我是如何构建六款不同应用的,包括一款带插图的食谱应用、一款 3D 弹珠游戏、一款复古扫雷游戏、一款鱼缸模拟器、一款用高压水枪清理下载文件夹的游戏,当然还有我的 3D 卡丁车竞速游戏——这一切都没有写过或读过一行代码。

we'll first do a deep dive on how i built my recipe app in five steps, design, spec, build, iterate, and install, before covering the rest of the apps that i built.

我们会先深入讲解我是如何通过五个步骤构建食谱应用的:设计、制定规格、构建、迭代和安装,然后再介绍我构建的其他应用。

and as always, i'll also show you the exact prompts that i use, along with the links to the apps in the video description, so that you can try them yourself.

和往常一样,我还会展示我使用的确切提示词,并在视频说明中附上应用链接,让你也能亲自试试。

before we cover the steps, i want to give a quick overview of how claude desktop apps work.

在介绍这些步骤之前,我想先快速概述一下 Claude 桌面应用的工作方式。

so number one, they're built from your claude artifacts.

第一,它们是基于你的 Claude Artifacts 构建的。

and you can easily install them by clicking the share button on the cloud artifact and hitting install to app.

你可以轻松安装它们:点击云端 Artifact 上的分享按钮,再点击“安装到应用”。

number two, because they use cloud artifacts, you have to be signed into the cloud desktop app to use them.

第二,因为它们使用云端 Artifacts,所以你必须登录 Claude 桌面应用才能使用。

number three, these apps are locked down by default for safety and security reasons, so they do not have any file or web access unless you allow it.

第三,出于安全考虑,这些应用默认受到限制,因此除非你授予权限,否则它们无法访问文件或网页。

and number four, you can grant full access to the web and to your files.

第四,你可以授予它们对网页和文件的完整访问权限。

only for your own apps, not for other apps that people share with you.

但只适用于你自己的应用,不适用于别人分享给你的其他应用。

okay, let's get right into it with step one, which is to design the app.

好了,我们直接进入第一步:设计应用。

like any good pm, let's start with the user problem.

像任何称职的产品经理一样,我们先从用户遇到的问题开始。

in this case, the user is me, and i dislike that all the recipes available online force you to scroll through a long blog post before getting to the actual recipe.

在这个例子中,用户就是我。我不喜欢网上的食谱都要先让我滚动浏览一大篇博客文章,才能看到实际的食谱。

i also want to see the entire recipe on one screen instead of having to scroll.

我还希望能在一个屏幕上看到整份食谱,而不必滚动页面。

So that I can follow along easily and also want my laptop screen to never turn off so that I don't have to fiddle with it when I'm cooking.

这样我就能轻松跟着操作,而且我还希望笔记本电脑屏幕永远不要熄灭,这样做饭时我就不用老是摆弄它。

Okay, so for this app, I decided to use Claude Projects, which is basically an orchestrator chat thread that can manage other threads.

好了,这款应用我决定使用 Claude Projects。它基本上是一个可以管理其他对话线程的主控对话线程。

So that I can have one thread to plan the app and another thread to build it.

这样我就能用一个对话线程规划应用,再用另一个对话线程构建应用。

To make a project, just download the Claude Desktop app, go to Projects here in the left nav, and hit New Project and name your project.

要创建项目,只需下载 Claude 桌面应用,在左侧导航栏中找到“Projects”,点击“New Project”,然后为项目命名。

so here's the prompt that i gave my recipe app project to kick things off.

这是我发给食谱应用项目、用来启动整个过程的提示词。

slash design, let's design the keyframes of a recipe desktop app, use colored pencil illustrations of the dish drawing in code, show two frames, list dishes with search and illustration of each, and also show a recipe detail view with ingredients and steps on one screen.

使用 /design 设计菜谱桌面应用的关键帧,用彩色铅笔风格的菜品插画,并通过代码绘制,展示两个画面:一个带搜索功能、列出菜品并配有各自插画的页面;另一个是在同一屏幕上显示食材和步骤的菜谱详情页。

so what slash design does is it basically uses Claude Design inside Claude Code.

所以,/design 基本上就是在 Claude Code 里使用 Claude Design。

to spin up a canvas that looks like this.

来生成一个像这样的画布。

so you can see here that we have our recipe box home screen with the recipes that we can pick from, and code is used to make all the recipe images.

你可以看到,这里是我们的 Recipe Box 主屏幕,上面列出了可以挑选的菜谱,所有菜谱图片都是用代码生成的。

and then we also have our cooking view where we can follow the steps and pick the ingredients.

然后我们还有烹饪界面,可以在这里查看步骤并挑选食材。

and because it is a cloud design canvas, i can easily make changes to the copy or design as much as i want to.

而且因为这是一个云端设计画布,我可以随心所欲地修改文案或设计。

Now I want to be clear here that Claude Design didn't get to what you just saw in one step.

我想先说明一下,Claude Design 并不是一步就做出了你刚才看到的效果。

After I submitted the initial prompt, there's a sub-thread that goes on here and it built the first version.

提交最初的提示后,这里会开启一个子线程,并由它生成第一个版本。

And I said, this looks great, but it could be more colorful and I think the illustrations could be better too.

我说:看起来很棒,不过可以再丰富些色彩,而且我觉得插画也可以做得更好。

And some specific examples, the Greek salad doesn't look like a Greek salad at all.

我还举了一些具体例子,比如希腊沙拉完全看不出是希腊沙拉。

And then it did another iteration before getting to what we want.

之后它又进行了新一轮迭代,才达到我们想要的效果。

And we can always ask Claude Design to add more screens.

我们也可以随时让 Claude Design 添加更多屏幕。

Like for example here, I'm asking it to add an onboarding experience that says welcome to Recipe Box.

比如这里,我让它添加一个引导流程,写上“欢迎使用 Recipe Box”。

and then you can pick what kind of things you use to cook with and also what cuisines you love so that we can recommend personalized recipes to you.

然后你可以选择自己烹饪时会用到哪些东西,以及喜欢哪些菜系,这样我们就能为你推荐个性化菜谱。

okay, so that's step one.

好了,这就是第一步。

basically, i like to start all my Claude Code projects by making a design canvas.

基本上,我喜欢先为所有 Claude Code 项目制作一个设计画布。

now let's move on to step two, which is writing a spec.

现在我们进入第二步:编写规格说明。

so going back to this thread, i also have a spec skill that basically creates a simple product and tech spec around the design that we just saw.

回到这个对话线程,我还有一个规格说明技能,它会根据我们刚才看到的设计,生成一份简单的产品和技术规格说明。

For example, I want the app to include features like being able to paste any recipe link from the web to recreate the recipe in the app, and also being able to favorite and unfavorite recipes to cook.

例如,我希望应用包含这些功能:可以粘贴网上任意菜谱的链接,在应用中还原这道菜谱;也可以将菜谱添加到收藏或取消收藏,以便烹饪。

It's also best practice to ask Claude to ask you questions, and a quick tip is that you can literally include the word ask user question to have Claude trigger the prompt box here to ask you a bunch of questions that you can then answer to polish the spec.

最佳实践还包括让 Claude 向你提问。一个小技巧是,你可以直接加入“ask user question”这几个词,让 Claude 在这里弹出提问框,向你提出一系列问题;你回答后,就能完善这份规格说明。

all right, let's take a quick look at the spec right now.

好,现在我们快速看一下规格说明。

so here it is.

就是这个。

there's a summary.

这里有一份概要。

there's goals and non-goals.

这里列出了目标和非目标。

and then down here is the key part, which is the user stories to make the actual app.

接下来往下看,重点在这里:制作实际应用所需的用户故事。

so again, i think it's important to have both the design and the spec drafted before you ask claude to build.

再说一次,我觉得在让 Claude 开始构建之前,先把设计和规格说明都起草好很重要。

all right, we're going to take a quick break for the sponsor of this video.

好,我们先快速休息一下,感谢本视频的赞助商。

and then i'll come back to show you the app that claude actually built.

稍后我会回来给你们看看 Claude 实际构建出来的应用。

说话人 1

a quick thank you to our sponsor, superhuman.

特别感谢我们的赞助商 Superhuman。

as someone running a solo business, i often forget to reply to important emails like sponsorship requests that could have led to five-figure revenue opportunities.

作为一名独立创业者,我经常忘记回复重要邮件,比如赞助合作请求,而这些机会可能带来五位数的收入。

that's why i switched to superhuman mail and docs to help me prioritize and organize my inbox.

所以我改用 Superhuman Mail 和 Docs,帮我确定收件箱中邮件的优先级并整理邮件。

with the new superhuman mail and docs connectors in claude, i can just ask, find every email i sent in the last three days.

有了 Claude 中新增的 Superhuman Mail 和 Docs 连接器,我只要问:“找出我过去三天发送的所有邮件。”

and list any that I need to follow up on to see a list exactly like this.

然后列出我需要跟进的邮件,就能看到这样的清单。

I can then use a connector to draft follow-up emails for each in my voice and schedule them to send.

接着,我可以用连接器按我的语气为每封邮件起草跟进邮件,并安排发送时间。

Nothing goes out without my approval.

未经我批准,任何邮件都不会发出。

And if I really want to get on top of things, for example, for my sponsorships, I can ask Claude to create a follow-up tracker in Superhuman docs for each brand, the current status, and the next steps.

如果我真的想把事情安排得井井有条,比如管理赞助合作,我可以让 Claude 在 Superhuman Docs 中为每个品牌创建一份跟进追踪表,记录当前状态和后续步骤。

Now I can track every sponsorship opportunity and next steps easily with AI and Superhuman's help.

现在,有了 AI 和 Superhuman 的帮助,我可以轻松追踪每个赞助机会及后续步骤。

Try out these Superhuman connectors today.

今天就试试这些 Superhuman 连接器。

说话人 0

using my link in the video description.

使用视频描述中的链接即可。

now back to the video.

现在回到视频。

okay, we're back.

好了,我们回来了。

so now let's cover steps three and four, where i built and iterated on the recipe app based on design and spec.

现在我们来讲第三步和第四步:我根据设计和规格构建并迭代食谱应用。

let's take a quick look at the thread that claude is using to build the app.

我们快速看看 Claude 用来构建应用的对话线程。

so i told it to build the recipe app, and i told it also that i'm getting dinner.

我让它构建食谱应用,也告诉它我正在准备晚餐。

after you build it, take a look at yourself and fix any issues that you find.

构建完成后,检查一下自己的成果,并修复发现的问题。

so this is an interesting hack if you're just lazy and want claude to check his own work.

如果你只是懒得自己检查,想让 Claude 检查它自己的工作,这算是个挺有意思的小技巧。

so i went off and built the recipe app, but of course, it didn't get perfect in one shot.

于是我就去构建食谱应用了,不过它当然不可能一次就做到完美。

so i had to give it more feedback.

所以我得再给它一些反馈。

so here's the feedback.

这是我给的反馈。

so i sent a screenshot.

我发了一张截图。

i said, this view can be presented better, like a number list.

我说,这个视图可以展示得更好一些,比如改成编号列表。

i said, all the filters should be on the left, like for cuisine and type of dish.

我说,所有筛选条件都应该放在左侧,比如菜系和菜品类型。

and claude also added a bunch of slop copy that i didn't want.

而且 Claude 还加了一堆我不想要的废话文案。

so i told her to cut it.

所以我让它删掉。

and down here, i gave it some more feedback on the ui to stop touching the prompt box, which doesn't make any sense.

在下面,我还对 UI 提了一些反馈,让它别再动提示框了,这完全说不通。

and i also told it to add some more recipes based on some of the favorite websites that i like.

我还让它根据一些我喜欢的网站,再添加几道食谱。

you know, the funny thing is, if i started adding more scope when building a project with real engineers, they probably wouldn't appreciate this.

你知道吗,有意思的是,如果我在和真正的工程师一起做项目时不断增加范围,他们大概不会喜欢这样。

but because it's claude, it doesn't mind if i change my mind halfway through and start adding or editing scope.

但因为这是 Claude,所以即使我做到一半改变主意,开始增加或修改项目范围,它也不介意。

okay, so without further ado, let's take a look at the recipe app now.

好了,闲话少说,我们现在来看看这个食谱应用。

so here it is.

就是这个。

so i can search for dishes.

这样我就可以搜索菜肴了。

like, for example, i can search for tofu.

比如,我可以搜索豆腐。

Or chicken.

或者鸡肉。

I can apply filters on the left.

我可以使用左侧的筛选条件。

I can go to American.

我可以选择美式菜肴。

I can go to Chinese.

我可以选择中式菜肴。

And you can see that Claude did his best in terms of doing illustrations for each dish, although some things turn out better than others.

你可以看到,Claude 尽力为每道菜绘制插图了,不过有些效果比其他的好。

And if I click into a recipe, let's say crispy salmon with ginger soy sauce, i can see the ingredients on the left and the steps to follow on the right.

如果我点开一道食谱,比如姜味酱油脆皮三文鱼,就能在左侧看到食材,在右侧看到操作步骤。

and i can also adjust how many servings i have, and it will change the ingredients that it has.

我还可以调整份数,食材用量也会随之改变。

and let's see, what else is there?

我们看看还有什么?

i can also like or unlike each recipe to add to my favorites.

我还可以给每道食谱点赞或取消点赞,把它添加到收藏夹或从中移除。

so now let's actually try adding a new recipe to our app.

现在我们来试着给应用添加一道新食谱。

so let's say we have chicken thighs.

比如说,我们有鸡腿肉。

and what this is going to do is it's going to start a chat thread basically with claude.

这会开启一个聊天对话,基本上就是和 Claude 聊天,

to figure out what recipe you want to add.

确定你想添加什么食谱。

so let's say we want to air fry it and we want to make it spicy.

比如,我们想用空气炸锅烹饪,还想做得辣一点。

and here we are.

好了。

here's the recipe that claude wants us to cook.

这是 Claude 建议我们做的食谱。

hot chili garlic air fryer chicken thighs.

香辣蒜蓉空气炸锅鸡腿肉。

it made an image for it.

它还为这道菜生成了一张图片。

here are the ingredients and here are the steps.

这里是食材,这里是步骤。

let's say this looks good.

就说这个看起来不错吧。

let's hit save recipe.

我们点击“保存食谱”。

and now we have the recipe added to our app.

现在,这道食谱已经添加到我们的应用中了。

so if i go to air fry, the chicken thigh recipe should show up here.

所以,如果我点开“空气炸锅”,鸡腿食谱应该会显示在这里。

yeah, there it is.

对,就是它。

all right, now there's another feature that i add to the app, which is you can add a new recipe by simply pasting in a link from a recipe website.

好了,现在我还给应用添加了另一个功能:只需粘贴食谱网站的链接,就能添加新食谱。

but this feature doesn't actually work in the artifact itself because remember, my slide said these apps are locked down by default.

不过,这个功能在应用本身里实际上无法使用,因为还记得吗?我的幻灯片上说过,这些应用默认是受限制的。

they don't have web or file access unless you grant it.

除非你授权,否则它们无法访问网页或文件。

so now let me show you how the magic works.

现在,我来演示一下这其中的神奇之处。

let me go ahead and hit the share button here.

我来点击这里的分享按钮。

and let's hit install as app.

然后点击“安装为应用”。

and it's going to ask you if you want to install recipe box as a desktop app.

接下来会询问你是否要将 Recipe Box 安装为桌面应用。

so let's hit install.

我们点击“安装”。

and there we go.

好了,完成了。

now it has awesome animation that shows the desktop app installed.

现在会有很棒的动画显示桌面应用已安装。

and now that it's installed as a desktop app, let's try the add a recipe feature.

现在它已经安装为桌面应用了,我们来试试“添加食谱”功能。

so let's go ahead and copy this recipe from this website.

我们来从这个网站复制这道食谱。

and let's go back to the app itself and paste it here.

然后回到应用本身,把它粘贴到这里。

and hit start prep.

然后点击“开始准备”。

and it's going to ask you for permission to run commands on the computer because it's my own app.

它会请求你允许它在电脑上运行命令,因为这是我自己开发的应用。

there's no problem.

这没问题。

i trust it.

我信任它。

i say allow.

我点“允许”。

and it's going to pull the recipe from just one cookbook.

它会从 Just One Cookbook 网站提取食谱。

and here we are.

好了,页面出来了。

here's our gyudon recipe.

这是我们的牛丼食谱。

i don't have to read a bunch of ads or content to see it.

我不用读一堆广告或其他内容才能看到食谱。

let's hit save recipe.

我们点击“保存食谱”。

and the gyudon recipe is saved.

牛丼食谱就保存好了。

and it also gives attribution to just one cookbook, which by the way is an awesome website for japanese cooking.

它还注明了来源:Just One Cookbook。顺便说一句,这是个很棒的日式料理网站。

and of course, the best thing about building personal apps like this is that if i don't like something, i can just tell claude to improve it.

当然,像这样制作个人应用,最棒的一点就是,如果有哪里不满意,我可以直接让 Claude 改进。

so for example, i told claude, hey, can you also please make that app mobile optimized and performant?

比如,我跟 Claude 说:“嘿,能不能也让这个应用针对手机进行优化,并提升运行效率?”

and it's going to do a bunch of work to make it run better on mobile devices.

它会做很多工作,让应用在移动设备上运行得更好。

all right, so two more important callouts before we wrap up the recipe box app.

好,在结束食谱盒应用的介绍之前,还有两个重要的地方要说明。

so basically, the desktop app loads the latest published version of the artifact.

桌面应用会加载最新发布的 artifact 版本。

so you don't have to actually keep reinstalling it to have it keep updated.

所以,你不用反复重新安装,也能让它保持更新。

and the other thing i want to show you is that in the share box, you can also share the app with your friends by inviting them through email or through a link.

还有一点我想给你们看:在分享框里,你也可以通过电子邮件邀请好友,或者发送链接,与他们分享这个应用。

and if you do that, they'll have the same copy as yours unless they clone their artifact.

如果你这么做,他们看到的副本就会和你的一样,除非他们克隆自己的 artifact。

so for example, i can share this with my wife, and then she can see all the recipes that we can cook together.

比如,我可以把它分享给我妻子,这样她就能看到所有我们可以一起做的食谱。

okay, so following these five steps is the proper way to build desktop apps with cloud.

好,按照这五个步骤,才是用 Cloud 构建桌面应用的正确方法。

But now let me show you the incredibly lazy way in which i build the other apps.

不过现在,我来给你看看我构建其他应用时有多偷懒。

Now, i haven't used a pc in over a decade, but two apps that i feel a lot of nostalgia for is my sweeper and space cadet pinball on my old pc.

我已经十多年没用过 PC 了,但有两款应用让我很怀念:我以前那台 PC 上的扫雷和太空军校生弹珠台。

So i started a new cloud project here and basically asked claude to build some more cloud artifacts as mac apps.

于是我在这里新建了一个 Cloud 项目,基本上就是让 Claude 把更多 Cloud artifacts 做成 Mac 应用。

And some ideas i have are my sweeper and pinball, maybe wing app, maybe a pressure wash app that cleans up my downloads folder.

我有几个想法:扫雷和弹珠台,也许还有 Wing 应用,再做个压力清洗应用,清理我的下载文件夹。

and claude gave me my ideas, and then we did some more iterations.

Claude 给了我一些点子,然后我们又反复迭代了几次。

and then i told claude to basically build all four apps that i like at once.

接着我让 Claude 一次性把我喜欢的四款应用全都做出来。

so because we're using a claude project, it's able to spin up four different threads to start building all the apps at the same time.

由于我们用的是 Claude 项目,它可以同时启动四个不同的对话线程,开始构建所有应用。

and here are all the desktop apps that i built in my claude apps folder, which by the way is under applications.

这些就是我在 Claude Apps 文件夹里构建的所有桌面应用。顺便说一下,这个文件夹在“应用程序”里。

in your finder.

在你的 Finder 里。

and if you want to add any of these apps to your desktop or dock, all you have to do is simply drag and drop them to where they belong.

如果你想把这些应用添加到桌面或 Dock,只要把它们拖到相应的位置就行了。

so here's a lot of desktop apps that i built.

这些就是我做的许多桌面应用。

and let's start with the 3d pinball game.

我们先来看看 3D 弹珠台游戏。

all right, let me make the window a bit bigger.

好,我把窗口调大一点。

and here we are.

好了,来看看。

let's hit the ball.

发射弹珠。

we can hit our flippers, go up the ramp, spaceship flies around.

我们可以打动挡板,让弹珠冲上斜坡,太空飞船也会飞来飞去。

and yeah, it's a pretty awesome app, right?

嗯,这应用挺棒的,对吧?

and it only took me a few prompts to build this.

而且我只用了几个提示词就把它做出来了。

so let me actually show you how i did it.

那我来给你看看我是怎么做的。

All right, so let's go back to clock code and here is the pinball thread.

好,那我们回到时钟代码,这里是弹珠台的对话线程。

So it built the initial app and i thought it could be better.

它构建了初始应用,我觉得还可以做得更好。

So i gave it some feedback.

所以我给了它一些反馈。

The pinball needs to look like space cadet pinball of the old windows one that, you know, i feel a lot of nostalgia for and make the game much more visually interesting and make a 3d with blender or 3js.

弹珠台需要做成老版 Windows 上《太空学员弹珠台》的样子,你知道的,那款游戏让我充满怀旧之情;还要让游戏的视觉效果有趣得多,并用 Blender 或 3js 做成 3D 效果。

All right.

好。

And i also gave a screenshot of what the old windows pinball game looks like for inspiration.

我还给了它一张老版 Windows 弹珠台游戏的截图作为灵感。

and also give you some feedback on the ramp and everything else, right?

还对坡道和其他所有内容提了一些反馈,对吧?

so yeah, pretty basic prompts to build the awesome pinball game that you just saw.

所以,没错,这些都是很基础的提示词,却做出了你刚才看到的超棒弹珠台游戏。

and by the way, i've also included a link in the video description for you to play yourself.

顺便说一下,我也在视频简介里放了链接,你可以自己去玩。

all right, now let's play our next app, which is a minesweeper game.

好了,现在来玩我们的下一个应用:扫雷游戏。

so here we are.

我们来看一下。

we can do minesweeper.

我们可以玩扫雷。

you know, it's just like the minesweeper on windows.

你知道的,就像 Windows 上的扫雷一样。

and you can click around.

你可以到处点击。

and if you hit a bomb, everything explodes in a pretty awesome firework style.

要是点到炸弹,所有东西都会像烟花一样炸开,效果相当棒。

so it's pretty cool, right?

挺酷的,对吧?

pretty basic, but pretty cool.

很基础,但挺酷。

and for the minesweeper game, i think i only gave it maybe one or two prompts to see.

做扫雷游戏时,我想我只给了它一两条提示,试试看效果。

so yeah, it basically just built a minesweeper game that looks good.

所以,没错,它基本上就是做出了一个看起来不错的扫雷游戏。

and then i told it to try to improve it.

然后我让它试着改进一下。

and i told it to give me an app icon for it.

然后我让它为这个应用图标设计一个图标。

and that's pretty much it.

基本上就这样。

so for this one, i actually built something really good in one shot.

所以这次,我一口气就做出了一个相当不错的东西。

now the next one is an aquarium simulator.

接下来这个是一个水族箱模拟器。

so basically it's a virtual aquarium and we can feed the fish by clicking around.

简单来说,这是一个虚拟水族箱,我们可以点击来喂鱼。

we can also add decorations, right?

我们还可以添加装饰,对吧?

giant clam.

巨蛤。

and we can also add fish.

我们还可以添加鱼。

oh, it looks like the tank is full.

哦,看起来鱼缸已经满了。

there's too much fish already.

鱼已经太多了。

and yeah, maybe i can make this into a screensaver or something at some point.

对,也许我之后可以把它做成屏幕保护程序之类的。

all right.

好。

and again, to build an aquarium simulator, this is basically an idea that claude had itself on a cool desktop app to build.

再说一次,做这个水族箱模拟器的点子,其实是 Claude 自己想出来的,作为一个很酷的桌面应用来开发。

and all i did was like, hey, go ahead and build it.

我做的就是跟它说:“好,开始做吧。”

and i gave it some feedback down here about, hey, just make it a fun fish simulator.

然后我在下面给了它一些反馈,比如:“嘿,把它做成一个有趣的鱼类模拟器就好。”

and also get rid of the clean glass feature.

还有,把清洁玻璃的功能去掉。

so it had a bunch of like gunk on the aquarium for some reason.

不知道为什么,水族箱上弄得一团污垢。

and that's pretty much it.

基本上就这样。

you know, i want to show you guys these threads because i want to show you how simple it is now to basically get claude to build all of this stuff.

我想给大家看看这些对话,是因为我想让你们知道,现在让 Claude 把这些东西都做出来有多简单。

and let's do two more real quick.

咱们再快速做两个。

let's do a pressure wash simulator.

我们来做一个高压清洗模拟器吧。

and for this one, it's a game, but it also cleans up my downloads folder.

这个游戏不光好玩,还能清理我的下载文件夹。

so for example, let's say we want to clean up whatever this is, and i can spray it, and then basically i can say review to for trash, and if i say move to trash, it will actually clean it up on my desktop.

举个例子,假设我们想清理这个东西,我可以用喷枪冲洗它,然后基本上我可以选择「移到废纸篓」。如果我这么选,它就会真的从我的桌面上清理掉。

so it's both fun and useful.

所以它既有趣又实用。

and last but not least, if you saw my previous videos, you know that i made this kart racer game.

最后但同样重要的是,如果你看过我之前的视频,就知道我做过这个卡丁车竞速游戏。

so this is a full 3d kart racer.

这是一个完整的 3D 卡丁车竞速游戏。

i've built as a cloud artifact and that i've now installed to my computer.

我把它作为云端 Artifact 构建好了,现在也已经安装到我的电脑上了。

so at any point i want, i can go ahead and play a race and hit start race and it's going to let me play against the computer.

所以无论什么时候,我都可以开始一场比赛,点击「开始比赛」,然后就能和电脑对战。

all right, so here we are, the volcano level.

好了,我们现在来到火山关卡。

now, unfortunately, for the artifact version, it's not easy to build multiplayer in here because of some of the safety restrictions that Claude added.

不过很遗憾,对于 Artifact 版本来说,由于 Claude 添加的一些安全限制,在这里实现多人游戏并不容易。

But I think probably multiplayer support is only a matter of time in artifacts.

但我觉得,Artifact 支持多人游戏大概只是时间问题。

Awesome.

太棒了。

So let me recap the five steps to follow to build a desktop app with Claude artifacts.

那么,我来回顾一下用 Claude Artifacts 构建桌面应用的五个步骤。

First, design and plan the app, start a Claude project, and use slash design to sketch the keyframes.

第一,设计并规划应用,创建一个 Claude 项目,然后使用 /design 来绘制关键帧草图。

Second, ask Claude to write a basic spec with the product and tech requirements, or if you want to use my spec skill, it's available to my paid subscribers at behindthecraft.

第二,让 Claude 编写一份包含产品和技术要求的基础规格说明;或者,如果你想用我的规格说明技能,付费订阅者可以在 behindthecraft 上获取。

com.

com。

Third, just ask Claude to build the app.

第三,直接让 Claude 构建应用。

and then iterate with claude by asking it to check its own work and give me a feedback.

然后通过让 Claude 检查自己的工作并给我反馈,不断迭代。

and finally, to install the desktop app, all you have to do is click the share button on your artifact and hit install as app to have it installed on your computer.

最后,要安装桌面应用,只需点击 Artifact 上的分享按钮,再点击「安装为应用」,就能把它安装到你的电脑上。

so once again, these are all the desktop apps that i've built so far with claude.

再说一次,这些就是我目前用 Claude 构建的所有桌面应用。

it's incredibly fun, and you can make any kind of personal apps that you want.

这真的非常有趣,而且你可以制作任何自己想要的个人应用。

so i highly recommend that you give it a try.

所以我强烈建议你试试看。

you can also just yolo it like i showed you and ask claude to build four desktop apps at once like i did.

你也可以像我演示的那样,直接放手一试,让 Claude 一次性构建四款桌面应用,就像我做的那样。

and once again, i've included links to most of these apps in the video description so you can install them on your desktop too.

再提醒一下,我在视频简介里附上了这些应用的大部分链接,你也可以把它们安装到自己的桌面上。

okay, so if you enjoyed this no hype tutorial, please like and subscribe to this channel and share what desktop app you built in the comments.

好了,如果你喜欢这期不搞噱头的教程,请点赞并订阅这个频道,也欢迎在评论区分享你制作的桌面应用。

i'll see you soon.

很快再见。

摘要

视频展示如何利用 Claude Artifacts 制作并安装桌面应用,全程不必编写代码。主体以食谱应用为例,依次完成设计画布、产品与技术规格、构建迭代和安装,并演示搜索筛选、调整份量、收藏、生成新食谱及从网页链接导入食谱等功能。视频也说明应用默认受文件和网页访问限制,安装后可按需授权。后半段展示弹球、扫雷、水族箱、清理下载文件的压力清洗游戏和卡丁车等作品,最后归纳设计规划、写规格、构建、迭代、安装五步流程。

章节

00:47 Claude 桌面应用的工作方式与权限限制

Claude 桌面应用由 Claude Artifacts 构建,可通过 Artifact 的分享菜单安装,但使用时必须登录 Claude 桌面应用。出于安全考虑,应用默认没有文件或网页访问权限;用户可以为自己创建的应用授予这些权限,但不能为别人分享给自己的应用开放同样的访问。食谱应用的设计从一个明确痛点出发:在线食谱常被长篇博客内容和广告挡住,用户希望整份食谱能在一个屏幕上查看,并让烹饪时的笔记本电脑屏幕保持开启。

安装桌面应用的操作步骤
应用默认的文件与网页访问限制

01:32 第一步:用设计画布规划食谱应用

食谱应用以创作者自己的烹饪需求为目标用户。项目采用 Claude Projects,将规划和构建放在不同对话线程中;设计阶段使用 /design 生成关键界面,包括可搜索的菜品列表、彩铅风格的菜品插图,以及在同一屏幕展示食材和步骤的烹饪详情页。初版并非一次完成:创作者要求增加色彩、改进插图,并指出希腊沙拉插画不像希腊沙拉,Claude 随后继续迭代;还可扩展界面,例如加入询问烹饪工具和喜爱菜系的个性化引导流程。

Projects 导航入口及创建项目的操作
用于启动食谱应用设计的提示词
食谱首页及可供选择的菜谱
显示烹饪步骤与食材的操作界面
新增欢迎页和个性化设置流程

03:59 第二步:把设计转化为产品与技术规格

设计完成后,Claude 根据设计画布生成简明的产品和技术规格。需求包括粘贴网页食谱链接并在应用中重建食谱,以及收藏或取消收藏菜谱。创作者建议让 Claude 主动向用户提问,以补足需求;最终规格包含摘要、目标与非目标,以及用于指导实际构建的用户故事。先准备设计和规格,再要求 Claude 开始构建,可以让实现有更清楚的依据。

提问提示框用于收集完善规格的问题
产品规格中的目标与非目标部分
规格中用于构建应用的用户故事

06:05 第三、四步:构建并迭代食谱应用

构建时,创作者要求 Claude 制作食谱应用,并在完成后检查和修复自身发现的问题。初版仍需根据反馈调整:把步骤改成编号列表,将菜系和菜品类型筛选器移到左侧,删掉不需要的冗余文案,并要求不要改动提示框;之后还加入喜爱的食谱网站来源及更多食谱。创作者认为,用 Claude 修改范围和需求比与真人工程团队合作更容易。该过程体现出设计和规格只是起点,实际界面仍要通过截图和具体意见反复打磨。

展示食谱应用筛选器应移至左侧的界面反馈

07:17 食谱应用功能:搜索、筛选、收藏与生成菜谱

完成后的食谱应用支持搜索菜品、按菜系筛选,并在菜谱详情中将食材与步骤分栏显示;调整份数会相应改变食材用量,用户也能收藏或取消收藏菜谱。添加新菜谱时,应用会通过 Claude 对话了解用户想做什么,例如将鸡腿做成辣味空气炸锅料理,随后生成菜名、图片、食材和步骤,确认后即可保存并在对应分类中找到。应用还设计了从食谱网站链接导入菜谱的功能,但该功能在未获网页访问权限的 Artifact 中不能直接使用。

展示左侧菜谱筛选功能
菜谱详情页左右栏展示食材与步骤
调整份数并更新食材数量
生成的菜谱展示食材与烹饪步骤
确认新菜谱已添加到应用

08:44 安装应用、授权网页访问并导入食谱

要让食谱链接导入功能访问网页,创作者从 Artifact 的分享菜单选择安装为应用,并在桌面应用首次执行相关操作时批准运行电脑命令。获得许可后,应用从 Just One Cookbook 提取牛丼食谱,展示并保存菜谱,同时标注来源。创作者还可直接要求 Claude 优化应用,例如适配手机并提升性能。个人应用可以持续修改;这次演示也说明,网页或文件相关功能需要相应权限,而不是在受限的 Artifact 中默认可用。

安装桌面应用的确认提示
桌面应用安装完成的动画
授权应用运行命令
显示导入的牛丼食谱
显示食谱已保存

10:10 已安装应用的更新与分享方式

桌面应用加载 Artifact 最新发布的版本,因此版本更新后不必每次重新安装。用户也可以通过分享框用邮件邀请朋友,或发送链接分享应用;受邀者获得的是同一份应用副本,除非他们克隆自己的 Artifact。创作者举例说,可以把食谱应用分享给妻子,一起查看可做的菜谱。

分享方式:通过邮件或链接邀请好友

10:43 快速批量制作:弹球与扫雷游戏

在食谱应用的完整流程之外,创作者还展示了更快的做法:在 Claude Project 中提出多款桌面应用构想,再让 Claude 并行开启多个线程构建。3D 太空弹球最初版本经过反馈后,参考旧 Windows Space Cadet Pinball 的截图,加入更有趣的视觉效果和 3D 表现;创作者称它只用了几个提示。扫雷游戏则基本一两次提示就完成,之后只要求改进游戏并生成应用图标,踩中炸弹时会出现烟花式爆炸效果。

并行构建四个应用的线程
弹球沿斜坡运行、飞船环绕的游戏画面
作为设计参考的旧版 Windows 弹球截图
扫雷游戏中的点击操作
踩中炸弹后烟花般爆炸的效果

13:19 水族箱模拟器与压力清洗游戏

水族箱模拟器可以通过点击喂鱼、添加装饰和增加鱼;创作者反馈要求把它做成有趣的鱼类模拟器,并去掉原本出现的清洁玻璃功能。压力清洗游戏则将娱乐和文件整理结合:玩家清洗下载文件夹中的项目,查看待处理内容后可选择移入废纸篓,从而实际清理桌面上的文件。两个作品都展示了从简单构想出发,再用具体反馈调整功能的做法。

添加到水族箱的装饰
水族箱装满鱼的状态
压力清洗游戏与整理下载文件夹的结合
将选中的内容移入回收站的结果

14:30 3D 卡丁车与五步构建流程总结

3D 卡丁车游戏作为 Artifact 安装到电脑后,可以开始比赛并与电脑对战;创作者指出,受 Artifact 安全限制,多人游戏目前不容易实现。最后归纳的构建流程是:在 Claude Project 中用 /design 规划关键界面;让 Claude 编写产品和技术规格;要求 Claude 构建应用;让它检查自身工作并根据反馈继续迭代;最后从 Artifact 分享菜单选择安装为应用。较简单的作品也可以直接提出构想,甚至一次要求 Claude 并行制作多款应用。

启动比赛并展示可游玩的卡丁车游戏
火山赛道关卡画面
桌面应用构建流程总结
通过分享菜单安装桌面应用

结论

15:07 先设计界面并写清产品与技术规格,再构建和反复迭代,能为 Claude 制作桌面应用提供明确的工作流程。

08:44 Claude Artifact 中的食谱链接导入功能无法直接使用,因为应用默认受到访问限制。

10:10 安装后的桌面应用会加载 Artifact 最新发布版本,因此更新时无需反复重新安装。

15:43 从食谱管理工具到游戏和文件整理工具,Claude Artifacts 可以通过提示、反馈和迭代制作多种个人桌面应用。