← 返回 Skills 市场
dinghaibin

Urlencode Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
46
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install urlencode-tool
功能描述
URL-encode or decode text for safe transmission in URLs and query strings, with support for form data, partial encoding, and batch file processing.
使用说明 (SKILL.md)

URL Encode/Decode Tool — Percent-Encoding Utility

Encode and decode URL components per RFC 3986. Handles query strings, path segments, form bodies (application/x-www-form-urlencoded), and partial encoding where only unsafe characters are escaped.

Quick Start

# Encode a string for URL use
urlencode-tool --encode "hello world & more"

# Decode a percent-encoded string
urlencode-tool --decode "hello%20world%20%26%20more"

# Encode a full query string
urlencode-tool --encode "name=Alice & age=30" --query

Usage

urlencode-tool [COMMAND] [TEXT] [OPTIONS]

Commands:
  --encode TEXT   Percent-encode the input string
  --decode TEXT   Decode percent-encoded input

Options:
  --query         Encode as form query (spaces → +)
  --path-safe     Only encode unsafe chars for path segment
  --component     Encode entire URI component (default, full RFC 3986)
  --charset UTF-8 Character encoding (default: UTF-8)
  --batch FILE    Encode/decode lines from a file
  --json          Output as JSON

Examples

# Basic encoding
urlencode-tool --encode "user input with spaces & symbols"

# Decode back
urlencode-tool --decode "user%20input%20with%20spaces%20%26%20symbols"

# Form-encoded query string (spaces as +)
urlencode-tool --encode "name=Alice Smith&city=New York" --query

# Path-segment safe (preserves /)
urlencode-tool --encode "dir/sub dir/file name.txt" --path-safe

# Batch process a file of URLs
urlencode-tool --encode --batch urls.txt --json

Features

  • Encode & decode full RFC 3986 percent-encoding
  • 3 encoding modes: component, query (form), path-safe
  • UTF-8 encoding standard (configurable charset)
  • Batch processing from file input
  • JSON output for script pipelines
  • Round-trip safety: decode(encode(x)) === x for valid Unicode
  • Unicode safe: handles CJK, emoji, and multi-byte characters
安全使用建议
This skill looks safe for simple local URL encoding and decoding. Before relying on it, check which options are actually supported, because the documentation describes features that are not present in the bundled Python script.
功能分析
Type: OpenClaw Skill Name: urlencode-tool Version: 1.0.0 The skill provides standard URL encoding and decoding functionality using Python's built-in `urllib.parse` library. The implementation in `scripts/urlcode.py` is safe and lacks any high-risk behaviors such as network access, file system manipulation, or shell execution. While there is a discrepancy between the documentation in `SKILL.md` and the actual code (the docs claim features like `--batch` and `--json` which are not implemented), this appears to be an incomplete implementation rather than a malicious attempt to deceive the agent or user.
能力评估
Purpose & Capability
The purpose is coherent and low-risk, but SKILL.md advertises options such as batch processing, JSON output, charset selection, query mode, and path-safe mode that are not implemented in the included script.
Instruction Scope
Instructions are limited to user-invoked URL encoding/decoding examples and do not attempt to override user intent, force tool use, or hide behavior.
Install Mechanism
There is no install spec even though the documentation uses a `urlencode-tool` command; users may need to verify how the bundled script is exposed before relying on the examples.
Credentials
No environment variables, credentials, required binaries, network calls, or broad local access are declared or shown in the code.
Persistence & Privilege
The artifacts show no persistence, background execution, privilege escalation, account access, or stored state.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install urlencode-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /urlencode-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug urlencode-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Urlencode Tool 是什么?

URL-encode or decode text for safe transmission in URLs and query strings, with support for form data, partial encoding, and batch file processing. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 46 次。

如何安装 Urlencode Tool?

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

Urlencode Tool 是免费的吗?

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

Urlencode Tool 支持哪些平台?

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

谁开发了 Urlencode Tool?

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

💬 留言讨论