doc-freshness-gate

Detect documentation drift across five surfaces during GSD phase merges.

Updated Jun 4, 2026
One-click install
npx skills add https://github.com/Kohlex/autopilot-plugin --skill doc-freshness-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-freshness-gate
Source: https://github.com/Kohlex/autopilot-plugin/tree/main/skills/doc-freshness-gate
Command: npx skills add https://github.com/Kohlex/autopilot-plugin --skill doc-freshness-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Phase merges generate documentation drift across five important surfaces; without a lightweight governance gate teams risk misalignment and stale narratives. The Doc-Freshness Gate ensures drift is detected, surfaced, and recorded as advisory only, enabling quick remediation without blocking progress.

Core Features & Use Cases

  • Reconciles five surfaces: STATE, ROADMAP, PROJECT, CAPTURED, and LEARNINGS_SUMMARY at each phase merge to keep product context current.
  • Uses a strict, non-blocking drift detector based on a dual check (mtime and git-blame) and an optional drift-probe to verify claims against the merge.
  • Emits greppable markers for audit trails and provides a structured outcome suitable for downstream pipeline steps.

Quick Start

Run the gate on a real phase-merge to verify drift detection and advisory marking.

Frequently Asked Questions about doc-freshness-gate

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

FAQPage Schema
How do I detect documentation drift during git phase merges?

Detect documentation drift during git phase merges by running a non-blocking advisory gate that compares mtime and git-blame against the merge SHA to surface mismatches across five planning surfaces.

What is doc drift and how does mtime and git-blame identify it?

Doc drift occurs when documentation fails to reflect recent code changes. A dual-check mechanism uses file modification time (mtime) and git-blame to verify if documentation updates align with the current merge SHA.

Does the doc freshness gate block pipeline progress when it finds stale docs?

No, the doc freshness gate is a non-blocking advisory mechanism. It filters real phase-merges, detects drift, emits greppable markers for audit trails, and returns a structured verdict without halting pipeline progress.

How do I track stale documentation across multiple project surfaces?

Track stale documentation across multiple project surfaces by targeting STATE, ROADMAP, PROJECT, CAPTURED, and LEARNINGS_SUMMARY files. The gate surfaces drift using mtime and blame checks at each phase merge.

When should I use an advisory gate for documentation freshness?

Use an advisory gate for documentation freshness when teams risk misalignment from stale narratives at phase merges. It provides lightweight governance by detecting and recording drift without blocking development progress.

What limitations exist with using mtime and git-blame for drift detection?

Using mtime and git-blame for drift detection relies on accurate filesystem timestamps and commit history. The gate mitigates false positives by filtering for real phase-merges and optionally consulting a drift-probe before returning verdicts.