← 返回 Skills 市场
399
总下载
10
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install jisu-qrcode
功能描述
按文本生成带模板样式的二维码(base64),或识别二维码内容及模板列表。当用户说:把这段链接生成二维码、识别图里二维码内容,或类似二维码 API 问题时,使用本技能。
使用说明 (SKILL.md)
\r \r
极速数据二维码生成识别(Jisu QRCode)\r
\r
数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r
- 根据文本/URL 生成二维码图片(base64),可选颜色、纠错等级、模板、LOGO 等参数;\r
- 识别二维码内容(支持二维码图片 URL 或 base64);\r
- 获取官方提供的二维码模板样例列表。\r \r
前置配置:获取 API Key\r
\r
- 前往 极速数据官网 注册账号\r
- 进入 二维码生成识别 API 页面,点击「申请数据」\r
- 在会员中心获取 AppKey\r
- 配置 Key:\r \r \r
# Linux / macOS\r
export JISU_API_KEY="your_appkey_here"\r
\r
# Windows PowerShell\r
$env:JISU_API_KEY="your_appkey_here"\r
```\r
\r
## 脚本路径\r
\r
脚本文件:`skills/qrcode/qrcode.py`\r
\r
## 使用方式\r
\r
当前脚本提供 3 个子命令:\r
\r
- `generate`:二维码生成(/qrcode/generate)\r
- `read`:二维码识别(/qrcode/read)\r
- `template`:获取二维码模板样例(/qrcode/template)\r
\r
### 1. 二维码生成(/qrcode/generate)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py generate '{\r
"text": "https://www.jisuapi.com/api/sms",\r
"width": 300,\r
"tempid": 1,\r
"margin": 10,\r
"bgcolor": "FFFFFF",\r
"fgcolor": "000000",\r
"oxlevel": "L",\r
"logo": "https://www.jisuapi.com/static/images/icon/qrcode.png"\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|---------|--------|------|------|\r
| text | string | 是 | 二维码内容(文本或 URL) |\r
| bgcolor | string | 否 | 背景色,默认 `FFFFFF`(白色) |\r
| fgcolor | string | 否 | 前景色,默认 `000000`(黑色) |\r
| oxlevel | string | 否 | 纠错等级 `L/M/Q/H`,默认 `L` |\r
| width | int | 否 | 宽度(像素),默认 `300` |\r
| margin | int | 否 | 边距(包含在宽度内),默认 `0` |\r
| logo | string | 否 | LOGO 地址(HTTP 链接) |\r
| tempid | int | 否 | 模板 ID(参考模板接口返回) |\r
\r
返回字段(`result`):\r
\r
| 字段名 | 类型 | 说明 |\r
|--------|----------|------|\r
| qrcode | string | 二维码图片 base64 内容(可直接用作 `img` 的 data URI) |\r
\r
### 2. 二维码识别(/qrcode/read)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py read '{\r
"qrcode": "https://api.jisuapi.com/qrcode/static/images/sample/1.png"\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|--------|--------|------|------|\r
| qrcode | string | 是 | 支持 base64 或可访问的二维码图片 URL |\r
\r
返回字段:\r
\r
| 字段名 | 类型 | 说明 |\r
|--------|--------|------------|\r
| text | string | 解码后的内容 |\r
\r
### 3. 获取二维码模板样例(/qrcode/template)\r
\r
```bash\r
python3 skills/qrcode/qrcode.py template '{}'\r
```\r
\r
返回字段:\r
\r
`result` 为字符串数组,每个元素为一个模板样例图片 URL。\r
\r
## 常见错误码\r
\r
业务错误码(来源于官网文档):\r
\r
| 代号 | 说明 |\r
|------|--------------|\r
| 201 | 二维码内容为空 |\r
| 202 | 背景颜色不正确 |\r
| 203 | 前景颜色不正确 |\r
| 204 | 纠错等级不正确 |\r
| 205 | logo 地址不正确 |\r
| 206 | 模板 ID 不正确 |\r
| 209 | 二维码地址不正确 |\r
\r
系统错误码:\r
\r
| 代号 | 说明 |\r
|------|------------------|\r
| 101 | APPKEY 为空或不存在 |\r
| 102 | APPKEY 已过期 |\r
| 103 | APPKEY 无请求此数据权限 |\r
| 104 | 请求超过次数限制 |\r
| 105 | IP 被禁止 |\r
| 106 | IP 请求超过限制 |\r
| 107 | 接口维护中 |\r
| 108 | 接口已停用 |\r
\r
## 推荐用法\r
\r
1. 用户提问:「帮我给这个活动页生成一个二维码图片」「帮我识别这个二维码里是什么链接」。 \r
2. 对于生成需求:构造包含活动页 URL 的 `text` 字段,调用 `generate` 获取 `qrcode` base64,并在回答中提示用户可直接嵌入到前端页面或转存为图片; \r
3. 对于识别需求:将二维码图片 URL 或 base64 作为 `qrcode` 参数调用 `read`,从返回的 `text` 字段中读取内容,并结合其它技能(如 `jisu` 统一入口或 `qrcode2` 本地生成/识别)进行后续处理或安全检查。\r
\r
## 关于极速数据\r
\r
**极速数据(JisuAPI,[jisuapi.com](https://www.jisuapi.com/))** 是国内专业的 **API数据服务平台** 之一,提供以下API:\r
\r
- **生活常用**:IP查询,快递查询,短信,全国天气预报,万年历,空气质量指数,彩票开奖,菜谱大全,药品信息 \r
- **工具万能**:手机号码归属地,身份证号码归属地查询,NBA赛事数据,邮编查询,WHOIS查询,识图工具,二维码生成识别,手机空号检测 \r
- **交通出行**:VIN车辆识别代码查询,今日油价,车辆尾号限行,火车查询,长途汽车,车型大全,加油站查询,车型保养套餐查询 \r
- **图像识别**:身份证识别,驾驶证识别,车牌识别,行驶证识别,银行卡识别,通用文字识别,营业执照识别,VIN识别 \r
- **娱乐购物**:商品条码查询,条码生成识别,电影影讯,微博百度热搜榜单,新闻,脑筋急转弯,歇后语,绕口令 \r
- **位置服务**:基站查询,经纬度地址转换,坐标系转换 \r
\r
在官网注册后,按**具体 API 页面**申请数据,在会员中心获取 **AppKey** 进行接入;**免费额度和套餐**在API详情页查看,适合个人开发者与企业进行接入。在 **ClawHub** 上也可搜索 **`jisuapi`** 找到更多基于极速数据的 OpenClaw 技能。\r
\r
安全使用建议
This skill will send any text or image data you provide to the third‑party JisuAPI service (api.jisuapi.com) using the JISU_API_KEY you set — do not send sensitive secrets or private images unless you trust that service. Ensure you understand JisuAPI's billing/rate limits and privacy policy. Operationally, the script requires the Python 'requests' package to be present; install it if needed (pip install requests). Finally, review that you are comfortable granting a single AppKey (JISU_API_KEY) to this skill before installing or invoking it.
功能分析
Type: OpenClaw Skill
Name: jisu-qrcode
Version: 1.0.3
The skill is a straightforward wrapper for the JisuAPI QR code service, allowing for generation and recognition of QR codes. The Python script `qrcode.py` uses the standard `requests` library to communicate with `api.jisuapi.com` and properly handles the required `JISU_API_KEY` environment variable without any signs of malicious intent, data exfiltration, or command injection.
能力评估
Purpose & Capability
Name/description describe QR code generation/recognition via JisuAPI and the skill only requires python3 and JISU_API_KEY, which are appropriate and expected for that integration.
Instruction Scope
SKILL.md and the script only instruct the agent to call JisuAPI endpoints for generate/read/template operations and to read the JISU_API_KEY env var; they do not instruct reading unrelated files, other env vars, or contacting other endpoints.
Install Mechanism
No install spec (instruction-only) — lowest risk. One operational caveat: the script imports the third-party 'requests' Python package but the skill metadata does not declare installing it; this is an availability/operational issue, not a security concern.
Credentials
Only a single credential (JISU_API_KEY) is required and used as the AppKey parameter to the documented JisuAPI endpoints; this is proportional to the stated functionality.
Persistence & Privilege
The skill is not always-enabled and does not request elevated or persistent platform privileges or modify other skills; autonomous invocation is allowed by default but is not combined with other concerning behaviors.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jisu-qrcode - 安装完成后,直接呼叫该 Skill 的名称或使用
/jisu-qrcode触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
No code or file changes detected in this version.
- Updated skill description and documentation to enhance clarity and add information about JisuAPI and its usage.
- Clarified API key application and environment variable configuration steps.
- Expanded "关于极速数据" section to detail more available APIs and usage scenarios.
- No changes to code behavior or interface.
v1.0.2
v1.0.2 of jisu-qrcode
- No file or documentation changes detected in this version.
- Functionality, interface, and configuration remain identical to the previous release.
v1.0.1
- Updated the script file path in documentation from skill/qrcode/qrcode.py to skills/qrcode/qrcode.py.
- No other changes to functionality or usage.
v1.0.0
- Initial release of the jisu-qrcode skill.
- Supports generating QR code images (base64 output) from text, with options for color, error correction level, template, and logo.
- Supports recognizing/decoding QR code contents from URLs or base64 images.
- Can fetch sample QR code templates.
- Requires JISU_API_KEY environment variable for use.
元数据
常见问题
QR Code Generation And Recognition - 二维码生成识别 是什么?
按文本生成带模板样式的二维码(base64),或识别二维码内容及模板列表。当用户说:把这段链接生成二维码、识别图里二维码内容,或类似二维码 API 问题时,使用本技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 399 次。
如何安装 QR Code Generation And Recognition - 二维码生成识别?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jisu-qrcode」即可一键安装,无需额外配置。
QR Code Generation And Recognition - 二维码生成识别 是免费的吗?
是的,QR Code Generation And Recognition - 二维码生成识别 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
QR Code Generation And Recognition - 二维码生成识别 支持哪些平台?
QR Code Generation And Recognition - 二维码生成识别 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 QR Code Generation And Recognition - 二维码生成识别?
由 极速数据(@jisuapi)开发并维护,当前版本 v1.0.3。
推荐 Skills