doc-update

Detect documentation-to-code drift and update specifications after refactors.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/Pyl-Tech/stream-coding --skill doc-update-pyl-tech
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: doc-update
Source: https://github.com/Pyl-Tech/stream-coding/tree/main/.agents/skills/doc-update
Command: npx skills add https://github.com/Pyl-Tech/stream-coding --skill doc-update-pyl-tech

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines documentation-to-code synchronization by detecting when the specification no longer matches the current codebase, then updating the spec to remove divergence and restore correctness.

Core Features & Use Cases

  • Drift detection: Identify where recent code changes may require matching documentation updates, including exported APIs, routes, types/interfaces, dependencies, and architecture shifts.
  • Spec-first updates: Update documentation as the source of truth (not the code) and ensure the revised spec remains internally consistent.
  • Link and example validation: Verify referenced paths exist, internal links resolve, version claims are current, and code examples actually compile/run rather than being treated as static text.
  • Codemap generation: Create or refresh module index information to accelerate future navigation and reduce re-scanning effort during sessions.
  • Use case: After refactoring or API changes, run this workflow to produce a “documentation truth” report, fix remaining drifts, and prevent future AI-generated code from relying on stale specs.

Quick Start

Use doc-update after a refactor or API change to detect drift, update the affected spec documents, and produce a DOC-UPDATE REPORT with remaining divergences listed.

Frequently Asked Questions about doc-update

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

FAQPage Schema
How do I detect documentation drift after refactoring my codebase?▼

To detect documentation drift after refactoring, you need to compare exported APIs, routes, and dependencies against current specs. This workflow identifies where recent code changes require matching documentation updates and outputs a structured report listing remaining divergences.

What is spec-first synchronization in API documentation?▼

Spec-first synchronization treats documentation as the source of truth rather than the code itself. It updates the specification to match codebase changes, ensuring the revised spec remains internally consistent and preventing AI-generated code from relying on stale documentation.

How do I validate internal links and code examples in technical documentation?▼

Validating internal links and code examples involves verifying that referenced paths exist, internal links resolve correctly, and code examples actually compile and run. This workflow runs documentation validation to check link and path correctness rather than treating examples as static text.

Can I generate a codemap to reduce codebase re-scanning during development sessions?▼

Yes, you can generate or refresh module index information to create codemaps. This accelerates future navigation and reduces re-scanning effort during development sessions by keeping the module index up to date with the current architecture.

What is the best way to update API documentation after route modifications?▼

The best way to update API documentation after route modifications is to run a hardening workflow that detects documentation-to-code drift. It updates affected spec documents, verifies version claims are current, and produces a documentation truth report to restore correctness.

When should I run a documentation update workflow in AI-assisted development?▼

You should run a documentation update workflow after refactors, API surface changes, route modifications, or dependency additions. It enforces spec-first synchronization during hardening or doc/code review contexts to prevent future AI-generated code from relying on stale specifications.