Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计通过

qr-bridge二维码桥

Agent Skill

qr-bridge 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,320

周安装

180

GitHub Stars

公开资料未说明

下载量

1,440
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qr-bridge(二维码桥)
来源仓库:https://github.com/vicky-v7/qr-bridge
安装命令:
openclaw skills install qr-bridge
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install qr-bridge

简介

qr-bridge 用于解码 QR 码、跟踪重定向并解释链接实际指向的内容。

  • 适合在 OpenClaw 中分析二维码背后的真实目的地和门控策略。
  • 通过 openclaw skills install qr-bridge 命令安装使用。
  • 建议确认权限范围和维护状态,注意是否涉及联网、命令执行或文件读写操作。
  • qr-bridge 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
qr-bridge
description
Decode QR codes, trace redirects, inspect gated destinations, and explain what the link actually needs
author
Vicky-v7
version
1.0.0
allowed-tools
Bash, Read, Write, Glob, Grep, WebFetch, WebSearch
tags
qr, redirect, reconnaissance, macos, coreimage

QR Bridge

Entry point reconnaissance tool. Decode QR codes, trace redirect chains, inspect gated destinations, and explain what the link actually needs.

When to Use This Skill

Activate when the user asks to:

  • Decode / scan / read a QR code from an image
  • Trace where a short URL redirects to
  • Check if a link requires WeChat / WeCom / login / app
  • Diagnose why a link "doesn't work"
  • Generate a QR code from text or URL

Setup (First Run Only)

Before first use, compile the Swift decoder binary:

bash ~/.claude/skills/qr-bridge/scripts/setup.sh

If setup was already run, the binary exists at ~/.claude/skills/qr-bridge/scripts/qr-decode. Skip setup if it exists.

Commands

1. DECODE - Extract QR code content from an image

Step 1: Check if binary exists

ls ~/.claude/skills/qr-bridge/scripts/qr-decode 2>/dev/null && echo "COMPILED" || echo "NEED_SETUP"

If NEED_SETUP, run:

swiftc ~/.claude/skills/qr-bridge/scripts/qr-decode.swift -o ~/.claude/skills/qr-bridge/scripts/qr-decode -O

Step 2: Run decoder (compiled binary - fast)

~/.claude/skills/qr-bridge/scripts/qr-decode "/path/to/image.png"

Step 3: If compiled binary fails, use interpreted mode (slower but always works)

swift ~/.claude/skills/qr-bridge/scripts/qr-decode.swift "/path/to/image.png"

Step 4: If CoreImage fails, try pyzbar fallback

python3 -c "
from pyzbar.pyzbar import decode
from PIL import Image
import json, sys
img = Image.open(sys.argv[1])
results = decode(img)
out = [{'message': r.data.decode(), 'symbology': r.type} for r in results]
print(json.dumps({'ok': bool(out), 'count': len(out), 'results': out}, indent=2))
" "/path/to/image.png"

Output format (JSON):

{
  "ok": true,
  "count": 1,
  "results": [
    {
      "message": "https://example.com/path",
      "symbology": "QRCode",
      "bounds": { "x": 0, "y": 0, "width": 200, "height": 200 }
    }
  ],
  "file": "/path/to/image.png",
  "error": null
}

2. TRACE - Follow redirect chains

After decoding a URL from a QR code (or given a URL directly), trace the full redirect chain:

curl -sIL -o /dev/null -w '%{url_effective}\
' --max-redirs 15 --connect-timeout 10 "URL_HERE" 2>&1

For the full chain with each hop, use:

curl -sIL --max-redirs 15 --connect-timeout 10 -w '\
--- FINAL: %{url_effective} (HTTP %{http_code}) ---\
' "URL_HERE" 2>&1

Parse the Location: headers from the output to build the chain:

1. https://short.link/abc        → 302
2. https://tracking.example.com  → 301
3. https://final-destination.com → 200

3. INSPECT - Detect gated destinations

After tracing, inspect the final URL for access gates. Check for these patterns:

WeChat/WeCom Gates (common in Chinese QR codes):

  • Domain contains: weixin.qq.com, work.weixin.qq.com, mp.weixin.qq.com, open.weixin.qq.com
  • Redirect to open.weixin.qq.com/connect/oauth2/authorize
  • Response contains: 请在微信客户端打开, 请在企业微信客户端打开
  • Response header logicret: -2 = article not found / deleted / unpublished
  • User-Agent gating: returns different content for WeChat UA vs browser UA
  • WeChat mini-program links: weixin://dl/business/?appid= — cannot be opened outside WeChat

App-Gated Links:

  • Taobao: tb.cn, m.tb.cn — returns 200 with JS redirect to Taobao app. Look for tbopen:// scheme or s_status: STATUS_NORMAL header
  • Douyin: v.douyin.com — 302 redirect to www.douyin.com, then 404 for invalid links. Valid links redirect to www.douyin.com/video/
  • Xiaohongshu: xhslink.com — 307 → www.xiaohongshu.com. Look for snssdk:// or xhsdiscover:// deep-link schemes
  • Alipay: ur.alipay.com — redirects to alipays:// scheme
  • Response contains deep-link schemes: weixin://, alipays://, tbopen://, snssdk://, xhsdiscover://
  • Meta refresh or JavaScript redirect to app store

Login Walls:

  • HTTP 401 or 403 status
  • Redirect to /login, /signin, /oauth/authorize
  • Response contains login form elements

Content Validity Check (run AFTER gate detection):

  • WeChat: header logicret value — -2 means content invalid/deleted
  • Douyin: final destination is 404 = video removed or link expired
  • Taobao: response body contains 对不起 or 宝贝不存在 = product delisted

Detection commands:

# Step 1: Check response headers for platform signals
curl -sI --max-redirs 10 --connect-timeout 10 "URL_HERE" 2>&1

# Step 2: Check with browser-like UA
curl -sL --max-redirs 10 --connect-timeout 10 \
  -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15" \
  "URL_HERE" | head -c 5000

# Step 3: Check with WeChat UA (reveals WeChat-gated content)
curl -sL --max-redirs 10 --connect-timeout 10 \
  -H "User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 MicroMessenger/8.0.0" \
  "URL_HERE" | head -c 5000

# Step 4: Compare — if Step 2 and Step 3 return different content, the link is UA-gated

Header signals to check:

  • logicret: -2 → WeChat article invalid
  • s_status: STATUS_NORMAL → Taobao link active
  • Location: containing app deep-link schemes → app-gated redirect

4. DIAGNOSE - Explain and suggest next steps

Based on decode + trace + inspect results, provide a structured diagnosis:

Output format:

## QR Bridge Diagnosis

**Source:** [image filename]
**Decoded:** [raw content from QR]
**Type:** [URL | Text | vCard | WiFi | other]

### Redirect Chain
1. [url] → [status]
2. [url] → [status]
3. [url] → [final status]

### Access Gate
- **Gate type:** [WeChat | WeCom | Login | App-only | None]
- **Why it fails:** [explanation in plain language]
- **What it needs:** [specific requirement]

### Next Steps
- [actionable suggestion 1]
- [actionable suggestion 2]

Common diagnoses to provide:

Gate TypeWhy It FailsWhat It Needs
WeChatLink requires WeChat's built-in browserOpen in WeChat app > scan QR
WeChat (invalid)logicret: -2 — article deleted/unpublishedRequest a valid article link
WeComEnterprise WeChat onlyMust be a WeCom member of that org
TaobaoJS redirect to Taobao appOpen link in Taobao/淘宝 app
Douyin302→douyin.com, content requires appOpen in Douyin/抖音 app
Xiaohongshu307→xiaohongshu.com, app deep-linkOpen in 小红书 app
Alipayalipays:// scheme redirectOpen in Alipay/支付宝 app
Mini Programweixin://dl/business/ schemeOpen in WeChat > scan QR to launch mini-program
Login WallRequires authenticationSign in at [domain] first
App-OnlyDeep link to native appInstall [app name] and scan in-app
ExpiredShort link no longer resolvesLink has expired, request a new one
Geo-blockedReturns different content by regionMay need VPN to [region]

5. GENERATE - Create QR codes from text/URLs

python3 -c "
import qrcode, sys, os
data = sys.argv[1]
out = sys.argv[2] if len(sys.argv) > 2 else os.path.expanduser('~/Desktop/qr-output.png')
qr = qrcode.QRCode(version=None, error_correction=qrcode.constants.ERROR_CORRECT_H, box_size=10, border=4)
qr.add_data(data)
qr.make(fit=True)
img = qr.make_image(fill_color='black', back_color='white')
img.save(out)
print(f'QR code saved to: {out}')
print(f'Content: {data}')
print(f'Size: {img.size[0]}x{img.size[1]}px')
" "CONTENT_HERE" "/output/path.png"

If qrcode is not installed:

pip3 install "qrcode[pil]"

Full Workflow

When the user provides a QR code image, run the full pipeline automatically:

  1. DECODE the image
  2. If the decoded content is a URL:

a. TRACE the redirect chain b. INSPECT the final destination for gates c. DIAGNOSE with full report

  1. If the decoded content is NOT a URL (plain text, WiFi config, vCard, etc.):

a. Present the content with type identification b. Skip trace/inspect

Always present results in the structured diagnosis format above.

Error Handling

Image cannot be read:

  • Verify the file exists and path is correct
  • Check format (PNG, JPEG, HEIC, TIFF supported)
  • Suggest converting if format is unusual: sips -s format png input.webp --out converted.png

No QR code detected:

  • Image may be too low resolution
  • QR code may be partially obscured
  • Suggest: crop to QR region, improve contrast, try a screenshot instead of photo
  • Try pyzbar fallback (different algorithm may succeed)

Redirect fails (timeout/DNS):

  • Short link service may be down
  • Link may have expired
  • Try again with longer timeout: --connect-timeout 30

Cannot determine gate type:

  • Fetch page content and look for clues in HTML/JS
  • Check response headers for X-Powered-By, Server, custom headers
  • Report what IS known and suggest manual inspection

Notes

  • This skill is macOS-native. CoreImage is the primary decoder (zero external dependencies).
  • The Swift binary is compiled once and reused for speed (~10ms vs ~2s interpreted).
  • For batch processing, loop the binary over multiple files.
  • All output is designed to be actionable: never just say "it failed" -- explain WHY and WHAT TO DO.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.74%
按下载量换算1,091

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills