kenjaku: Skill for Claude Code

.claude/skills/sync/SKILL.md

sync is a skill for Claude Code from tpierrain/kenjaku. It costs 56 tokens per session (1,466 once invoked), scanned A, original, Apache-2.0.

A skill for synchronizing a Git repository between machines through a shared remote repository. It commits local changes, downloads changes from the other machine, rebases them, and pushes the result.

In plain words
What is it for?
Use it when moving work between a personal and work computer, including handling conflicts and reporting context changes that arrived with the pull.
Why use it?
It avoids leaving the coding session when you need changes made on another computer, while preserving local work before synchronization.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions Claude Code.

This is tpierrain/kenjaku's own configuration. It tells Claude Code how to work on kenjaku itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kenjaku configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/set-active-universe.mjs current # remember it: step 5 compares.

Reuse

Borrowing it

Nothing to install: this file belongs to tpierrain/kenjaku. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tpierrain/kenjaku/main/.claude/skills/sync/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tpierrain/kenjaku

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 sync

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tpierrain/kenjaku/sync"><img src="https://agentmods.dev/badge/skills/tpierrain/kenjaku/sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,466 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00056 $0.01466
Opus 5.5 $0.00022 $0.00586
Sonnet 5.5 $0.00011 $0.00293
Haiku 4.5 $0.00006 $0.00147

Measured 1mo ago against content hash 92bf61150ed5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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.

.claude/skills/sync/SKILL.md · 118 lines

How it starts

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

/sync — Cross-machine repo synchronization

User command. Useful when working on several machines (personal / work laptop) and you want to pull in changes pushed from the other without leaving the session.

When to use it

  • When you've worked on another machine and want to pull the changes in here.
  • Mid-session, without having to quit and relaunch Claude Code.
  • Complements the SessionStart hook (which pulls at startup) for mid-session cases.

ℹ️ Requires a configured git remote (origin). For purely local use, this skill is useless.

Procedure

Step 1 — Local state

git status --porcelain

Clean → go to step 3. Dirty → step 2.

Step 2 — Commit local changes

git add .
git commit -m "auto: vault/claude sync"

Creates a safe restore point before the rebase.

Step 3 — Fetch and rebase

node scripts/set-active-universe.mjs current   # remember it: step 5 compares
git rev-parse HEAD                             # remember this sha: step 5 passes it as --before
git fetch origin
git rebase origin/$(git branch --show-current)

Success → summary + step 5. Conflict → step 4.

Read the active universe before rebasing. The pull can carry a context switch made on the owner's other machine (it is committed state — ADR 0034), and step 5 can only say so by comparing. At session start the same thing is handled deterministically by a hook; mid-session, this skill is the only channel.

Step 4 — Conflict handling

  1. List the conflicting files: git diff --name-only --diff-filter=U
  2. Show the diff of each with context.
  3. Ask the user:

    Conflict on N file(s). Options:

    • merge: I resolve and we continue the rebase
    • abort: git rebase --abort — back to the previous state (the local commit is safe)
  4. If merge: resolve intelligently (vault content = often append-only → keep both versions), git add the resolved files, git rebase --continue.
  5. If abort: git rebase --abort, report that the local commit is intact, stop.

Read the full file on GitHub · 118 lines

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. 1mo ago Changed · +11 lines 92bf61150ed5
  2. 1mo ago Changed · +10 lines 4901b0a2e6ec
  3. 2mo ago First seen · 97 lines · 56 tokens per session scan A acd33ffaaecc

Subscribe to this mod's changes

sync is a skill published in the GitHub repository tpierrain/kenjaku (96 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,466 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-30.

Related

sync compared with skills from other repositories

sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
synctpierrain/kenjakuSkill961mo agoApache-2.0A56Claude Code
update-recoverysmixs/iva-agentSkill2873d agoMITA20Claude Code, Codex
lobu-operatorlobu-ai/lobuSkill233yesterdayApache-2.0A0Claude Code, Codex
meeting-todosmycelium-hq/ai-brain-starterSkill50yesterdayMITA95Claude Code
instinct-importmycelium-hq/ai-brain-starterSkill50yesterdayMITA94Claude Code
pr-replytonydzi/second-brain-starter-kitSkill142d agoMITA79Claude Code
contrib-watchtonydzi/second-brain-starter-kitSkill142d agoMITA54Claude Code