← 返回 Skills 市场
gdfsdjj145

CodeBox QR Code

作者 gdfsdjj145 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
402
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install codebox-qrcode
功能描述
Generate, manage, and track QR codes via CodeBox API. Create dynamic QR codes with 200+ style templates, track scans with analytics (device, location, time),...
使用说明 (SKILL.md)

CodeBox QR Code Skill

Generate, manage, and track QR codes using the CodeBox API.

Setup

The user needs a CodeBox API key. Get one at https://www.codebox.club/zh/dashboard/apikeys

Set the environment variable:

CODEBOX_API_KEY=cb_sk_xxxxxxxxxxxxxxxx

API Base URL

All requests go to https://www.codebox.club/api/v1/plugin

Authentication

Every request must include:

Authorization: Bearer $CODEBOX_API_KEY

Available Actions

1. Generate QR Code

POST https://www.codebox.club/api/v1/plugin/generate

Use this to create a new QR code. Supports dynamic (trackable, updatable URL) and static modes.

curl -X POST https://www.codebox.club/api/v1/plugin/generate \
  -H "Authorization: Bearer $CODEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "https://example.com",
    "mode": "DYNAMIC",
    "name": "My QR Code",
    "templateId": "classic-black",
    "errorCorrectionLevel": "M"
  }'

Parameters:

  • content (required): URL or text to encode
  • mode: DYNAMIC (default, trackable) or STATIC (no tracking, free)
  • name: Display name for the QR code
  • templateId: Style template ID (use list_templates to browse)
  • keywords: Array of keywords for automatic template matching (e.g. ["christmas", "holiday"])
  • errorCorrectionLevel: L, M (default), Q, or H

Response includes: id, shortUrl, qrCodeUrl (PNG image), targetUrl

2. Batch Generate

POST https://www.codebox.club/api/v1/plugin/batch-generate

Generate up to 20 QR codes in a single request. Each item is processed independently (partial failure supported).

curl -X POST https://www.codebox.club/api/v1/plugin/batch-generate \
  -H "Authorization: Bearer $CODEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "items": [
      {"content": "https://example.com/1", "name": "Link 1"},
      {"content": "https://example.com/2", "name": "Link 2", "templateId": "ocean-blue"}
    ]
  }'

3. List QR Codes

GET https://www.codebox.club/api/v1/plugin/qrcodes

curl "https://www.codebox.club/api/v1/plugin/qrcodes?page=1&size=10" \
  -H "Authorization: Bearer $CODEBOX_API_KEY"

Query params: page, size (max 50), mode (STATIC/DYNAMIC/AI), keyword

4. Get Scan Analytics

POST https://www.codebox.club/api/v1/plugin/analytics

curl -X POST https://www.codebox.club/api/v1/plugin/analytics \
  -H "Authorization: Bearer $CODEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "qrCodeId": "xxx",
    "startDate": "2026-01-01",
    "endDate": "2026-03-23"
  }'

Returns: total scans, unique scans, time series, device/browser/OS breakdown, location stats.

5. Update Dynamic QR Code

POST https://www.codebox.club/api/v1/plugin/update

Change the target URL, name, or status of a dynamic QR code.

curl -X POST https://www.codebox.club/api/v1/plugin/update \
  -H "Authorization: Bearer $CODEBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "xxx",
    "targetUrl": "https://new-destination.com",
    "name": "Updated Name"
  }'

Parameters: id (required), targetUrl, name, status (READY/EXPIRED/DELETED)

6. Delete QR Code

DELETE https://www.codebox.club/api/v1/plugin/qrcodes/{id}

curl -X DELETE "https://www.codebox.club/api/v1/plugin/qrcodes/xxx" \
  -H "Authorization: Bearer $CODEBOX_API_KEY"

7. Clone QR Code

POST https://www.codebox.club/api/v1/plugin/qrcodes/{id}/clone

curl -X POST "https://www.codebox.club/api/v1/plugin/qrcodes/xxx/clone" \
  -H "Authorization: Bearer $CODEBOX_API_KEY"

8. Export Scan Events

GET https://www.codebox.club/api/v1/plugin/qrcodes/{id}/scans

curl "https://www.codebox.club/api/v1/plugin/qrcodes/xxx/scans?page=1&size=20" \
  -H "Authorization: Bearer $CODEBOX_API_KEY"

Query params: page, size (max 100), startDate, endDate

9. Browse Templates

GET https://www.codebox.club/api/v1/plugin/catalog

curl "https://www.codebox.club/api/v1/plugin/catalog?keyword=christmas&limit=10" \
  -H "Authorization: Bearer $CODEBOX_API_KEY"

Query params: category, keyword, limit (default 20)

Rules

  • Always use $CODEBOX_API_KEY from environment, never ask the user for it inline.
  • Default to DYNAMIC mode unless the user explicitly asks for static QR codes.
  • When the user describes a style (e.g. "Christmas themed", "blue ocean"), use the keywords parameter in the generate call for automatic template matching, or call the catalog endpoint first to find a matching templateId.
  • Dynamic QR codes consume 1 credit per generation. Static QR codes are free.
  • When generating multiple QR codes, prefer batch-generate (max 20) over individual calls.
  • The qrCodeUrl in the response is a direct link to the PNG image — you can share this URL directly.
  • The shortUrl is the trackable redirect link to share with end users.

Error Handling

安全使用建议
This skill is internally consistent and appears to do what it claims. Before installing, ensure you: (1) provide the API key via an environment variable (do not paste it into chat), (2) understand that dynamic QR codes are trackable and will produce analytics containing device/location/time information (privacy consideration), (3) review CodeBox billing/credit usage (dynamic codes cost credits by default), and (4) use a limited/rotatable API key or separate account if you want to limit blast radius. If you plan to expose webhooks or export scan data, review the CodeBox docs and your own data-handling policies.
功能分析
Type: OpenClaw Skill Name: codebox-qrcode Version: 1.0.0 The skill is a legitimate integration for the CodeBox QR code platform (codebox.club). It uses standard curl commands to interact with a documented API for generating and managing QR codes, requiring only the necessary CODEBOX_API_KEY environment variable. No suspicious behaviors, data exfiltration, or malicious instructions were found in SKILL.md or the supporting documentation.
能力评估
Purpose & Capability
Name/description (CodeBox QR Code) match the declared requirements: curl and CODEBOX_API_KEY are appropriate and sufficient for calling the CodeBox API endpoints described.
Instruction Scope
SKILL.md contains only curl-based calls to the CodeBox API and uses the CODEBOX_API_KEY from env. It does default to DYNAMIC (trackable) mode and instructs using analytics/scan exports — this is expected but implies collection of device/location/time data by the service (privacy implication). The instructions do not read local files or other environment variables.
Install Mechanism
Instruction-only skill with no install spec and no bundled code. This is low risk: nothing is downloaded or written to disk by the skill itself.
Credentials
Only a single credential (CODEBOX_API_KEY) is required and is the API key for the described service. No unrelated secrets or config paths are requested.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system privileges. Model invocation is allowed (platform default) but that is expected for a user-invocable API integration.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install codebox-qrcode
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /codebox-qrcode 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: 9 QR code operations via CodeBox API
v1.1.0
新增 generate_image 免费生成(无需 API Key),支持 WiFi/名片/渐变/Logo 等完整样式参数;删除旧 qrcode-ai;修正域名和品牌信息
v1.0.2
更新为 CodeBox 品牌信息,域名更正为 www.codebox.club,描述改为中文
v1.0.1
更新为 CodeBox 品牌信息,域名更正为 www.codebox.club,描述改为中文
元数据
Slug codebox-qrcode
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

CodeBox QR Code 是什么?

Generate, manage, and track QR codes via CodeBox API. Create dynamic QR codes with 200+ style templates, track scans with analytics (device, location, time),... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 402 次。

如何安装 CodeBox QR Code?

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

CodeBox QR Code 是免费的吗?

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

CodeBox QR Code 支持哪些平台?

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

谁开发了 CodeBox QR Code?

由 gdfsdjj145(@gdfsdjj145)开发并维护,当前版本 v1.0.0。

💬 留言讨论