clipboard-to-shortcut

clipboard-to-shortcut is a skill for Claude Code, Codex from OPPO-Mente-Lab/X-OmniClaw. It costs 157 tokens per session (4,909 once invoked), scanned A, original, Apache-2.0.

A skill that turns a copied mobile-app sharing link into a reusable shortcut for opening that app page later.

In plain words
What is it for?
Use it to save links from supported apps such as Taobao, Douyin, Xiaohongshu, Meituan, Bilibili, or Alipay as named shortcuts.
Why use it?
It avoids repeating the steps of finding a copied link and opening it in the correct app. It also checks whether the connected device can provide the clipboard and open the destination.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to save links from supported apps such as Taobao, Douyin, Xiaohongshu, Meituan, Bilibili, or Alipay as named shortcuts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OPPO-Mente-Lab/X-OmniClaw --skill clipboard-to-shortcut
Clone the repo
git clone --depth 1 https://github.com/OPPO-Mente-Lab/X-OmniClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clipboard-to-shortcut

README.md
[![agentmods](https://agentmods.dev/badge/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut/github.svg)](https://agentmods.dev/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut)
Your own site
<a href="https://agentmods.dev/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut"><img src="https://agentmods.dev/badge/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clipboard-to-shortcut

Your own site · 80×15
<a href="https://agentmods.dev/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut"><img src="https://agentmods.dev/badge/skills/oppo-mente-lab/x-omniclaw/clipboard-to-shortcut.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 157 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,909 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00157 $0.04909
Opus 5 $0.00078 $0.02455
Sonnet 5 $0.00031 $0.00982
Haiku 4.5 $0.00016 $0.00491

Measured 12d ago against content hash e2be0056ee4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

clipboard-to-shortcut scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

app/src/main/assets/skills/clipboard-to-shortcut/SKILL.md · 494 lines

How it starts

The opening of the file, as written. The whole thing — 494 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clipboard to Shortcut Skill

从手机剪切板读取 App 跳转链接,自动生成一个独立的快捷指令 SKILL.md,用户以后只需说出该 Skill 名称即可一键直达对应 App 页面。

🚫 绝对禁止(违反必崩溃)

禁止使用 exec / shell 执行以下任何命令,100% 报 SecurityException 崩溃:

# ❌ 全部禁止 — 没有例外
am start -a android.intent.action.VIEW -d "https://..."    # ← 最常见错误!
am start -n com.taobao.taobao/...
content query --uri content://clipboard/clipboard
service call clipboard 2
adb shell ...
input tap / input swipe / input text

已知崩溃日志(如果你看到类似报错,说明你用错了工具):

java.lang.SecurityException: Permission Denial: package=com.android.shell does not belong to uid=...

✅ 读取剪切板唯一正确方式:

device(action = "clipboard")

✅ 跳转 App 唯一正确方式(必须带 package_name 防止跳浏览器):

device(action = "open", uri = "https://...", package_name = "com.taobao.taobao")

⛔ 绝对不能用 exec 调 am start 作为替代或回退方案。失败时应告知用户,而非换成 shell。

🎯 When to Use

✅ "把剪切板的链接做成 skill 淘宝好物" ✅ "帮我用剪切板内容创建一个skill叫抖音搞笑视频" ✅ "把复制的链接保存为快捷跳转 skill" ✅ "制作一个skill,下次可以一键打开这个页面" ✅ "帮我把这个链接做成一键直达的skill XX"

📋 Workflow

0) 前置检查

检查 Device status:

  • Accessibility: ✅ connected → 继续。
  • Accessibility: ❌ not connected → 停止,回复用户:
设备当前未连接无障碍服务(Accessibility 未连接),暂时无法读取剪切板。
请先在 X-OmniClaw 中重新连接设备无障碍服务后重试。

1) 获取 Skill 名称

从用户 query 中提取 Skill 名称。用户通常会说"做成 skill XX"或"创建 skill 叫 XX"。

  • 若用户未提供名称,根据链接对应的 App 和内容自动生成一个简短中文名称,例如 淘宝板鞋抖音搞笑视频
  • 名称规范:直接使用中文名称,不超过 20 个字。文件夹名与 name 保持一致(均为中文)。禁止转换为拼音或英文。

2) 读取剪切板并提取 URL

val clipboardText = device(action = "clipboard")

val urlRegex = Regex("""https?://[^\s\u4e00-\u9fff\u3000-\u303f\uff00-\uffef]+""")
var url = urlRegex.find(clipboardText)?.value
    ?.trimEnd(',', '。', '、', '"', '"', ')', ')', ']', '】', '>', '》', '¥', ' ')
    ?: throw Exception("剪切板中未找到有效链接")

3) 识别 App 类型并获取 package_name

根据 URL 特征识别 App,同时确定 package_name跳转时必须传 package_name,否则链接会被浏览器拦截。

Read the full file on GitHub · 494 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 494 lines · 157 tokens per session scan A e2be0056ee4f

Subscribe to this mod's changes

clipboard-to-shortcut is a skill published in the GitHub repository OPPO-Mente-Lab/X-OmniClaw (261 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 157 tokens to every session and 4,909 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.