원클릭으로
skill-health-check
Check health, freshness, and consistency of all Skills, copilot-instructions.md, chatmodes, and bylaws. Triggers: SHC, health, 健康檢查, skill check, freshness, 翻新, 過期, stale, 檢查 skill, instruction check, audit skills, 技能檢查.
메뉴
Check health, freshness, and consistency of all Skills, copilot-instructions.md, chatmodes, and bylaws. Triggers: SHC, health, 健康檢查, skill check, freshness, 翻新, 過期, stale, 檢查 skill, instruction check, audit skills, 技能檢查.
Deep comprehensive code audit across quality, security, architecture compliance, test coverage, and documentation sync. Triggers: AUDIT, 審計, audit, 全面審查, deep review, 深度審查, 健檢, health check, 程式碼審計, codebase audit, 完整檢查, full check.
Structured bug fixing workflow with root cause analysis and regression prevention. Triggers: BF, 修 bug, fix bug, debug, 除錯, 錯誤, error, 問題, issue, 修復, fix, 故障, fault, 異常, exception, 失敗, failure, 不能用, broken, 壞掉.
Auto-update CHANGELOG.md following Keep a Changelog format. Triggers: CL, changelog, 變更, 版本, version, 更新日誌, whatsnew, release notes, 發布說明, 變更紀錄, history, 歷史, 更新紀錄, 新功能, new features, breaking changes.
Proactively detect and execute code refactoring to maintain DDD architecture and code quality. Triggers: RF, refactor, 重構, 拆分, split, 模組化, modularize, 太長, cleanup, 整理, clean, 優化, optimize, extract, 提取, simplify, 簡化, 複雜度, complexity, 重組, reorganize, 改善, improve.
Complete code review workflow for PR/MR with multiple reviewers and automated checks. Triggers: PRW, 審查流程, review workflow, PR review, MR review, pull request, merge request, 程式碼審查流程, full review, 完整審查.
Comprehensive code review checking quality, security, and best practices. Triggers: CR, review, 審查, 檢查, check, 看一下, PR, code review, 品質, inspect, 檢視, 看看, 幫看, lint, quality check, 品質檢查, pull request, merge request, MR, diff, 程式碼審查.
name: skill-health-check description: Check health, freshness, and consistency of all Skills, copilot-instructions.md, chatmodes, and bylaws. Triggers: SHC, health, 健康檢查, skill check, freshness, 翻新, 過期, stale, 檢查 skill, instruction check, audit skills, 技能檢查. version: 1.0.0 category: maintenance compatibility:
全面檢查專案中所有 Skills、Copilot Instructions、Chatmodes 和 Bylaws 的健康度、一致性和新鮮度。 這是一個自省型 Skill,讓 Copilot 能檢查自己的設定是否需要翻新。
list_dir(".claude/skills/")
對每個 skill 子目錄:
SKILL.md 存在必要 frontmatter 欄位:
name — skill 識別名稱description — 包含觸發詞的描述version — 語義化版本category — 類別分類compatibility — 支援的平台列表allowed-tools 或 dependencies — 工具/依賴宣告read_file(".github/copilot-instructions.md")
比對:
.claude/skills/ 目錄list_dir(".github/") # 找 *.chatmode.md
檢查:
tools 列表使用有效名稱list_dir(".github/bylaws/")
解析所有 skill 的 dependencies 和 orchestrates 欄位:
| 條件 | 狀態 |
|---|---|
| 90 天內更新 | 🟢 新鮮 |
| 90-180 天 | 🟡 建議檢查 |
| > 180 天 | 🔴 需要翻新 |
根據發現的問題,提供可選的自動修復:
# 🏥 Skill & Instruction 健康報告
📅 檢查日期:YYYY-MM-DD
📁 Skills 位置:.claude/skills/
---
## 📊 總覽
| 指標 | 值 |
|------|-----|
| Skills 總數 | XX |
| 結構完整 | XX/XX ✅ |
| 版本新鮮 | XX 新鮮 / XX 過期 |
| 指令同步 | ✅ 同步 / ⚠️ 不同步 |
| 依賴完整 | ✅ 完整 / ❌ 斷裂 |
---
## 🗂️ Skill 清單
| Skill | 版本 | 類別 | 新鮮度 | 狀態 |
|-------|------|------|--------|------|
| git-precommit | v2.2.0 | workflow | 🟢 | ✅ |
| code-reviewer | v2.2.0 | quality | 🟢 | ✅ |
| ... | | | | |
---
## ✅ 健康項目
1. ...
## ⚠️ 需要關注
1. ...
## ❌ 需要修復
1. ...
---
## 🔗 依賴圖
git-precommit (workflow) ├── memory-updater ├── readme-updater ├── changelog-updater ├── roadmap-updater └── ddd-architect
code-review-workflow (workflow) ├── code-reviewer ├── security-reviewer ├── test-generator └── ddd-architect
feature-development (workflow) ├── ddd-architect ├── code-reviewer ├── test-generator └── memory-updater
---
## 📋 建議行動
### 自動可修復
- [ ] 更新 copilot-instructions.md skill 表格
- [ ] 補齊 XXX skill 的 frontmatter
### 需要人工處理
- [ ] 翻新 XXX skill(已過期 XX 天)
- [ ] 更新 XXX skill 以匹配新版 VS Code API
| 觸發場景 | 動作 |
|---|---|
git-precommit | 在 commit 前透過 hook 快速檢查 |
skill-generator | 新 skill 建立後自動觸發同步檢查 |
| 定期維護 | 建議每月執行一次完整健康檢查 |
以下是 Copilot 演進中可能影響 skill 的變更:
| 功能 | 檢查項目 |
|---|---|
| Agent Mode | chatmode.md 是否使用 agent 而非舊的 mode |
| Prompt Files | .prompt.md 是否使用正確的 frontmatter |
| Tools | tools 列表是否使用當前有效的工具名稱 |
| Instructions | .instructions.md 是否遵循最新格式 |
| Skills | SKILL.md frontmatter 是否需要新增欄位 |
skill-generator 驗證格式