Agent skill

pull-main

Switch to main branch and pull latest changes with prune. Use when the user wants to pull latest main, update main, or sync main with remote.

dyoshikawa1,265★ · +16/wk · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add dyoshikawa/rulesync --skill pull-main --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Path: .rulesync/skills/pull-main/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,285 · +20 this week
Language: TypeScript
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Pull Main Switch to the `main` branch and pull the latest changes from `origin/main` while pruning stale remote-tracking references. ## Step 1: Inspect Current State Check the current branch: ```bash git branch --show-current ``` If already on `main`, note it for the final report. ## Step 2: Switch to Main Switch to the `main` branch: ```bash git switch main ``` ## Step 3: Pull with Prune Pull the latest changes from `origin/main` with `--prune` to remove stale remote-tracking branches: ```bash git pull --prune ``` ## Step 4: Report Result Summarize the operation: - Whether a branch switch occurred - Number of commits pulled (fast-forward or merge) - Any stale remote-tracking branches that were pruned

What's inside
Steps it walks through
  1. Step 1: Inspect Current State
  2. Step 2: Switch to Main
  3. Step 3: Pull with Prune
  4. Step 4: Report Result
Commands it runs
git branch --show-current
git switch main
git pull --prune
More from rulesync
All skills →
About this skill
What does the pull-main skill do?

Switch to main branch and pull latest changes with prune. Use when the user wants to pull latest main, update main, or sync main with remote.

How do I install it?

Run `npx skills add dyoshikawa/rulesync --skill pull-main --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From dyoshikawa/rulesync, a repository with 1,285 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going