hyderhusainarastu/hardware-mod-toolkit/publish-hygiene

Claude Code and agent skill by hyderhusainarastu/hardware-mod-toolkit

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Audit a private project before publishing and build a curated public export: scan for secrets, personal data, vendor IP, EXIF media and process narrative, redact, export with fresh history, verify independently. Use before open-sourcing a repo that touched real hardware or vendor firmware.

Install

npx vskill@latest install hyderhusainarastu/hardware-mod-toolkit/publish-hygiene

SKILL.md

The same SKILL.md was published earlier as hyderhusainarastu/hardware-mod-toolkit/publish-hygiene.

Publish hygiene

A private hardware project accumulates exactly the material that must never leave it: the owner's Wi-Fi credentials in a boot log, a device's own serial number, absolute paths under /Users/<name>/, a vendor's firmware dumped byte-for-byte, a narrative full of internal process detail nobody outside the project needs. None of that is a reason not to publish -- it's a reason to publish a curated export, not the repo itself.

The one fact this whole skill is built around: redacting a secret in the working tree does not remove it from history. A real project's final publication audit found a Wi-Fi SSID string that had been committed early on, then redacted in a later commit -- the working-tree file was clean, but git log -p on the earlier commit still showed the SSID in plain text, and would keep showing it in every future clone forever. Fixing that after the fact means a history rewrite, which is disruptive to anyone who already has a clone. The fix that avoids the problem entirely is to never publish the private repo's history at all: build a fresh export from a single point-in-time snapshot, with one clean commit, and let the private repo (and its imperfect history) stay private. That decision is the spine of section 3 below.

Do the audit (section 1) before you build anything. Do the export (sections 3-5) only from the audit's output. Do the independent verification (section 7) after the export is built, by an agent -- or a person -- who did not build it.

1. The six audit categories

Run each of these as an independent scan over all tracked files and the full history (git log -p, git log --all, not just git grep on the working tree -- a secret can be absent from HEAD and still sit in an earlier commit). Each category produces a list of findings, not a pass/fail: file, kind, detail, recommended action, severity (section 2).

Full grep recipes for every category are in references/audit-categories.md. Summary:

a. Secrets and PII. Wi-Fi SSIDs and passwords, MAC addresses in both notations (xx:xx:xx:xx:xx:xx and bare 12-hex), device and host serial numbers, USB serial strings, a person's name/username/email, absolute paths under /Users/ or /home/, machine names, IP addresses, API tokens/keys, and any session/run URL a tool may have embedded in a commit message or file. Watch for the trap in the other direction too: a document that describes a past leak ("commit abc123 briefly contained the office SSID before it was redacted") is not itself a leak -- don't flag or scrub the description, flag the actual value if it's still reachable in history.

b. Tooling and process mentions. If the public repo should read as engineering work rather than a transcript of how it was produced, grep case-insensitively for the tool names, role words, and process vocabulary specific to however the private project was actually run (assistant names, agent/subagent/orchestration terms, internal workflow or session identifiers, hook script paths, .claude-style config directories, and narrative phrases like "delegated to," "dispatched," or "owner-approved, assistant-performed"). Classify every hit's file as:

  • DROP -- the file exists only because of the process (a session-state note, an internal

operating-rules file for the tool that ran the project);

  • REWRITE -- real technical content wrapped in process language, strip the language and keep

the content;

  • CLEAN -- no action.

If the private tooling shipped an integration feature that is itself process-specific (a dashboard widget that only makes sense with the private assistant setup, a build flag gated on an internal tool's presence), decide up front whether to drop it or generalize it, and if dropping it, walk every file that references it -- code, tests, docs, manifests, CLI help text -- so the export doesn't ship a dangling import or a test asserting a feature that no longer exists.

c. Vendor intellectual property and legal exposure. Vendor firmware binaries, raw dumps, partition images, disassembly listings, decompiled code, verbatim vendor source or documentation text beyond short attributed quotation, copied assets (fonts, bitmaps, icons pulled from the vendor's own firmware), and long quoted vendor log strings. The recurring judgment call: a table of register values or an init sequence read from vendor firmware is a fact about how the hardware works, and facts and interfaces are not copyrightable -- but the same table presented as "here is the vendor's byte blob, copied" invites exactly the objection that presenting it as "here is the interoperability specification we determined, with each value's decoded meaning (or UNKNOWN where undetermined)" avoids. Same content, different framing, very different legal posture. Also check: does any packaging or build script embed a vendor archive directly, when it could instead require the user to supply their own copy of the vendor firmware they already own (a --stock-from <path> flag, erroring cleanly with instructions if it's missing, rather than finding a vendor .tar sitting in the repo)? And separately: third-party code license compatibility (anything GPL, Apache-2.0, MIT that's vendored in), and trademark handling -- naming the device or vendor by name is normally fine as nominative use ("interoperates with the <DEVICE> sold by <VENDOR>") with a disclaimer that the project is unaffiliated; treat vendor company statements and marketing claims as off-limits to reproduce.

d. Media size and metadata. Per-directory and per-file size, total repo size, and file count (a git host will hard-reject files over its per-file limit and will make every future clone slow past a certain total size). For every photo: EXIF metadata (exiftool, or python3 with Pillow, or macOS sips/mdls) for GPS coordinates, the capturing device's serial number, and the owner's name if the camera/software wrote one in. Three real options, in order of how much the public repo commits to carrying media at all: (1) drop photos entirely and replace them with diagrams generated from the photos' findings (a block diagram, a pinout diagram, a protocol frame diagram) -- diagrams carry no EXIF and no size problem and are often clearer to a reader than a phone photo of a PCB; (2) keep a curated, EXIF-stripped, resized subset with a documented target (dimensions, quality, byte budget) and keep the sha256 manifest of the originals as provenance without publishing the originals themselves; (3) publish the full original set as a release asset (not tracked in git) if the originals genuinely matter to a reader. Never publish an EXIF-bearing original as a repository asset by accident -- strip metadata as a build step, not as a one-time manual pass someone might forget to repeat.

e. Document triage: KEEP / REWRITE / DROP. Read every document a public reader who wants to replicate and modify the project would encounter, and sort it:

  • KEEP AS IS -- already a clean technical reference (a protocol spec, a pinout table).
  • REWRITE -- technical content wrapped in project-management or session narrative (a

phase-by-phase roadmap, a decision log with internal timestamps, an incident log written as "session notes"). Rewrite it into a technical document with the narrative stripped, and -- this is the hard rule, not optional -- migrate every fact graded `CONFIRMED` in the dropped or rewritten document into a document that survives, before deleting the source. A project management roadmap ("Phase 5: display identification -- DONE") that gets deleted wholesale without first pulling its one CONFIRMED technical claim (the panel's controller family, say) into docs/hardware.md is how real findings quietly disappear at publish time.

  • DROP -- pure session state, internal tool operating rules, scratch notes with nothing a

reader needs. Only after its facts have been migrated per the rule above.

Also check whether the top-level structure itself reads as a project-management artifact (a numbered phase roadmap as the README's spine) rather than an architecture-first structure a newcomer can navigate (hardware architecture -> buses/protocol -> firmware -> host tools -> sample projects). If so, that's a REWRITE finding on the README too, and its replacement table of contents is worth writing out explicitly as part of this audit's output so the later doc-rewrite work has a target to write to.

f. Fresh-clone portability. Everything that would stop a stranger, on a machine that has never seen this project, from building and using it: absolute paths anywhere in scripts, docs, or config (grep -rn '/Users/\|/home/'); machine-specific environment assumptions (a toolchain path hardcoded instead of using an environment variable with a sane default); files the build depends on that are gitignored and never shipped (a vendor archive a packaging script expects to find, a large binary asset, a locally-built helper); a missing LICENSE; tests that read the actual developer's home directory or a personal cache path instead of a fixture; and undocumented toolchain version pins (say the exact SDK/compiler version that was actually used to build, not just "recent"). The bar is: git clone, follow the README with no other context, and reach a working build.

2. Severity levels

Tag every finding with one of four severities so the moderator can triage without re-reading the raw scan output:

  • BLOCKER -- illegal or flatly forbidden to publish (a vendor binary, a live credential, a

literal secret still reachable in history). Publication does not happen until every BLOCKER is resolved.

  • HIGH -- violates an explicit owner requirement (no mention of the tool that built this, no

personal data of any kind, no vendor text). Also gates publication.

  • MEDIUM -- should be fixed for quality/credibility but isn't a hard blocker (an

under-explained architecture doc, an inconsistent naming convention).

  • LOW -- nice to have (a diagram that would help but isn't essential, a typo).

3. Build the export with fresh history -- never edit or copy the private repo

Do not cp -r or rsync the private project directory into the export location. That drags in .git (the entire history you're trying to leave behind), gitignored backup directories, build output, and anything else sitting in the working tree that was never meant to be tracked at all. Instead, snapshot exactly what git tracks, at exactly one point in time, with no history:

bash
mkdir -p <EXPORT_DIR>
cd <PRIVATE_REPO> && git archive HEAD | tar -x -C <EXPORT_DIR>

This gives you the tracked-file tree with zero git history, zero gitignored files, and zero build artifacts -- a clean base to edit. From here, in order:

  1. Apply the DROP list from the audit's document-triage and tooling-mentions findings: delete

files that exist only for private-tooling or process reasons, any internal operating-rules file (rename its human-relevant safety content into a public SAFETY.md first if any of it is worth keeping -- see the templates directory), scratch notes, and anything the media audit said not to ship.

  1. Apply mechanical redactions (section 4) across whatever remains -- usernames, home paths,

serials, MACs, tool/process vocabulary -- with sed/python3, not by hand file-by-file.

  1. Rewrite documents per the triage's REWRITE list, migrating every surviving CONFIRMED fact

before you delete its source document.

  1. Re-run the entire audit checklist from section 1 over the export, not the private repo.

Code and script hits should be zero; doc-prose hits are expected mid-process but must also reach zero before the export is done.

Only after all four steps pass does the export get a single commit and, eventually, a remote -- see section 5.

4. Redaction rules -- a numbered, re-greppable list

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hyderhusainarastu/hardware-mod-toolkit/publish-hygiene/badge)](https://verified-skill.com/skills/hyderhusainarastu/hardware-mod-toolkit/publish-hygiene)

Something wrong with this skill or its page? Tell us.