sync

sync is a command for Claude Code from Alex-Rachel/TEngine. It costs 21 tokens per session (328 once invoked), scanned A, original, MIT.

A command for bringing project documentation back into agreement with the code, using a documentation-synchronization skill.

In plain words
What is it for?
Use it after changing a module or subsystem to verify the code, compare it with existing documentation, make corrections, and produce an update report.
Why use it?
It helps find documentation that is missing, outdated, or inconsistent with recent code changes. It also updates related documents and the documentation index.

Command for Claude Code

About the project

TEngine is a Unity framework for building games, providing modules for asynchronous work, hot updates, asset management, configuration tables, and user interfaces. It is for Unity developers and teams making commercial projects across desktop, mobile, web, and WeChat Mini Game targets, with catalogue skills supporting its AI-assisted development workflow.

Alex-Rachel/TEngine · 2,327 stars · on GitHub

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.

agentmods
npx agentmods add commands/alex-rachel/tengine/sync
Clone the repo
git clone --depth 1 https://github.com/Alex-Rachel/TEngine

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/commands/alex-rachel/tengine/sync.svg)](https://agentmods.dev/commands/alex-rachel/tengine/sync)
Your own site
<a href="https://agentmods.dev/commands/alex-rachel/tengine/sync"><img src="https://agentmods.dev/badge/commands/alex-rachel/tengine/sync.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 328 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00021 $0.00328
Opus 5 $0.00010 $0.00164
Sonnet 5 $0.00004 $0.00066
Haiku 4.5 $0.00002 $0.00033

Measured 6d ago against content hash 0ac230219164, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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.

UnityProject/.claude/commands/wiki/sync.md · 27 lines

What it actually says

加载 wiki-synchelper skill,对当前改动做文档对齐。

输入$ARGUMENTS(可选,指定要同步的模块或子系统,例如:/wiki-sync BattleCore 技能系统;留空则根据对话上下文自动判断)

执行步骤

  1. 宣告任务:输出"开始文档同步:$ARGUMENTS"(若无参数则输出"根据上下文自动判断同步范围")
  2. 加载 wiki-synchelper skill(使用 Skill 工具,name: "wiki-synchelper")
  3. 按 skill 阶段一执行代码核验:
    • 确定核验范围(来自 $ARGUMENTS 或对话上下文中最近的代码改动)
    • 使用 Glob/Read/Grep 核验涉及的代码文件
  4. 按 skill 阶段二扫描现有文档并比对
  5. 按 skill 阶段三执行文档操作(修正/补充/删除)
  6. 按 skill 阶段四更新关联文档及 .repowiki/README.md 导航
  7. 输出标准文档更新报告

完成后必须输出

文档同步完成。
如果同步结果不符合预期,可以使用 /undo 撤销本次所有文件改动并重试。
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. 6d ago First seen · 27 lines · 21 tokens per session scan A 0ac230219164

Subscribe to this mod's changes

sync is a command published in the GitHub repository Alex-Rachel/TEngine (2,327 stars, last pushed 26d ago), licensed MIT. It adds 21 tokens to every session and 328 once invoked, about $0.0001 per session on Opus 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.