yd-git-sync

yd-git-sync is a skill for Claude Code, Codex from LeeYudok/doksam-skills. It costs 151 tokens per session (1,455 once invoked), scanned A, a copy of yd-git-sync, MIT.

A workflow for synchronising the same Git repository across several host computers. It updates clean clones from the remote repository, compares their tracked files, and fills missing untracked files without deleting them.

In plain words
What is it for?
Use it to pull clean hosts, compare commit and tracked-file state, and union-sync folders such as documentation across machines. It does not commit, push, or create merge requests.
Why use it?
It detects differences between clones without discarding local changes or ignored source-material folders. Conflicts are reported instead of silently overwritten.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to pull clean hosts, compare commit and tracked-file state, and union-sync folders such as documentation across machines. It does not commit, push, or create merge requests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leeyudok/doksam-skills/yd-git-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 LeeYudok/doksam-skills --skill yd-git-sync
Clone the repo
git clone --depth 1 https://github.com/LeeYudok/doksam-skills

Made for: Claude Code, Codex.

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 yd-git-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/leeyudok/doksam-skills/yd-git-sync/github.svg)](https://agentmods.dev/skills/leeyudok/doksam-skills/yd-git-sync)
Your own site
<a href="https://agentmods.dev/skills/leeyudok/doksam-skills/yd-git-sync"><img src="https://agentmods.dev/badge/skills/leeyudok/doksam-skills/yd-git-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 yd-git-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/leeyudok/doksam-skills/yd-git-sync"><img src="https://agentmods.dev/badge/skills/leeyudok/doksam-skills/yd-git-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 151 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 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 100% copy Near-identical to another mod 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.00151 $0.01455
Opus 5.5 $0.00060 $0.00582
Sonnet 5.5 $0.00030 $0.00291
Haiku 4.5 $0.00015 $0.00145

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

Security

Grade A, and why

yd-git-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 9d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/hosts.py, scripts/repo_state.py, scripts/union_sync.py, …), 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.

Origin

This is a copy

100% identical to yd-git-sync — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/yd-git-sync/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

yd-git-sync

역할

같은 저장소가 여러 호스트에 클론되어 있을 때 둘을 맞춘다.

  1. git 이 추적하는 것: origin 기준으로 맞추고 같은지 증명한다.
  2. git 이 추적하지 않는 것: 원본 자료처럼 .gitignore 에 있는 폴더다. 호스트 사이에서 합집합으로 채운다.

커밋·푸시·MR 은 하지 않는다. 그것은 yd-git-ship 이 맡는다.

워크플로

호스트 이름 local 은 지금 셸이고, 나머지는 ssh 별칭이다. 저장소 경로는 호스트마다 $HOME 기준으로 같다고 본다. 기본값은 지금 저장소의 경로이고, 다르면 --repo-path 로 준다. 명령은 대상 저장소 안에서 돌린다.

1. git 상태 맞추기

python3 <skill>/scripts/repo_state.py local pig doksam --pull
  • 고친 파일이 없는 클론만 git pull --ff-only 로 당긴다. 고친 파일이 있는 클론은 건너뛰고 표에 skip-dirty 로 남긴다. 그 클론의 변경을 버리거나 stash 하지 않는다. 사용자에게 보고한다.
  • 판정은 셋이 같아야 "같음"이다. HEAD, 추적 파일 수, 목록 해시(git ls-files -s | git hash-object --stdin)다. 목록 해시는 경로·모드·blob 해시를 다 담으므로 이름과 내용이 같다는 뜻이다.
  • 디스크 파일 수(find -type f)로 비교하지 않는다. 추적 심링크는 빠지고, ignore 된 node_modules·.venv 는 들어가서 호스트마다 다르게 나온다. 표의 links 열이 추적 심링크 수다.

2. 미추적 폴더 합집합

python3 <skill>/scripts/union_sync.py local pig doksam --dir docs            # 계획
python3 <skill>/scripts/union_sync.py local pig doksam --dir docs --apply    # 복사 + 재검증

먼저 계획을 보여 주고, 사용자가 범위를 정했으면 --apply 한다. 규칙은 이렇다.

  • 지우지 않고 덮어쓰지 않는다. 없는 파일만 채운다.
  • 같은 경로·다른 내용은 충돌이다. 어느 쪽에도 복사하지 않고 해시와 함께 보고한다. 어느 판본을 남길지는 사용자가 정한다.
  • 한글 파일명은 NFC 로 비교한다. 맥에서 만든 이름은 NFD 라, 리눅스에서는 같은 이름도 다른 파일이 된다. 원격에는 NFC 이름으로 쓴다. rsync 로 그냥 밀면 NFC·NFD 중복이 생긴다. 맥 기본 rsync 는 openrsync 라 --iconv 도 없다.
  • 한 호스트에 NFC·NFD 이름이 둘 다 있으면 NFC/NFD 중복으로 보고만 한다. 지우는 것은 사용자 확인 뒤다.
  • .DS_Store·__pycache__·*.pyc·.git 은 기본으로 뺀다. 머신마다 내용이 달라 충돌로만 잡힌다. 더 뺄 것은 --exclude <패턴> 이다.
  • 복사는 local 을 허브로 한다. 원격에만 있는 파일을 로컬로 받은 뒤 다른 원격으로 보낸다. 서버끼리 직접 ssh 가 안 되어도 동작한다.

3. 지우기 요청

"DRM 걸린 파일 지워" 같은 삭제는 이 스크립트가 하지 않는다. 대상을 헤더·이름으로 식별해 목록을 먼저 보여 주고, 사용자 지시 범위만 호스트마다 지운다. 식별할 때 내용을 열거나 복호화하지 않는다. 예를 들어 Fasoo DRM 은 파일 앞 8바이트가 \x9b DRMONE 이다. Office 비밀번호 암호화(EncryptionInfo·StrongEncryptionDataSpace 스트림)는 DRM 이 아니므로 따로 보고한다.

함정

  • union_sync.py 원격 쪽은 python3 과 GNU tar(--skip-old-files)가 필요하다. 원격이 맥이면 tar 가 bsdtar 라 실패한다.
  • ssh ControlPersist 소켓이 살아 있으면 끊긴 별칭도 되는 것처럼 보인다. 실패하면 별칭부터 의심한다.
  • 맥에서 받은 파일은 맥 umask 를 따른다. 다른 계정이 읽어야 하면 그 자리에서 권한을 맞춘다.

Read the full file on GitHub · 67 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. 9d ago First seen · 67 lines · 151 tokens per session scan A 55fc3a9c9bca

Subscribe to this mod's changes

yd-git-sync is a skill published in the GitHub repository LeeYudok/doksam-skills (14 stars, last pushed 7d ago), licensed MIT. It adds 151 tokens to every session and 1,455 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to yd-git-sync, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

git-workflow-and-versioning

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple…

addyosmani/agent-skills · 89 tokens

antigravity-maintainer-batch-release

Run protected AAS maintainer sweeps, PR merge batches, resumable review, immutable distribution, Core checks, and scripted releases. Use for repository maintenance, main alignment, CLI/MCP/Workbench changes, or release work; not ordinary contribution tasks.

sickn33/agentic-awesome-skills · 60 tokens

ax-extract-workflow

Reconstruct workflow behind a past coding-agent artifact using local ax sessions/commits/skills/tool traces. Use when asked how X was built.

sickn33/agentic-awesome-skills · 35 tokens

address-github-comments

Use when you need to address review or issue comments on an open GitHub Pull Request using the gh CLI.

sickn33/agentic-awesome-skills · 27 tokens

mantis-critic

Assesses the production viability of findings, filtering out debug-only features and assertion traps. Use when findings have been validated and you need to confirm they are triggerable in production release builds (with assertions disabled). Don't use for writing reproduction scripts or patches.

google/mantis · 55 tokens

mantis-history

Analyzes the repository's version control system (VCS) history to extract past vulnerabilities, security fixes, and vulnerability patterns. Use as an initial pre-processing step to build a historical vulnerabilities database (workspace/historicallearnings.jsonl) that informs subsequent stages about past issues and…

google/mantis · 76 tokens