← 返回 Skills 市场
yuchennnnnnn

AI Image Check

作者 Yuchennnnnnn · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
181
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install genai-detection
功能描述
Detect whether an image was generated by AI (e.g. Midjourney, DALL-E, Stable Diffusion) using the Scam.ai API. Guides the user through API key setup if neede...
使用说明 (SKILL.md)

AI-Generated Image Detection

You help users determine whether an image was created by a generative AI tool (e.g. Midjourney, DALL-E, Stable Diffusion, Firefly) using the Scam.ai API.

Step 1 — API Key Setup

Use the Bash tool to find an available API key, checking in this order:

cat ~/.scamai_genai_key 2>/dev/null
cat ~/.scamai_universal_key 2>/dev/null
  • If ~/.scamai_genai_key has content → use it.
  • Else if ~/.scamai_universal_key has content → use it.
  • If neither exists, ask the user:

Do you already have a Scam.ai API key?

  • Yes, I have a Gen AI Detection key — paste it here.
  • Yes, I have a Universal key — paste it here (works for all services).
  • No — follow these steps to get one:
    1. Go to https://scam.ai and click Sign Up (or Log In)
    2. In the left sidebar, scroll to the bottom → Manage account → Developers
    3. Click + Create API Key in the top right
    4. Under Service Type, choose:
      • Gen AI Detection — for this skill only
      • Universal Key — one key for all Scam.ai services (recommended if you plan to use multiple skills)
    5. Give it a name, create it, copy the key, and paste it here

Once the user provides the key, save it to the matching file:

  • Gen AI Detection key → ~/.scamai_genai_key
  • Universal key → ~/.scamai_universal_key
echo -n "THEIR_API_KEY" > ~/.scamai_genai_key && chmod 600 ~/.scamai_genai_key
# or for universal:
echo -n "THEIR_API_KEY" > ~/.scamai_universal_key && chmod 600 ~/.scamai_universal_key

Confirm: "API key saved! You won't need to enter it again."

Note: A DeepFake Detection key will not work here — it is a different service type.


Step 2 — Get the Image to Analyze

If the user didn't pass $ARGUMENTS, ask:

Please provide the path to the image (.jpg, .jpeg, .png, .webp, .bmp) you want to check.

Expand ~ in paths if needed. Confirm the file exists before proceeding. Only image files are supported by this endpoint (not videos).


Step 3 — Run Detection

Use whichever key was found in Step 1. Resolve it first:

API_KEY=$(cat ~/.scamai_genai_key 2>/dev/null || cat ~/.scamai_universal_key 2>/dev/null)

Then run:

curl -s -X POST "https://api.scam.ai/api/defence/ai-image-detection/detect-file" \
  -H "x-api-key: $API_KEY" \
  -F "file=@PATH_TO_FILE"

Show a brief "Analyzing image, please wait…" message before running.


Step 4 — Interpret and Present Results

Parse the JSON response and present a single line:

Verdict: [AI-Generated / Real / Uncertain] — [X]% confidence

Example: Verdict: AI-Generated — 97.8% confidence

Do not show any other fields. If the user wants more details, they can ask.

If the API returns an error:

  • 401 Unauthorized → "Your API key appears to be invalid or expired. Run /genai-image-detection again to update it."
  • 429 Too Many Requests → "You've hit the Scam.ai rate limit. Please wait a moment and try again."
  • 415 Unsupported Media Type → "This file type isn't supported. Please use a .jpg, .jpeg, .png, or .webp image."
  • Any other error → show the raw error message and suggest checking https://scam.ai/docs

Step 5 — Wrap Up

After presenting the results, ask:

Would you like to analyze another image, or are you done?

  • Another image → go back to Step 2.
  • Done → reply with:

Thanks for using the AI-Generated Image Detection skill! Stay sharp. Follow Scam.ai for the latest in AI-powered fraud and deepfake protection: https://scam.ai


Notes

  • The stored key is at ~/.scamai_genai_key (mode 600, readable only by you).
  • This key is separate from the DeepFake Detection key (~/.scamai_deepfake_key) — each service requires its own key type.
  • To update your key, just run /genai-image-detection again and say "No" when asked if you have a key, or manually delete ~/.scamai_genai_key.
  • This endpoint detects AI-generated images only. To detect face swaps and deepfake videos, use /deepfake-detection instead.
  • Scam.ai free-tier limits may apply; check your dashboard at https://scam.ai for usage.
安全使用建议
This skill appears to do what it says, but review these points before installing/using it: - Privacy: any image you check will be uploaded to https://api.scam.ai. Do not upload sensitive images you cannot share with that service. - API key persistence: the skill saves whatever API key you provide to ~/.scamai_genai_key or ~/.scamai_universal_key (it suggests chmod 600). If you prefer not to persist a key, do not paste it when prompted and instead provide the key temporarily each run, or remove the file after use. - Metadata mismatch: the registry did not declare the config paths, even though the SKILL.md uses them; confirm you are comfortable with the skill reading/writing those files. - Shell/network access: the skill assumes the agent can run Bash and curl; ensure your environment's shell/network policies are acceptable. - Trust the vendor: this forwards data to Scam.ai; verify you trust that service and review its privacy/tos. If you need tighter control, consider running an alternative detection method locally or using an API key with limited scope or billing limits. If any of the above concerns are unacceptable, do not install or run the skill.
功能分析
Type: OpenClaw Skill Name: genai-detection Version: 1.0.3 The skill is a legitimate tool for interacting with the Scam.ai API to detect AI-generated images. It follows standard practices for managing API keys by storing them in the user's home directory with restricted permissions (chmod 600) and uses curl to communicate with the official api.scam.ai endpoint. No indicators of data exfiltration, malicious execution, or prompt injection were found in SKILL.md or _meta.json.
能力评估
Purpose & Capability
The name/description (AI image detection via Scam.ai) matches the runtime instructions: the skill reads an API key, uploads an image to Scam.ai, and returns a verdict. One minor inconsistency: the registry metadata declares no required config paths, yet the SKILL.md explicitly reads/writes ~/.scamai_genai_key and ~/.scamai_universal_key.
Instruction Scope
The instructions are narrowly scoped to: (1) locate or ask for a Scam.ai key, (2) save it to a home file, (3) validate an image path, and (4) POST the image to Scam.ai. There is no instruction to read other files or access unrelated credentials. The skill will transmit the image file and the API key to https://api.scam.ai as required for the service.
Install Mechanism
This is an instruction-only skill with no install step and no code files — lowest-risk install mechanism. It relies on the agent having a shell (Bash) and curl available, which is expected from the SKILL.md but not declared in metadata.
Credentials
No environment variables or external credentials are declared in the registry metadata, but the runtime instructions explicitly read and write two specific files in the user's home (~/.scamai_genai_key and ~/.scamai_universal_key). Those files are proportional to the stated purpose (API key storage) but the omission from metadata is an inconsistency worth noting. No unrelated credentials are requested.
Persistence & Privilege
The skill persistently writes the user's API key to files in the home directory (with recommended chmod 600). It does not request elevated privileges, modify other skills, or set always:true. Persisting a key to disk is expected for convenience but is a persistent change the user should be aware of.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install genai-detection
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /genai-detection 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Internal metadata file (_meta.json) removed. - No changes to user-facing features or functionality. - No updates to documentation or skill behavior.
v1.0.2
- Initial public release for the genai-detection skill (v1.0.2). - Added comprehensive instructions for API key setup, image analysis workflow, and result interpretation. - Guides users through obtaining and saving Scam.ai API keys if needed. - Supports detection of AI-generated images using multiple key types. - Error handling for key issues, rate limits, and file type validation. - Introduced wrap-up prompts to streamline repeat analysis or finish sessions.
v1.0.0
Initial release of AI-Generated Image Detection skill: - Guides users through Scam.ai API key setup, supporting both Gen AI Detection and Universal keys. - Accepts popular image formats (.jpg, .jpeg, .png, .webp, .bmp) and verifies file existence. - Analyzes images for AI generation using the Scam.ai API and displays a clear verdict with confidence percentage. - Handles common API errors with specific, user-friendly messages. - Facilitates multiple image checks in one session, with a simple wrap-up process.
元数据
Slug genai-detection
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

AI Image Check 是什么?

Detect whether an image was generated by AI (e.g. Midjourney, DALL-E, Stable Diffusion) using the Scam.ai API. Guides the user through API key setup if neede... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 181 次。

如何安装 AI Image Check?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install genai-detection」即可一键安装,无需额外配置。

AI Image Check 是免费的吗?

是的,AI Image Check 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AI Image Check 支持哪些平台?

AI Image Check 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AI Image Check?

由 Yuchennnnnnn(@yuchennnnnnn)开发并维护,当前版本 v1.0.3。

💬 留言讨论