git-precommit — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited git-precommit (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
協調多個 Skills 完成 Git 提交前的所有準備工作。這是一個「編排器」Skill,負責調用其他 Skills。
git status --short
git diff --name-only --cached使用工具:
get_changed_files() # 取得變更清單呼叫條件:永遠執行
調用 memory-updater skill:
- 更新 activeContext.md(當前焦點)
- 更新 progress.md(移動 Done/Doing)呼叫條件:
若需要,調用 readme-updater skill呼叫條件:
若需要,調用 changelog-updater skill呼叫條件:
若需要,調用 roadmap-updater skill呼叫條件:
若需要,更新 memory-bank/architect.md依據 Conventional Commits 格式:
<type>(<scope>): <description>
[optional body]
[optional footer(s)]類型對照:
| 變更內容 | type |
|---|---|
| 新功能 | feat |
| Bug 修復 | fix |
| 文檔 | docs |
| 重構 | refactor |
| 測試 | test |
| 建構/CI | chore |
# 檢查狀態
git status
# Stage 變更
git add .
# 提交
git commit -m "feat(auth): 新增用戶認證模組"
# 推送(如果用戶確認)
git push origin main┌─────────────────────────────────────────────────┐
│ Git Pre-Commit Orchestrator │
├─────────────────────────────────────────────────┤
│ Step 1: 收集變更 [分析] get_changed_files │
│ Step 2: memory-sync [必要] Memory Bank 同步 │
│ Step 3: readme [條件] README 更新 │
│ Step 4: changelog [條件] CHANGELOG 更新 │
│ Step 5: roadmap [條件] ROADMAP 更新 │
│ Step 6: architect [條件] 架構文檔檢查 │
│ Step 7: message [生成] Commit Message │
│ Step 8: commit [執行] git add/commit/push │
└─────────────────────────────────────────────────┘| 指令 | 效果 |
|---|---|
「準備 commit」 | 完整流程 |
「快速 commit」 | 只執行 memory-sync |
「commit 跳過 readme」 | 跳過 README 更新 |
「只更新文檔然後 commit」 | 只執行文檔相關步驟 |
🚀 Git Pre-Commit 工作流
[1/6] 變更分析
└─ 變更檔案:5 個
└─ 新增:src/auth/login.py
└─ 修改:README.md
[2/6] Memory Bank 同步 ✅
└─ progress.md: 新增 1 個 Done 項目
└─ activeContext.md: 已更新焦點
[3/6] README 更新 ✅
└─ 新增「用戶認證」功能說明
[4/6] CHANGELOG 更新 ✅
└─ 添加到 [Unreleased] > Added
[5/6] ROADMAP 更新 ⏭️ (無匹配項目)
[6/6] Commit 準備 ✅
📋 Staged files (5):
M README.md
M CHANGELOG.md
A src/auth/login.py
A src/auth/models.py
M memory-bank/progress.md
建議 Commit Message:
───────────────────────
feat(auth): 新增用戶認證模組
- 實作登入/登出功能
- 新增 User model
───────────────────────
確認提交?(y/n/edit)git add . 所有檔案這是編排器 Skill,負責調用:
git-precommit (編排器)
├── memory-updater (必要)
├── readme-updater (條件)
├── changelog-updater (條件)
├── roadmap-updater (條件)
└── ddd-architect (架構檢查參考)~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.