base64-parser

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 CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

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

Made for: Claude Code, Codex.

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. Scan, not verified.
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 $0.00033 $0.00847
Opus 5 $0.00016 $0.00424
Sonnet 5 $0.00007 $0.00169
Haiku 4.5 $0.00003 $0.00085

Measured 2d ago against content hash 65ba29a5931f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 URIdata: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. 2d 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 (177 stars, last pushed 2d ago), licensed MIT. It adds 33 tokens to every session and 847 once invoked, about $0.0002 per session on Opus 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

Other skills, from other repositories

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

golang-benchmark

Golang benchmarking, profiling, and performance measurement. Use when writing, running, or comparing Go benchmarks, profiling hot paths with pprof, interpreting CPU/memory/trace profiles, analyzing results with benchstat, setting up CI benchmark regression detection, or investigating production performance with…

samber/cc-skills-golang · 104 tokens

golang-continuous-integration

CI/CD pipeline configuration using GitHub Actions for Golang projects — testing, linting, SAST, security scanning, code coverage, Dependabot, Renovate, GoReleaser, code review automation, and release pipelines. Use when setting up or improving Go project CI, configuring GitHub Actions workflows, adding linters or…

samber/cc-skills-golang · 87 tokens

golang-dependency-injection

Comprehensive guide for dependency injection (DI) in Golang. Covers why DI matters (testability, loose coupling, separation of concerns, lifecycle management), manual constructor injection, and DI library comparison (google/wire, uber-go/dig, uber-go/fx, samber/do). Use this skill when designing service architecture…

samber/cc-skills-golang · 182 tokens

golang-design-patterns

Idiomatic Golang design patterns — functional options, constructors, error flow and cascading, resource management and lifecycle, graceful shutdown, resilience, architecture, dependency injection, data handling, streaming, and more. Apply when explicitly choosing between architectural patterns, implementing functional…

samber/cc-skills-golang · 83 tokens

golang-documentation

Comprehensive documentation guide for Golang projects, covering godoc comments, README, CONTRIBUTING, CHANGELOG, Go Playground, Example tests, API docs, and llms.txt. Use when writing or reviewing doc comments, documentation, adding code examples, setting up doc sites, or discussing documentation best practices.…

samber/cc-skills-golang · 77 tokens