doc-maintainer

Detect and fix drift between code and TECH_SPEC_current.md documentation.

Updated Jan 21, 2026
One-click install
npx skills add https://github.com/lshtram/core_dev --skill doc-maintainer-lshtram
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: doc-maintainer
Source: https://github.com/lshtram/core_dev/tree/main/.agent/skills/doc-maintainer
Command: npx skills add https://github.com/lshtram/core_dev --skill doc-maintainer-lshtram

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documentation often drifts from the actual code; this skill ensures living documentation stays in sync by reverse-syncing code to docs.

Core Features & Use Cases

  • Drift detection: identify where docs diverge from code.

  • Sync actions: update TECH_SPEC_current.md to match actual implementation; update guidelines if new patterns emerge; archive old specs to .agent/archive.

  • Use Case: Example involving multiple microservices and evolving APIs; maintain consistent docs with code.

Quick Start

Run a doc-sync to compare implementation with TECH_SPEC_current.md and apply updates.

Frequently Asked Questions about doc-maintainer

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

FAQPage Schema
How do I detect documentation drift between code and tech specs?

Documentation drift is detected by running a diff analysis that compares actual code implementations against existing TECH_SPEC_current.md files to identify divergences. The skill then applies sync actions to update the tech specs and match the current implementation.

How do I keep living docs in sync after post-implementation changes?

To keep living docs in sync after implementation, run a doc-sync process that reverse-syncs code to documentation. This updates TECH_SPEC_current.md with actual implementation details and archives outdated documents to .agent/archive.

What is the best way to maintain accurate tech specs across evolving microservices?

Maintaining accurate tech specs across evolving microservices requires ongoing documentation refreshes using drift detection. The skill handles diff analysis for codebases using TECH_SPEC_current.md, updating guidelines when new API patterns emerge.

How does archiving outdated technical specifications work during documentation refreshes?

Archiving outdated technical specifications works by moving superseded documents to the .agent/archive directory during the documentation refresh process. This ensures living docs remain current while preserving historical tech spec versions.

Can I update documentation guidelines when new code patterns emerge?

Yes, you can update documentation guidelines when new code patterns emerge as part of the sync actions. The skill identifies drift during diff analysis and applies updates to both TECH_SPEC_current.md and guidelines to reflect new implementation patterns.

Do I need a specific file format to run code-to-docs reverse syncing?

Yes, code-to-docs reverse syncing requires codebases that use TECH_SPEC_current.md files. The skill performs diff analysis specifically against this file format to detect drift and apply documentation updates.