← Back to Skills Marketplace
lapidcj

url编解码

by mark.cj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
202
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cj-url-encoder
Description
快速对文本或 URL 进行 Encode (编码) 和 Decode (解码) 操作,解决中文乱码和特殊字符传输问题。
README (SKILL.md)

\r \r

技能指令:URL Encoder/Decoder\r

\r 你是一个专业的 URL 处理助手。当用户提供一段文本、链接或编码字符串时,请根据语境判断是需要编码 (Encode) 还是 解码 (Decode),并调用相应工具进行处理。\r \r

任务流程\r

  1. 意图识别:\r
    • 如果用户输入包含明显的 % 符号(如 %E4%B8%AD%E6%96%87),或者明确说“解码”,则执行 Decode。\r
    • 如果用户输入包含中文、空格、特殊符号(如 ?, &, = 以外的符号),或者明确说“编码”,则执行 Encode。\r
    • 如果不确定,优先询问用户或同时展示编码和解码结果(但在本技能中,默认根据内容特征自动判断)。\r \r
  2. 调用工具:\r
    • 使用 process_url_text 工具,传入文本和操作类型 (encodedecode)。\r \r
  3. 格式化输出:\r
    • 清晰展示:将“原始内容”和“处理结果”分开展示。\r
    • 一键复制提示:在结果下方提示用户“点击即可复制”。\r
    • 解释说明:如果是编码,简要说明哪些字符被转换了(例如:空格变成了 %20,中文变成了 UTF-8 十六进制)。\r \r

处理规则\r

  • 编码标准:严格遵循 RFC 3986 标准,使用 UTF-8 编码。\r
  • 安全字符保留:在编码时,保留 URL 中的安全字符(如 A-Z, a-z, 0-9, -, _, ., ~),只编码其他字符。\r
  • 错误处理:如果解码失败(例如字符串格式不正确),请明确告知用户“这不是一个有效的 URL 编码字符串”,并列出可能的原因。\r \r

示例对话\r

用户: "帮我把 '你好 世界' 编码一下"\r 助手: \r ✅ URL 编码完成:\r

  • 🔹 原始内容: 你好 世界\r
  • 🔸 编码结果: %E4%BD%A0%E5%A5%BD%20%E4%B8%96%E7%95%8C\r

说明:中文字符已转换为 UTF-8 十六进制,空格转换为 %20。\r \r 用户: "解码这个:%E6%B5%8B%E8%AF%95"\r 助手:\r ✅ URL 解码完成:\r

  • 🔹 编码内容: %E6%B5%8B%E8%AF%95\r
  • 🔸 解码结果: 测试
Usage Guidance
此技能在本地用 Python 标准库执行 URL 编码/解码,不会联网或读取你的系统文件,整体是自洽且与描述一致。注意:当输入模糊时,内置的 auto_process 可能会默认“编码”而不是询问,若你需要确定解码请明确说明“解码”或请求同时显示编码/解码结果。若你有特殊编码策略(例如保留某些分隔符),在使用时说明以获得期望的行为。
Capability Analysis
Type: OpenClaw Skill Name: cj-url-encoder Version: 1.0.0 The skill is a standard utility for URL encoding and decoding using Python's built-in `urllib.parse` library. The code in `agent.py` and the instructions in `SKILL.md` are strictly aligned with the stated purpose, containing no network requests, file system access, or suspicious prompt-injection attempts.
Capability Assessment
Purpose & Capability
技能名称、描述与实际代码一致:使用 Python 标准库对文本进行 URL 编码/解码。没有要求额外二进制、环境变量或外部服务,这与“本地处理、保护隐私”的声明相符。
Instruction Scope
SKILL.md 的指令限定在识别意图并调用 process_url_text/auto_process 进行编码或解码,未涉及读取系统文件或发送网络请求。唯一值得注意的是 auto_process 的启发式决策:在不确定时默认执行编码,这可能在少数情形下与用户意图不符——建议在模糊场景中询问用户以避免误处理。
Install Mechanism
无安装规范(instruction-only + 小量本地 Python 代码),仅依赖标准库,不会从外部下载或在系统写入可执行的第三方内容。
Credentials
技能不请求任何环境变量、凭据或配置路径。所需权限与其功能完全匹配。
Persistence & Privilege
技能没有 always:true,也不修改其他技能或全局代理配置。默认的可自治调用并未与其他高权限行为组合,符合预期。
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cj-url-encoder
  3. After installation, invoke the skill by name or use /cj-url-encoder
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
cj-url-encoder 1.0.0 – Initial Release - Enables fast, reliable URL and text encoding/decoding to solve issues with Chinese characters and special symbols. - Automatically detects whether to encode or decode based on the text content and user phrasing. - Uses the built-in Python libraries only; no external dependencies required. - Clearly displays original and processed results, with copy-paste tips and concise character conversion explanations. - Handles errors gracefully and provides helpful feedback if decoding fails.
Metadata
Slug cj-url-encoder
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is url编解码?

快速对文本或 URL 进行 Encode (编码) 和 Decode (解码) 操作,解决中文乱码和特殊字符传输问题。 It is an AI Agent Skill for Claude Code / OpenClaw, with 202 downloads so far.

How do I install url编解码?

Run "/install cj-url-encoder" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is url编解码 free?

Yes, url编解码 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does url编解码 support?

url编解码 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created url编解码?

It is built and maintained by mark.cj (@lapidcj); the current version is v1.0.0.

💬 Comments