agentleFS
warpdotdevwarpdotdev/oz-skills/.agents/skills/docs-update/SKILL.md

docs-update

Skill825 starsChanged 7 months agoMITView on GitHub

Update user-facing documentation when code changes. Use when asked to update docs, review docs, handle documentation changes, run scheduled documentation tasks, or analyze recent commits for documentation needs.

17 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 13 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check for documentation directory in current repo (monorepo pattern)

    line 41
  2. Distinctive:

    Look for separate documentation repository in environment

    line 42
  3. Distinctive:

    Read several existing documentation files to identify tone, voice, structure, code example patterns, terminology, and formatting …

    line 48
  4. Distinctive:

    Keep content focused and avoid generic advice

    line 58
  5. Distinctive:

    Use the same tone, voice, and formality level identified in step 2

    line 63
  6. Distinctive:

    Follow the same heading structure and hierarchy

    line 64
  7. Distinctive:

    Follow platform conventions (frontmatter, special syntax, custom components)

    line 67
  8. Very specific:

    Create a descriptive branch name (e.g., docs/auto-update-YYYYMMDD)

    line 81
  9. Distinctive:

    Commit with descriptive message listing the changes

    line 85
  10. Distinctive:

    When source code and documentation are in separate repositories, identify changes in the source repo, then switch to the docs repo and …

    line 95
  11. Distinctive:

    If no significant changes found, report that no documentation updates are needed

    line 99
  12. Distinctive:

    If documentation platform is unclear, default to standard markdown syntax

    line 100
  13. Distinctive:

    If conflicting with existing content, preserve existing information and note conflicts for human review

    line 101
  14. Distinctive:

    Contextual: Consider the full documentation landscape, not just individual files

    line 107

“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  • Find the default branch
  • Get recent commits (default: last 24 hours, or accept user-specified timeframe)
  • Examine each commit's changes to understand what was modified

Filter for significant changes:

  • New features or capabilities
  • API changes (new endpoints, parameters, return values)
  • Breaking changes
  • New configuration options
  • New CLI commands or flags
  • Changes to user-facing behavior

Skip documentation for:

  • Internal refactoring
  • Test-only changes
  • Minor bug fixes
  • Typo corrections in code
  • Performance optimizations without user impact

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

2. Analyze Documentation Context

Locate documentation:

  • Check for documentation directory in current repo (monorepo pattern)
  • Look for separate documentation repository in environment

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:

  • Prioritize user-facing changes over implementation details
  • Match existing documentation verbosity (some docs are comprehensive, others minimal)
  • Preserve existing accurate content—be strictly additive when possible
  • Keep content focused and avoid generic advice

4. Generate Documentation Changes

Match existing style:

  • Use the same tone, voice, and formality level identified in step 2
  • Follow the same heading structure and hierarchy
  • Use consistent terminology
  • Match code block formatting (language tags, highlighting)
  • Follow platform conventions (frontmatter, special syntax, custom components)

5. Execute or Report

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

Output a text summary describing:

  • What changes were detected in commits
  • Which documentation files would be modified
  • What content would be added or changed
  • Rationale for why these updates are needed

Execution mode (when running as automation):

  1. Create a descriptive branch name (e.g., docs/auto-update-YYYYMMDD)
  2. Make documentation changes to appropriate files
  3. Commit with descriptive message listing the changes
    • Include co-author line: Co-Authored-By: Warp <agent@warp.dev>
  4. Push branch and create PR with description linking to relevant commits:
    • List which code changes triggered which documentation updates
    • Include commit references or URLs from source repository
    • Request review for accuracy and completeness

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

  • If no significant changes found, report that no documentation updates are needed
  • If documentation platform is unclear, default to standard markdown syntax
  • If conflicting with existing content, preserve existing information and note conflicts for human review

Key Principles

  • Conservative: Better to skip than clutter documentation
  • Consistent: Match existing style, tone, and structure exactly
  • Contextual: Consider the full documentation landscape, not just individual files
  • Clear: Explain significance of changes and rationale for updates
  • Practical: Focus on helping users accomplish tasks, not describing implementation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.