harness-sync

harness-sync is a skill for Claude Code from shimo4228/claude-harness. It costs 49 tokens per session (7,939 once invoked), scanned A, original, MIT.

A one-way synchronisation process for exporting selected parts of a local AI harness to public Git repositories. It removes runtime files, checks metadata, scans for secrets, and copies approved components.

In plain words
What is it for?
Use it to preview and apply updates to the shared claude-harness repository or individual skill repositories.
Why use it?
It reduces the risk of publishing private runtime state or secrets while keeping public repositories updated from the local source.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions subagents.

Good fit Use it to preview and apply updates to the shared claude-harness repository or individual skill repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shimo4228/claude-harness/harness-sync
Install

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.

Any agent
npx skills add shimo4228/claude-harness --skill harness-sync
Clone the repo
git clone --depth 1 https://github.com/shimo4228/claude-harness

Made for: Claude Code.

Wrote 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.

agentmods badge for harness-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/shimo4228/claude-harness/harness-sync/github.svg)](https://agentmods.dev/skills/shimo4228/claude-harness/harness-sync)
Your own site
<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.

agentmods 80×15 button for harness-sync

Your own site · 80×15
<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>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 14d ago against content hash e9a83a0e8209, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/__init__.py, scripts/public_links.py, templates/skill-repo-sync-from-local.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/harness-sync/SKILL.md · 299 lines

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 の結果を確認してから次へ進む。

Read the full file on GitHub · 299 lines

Files

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.

Changes

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.

  1. 14d ago Changed e9a83a0e8209
  2. 16d ago Changed · +5 lines 0a8f9b1e099f
  3. 22d ago Changed e262ea2445e9
  4. 29d ago Changed · +21 lines dd4d14cfb13e
  5. 1mo ago Changed · +1 lines 48862e3ae62b
  6. 1mo ago Changed · +16 lines 13d522bca21e
  7. 1mo ago Changed · -102 tokens per session 31e8f3475027
  8. 1mo ago Changed · +8 lines b47f46c764b4
  9. 1mo ago Changed · +2 lines a394553f1f8d
  10. 2mo ago First seen · 246 lines · 151 tokens per session scan A 8625c1d188a1

Subscribe to this mod's changes

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.

Related

harness-sync compared with skills from other repositories

harness-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
harness-syncshimo4228/claude-harnessSkill47d agoMITA49Claude Code
git-commitadongwanai/learn-workbuddySkill5631mo agoMITA0Claude Code, Codex
pi-syncsky-valley/piSkill94yesterdayMITA66Claude Code
trailhead-chartToRvaLDz/trailheadSkill37yesterdayMITA138Claude Code
trailhead-manageToRvaLDz/trailheadSkill37yesterdayMITA148Claude Code
upstream-contributeRockielab/rockie-claudeSkill232mo agoApache-2.0A106Claude Code
cleanRockielab/rockie-claudeSkill232mo agoApache-2.0A114Claude Code