fork-binary-testing SKILL.md skillB

fork-binary-testing from esonhugh/claude-code is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add esonhugh/claude-code/fork-binary-testing@v0.1.0

Pins v0.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
esonhugh/claude-code
Path
.claude/skills/fork-binary-testing/SKILL.md
Versions recorded
2
Latest version
v0.1.0, committed Oct 30, 2026
First version recorded
Oct 25, 2026
Size
6,487 bytes
Repository stars
61
License
none declared

在 Esonhugh/claude-code fork 上用重建的 binary 做隔離實測、每週回歸、fake API 腳本化、官方 2.1.303 對照、Agent SDK 相容與 tmux 截圖時使用。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Fork binary 實測(隔離環境 + fake API + 官方對照)

所有修復都要用**本輪重建的 binary** 實測,報告寫明修復前/後行為。單元測試不能代替 binary 實測(帶 builtin Mods 的 binary 會把 settings hooks 走 Mods classic 路徑,單測可能漏掉)。

repo 內已有更嚴格的驗收 skill(`claude-code-feature-validation`、`claude-agent-workflow-validation`、`release-validation`):做正式發布門禁或 Agent/Workflow 生命週期驗收時改用它們,本 skill 是日常實測的速查。

多輪對話 / 長對話 / 權限切換 / Mods / slash / resume-cache / 真模型 token 的整輪 dev vs 官方掃描,改用 `multiturn-parity-sweep`(附 tmux 驅動腳本和 fake API)。

下文 `/mnt/project-files/` 是 Claude 專案的共享資料夾;不在該環境時,對應腳本需自行準備。

## 1. 建置

```bash
git worktree add --detach ../wt origin/dev   # 或在 agent worktree 內
cd ../wt && bun install --frozen-lockfile    # 必做:node_modules 可能落後 lockfile(sandbox-runtime 曾 0.0.44 vs 0.0.80)
env -u CLAUDE_CODE_VERSION make build        # 產出 ./built-claude(bytecode 編譯)
```

- 官方對照 binary:`make download-claude CLAUDE_VERSION=2.1.303` → `./official-claude`(gitignored)。
- `tsc --noEmit` 需 `NODE_OPTIONS=--max-old-space-size=12000`,否則靜默 OOM;不要和 `make build` 同時跑。
- 只用 `bun`,不用 `npm`。

## 2. 隔離環境(每次都要)

容器會經 `/home/claude/.claude/remote/.oauth_token` 和大量 `CLAUDE_CODE_*` 環境變數洩漏憑證,必須同時:

```bash
unshare -m bash -c 'mount -t tmpfs none /home/claude/.claude/remote && \
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add esonhugh/claude-code/fork-binary-testing@sha256:3b5a3339a00c2293

The line at the top of this page pins the label v0.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_6epp3hymxk22ujns.svg)](https://markdownregistry.com/a/art_6epp3hymxk22ujns)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Oct 25, 2026 and Oct 30, 2026, about one every 5 days.

versioncommittedcommitsizeaudit
v0.1.0 latest2026-10-30 c4b7d31 6,487 BB view · diff
v0.1.02026-10-25 a358a2b 6,292 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No link to a raw IP address (matched: http://127.0.0.1)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6487 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

esonhugh/claude-code · 61 stars · license none declared · pushed 2026-11-04 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_6epp3hymxk22ujns
GET https://markdownregistry.com/api/v1/resolve?ref=esonhugh/claude-code/fork-binary-testing
GET https://markdownregistry.com/api/v1/blob/3b5a3339a00c22931585d1b4a4a8c9f72b2008bfee286f48ecb657114ae334b4

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from esonhugh/claude-code

claude-agent-workflow-validation SKILL.md skill
esonhugh/claude-code · .claude/skills/claude-agent-workflow-validation/SKILL.md · This skill should be used automatically when the user asks for strict binary-side validation of Agent, Workflow…
v0.3.0 · audit A · 61 stars
claude-code-feature-validation SKILL.md skill
esonhugh/claude-code · .claude/skills/claude-code-feature-validation/SKILL.md · Use this skill automatically whenever validating a Claude Code repository change: a new feature, modified feature, bug…
v0.1.0 · audit A · 61 stars
claude-network-debug SKILL.md skill
esonhugh/claude-code · .claude/skills/claude-network-debug/SKILL.md · This skill should be used when the user asks about Claude Code “代理不生效”, “OAuth 网络失败”, “抓流”, “CONNECT”, “SSE/WebSocket”…
v0.1.0 · audit A · 61 stars
claude-runtime-debug SKILL.md skill
esonhugh/claude-code · .claude/skills/claude-runtime-debug/SKILL.md · This skill should be used when the user asks to diagnose Claude Code CLI/runtime behavior, including “运行时调试”…
v0.2.0 · audit A · 61 stars
claude-source-binary-analysis SKILL.md skill
esonhugh/claude-code · .claude/skills/claude-source-binary-analysis/SKILL.md · This skill should be used when the user asks to statically analyze authorized Claude Code source or…
v0.2.0 · audit A · 61 stars
fork-pr-flow SKILL.md skill
esonhugh/claude-code · .claude/skills/fork-pr-flow/SKILL.md · 在 Esonhugh/claude-code fork 發現問題、提交修復、開 PR 與合併時使用:先開 issue、依領域拆 commit、PR 開到 dev 並自行驗證後合併。
v0.1.0 · audit A · 61 stars
fork-release-wiki SKILL.md skill
esonhugh/claude-code · .claude/skills/fork-release-wiki/SKILL.md · 在 Esonhugh/claude-code fork 做發布前檢查(release-check、bytecode build、lint)或新增/更新 docs/features 功能文件並同步 GitHub Wiki 時使用。
v0.1.0 · audit A · 61 stars
multiturn-parity-sweep SKILL.md skill
esonhugh/claude-code · .claude/skills/multiturn-parity-sweep/SKILL.md · 在 fork 上做一輪多輪對話 / 長對話 / 權限切換 / Mods / slash / resume-cache / 真模型 token 的 dev vs 官方對照掃描時使用:一輪找出盡可能多的 bug,再統一修復、統一驗證。含…
v0.1.0 · audit A · 61 stars
release-validation SKILL.md skill
esonhugh/claude-code · .claude/skills/release-validation/SKILL.md · Validates release readiness with related bun tests, make release-check, current-binary scripted tmux interactions, and…
v0.1.0 · audit A · 61 stars
CLAUDE.md CLAUDE.md file
esonhugh/claude-code · CLAUDE.md
git:20260723.44dceca · audit A · 61 stars
claude-api SKILL.md skill
esonhugh/claude-code · src/skills/bundled/claude-api/SKILL.md
git:20261030.10933f2 · audit C · 61 stars
dataviz SKILL.md skill
esonhugh/claude-code · src/skills/bundled/dataviz/SKILL.md
git:20261026.1d6edd0 · audit C · 61 stars

Every file in esonhugh/claude-code

Browse by kind, by grade B, or by owner.