branch-docs-sync
Maintains documentation consistency by automatically identifying and updating docs based on git commits.
Install
mkdir -p .claude/skills/branch-docs-sync && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11995" && unzip -o skill.zip -d .claude/skills/branch-docs-sync && rm skill.zipInstalls to .claude/skills/branch-docs-sync
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Synchronize project documentation with recent code changes, refactors, and feature implementations in the current branch.Key capabilities
- →Identify architectural refactors, new features, and breaking changes from git commits
- →Update 'Project Status' and 'Recent Major Refactors' in `DEVNOTES.md`
- →Update specific detail files like `OSHADER_UPDATES.md` and `BINDINGS_GUIDE.md`
- →Refresh `README.md`, `INSTALL_ARTIFACTS.md`, `NEWS.md`, and `ChangeLog.md`
How it works
The skill analyzes recent git commits to identify changes, then applies surgical updates to developer notes, site documentation, distribution files, and manual pages, preserving case and using targeted replacements.
Inputs & outputs
When to use branch-docs-sync
- →Updating docs after refactoring
- →Documenting new features
- →Synchronizing technical notes
About this skill
Objective
Update and maintain documentation consistency by analyzing recent git commits and applying surgical updates across developer notes, user-facing site content, and system manual pages.
Workflow
1. Research & Analysis
- Identify Range: Determine the set of commits to analyze. If not specified, analyze all commits unique to the current feature branch.
- Extract Changes: Use
git log -n 10andgit show <sha>for key commits to identify:- Architectural Refactors: Renames of subsystems, directories, or core libraries.
- New Features: Added RIB statements, new shaders, or expanded language bindings.
- Breaking Changes: Changed environment variables, tool names, or API signatures.
- Fixed Bugs: Resolved issues that require updating the status in
BUGS.mdorDEVNOTES.md.
2. Update Developer Notes (DEVNOTES.md & DEVNOTES_DETAILS/**)
- Project Status: Update the "Project Status" table in the main
DEVNOTES.md. - Major Refactors: Add a bullet point to the "Recent Major Refactors" section summarizing systemic changes.
- Detail Files:
- Update
OSHADER_UPDATES.mdfor compiler or shading language changes. - Update
BINDINGS_GUIDE.mdfor Python/Lua/C++ interface changes. - Update
FRAMEBUFFER_GUIDE.mdfor display driver or IPC changes. - Create new detail files (e.g.,
RIB_GUIDE.md) for significant new subsystems.
- Update
3. Update Site Documentation (docs/site/content/**)
- Branding & Consistency: Perform batch updates for project name (e.g., "Pixie" -> "openRender") or environment variables (e.g.,
PIXIEHOME->ORENDERHOME). - URL Routing: Ensure internal links and file names match the new branding or tool names.
- Tooling References: Update command-line examples to reflect tool renames (e.g.,
sdrinfo->rsloinfo).
4. Update Distribution & Release Files
- README.md: Refresh the directory structure overview and installation requirements.
- INSTALL_ARTIFACTS.md: Update the list of installed binaries and libraries.
- NEWS.md & ChangeLog.md: Add dated entries summarizing the new capabilities and refactors.
- Build Templates: Update Homebrew (
.rb.template) or RPM (.spec) files to ensure they package the new artifacts.
5. Update Manual Pages (man/**)
- Rename: If a tool has been renamed, rename the corresponding
.1file. - Content: Update the usage synopsis and descriptions to match the current implementation.
Key Rules
- Preserve Case: When performing batch renames (e.g., "pixie" -> "openrender"), respect the casing of the original string.
- Surgical Edits: Use targeted
replacecalls with enough context to avoid ambiguous matches. - Audit: After updates, run a
grep_searchfor the old terms (e.g., "sdr", "Pixie") to ensure no stale references remain in active documentation. - Confirmation: Present a summary of all documentation changes to the user for final approval.
Verification
- Validate that all internal markdown links are functional.
- Ensure the
ChangeLog.mdfollows the project's established format. - Verify that the
INSTALL_ARTIFACTS.mdaccurately reflects the currentCMakeLists.txtconfiguration.
When not to use it
- →When the project is not a git repository with a standard documentation structure
- →When the user wants to add new top-level directories or import another pack's code
- →When the user wants to perform batch renames without preserving case
Prerequisites
Limitations
- →Requires a git repository with standard documentation structure
- →Preserves case when performing batch renames
- →Uses surgical edits to avoid ambiguous matches
How it compares
This skill surgically updates various documentation types based on recent git commits, ensuring consistency across developer notes, user-facing content, and system manuals, unlike manual documentation updates.
Compared to similar skills
branch-docs-sync side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| branch-docs-sync (this skill) | 0 | 2mo | No flags | Intermediate |
| prepare-changelog | 6 | 7mo | Review | Beginner |
| workthrough | 10 | 8mo | Review | Beginner |
| generate-release-notes | 7 | 8mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
prepare-changelog
nextest-rs
Guidelines for preparing changelog entries for nextest releases following Keep a Changelog format
workthrough
bear2u
Automatically document all development work and code modifications in a structured workthrough format. Use this skill after completing any development task, bug fix, feature implementation, or code refactoring to create comprehensive documentation.
generate-release-notes
teambit
Generate comprehensive release notes for Bit from git commits and pull requests. Use when creating release notes, building changelogs, documenting version releases, or preparing a new Bit release.
changelog-generator
ComposioHQ
Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.
release-note-generation
microsoft
Toolkit for generating PowerToys release notes from GitHub milestone PRs or commit ranges. Use when asked to create release notes, summarize milestone PRs, generate changelog, prepare release documentation, request Copilot reviews for PRs, update README for a new release, manage PR milestones, or collect PRs between commits/tags. Supports PR collection by milestone or commit range, milestone assignment, grouping by label, summarization with external contributor attribution, and README version bumping.
doc-check
coder
Checks if code changes require documentation updates