datro-repo-autosync-pr
CommunityKeep datro repo auto-synced and PR-ready
Authorunclehowell
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the operational burden of keeping a server-hosted datro repository synchronized with GitHub and surfacing local work as a human-reviewable pull request so changes are not lost or forgotten.
Core Features & Use Cases
- Automatic Upstream Sync: Periodically fetches origin, detects the upstream canonical branch, and rebases the local work branch when GitHub is ahead.
- PR Automation When Ahead: Runs an existing pr_automation.sh in update mode to create or update a PR when the server's work branch has commits ahead of upstream and stores the resulting PR URL for notification.
- Systemd-based, Reboot-Safe Scheduling: Uses a oneshot service plus a Persistent timer (recommended every 5 minutes) with recommended hardening and controlled read/write paths.
- Operational Safeguards: Includes throttle guidance to avoid PR storms, permission fixes for state directories, and mitigations for systemd SIGPIPE issues when feeding interactive scripts.
- Use Case: Run on a production or staging server to ensure autodeployed UI changes in /home/ubuntu/datro are proposed via PRs for human review instead of being lost or merged incorrectly.
Quick Start
Enable and start the datro-auto-sync.timer on the server and confirm that a PR URL appears in /var/lib/datro-auto-sync/pr_latest_url.txt when the local branch is ahead.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: datro-repo-autosync-pr Download link: https://github.com/unclehowell/unclehowell/archive/main.zip#datro-repo-autosync-pr Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.