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 SpaceZephyr/build-your-harness --skill sync-your-harnessgit clone --depth 1 https://github.com/SpaceZephyr/build-your-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/spacezephyr/build-your-harness/sync-your-harness)<a href="https://agentmods.dev/skills/spacezephyr/build-your-harness/sync-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/sync-your-harness/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/spacezephyr/build-your-harness/sync-your-harness"><img src="https://agentmods.dev/badge/skills/spacezephyr/build-your-harness/sync-your-harness.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.00178 | $0.01690 |
| Opus 5.5 | $0.00071 | $0.00676 |
| Sonnet 5.5 | $0.00036 | $0.00338 |
| Haiku 4.5 | $0.00018 | $0.00169 |
Grade A, and why
sync-your-harness 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 23d 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
sync-your-harness
harness 搭好之后的下一个问题:怎么让它活在不止一台电脑、不止一个 Agent 上,又不把不该出去的东西带出去。
先讲清楚一个原则
本地保存全部,远端只同步文字。 harness 推到远端的目的只有一个:让任何 Agent、任何设备拿到这个仓库就能了解你。图片、视频、代码项目、原始数据、私密计划都留在本地。
所以 .gitignore 用的是白名单写法:默认忽略全部,只放行 .md、.jsonl、.txt 这几种文本。这比黑名单安全,因为以后新增任何奇怪的文件,默认都是不推。
铁律
1. 不 commit,不 push,不碰远端。 这个 Skill 只准备规则和预演结果。提交和推送永远由用户自己说了才做。
2. 已有的 .gitignore 和 hook 不覆盖。
新规则写成 .gitignore.proposed 和 pre-commit.proposed,让用户对比之后自己替换。他明确说「直接替换」时才加 --replace-gitignore,脚本会先备份旧的。
3. 密钥只报位置和模式名,不显示内容。 不要为了「帮用户确认」去打开那个文件念出来。告诉他哪个文件、哪种模式、几处,让他自己看。
4. 复制记忆之前让用户过目。 私有记忆里可能有他只想留给自己的东西。进了 harness 就可能被同步出去。
流程
第一步:问两个问题
- 「有没有哪些内容只想留在本地?」 每个人不一样,常见的有财务、个人计划、雇主的资料、客户信息。把答案变成文件名通配或目录名。
- 「除了文本,有没有别的格式必须同步?」 多数人没有。有的话用
--allow-ext加。
第二步:预演
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py preview <harness> \
--private "<通配1>,<通配2>" --exclude-dir "<目录1>,<目录2>"
把这几个数字原样讲给用户:
- 会推送多少个文件、多大
- 挡住了多少、分别因为什么
- 有几个自带 git 仓库的子目录(它们不会进这个仓库)
- 有没有疑似密钥落在会推送的文件里。有的话这是第一优先级,先处理再谈别的
第三步:写入规则
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py apply <harness> [同上参数] # 预演
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py apply <harness> [同上参数] --apply # 写入
写三样东西:
| 文件 | 作用 |
|---|---|
.gitignore 或 .gitignore.proposed |
白名单规则 |
.git/hooks/pre-commit |
拦截超过 1MB 的文件和凭证文件 |
<协议目录>/push-rules.md |
给人和 Agent 看的规则说明 |
写完之后在入口文件(AGENTS.md)的任务路由里加一行:「提交或推送之前先读 push-rules.md」。
注意 hook 不随仓库同步。 .git/hooks/ 不会被推送,换一台电脑要重跑一次 apply。告诉用户这一点。
注意历史。 如果以前已经提交过大文件,.gitignore 管不了历史。脚本不处理这个,如实告诉用户,由他决定要不要清理历史。
第四步:共享记忆
每个 Agent 都有自己的私有记忆位置,别的 Agent 读不到。比如 Claude Code 的在 ~/.claude/projects/<项目>/memory/。
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py memory <harness> # 预演,列出会复制哪些
python3 ~/.claude/skills/sync-your-harness/scripts/sync.py memory <harness> --apply
自动找不到来源时用 --from <目录> 指定。脚本把记忆复制到 <记忆目录>/shared/,并在 MEMORY.md 补索引。来源不动,已存在的不覆盖。
What ships with it
1 file 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.
- 23d ago First seen · 119 lines · 178 tokens per session scan A d4e973b8345e
sync-your-harness is a skill published in the GitHub repository SpaceZephyr/build-your-harness (80 stars, last pushed 5d ago), licensed MIT. It adds 178 tokens to every session and 1,690 once invoked, about $0.0007 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-11-12.
sync-your-harness compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| sync-your-harnessSpaceZephyr/build-your-harness | Skill | 80 | 5d ago | MIT | A | 178 | Claude Code, Codex |
| merge-batchdiegosouzapw/OmniRoute | Skill | 91k | 5d ago | MIT | A | 46 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.8k | today | MIT | A | 20 | Claude Code, Codex |
| comet-githubrpamis/comet | Skill | 3.3k | today | MIT | A | 72 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | 3d ago | MIT | A | 51 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |