name: "branch-docs-sync" description: "Synchronize project documentation with recent code changes, refactors, and feature implementations in the current branch." compatibility: "Requires a git repository with standard documentation structure (DEVNOTES, docs/site, README, etc.)" metadata: author: "openRender-bot" version: "1.0.0"
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.
Skills similaires
Generateur de Documentation API
Documentation
Genere automatiquement de la documentation API OpenAPI/Swagger.
Claude CodeCursorCopilotbeginner
340
98
1,500
Rédacteur Technique
Documentation
Rédige de la documentation technique claire selon les meilleurs style guides.
claudeCursorWindsurf+1intermediate
167
48
676
Chargeur de documentation
Documentation
Charge la documentation d'un framework depuis son site web dans des fichiers Markdown locaux. Supporte Symfony, API Platform, Meilisearch, atournayre-framework et Claude Code.
Claude Codeintermediate 512
0
0
13