← Back to Skills Marketplace
scikkk

Segment Anything

by scikkk · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
300
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install sam
Description
Use SAM (Segment Anything Model) to remove image backgrounds and extract foreground subjects as transparent PNGs. Use when users want to remove backgrounds,...
Usage Guidance
This skill appears to be what it claims, but it will: (1) auto-install the segment_anything package from GitHub at runtime, and (2) download large model checkpoints (~375MB–2.5GB) to ~/.cache/sam. Before installing, ensure you have sufficient disk space and bandwidth and that you trust pulling code from the segment-anything GitHub repo. If you prefer tighter control, pre-install the dependencies and provide a local checkpoint via --checkpoint to avoid runtime pip installs and downloads. Run in an environment where large native packages (torch) are supported (and consider GPU/CUDA compatibility) or in an isolated sandbox if you want to limit risk.
Capability Analysis
Type: OpenClaw Skill Name: sam Version: 1.0.0 The skill performs image segmentation using Meta's SAM model but exhibits high-risk behaviors, including the use of `os.system` in `scripts/segment.py` to install dependencies from a remote Git repository and the automatic downloading of large binary checkpoints (up to 2.5GB) from `dl.fbaipublicfiles.com`. While these actions are aligned with the stated purpose in `SKILL.md`, the use of shell execution for package management and unverified remote file retrieval are significant security vulnerabilities.
Capability Assessment
Purpose & Capability
The name/description (SAM background removal) matches the code and declared dependencies: python3, pillow, numpy, torch, torchvision, and the segment_anything package. The script implements segmentation and saving transparent PNGs as advertised.
Instruction Scope
SKILL.md simply instructs running scripts/segment.py and documents parameters. The runtime behavior (auto-installing segment_anything via pip and auto-downloading model checkpoints to ~/.cache/sam) is clearly described. The instructions do not read unrelated files, environment variables, or transmit data to unexpected endpoints.
Install Mechanism
Install spec lists pillow, numpy, torch, torchvision (appropriate for SAM). The script may auto-run pip install git+https://github.com/facebookresearch/segment-anything.git if needed and downloads large model checkpoints from dl.fbaipublicfiles.com (Meta's public hosting). This is expected but involves dynamic code download and large network transfers (~375MB–2.5GB).
Credentials
No environment variables, credentials, or unrelated config paths are requested. The script writes checkpoints to ~/.cache/sam and saves outputs where the user specifies; those are proportionate to the function.
Persistence & Privilege
always is false and the skill does not modify other skills or system-wide settings. It stores model checkpoints in the user's cache directory only, which is reasonable for repeated use.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install sam
  3. After installation, invoke the skill by name or use /sam
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of "sam-segmentation" skill for background removal and image segmentation. - Extracts foreground subjects from images using Meta's Segment Anything Model (SAM) and saves as transparent PNGs. - Supports multiple model sizes (`vit_b`, `vit_l`, `vit_h`) for different speed and quality needs. - Allows foreground hint points, grid-sweep mode for extracting all distinct elements, and various mask filtering parameters. - Automatically installs needed dependencies (`segment_anything`, Pillow, numpy, torch, torchvision) on first use. - Model checkpoint is auto-downloaded if not provided.
Metadata
Slug sam
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Segment Anything?

Use SAM (Segment Anything Model) to remove image backgrounds and extract foreground subjects as transparent PNGs. Use when users want to remove backgrounds,... It is an AI Agent Skill for Claude Code / OpenClaw, with 300 downloads so far.

How do I install Segment Anything?

Run "/install sam" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Segment Anything free?

Yes, Segment Anything is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Segment Anything support?

Segment Anything is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Segment Anything?

It is built and maintained by scikkk (@scikkk); the current version is v1.0.0.

💬 Comments