doc-invalidation-checker
Reviews recent git commits and uses an AI subagent to detect and report which documentation files have become outdated or incorrect due to code changes.
The pinned SKILL.md, exactly as the benchmark and your agent receive it. Nothing here is executable.
Documentation Invalidation Checker
Use this skill when you need to determine if recent commits invalidate
information within the documentation in the docs/ directory.
Steps to Perform Analysis
-
Retrieve Recent Commits: Execute the
get_recent_commits.pyscript to fetch the recent commits with their diffs:agents/scripts/get_recent_commits.py 5 -
Identify Relevant Documentation: Look at the modified files and descriptions in the commit diff. Identify which files in
docs/discuss the modified modules or concepts. -
Invoke the Subagent for AI Analysis: Use the
invoke_subagenttool to call a subagent with thepromodel tier. Provide the subagent with:- The commit message and diff.
- The content of the relevant file(s) from
docs/.
-
Subagent Analysis Prompt: The subagent should receive a prompt like:
Compare this commit diff with the documentation file
[doc_path]. Does this commit make any statement, step, or configuration in the documentation obsolete, incorrect, or deprecated? If yes, specify exactly what section is invalidated and provide recommended text edits. -
Document and Present: Collate the invalidation findings into a walkthrough report for update.
Tools Used
- get_recent_commits.py: Retrieves recent commits and their diffs.