← Back to Skills Marketplace
274
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install segment-anything
Description
使用 SAM(Segment Anything Model)去除图像背景,将前景主体提取为透明 PNG。适用于去除背景、抠图、提取前景主体或图像分割等需求。
Usage Guidance
This skill appears to do what it claims. Before installing, consider: (1) model weights can be large (vit_h ~2.5GB) — ensure you have bandwidth and disk space; (2) it will install Python packages (torch, torchvision, and may pip-install the segment_anything repo) which run code on your machine — if you run in a shared/production environment, prefer reviewing the segment_anything repository or running inside a contained environment (virtualenv/container); (3) downloads occur from GitHub and dl.fbaipublicfiles.com (official hosts), so network access is required; (4) no credentials are requested. If any of these behaviors are unacceptable, do not install or run without isolation.
Capability Analysis
Type: OpenClaw Skill
Name: segment-anything
Version: 1.0.0
The skill bundle provides image segmentation using Meta's Segment Anything Model (SAM). It is classified as suspicious because scripts/segment.py uses os.system to automatically execute a 'pip install' from a remote Git repository and urllib.request to download large binary model weights (up to 2.5GB) from dl.fbaipublicfiles.com to the user's home directory (~/.cache/sam). While these actions are aligned with the stated purpose, the use of shell execution for package installation and the automatic downloading of large remote assets are high-risk behaviors that bypass standard package management and can lead to unintended side effects or supply chain risks.
Capability Assessment
Purpose & Capability
Name/description (SAM-based background removal) matches the included script and requested packages (Pillow, numpy, torch, torchvision). The script downloads official SAM checkpoints and optionally installs the segment_anything package — all actions are coherent with the stated functionality.
Instruction Scope
SKILL.md instructs running the included script and explains behavior (prompt points, cache path ~/.cache/sam, automatic checkpoint download). Instructions do not ask to read unrelated files or exfiltrate data, but the runtime will auto-install the segment_anything package if missing and download large model weights.
Install Mechanism
Install spec lists PyPI packages (pillow, numpy, torch, torchvision) which are expected. The script also runs pip install git+https://github.com/facebookresearch/segment-anything.git at runtime if needed. Model checkpoints are downloaded from dl.fbaipublicfiles.com (Facebook's public host) — no suspicious shorteners or private domains.
Credentials
No environment variables, credentials, or config paths are requested. The script only writes to an application cache directory (~/.cache/sam) and the output locations provided by the user.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It will install Python packages into the running environment and persist model files under ~/.cache/sam; this modifies the local environment but is expected for ML model usage.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install segment-anything - After installation, invoke the skill by name or use
/segment-anything - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of segment-anything skill (sam-segmentation-zh).
- Provides image background removal using Meta’s Segment Anything Model (SAM), outputting transparent PNGs.
- Supports customizable models, foreground point hints, and advanced options for extracting multiple elements.
- Includes CLI usage instructions and detailed parameter explanations.
- Automatic handling of model downloads and dependency installation.
Metadata
Frequently Asked Questions
What is Segment Anything?
使用 SAM(Segment Anything Model)去除图像背景,将前景主体提取为透明 PNG。适用于去除背景、抠图、提取前景主体或图像分割等需求。 It is an AI Agent Skill for Claude Code / OpenClaw, with 274 downloads so far.
How do I install Segment Anything?
Run "/install segment-anything" 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.
More Skills