← 返回 Skills 市场
kofna3369

axiom-json-canonicalizer

作者 Kofna3369 · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ⚠ suspicious
47
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install axiom-json-canonicalizer
功能描述
JCS RFC 8785 — Canonical JSON. Convert any JSON to a deterministic, byte-to-byte identical canonical form. Use when you need to sign, hash, or compare JSON r...
使用说明 (SKILL.md)

axiom-json-canonicalizer

Version: 1.0.1 Axioma Tools

Converts any JSON to a canonical form per RFC 8785 (JCS).

What this skill does

  • Object keys sorted lexicographically (post-NFC)
  • No insignificant whitespace
  • Numbers: ECMAScript shortest round-trip
  • Strings: NFC-normalized, surrogate-pair safe
  • Output: UTF-8 bytes (byte-to-byte stable)

When to use this skill

  • ✅ Sign OAuth/JWT payloads (canonicalize before signing)
  • ✅ Hash JSON for integrity verification
  • ✅ Compare semantically-equivalent JSON
  • ✅ Build tamper-evident audit logs
  • ❌ Need pretty-printing (use json.dumps indent)
  • ❌ Need JSON5/JSONL/JSONC (different specs)

Usage

python3 axiom_json_canonicalizer.py input.json > canonical.json
python3 axiom_json_canonicalizer.py input.json --verify canonical.json
from axiom_json_canonicalizer import canonicalize
canon_bytes = canonicalize(json_obj)  # UTF-8 bytes

Validation

Check Status
Unit tests 81 cases
Performance \x3C100ms
Security Pure stdlib, no injection
Determinism Byte-to-byte stable
License Apache-2.0

Last updated: 2026-06-14

安全使用建议
Treat this as a custom offline JSON normalizer unless the publisher fixes or narrows the RFC 8785/JCS claims. Do not rely on it for cryptographic signatures, JWT/OAuth payloads, audit logs, or interoperability with other JCS implementations without independent test vectors and agreement that NFC normalization and its number formatting are acceptable.
能力标签
requires-walletrequires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The skill is coherently aimed at JSON canonicalization for hashing/signing, but it advertises RFC 8785/JCS compliance while the code intentionally NFC-normalizes strings/keys and uses non-strict number handling, which is unsafe for a claimed standards-compatible signing or integrity tool.
Instruction Scope
Runtime use is user-directed through stdin or a named file, but the docs repeatedly recommend OAuth/JWT signing, hashing, and tamper-evident logs without clearly warning that its output is a custom canonical form rather than strict JCS.
Install Mechanism
No install script, postinstall hook, package manager mutation, or automatic execution was found; the artifact is documentation, a Python script, tests, and metadata.
Credentials
The Python code uses only stdlib JSON/string/file operations and no network, subprocess, shell, LLM, or credential access. Registry capability tags mention sensitive credentials/OAuth, but the artifact does not request or use them.
Persistence & Privilege
No persistence, background worker, privilege escalation, hidden state, or broad filesystem indexing was found; file access is limited to user-supplied paths and stdout output.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install axiom-json-canonicalizer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /axiom-json-canonicalizer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
v1.0.1: Make trilingual EN/FR/ZH the latest version (was 0.1.1/0.1.6, semver too low)
v0.1.1
v0.1.1: Trilingual SKILL.md (EN/FR/ZH) added for ClawHub
v1.0.0
v1.0.0: JCS RFC 8785. NFC normalization, surrogate pair handling, ECMAScript number format. 81 tests.
元数据
Slug axiom-json-canonicalizer
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

axiom-json-canonicalizer 是什么?

JCS RFC 8785 — Canonical JSON. Convert any JSON to a deterministic, byte-to-byte identical canonical form. Use when you need to sign, hash, or compare JSON r... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。

如何安装 axiom-json-canonicalizer?

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

axiom-json-canonicalizer 是免费的吗?

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

axiom-json-canonicalizer 支持哪些平台?

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

谁开发了 axiom-json-canonicalizer?

由 Kofna3369(@kofna3369)开发并维护,当前版本 v1.0.1。

💬 留言讨论