encode
by BytesAgain
Encode text to base64, URL-safe strings, and HTML entity formats. Use when encoding payloads, escaping URLs, converting HTML entities.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain3/encode文档
Encode
A devtools toolkit for checking, validating, generating, formatting, linting, explaining, converting, templating, diffing, previewing, fixing, and reporting on encoded data — all from the command line.
Commands
| Command | Description |
|---|---|
encode check <input> | Check encoding validity — log check results for encoded payloads |
encode validate <input> | Validate encoding format — record validation outcomes |
encode generate <input> | Generate encoded output — log generation parameters and results |
encode format <input> | Format encoded data for readability — track formatting operations |
encode lint <input> | Lint encoding for common issues — save lint findings |
encode explain <input> | Explain encoding format or structure — record explanations |
encode convert <input> | Convert between encoding formats — log conversion details |
encode template <input> | Create or apply encoding templates — track template operations |
encode diff <input> | Diff two encoded values — log comparison results |
encode preview <input> | Preview decoded or re-encoded output — record preview sessions |
encode fix <input> | Fix encoding issues — log fix operations and outcomes |
encode report <input> | Generate encoding analysis reports — save report specifications |
encode stats | Show summary statistics across all command categories |
encode export json|csv|txt | Export all logged data in JSON, CSV, or plain text format |
encode search <term> | Search across all log entries for a keyword |
encode recent | Show the 20 most recent activity entries |
encode status | Health check — version, data directory, entry count, disk usage, last activity |
encode help | Show available commands and usage |
encode version | Show version (v2.0.0) |
Each domain command (check, validate, generate, etc.) works in two modes:
- Without arguments: displays the 20 most recent entries from that category
- With arguments: logs a new timestamped entry and shows the running total
Data Storage
All data is stored locally in ~/.local/share/encode/. Each command writes to its own log file (e.g., check.log, validate.log, convert.log) and a shared history.log tracks all activity with timestamps. No cloud sync, no external API calls — everything stays on your machine.
Requirements
- Bash 4+ (uses
set -euo pipefail) - Standard Unix utilities:
date,wc,du,grep,head,tail,basename - No external dependencies or API keys required
When to Use
- Debugging encoded API payloads — Use
checkandvalidateto verify base64 or URL-encoded strings,explainto understand the encoding structure, andfixto log corrections - Converting between encoding formats — Use
convertto track format conversions (base64 ↔ URL encoding ↔ HTML entities) anddiffto compare before/after results - Building encoding pipelines — Use
templateto define reusable encoding patterns,generateto produce encoded output, andformatto ensure consistent presentation - Code review and linting — Use
lintto record encoding issues found during review,previewto verify decoded output, andreportto summarize findings for the team - Maintaining an encoding operations log — Use
statsto see how many encoding operations you've performed,searchto find specific entries, andexportto back up your history
Examples
# Check if a base64 string is valid
encode check "SGVsbG8gV29ybGQ= — valid base64, decodes to Hello World"
# Validate URL encoding
encode validate "%E4%BD%A0%E5%A5%BD — valid UTF-8 URL encoding for 你好"
# Convert between formats
encode convert "base64 to hex: SGVsbG8= → 48656c6c6f"
# Lint for common issues
encode lint "Found double-encoded URL: %2520 should be %20"
# Explain an encoding format
encode explain "JWT token structure: header.payload.signature, each base64url"
# Generate encoded output
encode generate "URL-encode query params: name=张三&city=北京"
# Diff two encoded values
encode diff "v1: dXNlcg== vs v2: YWRtaW4= — different decoded values"
# Export all data to JSON
encode export json
# View statistics
encode stats
How It Works
Encode uses a simple append-only log architecture. Each command appends a timestamped, pipe-delimited entry (YYYY-MM-DD HH:MM|value) to its category-specific log file. The stats command aggregates line counts across all logs, search runs case-insensitive grep across all files, and export serializes everything into your chosen format (JSON, CSV, or plain text). The status command gives a quick system health overview including version, total entries, disk usage, and last activity timestamp.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
表格处理
by anthropics
围绕 .xlsx、.xlsm、.csv、.tsv 做读写、修复、清洗、格式整理、公式计算与格式转换,适合修改现有表格、生成新报表或把杂乱数据整理成交付级电子表格。
✎ 做 Excel/CSV 相关任务很省心,能直接读写、修复、清洗和格式转换,尤其擅长把乱七八糟的表格整理成交付级文件。
PDF处理
by anthropics
遇到 PDF 读写、文本表格提取、合并拆分、旋转加水印、表单填写或加解密时直接用它,也能提取图片、生成新 PDF,并把扫描件通过 OCR 变成可搜索文档。
✎ PDF杂活别再来回切工具了,文本表格提取、合并拆分到OCR识别一次搞定,连扫描件也能变可搜索。
Word文档
by anthropics
覆盖Word/.docx文档的创建、读取、编辑与重排,适合生成报告、备忘录、信函和模板,也能处理目录、页眉页脚、页码、图片替换、查找替换、修订批注及内容提取整理。
✎ 搞定 .docx 的创建、改写与精排版,目录、批量替换、批注修订和图片更新都能自动化,做正式文档尤其省心。
相关 MCP 服务
文件系统
编辑精选by Anthropic
Filesystem 是 MCP 官方参考服务器,让 LLM 安全读写本地文件系统。
✎ 这个服务器解决了让 Claude 直接操作本地文件的痛点,比如自动整理文档或生成代码文件。适合需要自动化文件处理的开发者,但注意它只是参考实现,生产环境需自行加固安全。
by wonderwhy-er
Desktop Commander 是让 AI 直接执行终端命令、管理文件和进程的 MCP 服务器。
✎ 这工具解决了 AI 无法直接操作本地环境的痛点,适合需要自动化脚本调试或文件批量处理的开发者。它能让你用自然语言指挥终端,但权限控制需谨慎,毕竟让 AI 执行 rm -rf 可不是闹着玩的。
EdgarTools
编辑精选by dgunning
EdgarTools 是无需 API 密钥即可解析 SEC EDGAR 财报的开源 Python 库。
✎ 这个工具解决了金融数据获取的痛点——直接让 AI 读取结构化财报,比如让 Claude 分析苹果的 10-K 文件。适合量化分析师或金融开发者快速构建数据管道。但注意,它依赖 SEC 网站稳定性,高峰期可能延迟。
相关资讯
开源编程智能体通过独立于特定模型提供商的架构,帮助开发者管理不可预测的 token 账单。OpenCode 等工具支持连接多种模型,其 10 美元月费套餐集成了多个中国 AI 实验室的模型,使得低成本订阅成为可能。这标志着 AI 软件栈的价值层正在向智能体层转移。