Drift Detector 标志

Drift Detector

组织
hackmamba-io
drift-detector

Compare documentation against a current source of truth and identify sections that are outdated, inaccurate, or no longer reflect the product or API. Use this skill when a technical writer wants to audit existing documentation for drift caused by product updates, API changes, feature removals, or version bumps. Trigger on phrases like "check my docs for drift," "is this documentation still accurate," "find outdated sections," "compare this against the new spec," "what changed since this was written," "audit my docs against the changelog," "which parts of my docs are wrong," "review my docs against the new version," or any request to validate documentation accuracy against a current source. Also trigger when someone says their docs feel stale but they are not sure where the problems are.

概览

发布者hackmamba-io
代码仓库creator-skills
技能名称drift-detector
星标数
30
复刻数
3
附带文件
1
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 hackmamba-io 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Drift Detector AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/hackmamba-io/creator-skills/tree/main/skills/technical/drift-detector
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/hackmamba-io/creator-skills.git /tmp/creator-skills
mkdir -p .claude/skills
cp -r /tmp/creator-skills/skills/technical/drift-detector .claude/skills/drift-detector
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Drift Detector,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Drift Detector。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Drift Detector 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Before you start: verify this skill is fully installed

This skill depends on its reference file references/drift-rules.md. More than half of the skill lives in that file, and the skill cannot produce a correct result without it.

Before doing anything else, attempt to read references/drift-rules.md. If you cannot read it, STOP. Do not attempt the task from memory or from general knowledge. Tell the user exactly this:

This skill is not fully installed. Its reference file could not be read, so I can only produce a degraded result that would look normal but be missing most of the skill. Please reinstall the skill. In Claude Code or another agent, run npx skills add hackmamba-io/creator-skills --skill drift-detector -g. In the Claude app, go to Settings > Capabilities > Skills, delete this skill, and upload it again as a zip that contains both SKILL.md and the references/ folder. Then run this skill again.

Only proceed past this point once the reference file has loaded successfully.


Documentation Drift Detector

A skill for comparing existing documentation against a current source of truth and identifying every place the documentation no longer accurately reflects the product, API, or system it describes. Works with OpenAPI and Swagger specs, changelogs, release notes, newer document versions, and informal update notes.


When to activate this skill

Use this skill when someone:

  • Provides existing documentation and a source of truth to compare it against
  • Suspects their documentation has become inaccurate after a product update
  • Wants to know which sections of their docs need updating before a release
  • Is preparing for a documentation audit and needs a starting point
  • Has received a changelog or release notes and wants to know what to update
  • Has a new version of a spec and wants to validate their existing API docs against it
  • Asks whether specific documented behavior is still accurate

When NOT to activate this skill

Do not use this skill when someone:

  • Provides only one document with no source of truth to compare against
  • Asks for style, grammar, or clarity feedback with no accuracy concern
  • Wants to write new documentation from scratch
  • Asks general questions about documentation best practices without providing documents to compare
  • Provides two documents but neither is clearly the current source of truth and they have not clarified which is which

What this skill does

Documentation drift is one of the most insidious problems in technical writing because it happens silently. An engineer renames a parameter, a product manager sunsets a feature, a developer changes a default value. The documentation does not break in any visible way. It just becomes wrong, quietly, and readers start failing without knowing why.

This skill approaches drift detection the way a careful technical editor with engineering context would: systematically comparing what the documentation claims against what the source of truth says is currently true, classifying each discrepancy by type, and assigning severity so writers know what to fix first.

The output names every drifted section with a specific quote from the documentation, explains what the source of truth says instead, classifies the drift type, and assigns a severity level. Writers leave with a prioritized list of what is wrong and why, not a vague sense that something needs updating.


Frameworks used

This skill uses the drift classification system and severity scoring defined in references/drift-rules.md. Read that reference in full before starting any analysis. The five drift types (Removed, Renamed, Changed behavior, Added but undocumented, Structurally stale) and the four severity levels (Critical, High, Medium, Low) are the vocabulary used throughout the output.


Input handling

What counts as a valid input pair

This skill requires two inputs: the documentation being reviewed and the source of truth to compare it against. If only one is provided, ask for the second before proceeding.

The only exception: if the documentation contains internal inconsistencies that indicate drift without needing an external source (for example, a page that references its own changelog and contradicts it, or a README that references a version number inconsistently), flag those and note that a full drift analysis requires a current source of truth.

Identifying which document is which

Before starting the analysis, confirm which document is the existing documentation and which is the current source of truth. If it is ambiguous, ask. Getting this backwards produces an inverted analysis.

Label both clearly at the top of the output.

Input type detection

Identify the source of truth type from Section 2 of the reference and apply the corresponding comparison rules:

  • OpenAPI or Swagger spec: apply Section 3
  • Changelog or release notes: apply Section 4
  • Newer version of the same document: apply Section 5
  • Informal update (Slack message, email, ticket, engineer notes): apply Section 6

If the input type is unclear, describe what you received and state which comparison approach you are applying and why.

Scope limitations

Be explicit about what can and cannot be detected from the provided inputs. A changelog-based comparison can only assess what changed. A spec-based comparison cannot assess behavioral nuances that are not captured in the spec. An informal update comparison is limited by the specificity of the update itself.

State the scope limitation once, clearly, at the top of the review. Do not repeat it for every flag.


How to run the analysis

Step 1: Read the drift rules reference

Before starting, read references/drift-rules.md in full. The drift classification system in Section 1 and the severity scoring in Section 8 are the two sections to internalize before touching the documents.

Step 2: Identify and label both inputs

State clearly which document is the existing documentation and which is the source of truth. Note the input type for the source of truth and which comparison approach applies.

Step 3: Run the cross-cutting signal check

Before comparing document-specific content, scan the documentation for the cross-cutting drift signals in Section 7 of the reference:

  • Hardcoded version numbers
  • Deprecated patterns
  • Broken cross-references
  • Date-sensitive claims
  • Screenshot and diagram dependencies

Flag any found here before moving to the structured comparison. These often reveal drift that the document-specific comparison might miss.

Step 4: Run the structured comparison

Apply the comparison rules from the relevant section of the reference based on the source of truth type. Work systematically through the documentation, checking each claim against the source of truth.

For each discrepancy found:

  • Quote the exact text from the documentation that is wrong
  • State what the source of truth says instead
  • Classify the drift type from the five categories
  • Assign a severity level

Do not flag stylistic differences, additional explanation in the docs that the spec does not contain, or prose that describes the same thing in different words. Focus on factual discrepancies.

Step 5: Check for undocumented additions

After flagging what is wrong in the existing docs, scan the source of truth for anything new that has no corresponding documentation. Flag these as drift of type Added but undocumented.

Step 6: Compile and prioritize

Group all flags by severity. Critical items first, then High, Medium, Low. Within each severity group, order by the section of the documentation where they appear so the writer can work through the document linearly.


Output format

## Documentation Drift Report

**Documentation reviewed:** [Title or description of the existing docs]
**Source of truth:** [Title, type, and version if available]
**Comparison type:** [Spec / Changelog / Document version / Informal update]
**Scope note:** [One sentence on what this comparison can and cannot assess]

---

### Drift Summary

**Critical:** [N items]
**High:** [N items]
**Medium:** [N items]
**Low:** [N items]
**Total flags:** [N]

[2 to 3 sentences on the overall drift pattern. Is drift concentrated in one
area of the docs or distributed? Is it mostly naming drift from a rename, or
behavioral drift from changed defaults? Is there a single product change driving
most of the flags?]

---

### Flagged Items

Organized by severity, then by location in the document.

---

#### Critical

**Flag [N]: [Short label, e.g., "Removed endpoint still documented"]**

**Location in docs:** [Section title or page where this appears]
**Drifted content:**
> [Exact quote from the documentation that is now wrong]

**Drift type:** [Removed / Renamed / Changed behavior / Added but undocumented /
Structurally stale]
**What the source of truth says:** [Specific description of the current state,
quoted from the source of truth where possible]
**Reader impact:** [What happens when a reader relies on this documentation]

---

[Repeat for each Critical flag]

---

#### High

[Same structure as Critical]

---

#### Medium

[Same structure as Critical]

---

#### Low

[Same structure as Critical]

---

### What is still accurate

[2 to 4 sentences on the sections of the documentation that the comparison
confirmed are still accurate. This gives writers confidence about what does
not need touching and prevents unnecessary rewrites of correct content.
If the documentation is largely accurate with only isolated drift, say so.]

### Recommended update order

[A prioritized sequence for addressing the flags. Not just "fix Critical first"
but a practical order that accounts for dependencies between fixes. For example,
if a parameter was renamed and that name appears in 6 places, fixing the
reference definition first makes the other five easier. Maximum 5 to 7 steps.]

Tone of the report

Documentation drift is rarely the writer's fault. It happens because products move faster than documentation cycles, because engineers do not always notify the docs team, and because no one has time to re-audit documentation after every sprint. The report should be direct about what is wrong without implying negligence.

  • Lead with the specific discrepancy, not a general statement about the docs being outdated.
  • Quote the exact drifted text so the writer can find it immediately without searching.
  • State what the source of truth says instead, specifically enough that the writer can make the fix without needing to re-read the source of truth.
  • Be clear about severity. A renamed parameter and a removed endpoint are both drift but they are not equally urgent. The writer needs to know which one to fix before the next release.
  • Acknowledge what is still accurate. A drift report that only lists problems leaves the writer not knowing how much of the document to distrust.

Edge cases

Documentation is significantly more detailed than the source of truth A spec or changelog will almost never capture every nuance documented in a well-written set of docs. Do not flag additional explanation, examples, or context in the documentation as drift just because the source of truth does not contain it. Flag only factual discrepancies.

Source of truth has errors If the source of truth appears to contain errors (a spec field that is clearly mislabeled, a changelog entry that contradicts itself), note this in the report and do not treat it as ground truth for that specific item. Flag it as something the writer should verify with the engineering team before updating the docs.

Massive drift across the entire document If nearly every section of the documentation has drifted, note this in the summary and recommend a full rewrite from the source of truth rather than attempting to patch individual items. Provide the drift report as a guide for what the rewrite needs to address, but flag that incremental patching may be less efficient than starting fresh from the current spec.

No clear drift found If the comparison reveals no meaningful drift, say so directly. State which comparison was run, confirm that the documentation appears to accurately reflect the source of truth, and note any caveats about the scope of the comparison. Do not manufacture flags to appear thorough.

Writer provides a very large document For very large documentation sets, note that the analysis covers the content provided and that sections not included in the submission could not be assessed. Recommend the writer prioritize submitting sections most likely to have drifted based on what changed in the source of truth.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Drift Detector AI 技能有什么作用?

Compare documentation against a current source of truth and identify sections that are outdated, inaccurate, or no longer reflect the product or API. Use this skill when a technical writer wants to audit existing documentation for drift caused by product updates, API changes, feature removals, or version bumps. Trigger on phrases like "check my docs for drift," "is this documentation still accurate," "find outdated sections," "compare this against the new spec," "what changed since this was written," "audit my docs against the changelog," "which parts of my docs are wrong," "review my docs...

为什么在 TypingMind 中使用 Drift Detector?

因为您只需安装一次,就能搭配任何模型使用。Drift Detector 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Drift Detector?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/hackmamba-io/creator-skills/tree/main/skills/technical/drift-detector。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Drift Detector?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Drift Detector 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Drift Detector 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Drift Detector AI 技能免费吗?

hackmamba-io 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇