8000 chore: add the kagan-fork-sync agent skill by aorumbayev · Pull Request #107 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

chore: add the kagan-fork-sync agent skill - #107

Merged
aorumbayev merged 2 commits into
mainfrom
chore/fork-sync-skill
Nov 9, 2026
Merged

aorumbayev merged 2 commits into
mainfrom
chore/fork-sync-skill

Conversation

@aorumbayev
@aorumbayev aorumbayev commented Nov 9, 2026 •
Copy link
Copy Markdown
Member

Adds an agent skill that keeps kagan's forked dependencies close to upstream. Ask any agent working in kagan to "sync kagan's forks with upstream".

What it does:

  • Finds every kagan-sh fork that Cargo.toml pins by commit: gpui-kit, gpui-fast and wry today.
  • Merges the latest upstream into a new branch that starts at kagan's current pin. It doesn't use the fork's main branch, because kagan isn't pinned there.
  • Pushes that branch, re-pins kagan, updates Cargo.lock, and runs kagan's checks. That includes regenerating the third-party notices.
  • Lists which of our fork changes upstream already has, and says when a fork can be dropped for the upstream package.
  • Stops at a PR, so a person reviews every sync.

The skill is .agents/skills/kagan-fork-sync/, with the instructions in SKILL.md and the steps in scripts/fork_sync.py. AGENTS.md gets one line pointing to it.

The script only resets clones it made itself. It marks each clone it creates and refuses to work in any other, so pointing --work at your own checkout can't wipe uncommitted work.

Checked: the plan and merge steps ran against the real forks in a throwaway clone with nothing pushed. gpui-kit and gpui-fast are 87 and 67 commits behind, with conflicts in 3 and 4 files; wry is up to date. Rerunning after an interrupted run resumes cleanly, and a clone the script didn't make is refused. The pin step's Cargo.toml rewrite was checked on a copy. push, and pin against a full checkout, haven't run, because both write to the real repos. Typos, the glossary check and the hook tests pass.

@aorumbayev
aorumbayev merged commit ab51d04 into main Nov 9, 2026
18 of 19 checks passed
@aorumbayev
aorumbayev deleted the chore/fork-sync-skill branch November 9, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0