Communitygithub.com

SamuelChien/mega-skills-collection

验证网站、GitHub 仓库和本地文档之间的消息一致性,生成只读差异报告。用于检查内容对齐或发现混杂消息。可通过“检查一致性”、“验证文档”或“审计消息”等短语触发。

mega-skills-collection 是什么?

该技能用于自动检测跨多个文档源(网站、GitHub 仓库、本地文档)的内容一致性,包括语气、术语、格式和结构方面的差异。它会生成一个只读的差异报告,按严重级别分类发现的问题,并提供可操作的建议(包括文件路径和行号)。该技能适用于多种平台(如 Claude Code、Cursor、Codex),尤其适合在版本发布前、品牌更新后或新人入职时使用。其工作流程包括发现内容源、提取结构化数据、构建对比矩阵、分类严重性、应用信任优先级(网站 > GitHub > 本地文档),并最终生成 Markdown 格式的报告。此外,它还提供了详细的错误处理指南,帮助用户解决常见问题,如网站不可达、GitHub API 限速等。

兼容平台✓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”)后,验证所有文档、登录页面和贡献指南是否一致地使用新术语。
  • 新人入职审查:当新贡献者指出文档令人困惑时,运行一致性检查,以揭示跨文档源的矛盾功能声明、过时的联系信息或缺失的部分。

前提条件

  • 至少访问两个内容源(网站、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。

报告格式

# 一致性报告 — YYYY-MM-DD

## 执行摘要
| 严重级别 | 数量 |
|----------|------|
| 严重     | 2    |
| 警告     | 5    |
| 信息性   | 3    |

## 网站 vs GitHub
| 字段      | 网站       | GitHub     | 严重级别 |
|-----------|------------|------------|----------|
| 版本      | v2.1.0     | v2.0.0     | 严重     |
| 功能 X    | 已列出     | 缺失       | 警告     |

## 操作项
1. **严重** — 更新 `README.md:14` 版本从 v2.0.0 → v2.1.0
2. **警告** — 将“功能 X”添加到 `README.md` 功能列表中

错误处理

错误原因解决方案
网站内容无法访问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.

相关技能