Agent Skills
› cloudflare/computer
› hello
hello
GitHub示例技能,用于演示如何将文件打包到工作区以及验证Shell脚本功能。
触发场景
需要验证Shell环境是否正常工作
了解Skill文件如何被Worker导入和挂载
安装
npx skills add cloudflare/computer --skill hello -g -y
SKILL.md
Frontmatter
{
"name": "hello",
"description": "A sample skill shipped with the Worker. Read it to see how files bundled with computerBundle() reach the workspace, or run its script to check the shell works."
}
Hello
This file lives in src/skills/hello/SKILL.md in the example's source.
The Worker imports the whole src/skills directory with
import skills from "computer:bundle/src/skills", and
WorkerBundle(skills) copies it to /workspace/.agents/skills as a
read-only mount.
Try:
ls -R /workspace/.agents/skills
sh /workspace/.agents/skills/hello/scripts/hello.sh
Under vite dev, edit this file and send the next request: the
workspace picks up the new copy without a restart.
版本历史
- 7415a44 当前 2026-10-18 18:09


