Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

encoding-formats

bởi gitgoodordietrying

Coding Agents & IDEs
1.6kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Encode, decode, and convert between data formats.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install gitgoodordietrying/encoding-formats

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết