Docs update

From jellydn/my-ai-tools · View interactive version

Docs update is an AI agent skill from the GitHub repository jellydn/my-ai-tools. Update docs when code changes — reviews commits and syncs user-facing documentation

How to use this skill

Skill file

Documentation Bot

Automatically review code changes and update user-facing documentation to keep it synchronized with the codebase. Works across documentation platforms (Mintlify, Docusaurus, GitBook, Fumadocs, etc.) and supports both monorepo and multi-repo setups.

Workflow

1. Identify Significant Code Changes

Determine which commits need documentation updates:

Filter for significant changes:

Skip documentation for:

Be conservative: quality over quantity. When in doubt about significance, skip the update.

2. Analyze Documentation Context

Locate documentation:

Identify documentation platform:

Determine the platform by examining configuration files and directory structure (e.g., Mintlify, Docusaurus, GitBook, Fumadocs, or generic markdown).

Understand documentation style:

Read several existing documentation files to identify tone, voice, structure, code example patterns, terminology, and formatting conventions. Check for style guides or contribution documentation.

3. Determine Documentation Updates

Map code changes to documentation needs (new content, modifications, or additions to existing content).

Guidelines:

4. Generate Documentation Changes

Match existing style:

5. Execute or Report

Testing mode (when user asks to "see what would change"):

Output a text summary describing:

Execution mode (when running as automation):

  1. Create a descriptive branch name (e.g., docs/auto-update-YYYYMMDD)
  1. Make documentation changes to appropriate files
  1. Push branch and create PR with description linking to relevant commits:

Multi-Repository Setup

When source code and documentation are in separate repositories, identify changes in the source repo, then switch to the docs repo and follow the workflow above. Reference source commits in the PR description.

Edge Cases

Key Principles

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.