Skip to content
Back to skills

Pull

ASecurity

git fetch origin develop:develop --quiet CURRENT=$(git branch --show-current) if [[ "$CURRENT" == dev/* ]]; then git rebase develop --quiet || (git rebase --abort && git merge develop -m "Sync with develop") fi MEMORY_DIR=$(basename "$(jq -r '.memory_repo' egregore.json)" .git) if [ ! -L memory ]; then ln -s "../$MEMORY_DIR" memory fi MEMORY_BEFORE=$(git -C memory rev-parse HEAD 2>/dev/null) git -C memory pull origin main --quiet MEMORY_AFTER=$(git -C memory rev-parse HEAD 2>/dev/null) if [ "...

  • 280 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
data-aigobashgitapi

Works with

  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add egregore-labs/egregore --skill pull --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pull?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pull
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/egregore-labs-pull/badge)](https://www.skillsdirectory.com/skills/egregore-labs-pull)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
Pull latest for current repo and shared memory.

**Note:** `/activity` auto-syncs. Use `/pull` only when you need to sync without viewing activity.

## What to do

1. Sync the base branch with remote (develop for egregore hub, repo's base_branch for managed repos)
2. If on a `dev/*` working branch, rebase onto the base branch (fallback: merge)
3. Check memory symlink exists — if not, derive directory from `egregore.json` and create symlink
4. Pull memory repo via symlink

## Execution

```bash
# 1. Update local base branch ref without switching branches (safe for concurrent sessions)
# For egregore hub: always "develop"
# For managed repos: read base_branch from egregore.json repos[] (default "develop")
git fetch origin develop:develop --quiet

# 2. If on a working branch, rebase onto the base branch
CURRENT=$(git branch --show-current)
if [[ "$CURRENT" == dev/* ]]; then
  git rebase develop --quiet || (git rebase --abort && git merge develop -m "Sync with develop")
fi

# 3. Memory — derive directory from egregore.json, never hardcode
MEMORY_DIR=$(basename "$(jq -r '.memory_repo' egregore.json)" .git)
if [ ! -L memory ]; then
  ln -s "../$MEMORY_DIR" memory
fi

# 4. Pull memory and capture what arrived
MEMORY_BEFORE=$(git -C memory rev-parse HEAD 2>/dev/null)
git -C memory pull origin main --quiet
MEMORY_AFTER=$(git -C memory rev-parse HEAD 2>/dev/null)

# 5. Show what arrived in memory (new/changed files since last pull)
if [ "$MEMORY_BEFORE" != "$MEMORY_AFTER" ]; then
  MEMORY_FILES=$(git -C memory diff --name-only "$MEMORY_BEFORE" "$MEMORY_AFTER")
  MEMORY_COUNT=$(echo "$MEMORY_FILES" | wc -l | tr -d ' ')
fi
```

## Output

Show what arrived — don't leave the user wondering if things synced:

```
Pulling...
  develop        ↓ 3 commits → synced
  dev/oz/...     ✓ rebased onto develop
  memory         ↓ 2 commits — 4 files updated
                   handoffs/2026-02/12-renckorzay-giza-docs.md (new)
                   handoffs/index.md
                   artifacts/giza-architecture.md (new)
                   artifacts/giza-api-spec.md (new)
```

If memory is already up to date:
```
  memory         ✓ up to date
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.