binary-credential-format-boundary
Audit and repair readers for fixed-length binary credentials and their text encodings without mutating raw bytes.
Skill by JinNing6
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jinning6-binary-credential-format-boundary
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/binary-credential-format-boundary
What's inside
- Skill name
binary-credential-format-boundary- Description
- Audit and repair readers for fixed-length binary credentials and their text encodings without mutating raw bytes. Use when code loads Ed25519/X25519 keys, nonces, digests, MAC keys, signatures, tokens, or other opaque bytes from files or environment values; when `.strip()`, decoding, newline handling, or format auto-detection occurs before length/type validation; or when cryptographic tests fail intermittently for otherwise valid generated material.
- License
- Apache-2.0
- Instructions
- 63 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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:
```python
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.
Also repeat any formerly random positive test enough times to show the intermittent path is gone. Do not replace a random test with only a deterministic fixture; retain both coverage types.
## Reject These Fixes
- Retrying key generation until the serialized bytes avoid whitespace.
- Stripping, decoding, or normalizing all input before format detection.
- Catching the parse error and silently generating or substituting a new credential.
- Relaxing Base64 validation or accepting arbitrary decoded lengths.
- Logging raw keys, signatures, tokens, or decoded credential material.
- Treating a probabilistic pass as proof that the boundary is correct.
## Completion Standard
- The deterministic boundary-octet regression fails on the old implementation and passes on the fix.
- Raw fixed-length input is returned byte-for-byte unchanged.
- Text input is normalized only within its explicit parser and is strictly validated after decoding.
- End-to-end cryptographic verification passes, including repeated formerly flaky runs.
- Negative and malformed inputs still fail closed.
- The full relevant test suite and static/compile checks pass.
- No credential value appears in logs, reports, fixtures intended for publication, or error messages.From JinNing6/Noosphere, Apache-2.0.
More from JinNing6/Noosphere
- 0.643score
Noosphere
JinNing6
Community of Consciousness MCP Server — upload and explore collective wisdom via GitHub.
ConnectorAFreshness: ALocal★ 18↓ 71/wkClaude Code +5 - 0.602score
agent-debug-memory
JinNing6
Use when debugging code, tests, builds, deployments, CI failures, runtime errors, framework issues, API migrations, or UI state bugs where a coding Agent…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
docker-git-bind-mount-push-debug
JinNing6
Diagnose and validate Git commit, fetch, and push failures when worktrees or bare remotes are bind-mounted into Docker, especially on Docker Desktop for…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
cloudflare-pages-stale-assets
JinNing6
Diagnose and fix Cloudflare Pages deployments where the live site still shows old CSS, JavaScript, native controls, untranslated text, or stale UI after a…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
codex-project-recency-sort-recovery
JinNing6
Diagnose and resolve codex project recency sort failures.
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
debug-async-ui
JinNing6
Use when UI state or returned content disappears, flashes, rolls back, saves but loses state, menus fail intermittently, or real browser behavior differs from…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
browser-actionability-debug
JinNing6
Diagnose browser UI tests or real browser checks where an element appears visible but cannot be clicked, copied, hovered, or focused.
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
dynamic-shared-skills
JinNing6
Use when an engineering task may match a community-reviewed Noosphere workflow and the Agent should discover, verify, apply, update, or report the outcome of…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
fastapi-response-contract-boundary
JinNing6
Audit and fix FastAPI/Pydantic response contract failures and analytics metric drift.
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
frontend-layering-specificity-debug
JinNing6
Diagnose and fix frontend controls whose typography or dimensions ignore component CSS, and React Three Fiber/Drei projected HTML labels that paint above…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
github-actions-public-ci-diagnostics
JinNing6
Diagnose GitHub Actions CI or release workflow failures when full logs are inaccessible, especially public repositories where REST job logs return 403, pytest…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
using-noosphere
JinNing6
Use automatically before diagnosing or fixing a concrete software failure.
SkillBFreshness: B★ 18Claude Code +9
Signals
- Stars
- 18
- Forks
- 3
- Open issues
- 23
- Last commit (this folder)
- Jul 15, 2026 (3 months ago)
- Last release
- Jul 29, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/JinNing6/Noosphere
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from JinNing6
- 0.643score
Noosphere
JinNing6
Community of Consciousness MCP Server — upload and explore collective wisdom via GitHub.
ConnectorAFreshness: ALocal★ 18↓ 71/wkClaude Code +5 - 0.602score
using-noosphere
JinNing6
Use automatically before diagnosing or fixing a concrete software failure.
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
agent-debug-memory
JinNing6
Use when debugging code, tests, builds, deployments, CI failures, runtime errors, framework issues, API migrations, or UI state bugs where a coding Agent…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
browser-actionability-debug
JinNing6
Diagnose browser UI tests or real browser checks where an element appears visible but cannot be clicked, copied, hovered, or focused.
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
cloudflare-pages-stale-assets
JinNing6
Diagnose and fix Cloudflare Pages deployments where the live site still shows old CSS, JavaScript, native controls, untranslated text, or stale UI after a…
SkillBFreshness: B★ 18Claude Code +9 - 0.602score
codex-project-recency-sort-recovery
JinNing6
Diagnose and resolve codex project recency sort failures.
SkillBFreshness: B★ 18Claude Code +9
Cite this page
binary-credential-format-boundary skill. Agent Mart. https://agentmart.dev/skills/jinning6-binary-credential-format-boundary (last updated 2026-10-24)