一键导入
rebase-commit-push-pr
Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when working with GitHub via the gh CLI - managing PRs, issues, releases, repos, workflows, searching code, or calling the GitHub API. Triggers on tasks involving GitHub operations, PR creation/management, issue tracking, release workflows, or any gh command usage.
Use when building Farm locally from source, native bindings or Rust plugin artifacts are missing, or an example/E2E needs local core and plugin artifacts.
Comprehensive Farm build-tool reference for AI agents. Use when writing or reviewing farm.config.ts, adding/configuring plugins, troubleshooting builds, implementing SSR or library mode, using the JavaScript API, writing Farm JS/Rust plugins, or authoring custom plugins from scratch. Covers all config options, official plugins, CLI commands, key features, and plugin authoring sourced from website/docs.
Deep integration with Docusaurus for documentation site development. Configure projects, manage sidebars, versioning, i18n, develop plugins, and optimize builds for React-based documentation.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies
| name | rebase-commit-push-pr |
| description | Fetch origin/main, rebase current branch, resolve conflicts safely, then commit and push changes; create a PR if none exists for the branch. |
| license | MIT |
| compatibility | Requires git repository with origin remote and GitHub CLI (gh) for PR checks/creation. |
| metadata | {"author":"farm","version":"1.0"} |
Safely sync a working branch with origin/main, handle rebase conflicts, then publish and open a PR if needed.
Inspect branch and working tree
git branch --show-currentgit status --shortFetch and rebase onto main
git fetch origin maingit rebase origin/mainResolve rebase conflicts (if any)
git status --shortgit add <paths> or git rm <paths>.git rebase --continue.Commit user-requested local changes (only if needed)
git status --short is empty, skip commit.git add -A by default), then commit with a conventional message.Push branch
git pushgit push --force-with-lease only when user explicitly asked for rewritten-history push.Ensure a PR exists
gh pr list --head "$(git branch --show-current)" --json number,title,state,urlgh pr create --fill--fill fails due to missing metadata, provide explicit --title and --body.Report result
git reset --hard, git checkout --, or force push without explicit user approval.