← 返回 Skills 市场
352
总下载
10
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install barcode2
功能描述
按类型与参数生成条形码图(base64),或识别条码图内容。当用户说:生成一个 Code128 条码图、识别这张条码里的数字,或类似条码生成/识别时,使用本技能。
使用说明 (SKILL.md)
\r \r
极速数据条码生成识别(Jisu Barcode)\r
\r
数据由 极速数据(JisuAPI) 提供 — 国内专业的 API 数据服务平台,提供生活常用、交通出行、工具万能等数据接口。\r \r
- 生成多种类型条形码(EAN13、EAN8、CODE11、CODE128、CODE39、CODE93、GS1128、I25、ISBN、MSI、UPCA、UPCE、CODEBAR 等),返回 base64 图片内容;\r
- 从条形码图片(URL 或 base64)中识别出条码类型与编号。\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/barcode/barcode.py`\r
\r
## 使用方式\r
\r
当前脚本提供 2 个子命令:\r
\r
- `generate`:条码生成(/barcode/generate)\r
- `read`:条码识别(/barcode/read)\r
\r
### 1. 条码生成(/barcode/generate)\r
\r
```bash\r
python3 skills/barcode/barcode.py generate '{\r
"type": "ean13",\r
"barcode": "6901236341056",\r
"fontsize": 12,\r
"dpi": 72,\r
"scale": 2,\r
"height": 40\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|----------|--------|------|------|\r
| type | string | 是 | 条码类型,如 `ean13` 等 |\r
| barcode | string | 是 | 条码号 |\r
| fontsize | string/int | 是 | 字号 |\r
| dpi | string/int | 是 | DPI |\r
| scale | string/int | 是 | 比例 |\r
| height | string/int | 是 | 高度 |\r
\r
返回字段(`result`):\r
\r
| 字段名 | 类型 | 说明 |\r
|----------|--------|------|\r
| type | string | 条码类型(如 EAN13 等) |\r
| fontsize | string | 字号 |\r
| dpi | string | DPI |\r
| scale | string | 比例 |\r
| height | string | 高度 |\r
| barcode | string | 条码图片 base64 内容 |\r
\r
### 2. 条码识别(/barcode/read)\r
\r
```bash\r
python3 skills/barcode/barcode.py read '{\r
"barcode": "https://api.jisuapi.com/barcode/barcode/1471602033673149.png"\r
}'\r
```\r
\r
请求字段:\r
\r
| 字段名 | 类型 | 必填 | 说明 |\r
|----------|--------|------|------|\r
| barcode | string | 是 | 支持 base64 或可访问的条码图片 URL,图片文件最大支持 500K |\r
\r
返回字段:\r
\r
`result` 为数组,每个元素包含:\r
\r
| 字段名 | 类型 | 说明 |\r
|--------|--------|--------|\r
| type | string | 条码类型 |\r
| number | string | 条码内容 |\r
\r
## 常见错误码\r
\r
业务错误码(来源于官网文档):\r
\r
| 代号 | 说明 |\r
|------|--------------|\r
| 201 | 条码类型不正确 |\r
| 202 | 条码号为空 |\r
| 203 | 条码不正确 |\r
| 206 | 条码地址不正确 |\r
| 210 | 没有信息 |\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. 用户提问:「帮我生成一个 EAN13 条形码图片」「帮我识别这个条形码里的编号」。 \r
2. 对于生成需求:根据用户提供的条码号与类型构造 `generate` 请求,从返回的 `barcode` 字段中获取 base64 图片内容,供前端直接展示或保存为 PNG; \r
3. 对于识别需求:将条码图片 URL 或 base64 作为 `barcode` 参数调用 `read`,遍历返回数组,读取每条记录的 `type/number` 回答给用户。\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 forwards barcode data (image URLs or base64 content) to the third‑party JisuAPI service and requires your JISU_API_KEY environment variable. Only install if you trust jisuapi.com and are comfortable with barcode images/text being sent to their servers. Note: the included Python script uses the 'requests' library but the README doesn't instruct installing it — ensure your environment has requests available (pip install requests) before running. Monitor API key usage/quota and avoid sending any sensitive images or identifiers unless you accept that they will be processed by the external API.
功能分析
Type: OpenClaw Skill
Name: barcode2
Version: 1.0.3
The skill provides legitimate barcode generation and recognition functionality by interfacing with the JisuAPI service. The Python script (barcode.py) correctly handles API authentication via environment variables and performs standard HTTP requests to the official API endpoint (api.jisuapi.com) without any signs of data exfiltration, obfuscation, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description, required env var (JISU_API_KEY), python3 binary, SKILL.md, and the included Python script all point to using the JisuAPI barcode endpoints. The requested credential and binary are appropriate for the described functionality.
Instruction Scope
SKILL.md and barcode.py only instruct the agent to call JisuAPI endpoints for generate/read operations and to read JISU_API_KEY from environment. There are no instructions to access unrelated files, secrets, or external endpoints beyond api.jisuapi.com.
Install Mechanism
This is an instruction-only skill (no install spec). A Python script is included which issues network requests; it depends on the 'requests' package but SKILL.md does not document installing that dependency. No arbitrary downloads or unusual installers are used.
Credentials
Only JISU_API_KEY is required as the primary credential, which is consistent with using a third‑party API. No other unrelated secrets, config paths, or excessive env vars are requested.
Persistence & Privilege
Skill is not always-enabled, does not request elevated/system-wide persistence, and does not modify other skills or system configuration. It only reads the provided JISU_API_KEY from the environment at runtime.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install barcode2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/barcode2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
Version 1.0.3
- Updated the skill name and description for clarity and improved user guidance.
- Enhanced service provider information and instructions for obtaining and configuring the API Key.
- Expanded and restructured documentation, including a new section introducing JisuAPI and its API offerings.
- Polished recommended usage and setup steps for consistency and ease of use.
v1.0.2
No changes detected in this version.
- No file modifications.
- No updates in usage, parameters, or documentation.
- Functionality remains the same as the previous version.
v1.0.1
barcode2 v1.0.1
- 脚本路径已由 skill/barcode/barcode.py 更新为 skills/barcode/barcode.py。
- 其余功能和用法保持不变。
v1.0.0
- Initial release of jisu-barcode skill.
- Supports generating various types of barcode images (EAN13, CODE128, ISBN, etc.) with customizable parameters, returning base64 content.
- Enables barcode recognition from images (URL or base64), extracting barcode type and number.
- Requires JISU_API_KEY environment variable for API access.
- Includes generate (/barcode/generate) and read (/barcode/read) subcommands for barcode creation and recognition.
- Documentation covers usage instructions, environment setup, and error codes.
元数据
常见问题
Barcode Generation And Recognition - 条码生成识别 是什么?
按类型与参数生成条形码图(base64),或识别条码图内容。当用户说:生成一个 Code128 条码图、识别这张条码里的数字,或类似条码生成/识别时,使用本技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 352 次。
如何安装 Barcode Generation And Recognition - 条码生成识别?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install barcode2」即可一键安装,无需额外配置。
Barcode Generation And Recognition - 条码生成识别 是免费的吗?
是的,Barcode Generation And Recognition - 条码生成识别 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Barcode Generation And Recognition - 条码生成识别 支持哪些平台?
Barcode Generation And Recognition - 条码生成识别 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Barcode Generation And Recognition - 条码生成识别?
由 极速数据(@jisuapi)开发并维护,当前版本 v1.0.3。
推荐 Skills