跳到正文
TakoAPI
返回技能列表

encoding-formats

由 gitgoodordietrying 提供

Coding Agents & IDEs
1.6k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Encode, decode, and convert between data formats.

描述

该技能的功能

Encode, decode, and convert data across common formats including Base64, URL encoding, hex, Unicode, JWTs, hashing, and serialization formats like JSON, MessagePack, and protobuf. Works via shell commands and code snippets in JavaScript and Python.

Covers the full encoding/decoding surface in one place rather than requiring separate tools or documentation lookups for each format.

何时使用

  • Decoding a Base64 string from an API response
  • Inspecting JWT claims without a library
  • Verifying file integrity with SHA-256 checksums
  • Converting a legacy Latin-1 text file to UTF-8
  • Translating a JSON payload into MessagePack for a binary protocol

示例工作流

输入

User asks: decode this JWT token and check if it's expired

智能体
  1. 1

    Split the token on '.' to get header, payload, and signature parts

  2. 2

    Base64url-decode the header part and parse as JSON

  3. 3

    Base64url-decode the payload part and parse as JSON

  4. 4

    Check the 'exp' claim against the current Unix timestamp

  5. 5

    Report the decoded claims and expiry status

输出

Decoded header (alg, typ), decoded payload (sub, name, iat, exp), and a notice whether the token is expired

安装

clawhub install gitgoodordietrying/encoding-formats

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接