base64-parser

base64-parser is a skill for Claude Code from echoVic/blade-code. It costs 33 tokens per session (847 once invoked), scanned A, original, MIT.

A tool for converting Base64, a text format used to represent files or binary data, to and from ordinary text or files. It can also identify whether decoded content is text, JSON, an image, or a PDF.

In plain words
What is it for?
Use it to encode or decode text and files, inspect binary content, detect its type, process multiple values, and save decoded results.
Why use it?
It removes the need to decode Base64 manually and helps inspect or save encoded content in a readable or usable form.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .blade/skills/base64-parser/scripts/base64_tool.py -p batch --file input.txt --output-dir ./decoded/.

Good fit Use it to encode or decode text and files, inspect binary content, detect its type, process multiple values, and save decoded results.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/echoVic/blade-code
agentmods
npx agentmods add skills/echovic/blade-code/base64-parser

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for base64-parser

README.md
[![agentmods](https://agentmods.dev/badge/skills/echovic/blade-code/base64-parser/github.svg)](https://agentmods.dev/skills/echovic/blade-code/base64-parser)
Your own site
<a href="https://agentmods.dev/skills/echovic/blade-code/base64-parser"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/base64-parser/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for base64-parser

Your own site · 80×15
<a href="https://agentmods.dev/skills/echovic/blade-code/base64-parser"><img src="https://agentmods.dev/badge/skills/echovic/blade-code/base64-parser.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00847
Opus 5.5 $0.00013 $0.00339
Sonnet 5.5 $0.00007 $0.00169
Haiku 4.5 $0.00003 $0.00085

Measured 3mo ago against content hash 65ba29a5931f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

base64-parser scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/base64_tool.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.blade/skills/base64-parser/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Base64 编解码技能

功能

操作 说明
decode 解码 Base64 字符串为文本/JSON/二进制
encode 将文本/文件编码为 Base64
detect 自动检测 Base64 内容类型(JSON/文本/图片/PDF等)
batch 批量解码多个 Base64 字符串

使用方法

重要:始终使用 -p 参数获得人类友好的输出格式!

1. 解码 Base64

# 解码并显示完整内容(推荐)
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p decode "SGVsbG8gV29ybGQ="

# 解码并保存到文件
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p decode "..." --output result.txt

# 解码二进制(如图片)并保存
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p decode "iVBORw0KGgo..." --output image.png --binary

2. 编码为 Base64

# 编码文本
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p encode "Hello World"

# 编码文件
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p encode --file image.png

# URL 安全编码
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p encode "Hello World" --url-safe

3. 检测类型

# 自动检测 Base64 内容类型并显示内容
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p detect "eyJ0ZXN0IjogMX0="

4. 批量处理

# 从文件批量解码(每行一个 Base64)
python3 .blade/skills/base64-parser/scripts/base64_tool.py -p batch --file input.txt --output-dir ./decoded/

输出格式说明

  • -p (pretty): 人类友好格式,带 emoji 图标,显示完整解码内容
  • 不加 -p: JSON 格式,适合程序处理

示例输出(使用 -p):

✅ Successfully decoded as JSON

📊 类型: json (application/json)
📏 大小: 35 bytes

📄 解码内容:
--------------------------------------------------
{
  "name": "Blade",
  "version": "2.0"
}
--------------------------------------------------

支持格式

格式 自动检测 说明
JSON ✅ 自动解析并格式化输出
纯文本 ✅ UTF-8 文本
PNG/JPEG/GIF ✅ 通过 magic bytes 检测
PDF ✅ 通过 %PDF 头检测
其他二进制 ✅ 显示十六进制预览

常见场景

  1. 解析 JWT Token:JWT 的 payload 是 Base64 编码的 JSON
  2. 查看 API 响应:某些 API 返回 Base64 编码的数据
  3. 处理配置文件:Kubernetes Secrets 等使用 Base64
  4. 图片 Data URI:data:image/png;base64,... 格式
  5. 调试加密数据:查看加密前的原始内容

Read the full file on GitHub · 106 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 106 lines · 33 tokens per session scan A 65ba29a5931f

Subscribe to this mod's changes

base64-parser is a skill published in the GitHub repository echoVic/blade-code (181 stars, last pushed 14d ago), licensed MIT. It adds 33 tokens to every session and 847 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

base64-parser compared with skills from other repositories

base64-parser next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
base64-parserechoVic/blade-codeSkill18114d agoMITA33Claude Code
clinical-reportssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A71Claude Code
ggetsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A66Claude Code, Codex
immunology-assayssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A79Claude Code, Codex
molecular-cloningsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A70Claude Code, Codex
geo-databasesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A47Claude Code, Codex
bioimage-analysissynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A63Claude Code, Codex