← 返回 Skills 市场
camsnap
作者
terrycarter1985
· GitHub ↗
· v1.0.0
· MIT-0
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install terrycarter-camsnap
功能描述
Take camera snapshots and save them to disk. Use when the user asks to take a photo, capture an image from webcam, or take a snapshot.
使用说明 (SKILL.md)
Take a snapshot from the default webcam using the camsnap utility.
Usage
/camsnap [output_path] [--preview]
If no output path is provided, the snapshot will be saved to the ./snapshots/ directory with a timestamp filename.
Steps
- Run the snapshot script:
python {{SKILL_DIR}}/src/camsnap.py {{ $ARGUMENTS }}
- Confirm the snapshot was saved successfully and return the file path.
安全使用建议
Install only if you are comfortable granting a skill access to the local webcam. Until the Bash invocation is hardened, use simple output paths without shell characters, and make sure any OpenCV dependency is installed from a trusted source.
能力评估
Purpose & Capability
The stated purpose, SKILL.md instructions, and Python code all align around taking a default-webcam snapshot and saving it locally.
Instruction Scope
SKILL.md instructs Bash execution as `python {{SKILL_DIR}}/src/camsnap.py {{ $ARGUMENTS }}`; the raw argument placeholder is not shown as quoted or otherwise constrained, so crafted arguments could be interpreted by the shell instead of only by the Python script.
Install Mechanism
There is no install spec, but the source imports OpenCV (`cv2`), so users may need an undeclared dependency from a trusted source.
Credentials
The code uses the default webcam and writes an image file, which is proportional to the described snapshot function; it prevents overwriting existing files and restricts common image extensions.
Persistence & Privilege
No background service, autostart, credentials, network transmission, or persistent agent memory behavior is shown; the only persistence is the user-requested image file.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install terrycarter-camsnap - 安装完成后,直接呼叫该 Skill 的名称或使用
/terrycarter-camsnap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
v1.0.0 — Code review fixes: path traversal protection, file overwrite guard, extension validation, camera resource safety (try/finally), imwrite return check, logging replaces print, type annotations, Path-based path handling, __all__ export. Optimized snapshot storage logic.
元数据
常见问题
camsnap 是什么?
Take camera snapshots and save them to disk. Use when the user asks to take a photo, capture an image from webcam, or take a snapshot. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 camsnap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install terrycarter-camsnap」即可一键安装,无需额外配置。
camsnap 是免费的吗?
是的,camsnap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
camsnap 支持哪些平台?
camsnap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 camsnap?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。
推荐 Skills