Communitygithub.com

SamuelChien/mega-skills-collection

驗證網站、GitHub 儲存庫與本地文件之間訊息的一致性,並產生唯讀的差異報告。適用於檢查內容對齊或發現混合訊息的情況。可透過「檢查一致性」、「驗證文件」或「審核訊息」等短語觸發。

mega-skills-collection 是什麼?

這項技能提供了一套自動化工具,用於檢查多個文件來源(包括網站、GitHub 儲存庫和本地文件)在語氣、術語、格式和結構上的一致性。它會產生唯讀的差異報告,根據嚴重程度分類發現的問題,並提供包含檔案路徑與行號的可行修正建議。支援的平台涵蓋所有可讀取的內容來源,例如已部署的網站原始內容、GitHub 上的 `README` 與 `CONTRIBUTING` 文件,以及本地 `docs/`、`claudes-docs/`、`internal/` 等目錄。其運作方式是先探索來源、提取結構化資料(如版本號與功能宣稱),再建立交叉對比矩陣,然後依照信任優先級(網站最權威,其次 GitHub,最後本地文件)對差異進行分類,最後產出一份結構化的 Markdown 報告,其中包含摘要、逐對比較表格、術語一致性矩陣,以及優先級行動項目。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/000-jeremy-content-consistency-validator

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

內容一致性驗證器

概述

檢查來自多個文件來源(網站、GitHub 儲存庫、本地文件)的內容在語氣、術語、格式和結構上的一致性。產生唯讀的差異報告,報告中包含按嚴重程度分類的發現以及可行的修正建議,包括檔案路徑與行號。

範例

  • 發佈前審核:在標記新版本之前,執行驗證器以捕獲 README、文件網站和更新日誌之間的版本不匹配問題 —— 例如網站顯示 v2.1.0,但 GitHub README 仍引用 v2.0.0。
  • 品牌重塑後檢查:重新命名產品或更新術語(例如將「plugin」改為「extension」)後,驗證所有文件、登陸頁面和貢獻指南是否一致地使用新術語。
  • 入門審查:當新貢獻者指出文件令人困惑時,執行一致性檢查,以發現文件來源之間矛盾的 feature 宣稱、過時的聯絡資訊或缺失的章節。

先決條件

  • 至少能存取兩個內容來源(網站、GitHub 儲存庫或本地文件目錄)
  • 已為遠端 URL(已部署的網站、GitHub 原始內容)設定 WebFetch 權限
  • 本地文件存放在可識別的路徑中(docs/、claudes-docs/、internal/)

操作說明

  1. 探索來源 —— 掃描建置目錄(dist/、build/、public/、out/、_site/)、GitHub README/CONTRIBUTING 檔案以及本地文件資料夾:
    find . -maxdepth 3 -name "README*" -o -name "CONTRIBUTING*" | head -20
    ls -d docs/ claudes-docs/ internal/ 2>/dev/null
    
  2. 提取結構化資料 從每個來源中:版本號碼、功能宣稱、產品名稱、標語、聯絡資訊、URL 以及技術需求:
    grep -rn 'v[0-9]\+\.[0-9]\+' docs/ README.md
    grep -rn -i 'features\|capabilities' docs/ README.md
    
  3. 驗證提取結果 —— 確認每個來源至少有 3 個資料點。如果某個來源回傳空值,請先查閱錯誤處理表格,再繼續後續步驟。
  4. 建立對比矩陣,將每個來源與其他所有來源進行配對(網站 vs GitHub、網站 vs 本地文件、GitHub vs 本地文件):
    diff <(grep -i 'version' README.md) <(grep -i 'version' docs/overview.md)
    
  5. 按嚴重程度分類差異:
    • 嚴重:衝突的版本號碼、矛盾的功能列表、不匹配的聯絡資訊、失效的交叉引用
    • 警告:不一致的術語(例如「plugin」vs「extension」)、某個來源缺少資訊、過時的日期
    • 資訊:風格差異、特定平台的用語、不同的詳細程度
  6. 套用信任優先級:網站(最具權威性)> GitHub(開發者面向)> 本地文件(內部使用)。
  7. 產生報告,格式為 Markdown,包含:執行摘要、逐對比較表格、術語一致性矩陣,以及包含檔案路徑和行號的優先行動項目。
  8. 儲存 到 consistency-reports/YYYY-MM-DD-HH-MM-SS.md。

報告格式

# Consistency Report — YYYY-MM-DD

## Executive Summary
| Severity | Count |
|----------|-------|
| Critical | 2     |
| Warning  | 5     |
| Info     | 3     |

## Website vs GitHub
| Field        | Website       | GitHub        | Severity |
|-------------|---------------|---------------|----------|
| Version     | v2.1.0        | v2.0.0        | Critical |
| Feature X   | listed        | missing       | Warning  |

## Action Items
1. **Critical** — Update `README.md:14` version from v2.0.0 → v2.1.0
2. **Warning** — Add "Feature X" to `README.md` feature list

錯誤處理

錯誤原因解決方案
網站內容無法存取URL 回傳 4xx/5xx 或建置目錄遺失確認網站已部署或執行本地建置;檢查 WebFetch 權限
GitHub API 速率限制短時間內擷取次數過多暫停並在重置視窗後重試;使用經過驗證的請求
找不到文件目錄預期路徑不存在確認工作目錄;明確指定文件路徑
內容提取結果為空用戶端渲染導致 fetch 無法擷取使用本地建置輸出目錄代替即時 URL
diff 指令失敗檔案路徑包含特殊字元對傳遞給 diff 和 grep 的所有檔案路徑加上引號

資源

  • 內容來源探索邏輯:${CLAUDE_SKILL_DIR}/references/how-it-works.md
  • 信任優先級與驗證時機:${CLAUDE_SKILL_DIR}/references/best-practices.md
  • 使用情境逐步解說:${CLAUDE_SKILL_DIR}/references/example-use-cases.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

相關技能