Docs sync

From AMDResearch/omniprobe · View interactive version

Docs sync is an AI agent skill from the GitHub repository AMDResearch/omniprobe. Synchronize documentation indices and cross-references. Use after adding, renaming, moving, or deleting documentation files. Finds orphaned docs, stale links, and broken cross-references, then fixes them and reports changes.

How to use this skill

Skill file

docs-sync

Purpose

Keep documentation indices, cross-reference links, and table-of-contents files consistent after docs are added, renamed, moved, or deleted. Prevent stale links and orphaned pages.

Required Reads

Procedure

  1. List all markdown files under docs/ recursively.
  2. Read each existing index or table-of-contents file in the docs tree.
  3. Compare the file list against index entries. Identify:
  1. For each orphaned doc, add an entry to the appropriate index with the file path and a one-line summary derived from the document's first heading.
  2. For each stale link, either update the link to the new location or remove the entry and flag it in the output.
  3. For broken cross-references inside documents, fix the link target. If the target cannot be determined, insert a <!-- TODO: fix broken link --> comment and list it in the output.
  4. If docs/overview.md exists, verify its section list matches the current doc tree structure. Update if needed.
  5. Write a brief sync report to the user listing changes made and any items needing manual review.

Output

Completion Criteria

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.