/active-skills:git-syncfrom active-skills
Use this skill when the user asks to sync, update, pull, push, fetch, merge, or rebase the codebase with the remote GitHub repository, or when they run the slash command /git-sync with optional parameters (e.g., "/git-sync", "/git-sync prefer remote", "/git-sync prefer local"). This skill handles git merge or rebase operations safely, ensuring local changes are preserved and prompting the user only if there are irreconcilable merge conflicts, or automatically resolving conflicts if a preference (local/remote) is specified. Make sure to use this skill whenever the user mentions git, remote, syncing, pushing, pulling, or keeping the workspace up to date.
Ships in active-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Synchronize the local repository state with the remote tracking branch safely and robustly.
Core Principles:
--ours/--theirs) into standard local and remote choices so the agent and user can make safe decisions.prefer remote or prefer local), prompting the user ONLY for interactive conflicts.Follow these steps exactly to perform a Git synchronization.
Run the helper script's status command to assess the current repository state:
active-skills/git-sync/scripts/git_sync.py status
Check the JSON output:
is_git is false, notify the user that git is not initialized and stop.upstream is null, look at branch. If there is an origin branch with the same name, the script will automatically set upstream. If it cannot, prompt the user to set upstream.is_clean is false. The script will automatically stash local changes on sync./git-sync prefer remote or /git-sync prefer theirs, use --prefer remote./git-sync prefer local or /git-sync prefer ours, use --prefer local.--prefer interactive.--mode rebase to maintain a clean linear git history.Execute the sync command with the configured flags:
active-skills/git-sync/scripts/git_sync.py sync --mode <rebase|merge> --prefer <local|remote|interactive>
If the JSON response returns "status": "success":
"stashed": true, notify the user that their uncommitted changes were safely stashed and restored.If the JSON response returns "status": "conflict":
--prefer was local or remote: The script attempted auto-resolution but failed to complete. Inspect the error and prompt the user.--prefer was interactive:
conflicted_files and conflicts fields in the JSON response.active-skills/git-sync/scripts/git_sync.py resolve --file <filepath> --choice <local|remote>
{"0": "local", "1": "remote"}) and run:
active-skills/git-sync/scripts/git_sync.py resolve --file <filepath> --hunk-choices '<json_choices>'
active-skills/git-sync/scripts/git_sync.py continue
active-skills/git-sync/scripts/git_sync.py abort
| Excuse | Reality |
|---|---|
| "I can just force-push to align local and remote" | Force-pushing can overwrite other developers' work. Never force-push during sync. |
| "I don't need to stash first because git will tell me if there's a conflict" | Uncommitted changes can block rebase/merge entirely or get mixed with conflict markers, leading to data loss. |
| "I'll just let the user edit the file themselves" | Proactively parse conflict files using the helper script and present a clean, structured choice (Local/Remote) to minimize friction. |
| "The branch has no remote tracking branch, so I'll create one" | Always confirm if the user wants to set an upstream tracking branch first. |
| "During rebase, --ours is local" | FALSE. During rebase, --ours is the remote (upstream) commit and --theirs is local! Always use the helper script to shield yourself and the user from this quirk. |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mlarkin00/plugins --plugin active-skills17 skills in this plugin
/agent-eval-designDesign an evaluation strategy for a GCP AI agent before writing any eval code — choose metrics across outcome, trajectory, operational, and safety dimensions; pick scorer types (code-based rules, LLM-as-judge, human review); and plan a golden dataset with adversarial coverage. Use when the user asks how to evaluate an ADK, Vertex AI, Agent Engine, or Gemini Enterprise agent, what metrics to use, how to build a golden or test dataset for an agent, or wants an eval plan or eval strategy for an AI agent. Not for evaluating Claude Code skills (use skill-creator-enhanced), writing agent eval code (use agent-eval-implement), or executing agent evals (use agent-eval-run)./agent-eval-implementBuild the runnable eval assets for an AI agent on GCP — ADK evalset files, pytest eval wiring, Gen AI evaluation service code for trajectory and final-response metrics, custom LLM-as-judge rubrics and scorers, and ground-truth eval datasets in Cloud Storage or BigQuery. Use when the user wants to write, build, create, or add agent evals, an evalset or eval test file, a custom judge or scorer for agent output, or an eval/ground-truth dataset — for an ADK, Vertex AI, Agent Engine, Gemini Enterprise, LangGraph, or LangChain agent. Works from an eval plan produced by agent-eval-design, or standalone when the user names just one asset. Not for choosing which metrics to measure (use agent-eval-design), executing eval runs or CI/CD gating (use agent-eval-run), or creating Claude Code skills (use skill-creator-enhanced)./agent-eval-runExecute agent evals and act on the results on GCP — run adk eval or pytest eval suites, interpret per-case and aggregate scores, compare a candidate agent against a baseline with statistical quality gates, debug failed trajectories down to the first bad step, wire evals into CI/CD, and extend to production with online evals and observability. Use when the user wants to run or re-run agent evals, see why an agent eval failed, check whether an agent version regressed, add agent evals to a CI/CD or Cloud Build pipeline, gate a deployment on eval results, fix flaky or noisy eval gates, or monitor a deployed agent's quality. Covers the non-determinism discipline these runs need: one run proves nothing, and a score that moved needs a statistical test before it means anything. Not for choosing metrics (use agent-eval-design), authoring evalsets or eval code (use agent-eval-implement), or measuring Claude Code skills (use skill-creator-enhanced)./close-sessionUse when a work session is ending — updates project documentation, commits, and pushes safely to GitHub. Triggers on "close session", "wrap up", "end session", "done for now", "save my work", "let's commit everything and push", or finishing a block of work with no further tasks planned. Make sure to use this skill whenever a session of real work is ending, even if the user only says they are done. For a bare pull, push, or rebase against the remote with no session to close, use git-sync instead./cloud-build-triggersUse when creating, updating, or managing Google Cloud Build triggers. This skill handles 1st Gen and 2nd Gen GitHub connections, branch patterns, and mandatory IAM validation./documentation-lookupUse up-to-date library and framework docs via Context7 MCP instead of training data. Activates for setup questions, API references, code examples, or when the user names a framework (e.g. React, Next.js, Prisma).