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 skills add shimo4228/claude-harness --skill harness-syncgit clone --depth 1 https://github.com/shimo4228/claude-harnessWrote 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/shimo4228/claude-harness/harness-sync)<a href="https://agentmods.dev/skills/shimo4228/claude-harness/harness-sync"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/harness-sync/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shimo4228/claude-harness/harness-sync"><img src="https://agentmods.dev/badge/skills/shimo4228/claude-harness/harness-sync.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00049 | $0.07939 |
| Opus 5.5 | $0.00020 | $0.03176 |
| Sonnet 5.5 | $0.00010 | $0.01588 |
| Haiku 4.5 | $0.00005 | $0.00794 |
Grade A, and why
harness-sync 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 14d 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 — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/harness-sync — 公開 repo への一方向エクスポート
ローカルの生きた harness (~/.claude) と公開 artifact repo は目的の違う別 repo として保ち、 remote 直結ではなく filter 付き一方向コピーで同期する。公開境界は script の origin filter 1 箇所で宣言的に管理される。
なぜ remote 直結にしないか
- ~/.claude は実行時状態 (settings, metrics, session 情報) を含む生きたディレクトリで、 gitignore の永久警戒を前提にした公開はミス耐性がゼロ
- origin filter は出自の記録であって再配布権の整理ではない (外部 origin はライセンス 整備が別途必要)
- 目的の違う repo 間は丸コピが調整コスト最小 (duplicate over coordination)
Workflow
1. Dry-run で差分を確認
集約 repo(claude-harness)は、先に同期 script 自身のテストを回す。script とテストは公開 repo にしか無く、
同期元の CI(~/.claude の verify.yml)の対象外なので、同期のときがテストの走る唯一の機会になる。
赤なら同期を止め、公開 repo 側で script を直してから進む。
bats <公開repo>/scripts/tests/
bash <公開repo>/scripts/sync-from-local.sh --dry-run
差分の要約 (新規 / 変更 / 削除されるコンポーネント) をユーザーに提示する。
2. 公開スコープ確認
task request / approved plan に列挙された repo と component は追加確認なしで進める。 列挙外の repo・新規公開 component が見つかった場合だけ scope change として停止する。
3. 適用
bash <公開repo>/scripts/sync-from-local.sh
script は staging 収集 → runtime artifact と保守用 file の除去 (results.json, pycache, MAINTENANCE.md 等) → frontmatter YAML 検証 (GitHub 等の厳密パーサ基準。invalid なら abort) → secret scan (検出時 abort) → skills/ agents/ rules/ docs/decision-history/ docs/plans/ rfcs/ hooks/ scripts/hooks/ tests/ subtree の置換、まで行う。origin filter が効くのは skills/ agents/ rules/ だけで、 残りは別の規則で決まる (いずれも集約 repo のみ):
docs/decision-history/— 判断の経緯はハーネス自身の記録で定義上すべて自作のため、origin filter を 掛けずディレクトリ丸ごとが対象。以後の記録は公開される前提で書く。rfcs/— 台帳エントリも自作の判断記録なので ADR と同じく丸ごと (ADR-0049)。起票は公開可能な書き方が既定 — 機微はリンク先へ (task-stocktake の公開規約)。docs/plans/— 承認して commit した plan。ADR / RFC から相対リンクされる原本 (ADR-0085)。集めるのは git が追跡している plan だけで、untracked・未 commit の変更があれば abort する。公開可能な書き方が既定で、$HOMEの実値を含む行があると script の home-directory path scan が abort する —~/に書き直す。hooks/scripts/hooks/tests/— script 内のHOOK_ALLOWLISTに列挙したファイルだけ。 公開は provenance でなく curation の判断 (ADR-0038)。公開対象の hook を追加・rename したら allowlist を更新する — source に無い entry があると sync は abort する。scripts/claims.py(台帳 CLI、rfcs/ の消費側) も allowlist 経由 — subtree 外に置かれるため削除は伝播しない (delist したら公開 repo 側で手動削除)。install 手順の正本は 公開 repo のdocs/hooks.mdで、これは subtree の外にある (中に置くと sync で消える)。 script は commit しない。LLM 側で diff と secret scan の結果を確認してから次へ進む。
What ships with it
7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 14d ago Changed e9a83a0e8209
- 16d ago Changed · +5 lines 0a8f9b1e099f
- 22d ago Changed e262ea2445e9
- 29d ago Changed · +21 lines dd4d14cfb13e
- 1mo ago Changed · +1 lines 48862e3ae62b
- 1mo ago Changed · +16 lines 13d522bca21e
- 1mo ago Changed · -102 tokens per session 31e8f3475027
- 1mo ago Changed · +8 lines b47f46c764b4
- 1mo ago Changed · +2 lines a394553f1f8d
- 2mo ago First seen · 246 lines · 151 tokens per session scan A 8625c1d188a1
harness-sync is a skill published in the GitHub repository shimo4228/claude-harness (4 stars, last pushed 7d ago), licensed MIT. It adds 49 tokens to every session and 7,939 once invoked, about $0.0002 per session on Opus 5.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-31.
harness-sync compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| harness-syncshimo4228/claude-harness | Skill | 4 | 7d ago | MIT | A | 49 | Claude Code |
| git-commitadongwanai/learn-workbuddy | Skill | 563 | 1mo ago | MIT | A | 0 | Claude Code, Codex |
| pi-syncsky-valley/pi | Skill | 94 | yesterday | MIT | A | 66 | Claude Code |
| trailhead-chartToRvaLDz/trailhead | Skill | 37 | yesterday | MIT | A | 138 | Claude Code |
| trailhead-manageToRvaLDz/trailhead | Skill | 37 | yesterday | MIT | A | 148 | Claude Code |
| upstream-contributeRockielab/rockie-claude | Skill | 23 | 2mo ago | Apache-2.0 | A | 106 | Claude Code |
| cleanRockielab/rockie-claude | Skill | 23 | 2mo ago | Apache-2.0 | A | 114 | Claude Code |