doc-drift-git-en

Detect documentation drift between code changes and a Git diff.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/ousiass/claude-config --skill doc-drift-git-en
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-drift-git-en
Source: https://github.com/ousiass/claude-config/tree/main/skills/doc-drift-git-en
Command: npx skills add https://github.com/ousiass/claude-config --skill doc-drift-git-en

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures that documentation accurately reflects the latest code changes, preventing outdated information and improving developer understanding.

Core Features & Use Cases

  • Git Diff Analysis: Compares documentation files against code changes within a specified Git branch.
  • Drift Detection: Identifies discrepancies where code has changed but documentation has not, or vice-versa.
  • Use Case: Before creating a Pull Request, run this Skill to automatically check if your code modifications have corresponding updates in your README, API docs, or other relevant files.

Quick Start

Check for documentation drift between the current branch and origin/develop.

Frequently Asked Questions about doc-drift-git-en

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check for documentation drift against a specific Git branch?

To check for documentation drift, analyze a Git diff against a specified remote branch to identify discrepancies. This process compares code changes with documentation updates to locate missing, outdated, or contradictory information before a code review.

What is documentation drift detection in software engineering?

Documentation drift detection is the process of identifying inconsistencies between code changes and documentation updates. It locates missing or outdated documentation and contradictory information within a Git diff to ensure docs accurately reflect the latest codebase.

How do I find outdated documentation before creating a Pull Request?

Find outdated documentation before a Pull Request by running a consistency check on your current Git diff. This identifies specific locations where code modifications lack corresponding updates in your README, API docs, or other relevant files.

Can I detect contradictory information between code and docs in a Git diff?

Yes, you can detect contradictory information between code and docs in a Git diff. The analysis evaluates changes against a specified remote branch to pinpoint exact locations where documentation fails to match the updated code logic.

Does this drift detection work with any remote Git branch?

Yes, drift detection works by analyzing a Git diff against a specified remote branch. You can target branches like origin/develop to ensure your current modifications are checked against the correct baseline for missing or outdated documentation.

What are the limitations of automated documentation consistency checks?

Automated documentation consistency checks rely entirely on the Git diff against a specified remote branch. They require explicit code and documentation changes within the same diff to successfully identify drift and generate a detailed review report.