Local Sync — Git skill for Claude Code
Full local development sync after git pull.
How to install Local Sync
Installs to ~/.claude/commands/bybren-llc-safe-agentic-workflow-local-sync.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/bybren-llc/safe-agentic-workflow/HEAD/.claude/commands/local-sync.md -o ~/.claude/commands/bybren-llc-safe-agentic-workflow-local-sync.md Restart Claude Code, or start a new session, for it to be picked up.
What Local Sync does
description: Full local development sync after git pull allowed-tools: [Read, Write, Edit, Bash, Grep, Glob]
**📋 TEMPLATE**: This command is a template. See "Customization Guide" below to adapt for your infrastructure.
Perform complete local development environment sync after pulling from dev branch. This ensures dependencies, database, and validation are all up-to-date.
Workflow
1. Git Branch Cleanup (Best Practice)
**Check current branch and switch to dev if needed:**
`
Alternatives in Git
- Epic Sync — Sync epic issue bodies, labels, and local coordination snapshots from GitHub 243.5k ★
- Git Worktree Docs Issue: Dependency Installation — GitHub — Community feedback on official docs with full worktree lifecycle walkthrough 81.1k ★
- Worktree Parallel Init — Create multiple git worktrees for parallel development: $ARGUMENTS 23.4k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Clean After Merged
Switch to the repo's main branch, pull, and delete the just-merged local branch.
Daedalai Sync Claude Md
Reconcile the project's local CLAUDE.md with its canonical CLAUDE_MD document in DaedalAI — pull when remote i
Super Developer
A Claude Code plugin that orchestrates the full development lifecycle — divergent ideation, structured plannin
Cclayer
Sync Claude Code config across machines: CLAUDE.md, skills, hooks, settings.json, plugins and MCP servers. Lay
Wrap Up
Full session closeout in one pass - reflect, then notes, then the git sync ritual, ending with the work pushed
Branch Cleanup
Clean up merged, stale, and orphaned git branches. Protects main/develop/release/ automatically. Supports --dr
Related Agents
Wiki Sync
Use this agent when syncing the vault git repository during automated maintenance cycles. Typical triggers inc
Git Ops
Git operations agent for committing, pushing, and opening PRs. Use when asked to commit changes, push to remot
Pull Analyst
Post-pull advisory analyst subagent. Reads the new-commits range after a successful git pull --rebase and prod