git-doc-updater

Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

9 stars

Best use case

git-doc-updater is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

Teams using git-doc-updater should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/git-doc-updater/SKILL.md --create-dirs "https://raw.githubusercontent.com/u9401066/pubmed-search-mcp/main/.claude/skills/git-doc-updater/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/git-doc-updater/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How git-doc-updater Compares

Feature / Agentgit-doc-updaterStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Auto-check and update key documentation before Git commits to keep docs in sync with code. Triggers: docs, 文檔, 更新文檔, sync docs, release, 發布.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Git 文檔自動更新技能

## 描述
在執行 Git commit 之前,自動檢查並更新專案的關鍵文檔,確保文檔與程式碼保持同步。

## 觸發條件
當用戶要求進行以下操作時啟用此技能:
- Git commit
- Git push
- 提交程式碼
- 準備發布

## 自動更新的文檔

### 1. README.md
- 更新專案描述(如有變更)
- 更新安裝/使用說明
- 更新功能列表
- 更新依賴項目

### 2. CHANGELOG.md
- 根據本次變更添加新條目
- 遵循 [Keep a Changelog](https://keepachangelog.com/) 格式
- 分類為:Added, Changed, Deprecated, Removed, Fixed, Security
- 包含日期和版本號(如適用)

### 3. ROADMAP.md
- 標記已完成的功能項目
- 更新進行中的項目狀態
- 調整優先順序(如需要)

### 4. ARCHITECTURE.md (ARCH)
- 更新架構圖和說明(如有結構性變更)
- 更新組件關係
- 更新技術決策記錄

### 5. Memory Bank 文件
更新 `memory-bank/` 目錄下的相關文件:
- `activeContext.md` - 當前工作焦點
- `progress.md` - 進度追蹤(Done/Doing/Next)
- `decisionLog.md` - 記錄重要決策
- `productContext.md` - 專案上下文(如有變更)

## 執行流程

```
1. 分析本次程式碼變更內容
2. 執行 MCP 工具統計同步(若涉及工具變更)
3. 識別哪些文檔需要更新
4. 依序更新各文檔
5. 顯示更新摘要供用戶確認
6. 將文檔變更加入 Git staging
```

### ⚠️ 必要步驟:MCP 工具數量同步

當程式碼涉及 MCP 工具新增、移除或重新命名時,**必須**執行:

```bash
uv run python scripts/count_mcp_tools.py --update-docs
```

此腳本自動更新 6 個文件中的工具數量和列表。

## 更新原則

- **最小變更**:只更新與本次提交相關的內容
- **保持一致性**:維持現有文檔格式和風格
- **自動摘要**:從 commit 內容推斷變更摘要
- **版本控制**:CHANGELOG 使用語義化版本

## 範例輸出

當用戶說「準備 commit」時:

```
📝 文檔更新檢查:

✅ README.md - 無需更新
✅ CHANGELOG.md - 已添加 v1.2.0 條目
✅ ROADMAP.md - 已標記「用戶認證」為完成
⏭️ ARCHITECTURE.md - 無結構性變更,跳過
✅ memory-bank/progress.md - 已更新進度

準備提交以下文件變更...
```

## 自定義選項

用戶可以透過提示指定:
- `--skip-readme` 跳過 README 更新
- `--skip-changelog` 跳過 CHANGELOG 更新
- `--skip-memory` 跳過 Memory Bank 更新
- `--dry-run` 只顯示將要更新的內容,不實際修改

Related Skills

roadmap-updater

9
from u9401066/pubmed-search-mcp

Auto-update ROADMAP.md status based on completed features. Triggers: RM, roadmap, 路線, 規劃, 完成功能, milestone, 里程碑.

readme-updater

9
from u9401066/pubmed-search-mcp

Intelligently update README.md to sync with code changes. Triggers: readme, 說明, 更新說明, update readme, 文檔同步.

memory-updater

9
from u9401066/pubmed-search-mcp

Update and maintain Memory Bank files (activeContext, progress, decisionLog). Triggers: MB, memory, 記憶, 進度, 更新記憶, update memory, 記錄進度, 更新上下文.

changelog-updater

9
from u9401066/pubmed-search-mcp

Auto-update CHANGELOG.md following Keep a Changelog format. Triggers: CL, changelog, 變更, 版本, version, 更新日誌, whatsnew.

academic-figure-drawing-harness

9
from u9401066/pubmed-search-mcp

Codex drawing harness integration. Triggers: 繪圖, draw, figure, chart, plot, mermaid, SVG, Gemini, graph, 生成圖表.

zotero-keeper-harness

9
from u9401066/pubmed-search-mcp

Cline harness for Zotero Keeper and the bundled VS Code extension. Triggers: zotero keeper, zotero mcp, full check, release checklist, workflow, vsix, Cline.

pubmed-search-mcp-harness

9
from u9401066/pubmed-search-mcp

Cline harness for PubMed Search MCP. Triggers: pubmed search, literature search, unified_search, pipeline, fulltext, release checklist, Cline.

llm-wiki-builder

9
from u9401066/pubmed-search-mcp

Build or refresh Foam-compatible LLM wikis from Zotero, PubMed, documents, and local Markdown notes using a multi-tool workflow.

asset-aware-mcp-harness

9
from u9401066/pubmed-search-mcp

Cline harness for this repo (rules + workflows + checks). Triggers: cline harness, full check, release checklist, workflow, 文檔工作流, DFM, citation-ready.

tool-sync

9
from u9401066/pubmed-search-mcp

Auto-sync MCP tool documentation when tools are added, removed, or renamed. Triggers: TS, tool-sync, 工具同步, 同步工具, sync tools, new tool, 新增工具, 工具變更, update tools.

test-generator

9
from u9401066/pubmed-search-mcp

Generate comprehensive test suites including static analysis, unit tests, integration tests, E2E tests, and coverage reports. Triggers: TG, test, 測試, 寫測試, coverage, 覆蓋率, pytest, unittest, 驗證.

readme-i18n

9
from u9401066/pubmed-search-mcp

Maintain multilingual README versions (English primary, Chinese translation). Triggers: i18n, 翻譯, translate, 多語言, sync readme, 中英文, bilingual.