Files
skills/skills/pulling-before-work
vitya 53fc942c21 feat(skill): set repo-local pull.rebase policy
pulling-before-work 1.0.1 -> 1.1.0: step 1b ensures repo-local
pull.rebase=true + pull.ff=only (set-if-absent) so manual pulls never
create merge commits, matching snolla baseline. Skill's own pull stays
--ff-only (aborts on divergence, never leaves repo mid-rebase).
2026-08-20 09:11:47 +03:00
..

pulling-before-work

Policy skill that pulls the current branch from origin once at session start and on explicit re-sync requests. Designed to remove the "edited on stale base" footgun without trampling dirty work-trees or auto-merging.

When it triggers

  • Session start — when AGENTS.md contains the line pull remote before work (added by project-bootstrap v2.0.0+).
  • In-chat — when the user says sync, resync, pull, обнови репо, git pull please, or close variants.

Stays silent in non-git folders. Prints one informational line and exits in: no origin remote, no upstream tracking, dirty work-tree, detached HEAD.

What it does

git pull --ff-only against the configured upstream — never auto-merges, never auto-rebases, never stashes, never commits, never pushes. On divergence it prints a warning with manual-resolution hints and exits.

Prerequisites

None. The skill is a no-op outside git repos and folders without an origin remote, so it's safe to leave activated everywhere.

  • project-bootstrap (v2.0.0+) — adds the trigger line to new and existing projects' AGENTS.md.
  • .wiki/concepts/pulling-before-work-design.md (in projects bootstrapped from this repo: this design lives in skills) — full design rationale.