maintain-badge-protocol
Safely implement or review 34b.ninja badge transport, image packing and upload, BIO/SAO configuration, FIFO controls, or hardware-facing browser behavior.
Skill by pierce403
Chalk Labs
Need help deploying maintain-badge-protocol?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/pierce403-maintain-badge-protocol
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
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/maintain-badge-protocol
What's inside
- Skill name
maintain-badge-protocol- Description
- Safely implement or review 34b.ninja badge transport, image packing and upload, BIO/SAO configuration, FIFO controls, or hardware-facing browser behavior. Use for any change that sends bytes or commands to the DEF CON 34 badge.
- License
- MIT
- Instructions
- 23 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Maintain badge protocol 1. Read `notes/protocol.md`, `notes/acceptance.md`, and the affected `FEATURES.md` entry. 2. Inspect the current implementation and tests before proposing a change: - transport and line parser: `src/lib/badge-connection.js` - command grammar and framing: `src/lib/protocol.js` - retry and transaction policy: `src/lib/transfers.js` - image conversion and packing: `src/lib/image-pipeline.js` - executable evidence: `test/*.test.mjs` 3. Check the pinned upstream implementation, not only README, docstring, or help text. Use the full-SHA links in `notes/protocol.md`: - image: `dc34-image/dc34_image/send_image.py` and `dc34-console/src/cmds/image.rs` - BIO: `dc34-bio/dc34_bio/dc34_bio.py` and `dc34-console/src/cmds/bio.rs` - USB identity/composition: Xous `services/usb-bao1x/src/hw.rs` 4. Preserve runtime VID:PID `1d50:6198` and one queued command at a time. Desktop prefers native Web Serial; Android prefers WebUSB CDC even when native Serial is present. The experimental WebUSB chooser uses exact VID/PID only, then `web-serial-polyfill` 1.0.15 requires and claims CDC control class `0x02` and data class `0x0a`, sets 1,000,000-baud 8-N-1 line coding, asserts DTR, and uses the CDC data endpoints. Do not claim HID interfaces. 5. Keep the command surface exactly as narrow as the grammar table in `notes/protocol.md`: version query; image clear/chunks; BIO ready, clear, reload, pin, clock, chunks, one-word FIFO3 TX, and one-sample FIFO3 RX. Reject `bio pad`, `test`, UF2/firmware, FIDO vendor, malformed chunk arguments, and arbitrary console input. 6. Parse exact, state-specific acknowledgements. The exact `[console] <command>` echo arms the response matcher; ignore blank lines, mismatched echoes, and acknowledgements that arrive before that echo. Retain unrelated Xous lines only as telemetry. `ERR` and `ERR ...` reject the pending command. 7. Preserve the timeout and retry matrix in `notes/protocol.md`. The short echo deadline ends when the exact shell echo arrives; response timing starts fresh from that echo. Retrying a non-final indexed chunk is safe because firmware overwrites duplicate indices. Do not blindly retry a final chunk or treat `OK` as proof of persistence. On a connected final timeout or final `OK`, replay chunks zero through final without clearing, accept `OK` or `SUCCESS`, and stop immediately on `SUCCESS`. Use commit-length echo/response deadlines and zero same-command retries for recovery frames. A remaining connected, non-aborted, non-deterministic failure may make one full clear-and-restart attempt; validation, allowlist, explicit firmware rejection, cancellation, and disconnect failures must not restart. 8. For images, keep the user preview logical and unmirrored. Test payload orientation and pinned CRC/Base64 vectors. Inputs are MIME-gated, capped at 30 MiB, rejected above 80 megapixels, and retained at a 4,096-pixel longest edge. The initial decode still happens before the dimension check; do not describe the compressed-file cap as a decoded-memory bound. 9. Clear before image transfer and send exactly 32 chunks. Require `OK` for chunks 0–30 and `SUCCESS` for chunk 31. 10. For BIO, disclose replacement, clear first, validate pins and clock locally, zero-pad to `0xF00` (3,840) bytes, send all 60 chunks, and reload. Firmware's `BIO_MEM_BYTES` and `NUM_CHUNKS` supersede the uploader's stale 4,096-byte/64-chunk prose. Never send `bio pad`. 11. Run `npm run check`. Record automated output, source-inspection anchors, browser results, and production-badge runs in `notes/acceptance.md`; leave claims unchecked when that evidence does not exist.
From pierce403/34b.ninja, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 8, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/pierce403/34b.ninja
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from pierce403
- 0.561score
browser-check
pierce403
Validate mgbrowser transport, document, paint and native interaction changes with local fixtures, then verify specifically requested live browsing journeys…
SkillAFreshness: AClaude Code +9 - 0.561score
publish-site
pierce403
Refresh the mgbrowser project page from feature status and daily logs, validate it, and verify authorized GitHub Pages publication at mgbrowser.org.
SkillAFreshness: AClaude Code +9 - 0.556score
curator
pierce403
Create, revise, consolidate and prune mgbrowser repository skills when repeated work reveals a reusable procedure or an existing workflow changes.
SkillAFreshness: AClaude Code +9 - 0.516score
curator
pierce403
Maintain this repository's compact skill library when work reveals a reusable procedure, changes an existing workflow, duplicates guidance, or makes project…
SkillBFreshness: BClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get maintain-badge-protocol running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
maintain-badge-protocol skill. Agent Mart. https://agentmart.dev/skills/pierce403-maintain-badge-protocol (last updated 2026-10-24)