sync-template

sync-template is a skill for Claude Code from luiseiman/dotforge. It costs 23 tokens per session (1,793 once invoked), scanned B, original, MIT.

A configuration-sync tool that compares a project's Claude Code setup with the current dotforge template and proposes merged updates. It preserves local customizations instead of replacing them.

In plain words
What is it for?
Use it to update Claude Code configuration, compare rules and hooks, merge permissions, and detect the project's technology stack.
Why use it?
It reduces the manual work of keeping project rules, settings, hooks, and stack-specific configuration up to date without losing personal changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Part of the dotforge plugin — 25 skills, 25 commands, 7 agents, 8 hooks shipped together

Good fit Use it to update Claude Code configuration, compare rules and hooks, merge permissions, and detect the project's technology stack.

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

Made for: Claude Code.

Or install dotforge, the plugin that ships this one along with the rest of its 25 skills, 25 commands, 7 agents, 8 hooks.

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-template

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luiseiman/dotforge/sync-template"><img src="https://agentmods.dev/badge/skills/luiseiman/dotforge/sync-template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,793 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00023 $0.01793
Opus 5.5 $0.00009 $0.00717
Sonnet 5.5 $0.00005 $0.00359
Haiku 4.5 $0.00002 $0.00179

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

Security

Grade B, and why

sync-template scanned grade B with 1 finding 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 25d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- **Never write project-scope-inert keys**: `permissions.defaultMode: auto|bypassPermissions`, `sandbox.credentials`, `sandbox.ripgrep`, `sandbox.excludedCommands` under a managed sandbox, telemetry/OTEL `env`, `CLAUDE_C
skills/sync-template/SKILL.md · 158 lines

How it starts

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

Sync Template

Update the current project's Claude Code configuration against the latest version of dotforge.

Principle: merge, not overwrite

NEVER overwrite existing files without confirmation. Compare and propose changes. NEVER touch settings.local.json — it is the user's personal configuration. NEVER modify sections marked with <!-- forge:custom --> in CLAUDE.md.

Step 0: Verify global

Before syncing the project, verify that ~/.claude/CLAUDE.md exists and contains behavior rules (communication, planning, autonomy). If global rules are active, the project's _common.md only needs technical rules (git, naming, testing, security). Do not duplicate what is already in global.

Step 1: Detect current state

  1. Read the current .claude/settings.json
  2. Read the current CLAUDE.md. If it is a symlink (e.g. to AGENTS.md), resolve it with realpath and apply every CLAUDE.md change to the target file — never replace the link with a regular file. If AGENTS.md exists next to a CLAUDE.md that has no @AGENTS.md line, report it in the sync summary (AGENTS.md ignored by Claude Code — add "@AGENTS.md" to CLAUDE.md or run /import) but do not change either file without confirmation
  3. Read existing .claude/rules/
  4. Read existing .claude/hooks/
  5. Detect stacks using $DOTFORGE_DIR/stacks/detect.md
  6. Read ~/.claude/CLAUDE.md to know which rules are already covered globally

Step 1b: Classify managed files (forge-doctor)

Run bash "$DOTFORGE_DIR/scripts/forge-doctor.sh" . --json and apply this policy per file for the rest of the sync:

Class Meaning Sync action
intact hash equals the manifest overwrite with the template version without asking (nothing local to lose)
drifted local edits since last sync show the diff, propose a merge, apply only on confirmation
missing in manifest, deleted locally offer to recreate; treat deletion as intentional if the user declines
unmanaged under .claude/ but not in the manifest never touch; list in the report

Read the full file on GitHub · 158 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. 25d ago Changed · +13 lines f6f420315e85
  2. 1mo ago Changed · +2 lines scan A → B 388ff32fc854
  3. 3mo ago First seen · 143 lines · 23 tokens per session scan A dd716b44de86

Subscribe to this mod's changes

sync-template is a skill published in the GitHub repository luiseiman/dotforge (8 stars, last pushed 26d ago), licensed MIT. It adds 23 tokens to every session and 1,793 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sync-template compared with skills from other repositories

sync-template next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-templateluiseiman/dotforgeSkill826d agoMITB23Claude Code
zephermineDannykkh/skill-olympusSkill96d agoMITA97Codex
design-planDannykkh/skill-olympusSkill96d agoMITA108Codex
agent-teamDannykkh/skill-olympusSkill96d agoMITA132Claude Code, Codex
clioDannykkh/skill-olympusSkill96d agoMITA107Claude Code, Codex
frontend-designDannykkh/skill-olympusSkill96d agoMITA92Claude Code, Codex
argosDannykkh/skill-olympusSkill96d agoMITA89Claude Code, Codex