Agent skill

Sync Before Work

by aiskillstore in aiskillstore/marketplace

Safely fetch and incorporate the latest remote default branch before an AI agent starts changing code.

No licenceAuto-check passedDevelopment

Install Sync Before Work

skills CLI
$ npx skills add aiskillstore/marketplace --skill sync-before-work -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace sync-before-work --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/vaibhavarora14/sync-before-work .claude/skills/sync-before-work && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sync-before-work
GitHub stars
430
Token cost
~753 tokens
SKILL.md length
302 words
Files
13 (incl. scripts, references, assets)
Skills in repo
1,085
Repo updated
First seen
Licence
None found

At a glance

Safely fetch and incorporate the latest remote default branch before an AI agent starts changing code.

  • Works in 5 steps: Resolve this skill's directory from the… → Run → Continue only when the status is one of → …
  • Tasks that involve Git worktrees
  • SKILL.md covers Start-of-task gate, Strategy rules, Safety rules and Additional checks
  • Runs JavaScript scripts from its folder; calls node

What it does

Sync Before Work is an agent skill from aiskillstore/marketplace. Safely fetch and incorporate the latest remote default branch before an AI agent starts changing code. Use before the first edit in every code-changing task, when entering an existing worktree or feature branch, when a branch may be behind main or master, and before substantial work resumes after a pause. Detect dirty trees, detached HEADs, published branches, linked worktrees, and conflicts; default to merge for shared branches and never push, reset, stash, switch branches, or guess conflict resolutions.

Its SKILL.md is about 750 tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `assets/instructions/clinerules-sync-before-work.md` and `assets/instructions/windsurf-sync-before-work.md`).

It sits in Development, covering Git worktrees. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified.

When your agent uses it

  • Tasks that involve Git worktrees

Example prompts

  • “/sync-before-work”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Resolve this skill's directory from the loaded SKILL.md path.
  2. Run
  3. Continue only when the status is one of
  4. For every other status, stop the code-changing task and report the message. Do not work around a safety refusal.
  5. Summarize any merge or fast-forward before beginning implementation.

What it can do on your machine

Read from SKILL.md and the folder at commit 4ac52da. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sync Before Work loads about 753 tokens when it runs, and up to ~1.8k if it reads all its reference files. Until then it costs about 132 tokens; SKILL.md has 302 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~132
When it runs · the whole SKILL.md, loaded when a task matches
~753
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.8k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 302 words (~753 tokens).

“Start every code-changing task from the latest remote default branch without risking existing work.”

— opening of SKILL.md by aiskillstore
name
sync-before-work

Read the full SKILL.md on GitHub

Files

SKILL.md and 12 other files (scripts, references, assets) in skills/vaibhavarora14/sync-before-work of aiskillstore/marketplace.

  • SKILL.md
  • agents/openai.yaml
  • assets/instructions/AGENTS.md.snippet
  • assets/instructions/CLAUDE.md.snippet
  • assets/instructions/GEMINI.md.snippet
  • assets/instructions/clinerules-sync-before-work.md
  • assets/instructions/copilot-instructions.md.snippet
  • assets/instructions/cursor-sync-before-work.mdc
  • assets/instructions/windsurf-sync-before-work.md
  • references/CLI.md
  • references/SAFETY-CONTRACT.md
  • scripts/sync-before-work.mjs
  • skill-report.json

Open the folder on GitHubat commit 4ac52da

Compare with similar skills

Sync Before Work next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sync Before Work compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sync Before Work this skillaiskillstore/marketplace430—~753Automated safety check: PassNone
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Migrate Core Code to Submodulestinyhumansai/openhuman41k—~2.6kAutomated safety check: PassGPL-3.0
Finishing A Development Branchfarm-fe/farm5.6k33 repos~1.8kAutomated safety check: PassMIT
Git Worktree Cleanuplobehub/lobehub83k—~2.8kAutomated safety check: PassCustom licence
Keep Codex Fastvibeforge1111/keep-codex-fast1.6k—~3.1kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Migrate Core Code to Submodules

    tinyhumansai/openhuman

    Plans and carries out moving non-host-specific code and its tests from the OpenHuman core into vendored tiny submodule libraries, then releases the submodule and re-pins the host.

    41k GitHub stars~2.6k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • A skill your agent uses when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for…

    5.6k GitHub starsUsed in 33 repos~1.8k tokens
    DevelopmentAuto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Keep Codex Fast

    vibeforge1111/keep-codex-fast

    A skill your agent uses when Codex feels slow or bloated, when local sessions/logs/worktrees/config have grown over time, or when a user wants safe maintenance for Codex Desktop/CLI state.

    1.6k GitHub stars~3.1k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Pre-Release PR Triage

    jamiepine/voicebox

    Sorts a backlog of open pull requests into must-merge, candidate, superseded and deferred, writes a triage doc and works the merge loop before a release.

    57k GitHub stars~3.1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from aiskillstore/marketplace

All 1,085 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    430 GitHub starsUsed in 2 repos~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    430 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    430 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    430 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    430 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Investigating Codebases

    aiskillstore/marketplace

    Automatically activated when user asks how something works, wants to understand unfamiliar code, needs to explore a new codebase, or asks questions like "where is X implemented?", "how does Y…

    430 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check: notes

Categories

Questions about Sync Before Work

What does Sync Before Work do?

Safely fetch and incorporate the latest remote default branch before an AI agent starts changing code. Sync Before Work is an agent skill from aiskillstore/marketplace. Safely fetch and incorporate the latest remote default branch before an AI agent starts changing code.

When should I use Sync Before Work?

Sync Before Work fits situations like: tasks that involve Git worktrees.

How do I install Sync Before Work in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill sync-before-work -a claude-code`. Or copy the skill folder (skills/vaibhavarora14/sync-before-work in aiskillstore/marketplace) into .claude/skills/sync-before-work in your project. Claude Code loads it when a task matches its description.

How do I install Sync Before Work in Codex?

Run `npx skills add aiskillstore/marketplace --skill sync-before-work -a codex`. Or copy the skill folder (skills/vaibhavarora14/sync-before-work in aiskillstore/marketplace) into .agents/skills/sync-before-work in your project. Codex loads it when a task matches its description.

Can I use Sync Before Work in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill sync-before-work -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sync-before-work, .gemini/skills/sync-before-work, .github/skills/sync-before-work and .opencode/skills/sync-before-work in your project.

What does Sync Before Work need to run?

Going by SKILL.md and its folder, Sync Before Work needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node). Our summary lists: Node.js.

Does Sync Before Work access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sync Before Work safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Sync Before Work use?

No licence was found for Sync Before Work or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Sync Before Work use?

About 753 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1k tokens, read only when the agent opens those files.

What are the alternatives to Sync Before Work?

Skills that share tags, products or a category with Sync Before Work: Finishing a Development Branch (obra/superpowers, 296k stars), Migrate Core Code to Submodules (tinyhumansai/openhuman, 41k stars), Finishing A Development Branch (farm-fe/farm, 5.6k stars) and Git Worktree Cleanup (lobehub/lobehub, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sync Before Work?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 430 GitHub stars. The repository holds 1,085 skills in this directory. The repository was last updated on October 7, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.