← 返回 Skills 市场
Camsnap
作者
terrycarter1985
· GitHub ↗
· v1.0.0
· MIT-0
82
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install camsnap-snap
功能描述
Take webcam snapshots with path validation, safe resource handling, and flexible output options.
使用说明 (SKILL.md)
Camsnap
Camera snapshot utility for AI agents.
Features
- Safe webcam capture with guaranteed resource release
- Path traversal protection and extension validation
- Configurable camera index and output directory
- Structured logging (no print statements)
- Type-annotated API
Usage
python3 camsnap.py
python3 camsnap.py --output-dir ./photos
python3 camsnap.py snapshot.png --camera 1
As a module
from camsnap import take_snapshot
path = take_snapshot(output_dir="snapshots", camera_index=0)
安全使用建议
Install/use this only if you are comfortable letting the agent access your webcam on request. Choose output paths carefully, and do not assume the advertised path validation creates a strict filesystem sandbox.
功能分析
Type: OpenClaw Skill
Name: camsnap-snap
Version: 1.0.0
The camsnap skill is a straightforward utility for capturing webcam snapshots using the OpenCV library. The code in camsnap.py demonstrates good security practices, including path resolution to prevent traversal and validation of file extensions against a whitelist. There is no evidence of data exfiltration, unauthorized network activity, or malicious intent.
能力评估
Purpose & Capability
The included code matches the stated purpose: it opens a webcam and saves a snapshot locally. This is privacy-sensitive but clearly central to the skill.
Instruction Scope
The usage examples are user-directed command or module calls and do not instruct the agent to override user intent, persist, or run autonomously.
Install Mechanism
There is no install script or remote downloader. The SKILL.md frontmatter declares Python/OpenCV requirements, so users may need to manage a PyPI dependency themselves.
Credentials
The behavior is local and shows no network or credential use, but image output paths are caller-supplied and the validation is mainly extension-focused rather than sandboxing output under a fixed directory.
Persistence & Privilege
No credentials, background services, autostart behavior, persistent memory, or privilege-escalation mechanisms are shown.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install camsnap-snap - 安装完成后,直接呼叫该 Skill 的名称或使用
/camsnap-snap触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Fix code review findings: add path traversal guard and extension validation; ensure camera resource release via try/finally; check cv2.imwrite return value; replace print with logging; add type annotations; make camera index configurable; optimize snapshot storage logic with Pathlib
元数据
常见问题
Camsnap 是什么?
Take webcam snapshots with path validation, safe resource handling, and flexible output options. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 82 次。
如何安装 Camsnap?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install camsnap-snap」即可一键安装,无需额外配置。
Camsnap 是免费的吗?
是的,Camsnap 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Camsnap 支持哪些平台?
Camsnap 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Camsnap?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v1.0.0。
推荐 Skills