Agent Skills
› cloudflare/computer
› hello
hello
GitHub示例技能,用于演示如何将文件通过computerBundle打包并挂载至工作区,验证Shell脚本执行及Vite开发热更新功能。
触发场景
需要验证Worker环境文件挂载机制
测试Shell脚本在工作区中的执行能力
安装
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


