← ClaudeAtlas

oss-fork-managerlisted

Fork lifecycle management for open-source contributions — fork creation, clone, upstream sync, feature branches, PR creation targeting upstream
kookr-ai/kookr · ★ 2 · AI & Automation · score 78
Install: claude install-skill kookr-ai/kookr
# OSS Fork Manager Handle the fork-based contribution workflow that external open-source repos require. ## When to Use - Setting up a fork for the first time - Syncing fork with upstream before starting work - Creating feature branches for contributions - Pushing to fork and creating PRs targeting upstream ## Non-Negotiable Rules | # | Rule | Violation Example | Correct Pattern | |---|------|-------------------|-----------------| | 1 | Check if fork exists before creating | `gh repo fork` failing because fork exists | Check first, then create only if needed | | 2 | Always set upstream remote | Pushing to wrong remote | `git remote add upstream https://github.com/{owner}/{repo}.git` | | 3 | Rebase on upstream before branching | Branching from stale main | `git fetch upstream && git rebase upstream/{default}` | | 4 | Push to origin (fork), PR to upstream | `git push upstream` | `git push origin {branch}` then `gh pr create -R {upstream}` | | 5 | Track state in fork-state.json | Losing track of branches and PRs | Update `~/.claude/{repoSlug}-recon/fork-state.json` | | 6 | Initialize contributions.json for new repos | Re-investigating already-attempted issues | Create from template `~/.claude/oss-contribution-tracking-template.json` if missing | ## Parameters - **repoFullName**: `owner/repo` (upstream) - **repoSlug**: URL-safe slug for state directory - **forkName**: `<your-login>/repo` (your fork; login via `gh api user --jq .login`) - **localPath**: `$HOME/git/repo` (loc