Agent skill

vc-sync

Syncs local repository with remote. Use when syncing repo, pulling latest, refreshing branches, updating from remote, or cleaning up after merging PRs. Switches to main, pulls latest, and prunes merged branches.

Stars 10
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/philoserf/claude-code-setup/tree/main/skills/vc-sync

SKILL.md

Purpose

Sync the local repository to a clean, up-to-date state on the main branch.

Prerequisites

  • gitup (git-repo-updater) — batch fetch + merge
  • git sweep — delete local branches whose remote tracking branches are merged

Both are installed via the user's .Brewfile.

Process

  1. Guard — Check for uncommitted changes. If dirty, present options: stash, commit, or abort. Do not proceed without user confirmation.
  2. Switch to maingit checkout main
  3. Update from remotegitup . (fetch + merge)
  4. Clean merged branchesgit sweep

Commands

bash
git stash list && git status --short

If the working tree is dirty, offer to stash before proceeding:

bash
git stash push --include-untracked -m "WIP: stashing before vc-sync"

Do not proceed until the user confirms.

bash
git checkout main && gitup . && git sweep

Failure Modes

  • Dirty working tree — Guard step warns before proceeding. Commit or stash changes first.
  • Merge conflict during gitup — Resolve the conflict manually, then re-run.
  • git sweep skips branches — Branches without merged remote tracking branches are retained. This is expected.

Verification

After running, confirm the sync succeeded:

bash
git status && git branch

Expected output:

text
On branch main
Your branch is up to date with 'origin/main'.

nothing to commit, working tree clean
* main

After sync (if stashed)

If changes were stashed from a feature branch, remind the user:

bash
git checkout <original-branch> && git stash pop

Related

  • vc-ship — The complement: ships changes from a feature branch via atomic commits and PR creation.

Expand your agent's capabilities with these related and highly-rated skills.

philoserf/claude-code-setup

pre-release

Validates a project is ready to tag and ship. Use when tagging a release, cutting a version, shipping a package, or asking "are we ready to release?" Checks repo hygiene, CI status, docs, version sync, and build verification. Optimized for Obsidian plugins with fallback detection for other project types.

10 0
Explore
philoserf/claude-code-setup

local-issues

Reviews a codebase for bugs, design issues, and code cleanliness problems with specific file paths and line numbers. Use when auditing code quality, finding bugs, doing a code review, finding problems, or reviewing a project for issues. Creates issue files in `.issues/` directory.

10 0
Explore
philoserf/claude-code-setup

skill-improve

Generates prioritized improvement recommendations for Claude Code skills. Use when improving skills, enhancing customizations, or wanting actionable feedback on how to make a skill better. Provides impact/effort prioritization with specific fix suggestions.

10 0
Explore
philoserf/claude-code-setup

release

Executes the final release workflow for Obsidian plugins after pre-release checks pass. Use when tagging a release, publishing a version, or shipping an Obsidian plugin. Bumps version via bun run script, creates git tag, pushes to trigger GitHub Actions, and updates GitHub release notes from CHANGELOG.md.

10 0
Explore
philoserf/claude-code-setup

skill-quality

Scores Claude Code skills (1-5) across 6 weighted quality dimensions aligned with official Anthropic docs. Use when evaluating skill quality, rating skills, scoring customizations, comparing skill effectiveness, or checking if a skill follows best practices. Produces per-dimension scores with evidence, weighted totals, quality tier classification, and actionable improvement recommendations.

10 0
Explore
philoserf/claude-code-setup

obsidian-cli

Interacts with Obsidian vaults using the Obsidian CLI to read, create, and manage notes, tasks, properties, tags, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, add to daily note, find notes about a topic, check tasks, append to a note, query the vault, list tags, list files, manage bookmarks, check sync status, view file history, use templates, query bases, run QuickAdd, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.

10 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results