← Back to Skills Marketplace
Camsnap
by
terrycarter1985
· GitHub ↗
· v1.0.0
· MIT-0
82
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install camsnap-snap
Description
Take webcam snapshots with path validation, safe resource handling, and flexible output options.
README (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)
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install camsnap-snap - After installation, invoke the skill by name or use
/camsnap-snap - Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Frequently Asked Questions
What is Camsnap?
Take webcam snapshots with path validation, safe resource handling, and flexible output options. It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.
How do I install Camsnap?
Run "/install camsnap-snap" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Camsnap free?
Yes, Camsnap is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Camsnap support?
Camsnap is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Camsnap?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v1.0.0.
More Skills