doc-sync

doc-sync is a command for Claude Code from YuDefine/nuxt-supabase-starter. It costs 43 tokens per session (886 once invoked), scanned A, original, MIT.

A command for updating verification documents so they describe the system as it currently works. It covers documentation about configuration, authentication, database structure, permissions, roles, stores, and deployment.

In plain words
What is it for?
Use it after changes to environment variables, authentication, database schemas, access rules, user roles, application stores, or deployment. It also checks links, examples, and the documentation index.
Why use it?
It reduces the risk that technical documentation becomes out of date after code or configuration changes.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit Use it after changes to environment variables, authentication, database schemas, access rules, user roles, application stores, or deployment. It also checks links, examples, and the documentation index.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yudefine/nuxt-supabase-starter/doc-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.

Clone the repo
git clone --depth 1 https://github.com/YuDefine/nuxt-supabase-starter

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 doc-sync

README.md
[![agentmods](https://agentmods.dev/badge/commands/yudefine/nuxt-supabase-starter/doc-sync/github.svg)](https://agentmods.dev/commands/yudefine/nuxt-supabase-starter/doc-sync)
Your own site
<a href="https://agentmods.dev/commands/yudefine/nuxt-supabase-starter/doc-sync"><img src="https://agentmods.dev/badge/commands/yudefine/nuxt-supabase-starter/doc-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 doc-sync

Your own site · 80×15
<a href="https://agentmods.dev/commands/yudefine/nuxt-supabase-starter/doc-sync"><img src="https://agentmods.dev/badge/commands/yudefine/nuxt-supabase-starter/doc-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 886 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 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.00043 $0.00886
Opus 5.5 $0.00017 $0.00354
Sonnet 5.5 $0.00009 $0.00177
Haiku 4.5 $0.00004 $0.00089

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

Security

Grade A, and why

doc-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.

template/.claude/commands/doc-sync.md · 90 lines

What it actually says

User Input

$ARGUMENTS

Outline

更新驗證文件目錄下的文件,確保反映系統的當前狀態。目錄位置看 repo root 有沒有 specs/truth/work-lifecycle.md([[consumer-docs-retirement]]):

repo 驗證文件目錄
lifecycle repo(有 specs/truth/work-lifecycle.md) specs/truth/docs/verify/;新增檔前 specs/truth/owners.md 的 specs/truth/docs/** 列要寫明准入條件與更新責任。NEVER 在 docs/verify/ 新增或修改檔
未遷移 consumer docs/verify/,只可原地更新既有檔,NEVER 新增檔;遷移時 git mv 到 specs/truth/docs/verify/

以下 <verify>/ 指上表的目錄。

Step 1: 識別需要更新的文件

先讀 consumer 自己的 <verify>/README.md 取得當前文件清單(各 consumer 結構不同),再依最近的變更類型對照需要更新的檔案。下表只是常見對應的示意,檔名以 README 為準,禁止照這張表的假設清單直接更新:

變更類型 對應文件
環境變數 ENVIRONMENT_VARIABLES.md
認證流程 AUTH_INTEGRATION.md, OAUTH_SETUP.md
資料庫 schema SUPABASE_MIGRATION_GUIDE.md, MONITORING_TABLES.md
RLS 政策 RLS_PERFORMANCE_OPTIMIZATION.md
使用者角色 USER_ROLES_AUTH.md
Pinia store PINIA_ARCHITECTURE.md
部署流程 REMOTE_DEPLOYMENT.md, CLOUDFLARE_WORKERS_GOTCHAS.md

Step 2: 讀取現有文件

讀取需要更新的文件,了解目前內容。

Step 3: 更新文件

遵循 <verify>/ 的寫作原則:

✅ 正確寫法
  • 使用現在式:描述「系統目前是什麼」
  • 移除時間標記:不要寫「2025-01-13 更新」
  • 專注於狀態:記錄配置、設定、架構
  • 直接覆寫:狀態改變時直接覆寫舊描述
❌ 錯誤寫法
  • 本次更新:修正了 X 問題
  • 2025-01-13 更新
  • 原本是 A,現在改成 B

Step 4: 驗證文件

確認更新後的文件:

  1. 格式正確(Markdown)
  2. 連結有效
  3. 程式碼範例可執行
  4. 與實際程式碼一致

Step 5: 更新 README

如果新增了文件或變更了結構,更新 <verify>/README.md 的目錄。

Step 6: 完成報告

✅ 文件同步完成!

## 已更新文件

| 文件 | 變更摘要 |
|------|----------|
| XXX.md | 更新了 YYY 章節 |
| ZZZ.md | 新增了 AAA 說明 |

## 變更預覽

[顯示 git diff 摘要]

建議:執行 `pnpm docs:dev` 預覽文件網站。
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 · +7 lines · +23 tokens per session 9b073e445f75
  2. 1mo ago Changed · -1 lines 30107aa0b54d
  3. 2mo ago Changed · -3 lines e8d437b4e452
  4. 2mo ago Changed · +1 lines 54d6998a9224
  5. 2mo ago Changed · -8 lines e5226b904298
  6. 2mo ago Changed · +2 lines 3497c52d211c
  7. 3mo ago First seen · 92 lines · 20 tokens per session scan A 89eed1c66735

Subscribe to this mod's changes

doc-sync is a command published in the GitHub repository YuDefine/nuxt-supabase-starter (45 stars, last pushed 2d ago), licensed MIT. It adds 43 tokens to every session and 886 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

doc-sync compared with commands from other repositories

doc-sync next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-syncYuDefine/nuxt-supabase-starterCommand452d agoMITA43Claude Code
bugfixnWave-ai/nWaveCommand63611d agoMITA18Claude Code
go-testraja21068/AutoResearchCommand26mo agoMITA8Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code