manage-codebase-refresh

Refresh documentation entries for files changed in Git.

511|63|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/catlog22/Maestro-Flow --skill manage-codebase-refresh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: manage-codebase-refresh
Source: https://github.com/catlog22/Maestro-Flow/tree/main/.codex/skills/manage-codebase-refresh
Command: npx skills add https://github.com/catlog22/Maestro-Flow --skill manage-codebase-refresh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents documentation from becoming stale by incrementally refreshing codebase docs when source files change, removing manual tracking and reducing documentation drift.

Core Features & Use Cases

  • Detects changed files using git diff relative to a baseline derived from --since, state.json fields codebase_last_refreshed or codebase_last_rebuilt, or a 7-day fallback.
  • Maps changed files to documentation entries using .workflow/codebase/doc-index.json and refreshes only affected doc sections; the --deep flag forces a broader contextual rescan.
  • Updates doc-index.json timestamps and writes codebase_last_refreshed into state.json, emits a concise summary of changes, and surfaces error codes (E001, E002) and warnings (W001) for automation handling.
  • Use Case: After a feature merge or refactor, run this skill to automatically update the corresponding docs so documentation reflects the current codebase state.

Quick Start

Run the manage-codebase-refresh skill to incrementally update documentation for files changed since the last refresh.

Frequently Asked Questions about manage-codebase-refresh

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

FAQPage Schema
How do I automatically update documentation for recent git changes?

To automatically update documentation for recent git changes, you can run an incremental refresh process that detects changed files via git diff and rewrites their corresponding doc sections. It uses a doc-index.json mapping to update only the affected documentation entries.

What is incremental documentation refresh for a codebase?

Incremental documentation refresh is the process of updating only the doc entries affected by recent code changes rather than rescanning the entire codebase. It maps changed git files to a doc-index and rewrites just those specific documentation sections.

How do I prevent documentation drift after a feature merge or refactor?

To prevent documentation drift after a feature merge or refactor, run a codebase refresh to detect changed files and automatically rewrite the corresponding doc sections. This removes manual tracking and ensures docs reflect the current codebase state.

Do I need a specific file structure to refresh docs based on git diff?

Yes, you need a .workflow/codebase/doc-index.json file mapping source files to documentation entries, and a state.json file for the baseline. The refresh process uses these to detect git changes and update the correct documentation sections.

Can I force a deep rescan of documentation instead of an incremental update?

Yes, you can use the --deep flag to force a broader contextual rescan of documentation instead of a standard incremental update. This ensures wider coverage when simple file-level change detection might miss related contextual shifts.

How does the codebase refresh determine the baseline for detecting changed files?

The codebase refresh determines the baseline for detecting changed files using the --since flag, the codebase_last_refreshed or codebase_last_rebuilt timestamp in state.json, or a 7-day fallback default. It then runs git diff against that baseline.