Skip to content
Back to skills

Doc Sync

ASecurity

同步更新驗證文件目錄(lifecycle repo:specs/truth/docs/verify/;未遷移:docs/verify/),確保文件反映當前系統狀態

  • 45 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
developmentgogitperformance

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add YuDefine/nuxt-supabase-starter --skill doc-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yudefine-doc-sync-nuxt-supabase-starter/badge)](https://www.skillsdirectory.com/skills/yudefine-doc-sync-nuxt-supabase-starter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-sync
description: 同步更新驗證文件目錄(lifecycle repo:specs/truth/docs/verify/;未遷移:docs/verify/),確保文件反映當前系統狀態
---


## User Input

```text
$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: 完成報告

```text
✅ 文件同步完成!

## 已更新文件

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

## 變更預覽

[顯示 git diff 摘要]

建議:執行 `pnpm docs:dev` 預覽文件網站。
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.