---
name: php186-skill-56426
description: "皮肤问题识别：拍一张皮肤照片，AI 帮你分析可能是什么皮肤问题。支持识别湿疹、痤疮/痘痘、荨麻疹、银屑病/牛皮癣、玫瑰糠疹、脂溢性皮炎、特应性皮炎、白癜风、疱疹、皮肤癣、色素痣/黑痣、皮肤肿物等常见皮肤疾病。触发条件：用户上传皮肤照片并询问\"这是什么皮疹\"、\"这个痘是怎么了\"、\"皮肤起红斑是怎么回事\"、\"检查一下这个痣\"——会调用本技能进行AI分析。支持JPG/PNG/WEBP/GIF/TIFF，30-120秒返回结果。注：仅供参考，建议皮肤异常及时就诊皮肤科。【杭州智诊科技有限公司】"
---

# 皮肤问题识别（WiseDiag Skin）

## When to Use This Skill

 

Activate this skill when any of the following conditions are met:

 

- The user provides a **local image file** of a skin condition and asks to analyze it
- The user says things like "analyze this skin photo", "what is this rash", "check this mole", or similar requests (in any language)

 

**Note:** This skill uses **local file upload** (binary stream). The user should provide a local file path (e.g. ` /home/user/skin.jpg `, ` C:Users...rash.png `) and the script uploads it via binary stream (` -f `).

 

## ⚠️ Privacy Notice

 

**Please read before installing:**

 

This tool transmits your skin image files **to WiseDiag cloud servers** (via direct binary upload) for AI analysis.

 

**Do not upload images containing sensitive or private content** unless:

 

- You trust WiseDiag's data handling policy
- You accept that the file content will be transmitted to and processed remotely

 

**The output of this tool is for reference only and does not constitute medical diagnosis. Please consult a doctor for any health concerns.**

 

## WiseDiag Skin Disease Analysis (OpenClaw Skill)

 

Upload a skin photo and let WiseDiag AI automatically identify possible skin conditions and provide analysis and recommendations.

 

## Features

 

- **Local file binary upload**: upload skin images directly via multipart/form-data
- AI-powered skin condition identification from photos
- Streaming output — results appear in real time
- Results automatically saved as a Markdown file

 

## Installation

 

```
pip install -r requirements.txt
```

 

## 🔑 API Key Configuration (Required)

 

**Get your API Key:** 👉 https://console.wisediag.com/apiKeyManage

 

The API key MUST be set as an environment variable. The script reads it automatically.

 

```
export WISEDIAG_API_KEY=your_api_key
```

 

## Usage (Step-by-Step)

 

**Do not call any API or HTTP endpoints directly — use only the script below.**

 

**⚠️ IMPORTANT: The script makes HTTP requests to an external API and may take 30-120 seconds to complete (especially for large images). Do NOT kill or interrupt a running command — wait for it to finish. The script prints streaming output so you can see it is working.**

 

```
cd scripts

# Basic usage: upload a local skin image
python3 skin.py -f "/path/to/skin.jpg"

# Ask a specific question
python3 skin.py -f "/path/to/skin.jpg" --question "这个皮疹是什么原因？"

# Specify output filename
python3 skin.py -f "/path/to/skin.jpg" -n "skin_20260324"
```

 

Results are automatically saved to ` ~/.openclaw/workspace/WiseDiag-Skin/{name}.md ` — no manual saving needed.

 

## Parameters

 

| Parameter | Description |
| --- | --- |
| ` -f, --file ` | Local file path to upload as binary stream — image file (required) |
| ` --question ` | Question to ask (default: analyze skin and identify possible conditions) |
| ` -n, --name ` | Output filename (without extension) |
| ` -o, --output ` | Output directory (default: ~/.openclaw/workspace/WiseDiag-Skin) |

 

## FAQ

 

**"WISEDIAG\_API\_KEY is not set" error:** Verify the environment variable is set correctly by running ` echo $WISEDIAG_API_KEY `.

 

**"Authentication failed" error:** Your API Key may be invalid or expired. Visit console.wisediag.com to check or regenerate it.

 

**"File not found" error:** The local file path provided via ` -f ` does not exist. Check the path and try again.

 

**Image not recognized:** Ensure the image is in JPG, JPEG, PNG, WebP, GIF, BMP, or TIFF format. Photos should be clear and well-lit for best results.

 

## Data Privacy

 

- **File upload mode (` -f `)**: Local files are uploaded as binary streams via multipart/form-data to WiseDiag's server for processing.

 

Image content is not permanently stored. Results are returned directly to you.

 

## ⚠️ Disclaimer

 

The output of this tool is for reference only and does not constitute medical diagnosis or treatment advice. Please consult a qualified healthcare professional for any health concerns.

 

## License

 

MIT
