binary-credential-format-boundary

binary-credential-format-boundary is a skill for Claude Code, Codex from JinNing6/Noosphere. It costs 97 tokens per session (812 once invoked), scanned A, original, Apache-2.0.

Guidance for reading fixed-size binary credentials and encoded text values without changing the underlying bytes. These credentials can include encryption keys, signatures, tokens, and digests used to verify or protect data.

In plain words
What is it for?
Use it when code loads cryptographic values from files or environment variables, especially when signing, verification, encryption, or decryption behaves inconsistently.
Why use it?
It helps find failures caused by trimming, decoding, newline conversion, or loose Base64 handling before changing the cryptography itself.

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/jinning6/noosphere/binary-credential-format-boundary
Any agent
npx skills add JinNing6/Noosphere --skill binary-credential-format-boundary
Clone the repo
git clone --depth 1 https://github.com/JinNing6/Noosphere

Made for: Claude Code, Codex.

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 binary-credential-format-boundary

README.md
[![agentmods](https://agentmods.dev/badge/skills/jinning6/noosphere/binary-credential-format-boundary.svg)](https://agentmods.dev/skills/jinning6/noosphere/binary-credential-format-boundary)
Your own site
<a href="https://agentmods.dev/skills/jinning6/noosphere/binary-credential-format-boundary"><img src="https://agentmods.dev/badge/skills/jinning6/noosphere/binary-credential-format-boundary.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 812 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.00097 $0.00812
Opus 5 $0.00048 $0.00406
Sonnet 5 $0.00019 $0.00162
Haiku 4.5 $0.00010 $0.00081

Measured 4d ago against content hash dcfdd2a1ae6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

binary-credential-format-boundary 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 4d ago.

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.

shared_skills/active/binary-credential-format-boundary/SKILL.md · 67 lines

How it starts

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

Binary Credential Format Boundary

Preserve opaque binary values byte-for-byte while supporting explicitly defined text encodings through a separate parsing branch. Treat a flaky cryptographic verification as a possible ingestion bug before changing the cryptographic primitive.

Diagnose

  1. Reproduce the failure and capture only exception types, lengths, and hashes; never print credential bytes.
  2. Verify the primitive independently with an in-memory generate/sign/verify or encrypt/decrypt control.
  3. Trace the exact bytes from serialization through file/environment ingestion to the primitive.
  4. Look for pre-validation mutations: .strip(), .splitlines(), Unicode decode/encode, newline normalization, NUL termination, case conversion, or permissive Base64 decoding.
  5. Compare interpreter and library versions only after the byte path is proven unchanged.

Parse Without Ambiguity

For a contract that accepts either a fixed-length raw value or Base64 text:

raw = path.read_bytes()
if len(raw) == EXPECTED_RAW_LENGTH:
    value = raw
else:
    value = base64.b64decode(raw.strip(), validate=True)
    if len(value) != EXPECTED_RAW_LENGTH:
        raise ValueError("invalid credential length")

Apply text cleanup only inside the text-encoding branch. Do not call .strip() before checking the raw representation: bytes such as 0x09, 0x0a, 0x0b, 0x0c, 0x0d, and 0x20 are valid opaque octets and may occur at either boundary.

Prefer an explicit format option or distinct file extension when the accepted encodings can have overlapping lengths. Use official PEM/DER/JWK loaders for those formats instead of inventing detection logic. Reject unknown, ambiguous, malformed, oversized, or non-canonical input fail-closed.

Test First

Add deterministic regressions before changing the reader:

  • A raw value of the exact required length whose first byte is an ASCII whitespace octet.
  • A raw value whose final byte is an ASCII whitespace octet.
  • Raw values containing NUL and non-UTF-8 octets.
  • Valid Base64 text with the contractually allowed line ending.
  • Invalid Base64, decoded wrong length, ambiguous representation, and extra binary bytes.
  • An end-to-end primitive check using the loaded value.

Read the full file on GitHub · 67 lines

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. 4d ago First seen · 67 lines · 97 tokens per session scan A dcfdd2a1ae6e

Subscribe to this mod's changes

binary-credential-format-boundary is a skill published in the GitHub repository JinNing6/Noosphere (18 stars, last pushed 4d ago), licensed Apache-2.0. It adds 97 tokens to every session and 812 once invoked, about $0.0005 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

prjct

The agentic harness for AI coding agents: machine-verified ships, guarded edits, and project lookup that beats re-deriving from source. Run the prjct verb yourself; use prjct work normally.

prjct-app/cli · 46 tokens

memstate-ai

Persistent, versioned memory for AI agents via Memstate AI. Alternative to the Memstate MCP plugin — use for storing facts, recalling memory, managing projects, and semantic search of agent summaries. Supports Markdown ingestion and direct keypath = value assignment. Requires MEMSTATEAPIKEY.

memstate-ai/memstate-mcp · 60 tokens

kaeru

Cognitive memory layer for LLM agents — typed graph + bi-temporal substrate + curator API, reached through the kaeru MCP server. Use when the user wants to capture, recall, reason, or trace persistent thoughts across sessions; when re-entering a multi-session project; or when the user explicitly asks to "remember"…

LamantinAI/kaeru · 91 tokens

writing

将共享历史中的已验证事实和计算结果整理成符合受众、格式与长度约束的成稿。.

bojieli/ai-agent-book · 27 tokens

kayba-stage-7-fixer

Implement the approved fixes from the action plan and log all changes. Trigger when the user says "run stage 7", "implement fixes", "apply action plan", or when invoked by the kayba-pipeline orchestrator. Requires eval/actionplan.md to exist.

kayba-ai/agentic-context-engine · 61 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens