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.
npx agentmods add skills/jinning6/noosphere/binary-credential-format-boundarynpx skills add JinNing6/Noosphere --skill binary-credential-format-boundarygit clone --depth 1 https://github.com/JinNing6/NoosphereWrote 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.
[](https://agentmods.dev/skills/jinning6/noosphere/binary-credential-format-boundary)<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>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.
| Model | Per session | Once 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 |
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.
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
- Reproduce the failure and capture only exception types, lengths, and hashes; never print credential bytes.
- Verify the primitive independently with an in-memory generate/sign/verify or encrypt/decrypt control.
- Trace the exact bytes from serialization through file/environment ingestion to the primitive.
- Look for pre-validation mutations:
.strip(),.splitlines(), Unicode decode/encode, newline normalization, NUL termination, case conversion, or permissive Base64 decoding. - 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.
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.
- 4d ago First seen · 67 lines · 97 tokens per session scan A dcfdd2a1ae6e
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.
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.
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.
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"…
writing
将共享历史中的已验证事实和计算结果整理成符合受众、格式与长度约束的成稿。.
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.
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.