一键导入
git-remote
Push, pull, and create pull requests on GitHub remote repositories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Push, pull, and create pull requests on GitHub remote repositories.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Design static ad creatives for social media and display advertising campaigns.
Source and evaluate candidates with job analysis, CV screening, and pipeline tracking.
Find relevant companies and leads for B2B sales with ICP definition and qualification frameworks.
Draft emails, manage calendars, prepare agendas, and organize productivity.
Create brand identity kits — logos, color palettes, typography, naming, and style guides.
Conduct thorough, multi-source research with structured reports and source scoring.
基于 SOC 职业分类
| name | git-remote |
| description | Push, pull, and create pull requests on GitHub remote repositories. |
Interact with GitHub remote repositories. When provider is omitted, the remote provider is auto-detected from the origin remote URL. gitlab and bitbucket are recognized provider names but are not supported yet.
origin remote configuredYou can render a one-click "Open in git" button that takes the user to the Git workspace pane — status, branches, commits, history, or changes. To render it, write this tag on its own line at the end of your reply (it is replaced by the button; the user clicks it to open the pane):
<open-in-pane tool="git"></open-in-pane>
Button behavior:
| User asks | Tag to emit |
|---|---|
| "Take me to the Git history." | <open-in-pane tool="git"></open-in-pane> |
| "Where do I see my branches / changes?" | <open-in-pane tool="git"></open-in-pane> |
Push the current branch to the remote repository.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
branch | str | No | Remote branch name to push to. Defaults to the current local branch name. |
force | bool | No | Force push (use with caution). Defaults to false. |
provider | "github" | "gitlab" | "bitbucket" | No | Optional provider override. Omit to auto-detect from origin; only github is supported today. |
Returns: Dict with branch, remote, provider
Example:
// Push current branch
const result = await gitPush({});
console.log(`Pushed to ${result.branch} on ${result.provider}`);
// Push to a specific branch
await gitPush({ branch: "feature-branch" });
// Force push (use with caution)
await gitPush({ force: true });
Error Codes:
| Code | Description |
|---|---|
NO_CREDENTIALS | No credentials found for the detected provider |
NO_REMOTE | No origin remote configured or provider not detected |
UNSUPPORTED_PROVIDER | Provider is not supported |
CLI_ERROR | Git command failed (e.g., merge conflicts, detached HEAD) |
DANGEROUS_CONFIG | Dangerous git config detected |
Pull changes from the remote repository into the current branch.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
branch | str | No | Remote branch name to pull from. Defaults to the upstream tracking branch. |
provider | "github" | "gitlab" | "bitbucket" | No | Optional provider override. Omit to auto-detect from origin; only github is supported today. |
Returns: Dict with branch, remote, provider
Example:
// Pull from upstream tracking branch
const result = await gitPull({});
console.log(`Pulled ${result.branch} from ${result.provider}`);
// Pull from a specific branch
await gitPull({ branch: "main" });
Error Codes:
| Code | Description |
|---|---|
NO_CREDENTIALS | No credentials found for the detected provider |
NO_REMOTE | No origin remote configured or provider not detected |
UNSUPPORTED_PROVIDER | Provider is not supported |
CLI_ERROR | Git command failed (e.g., dirty worktree, merge conflicts, detached HEAD) |
DANGEROUS_CONFIG | Dangerous git config detected |
Create a pull request on the remote repository.
Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
title | str | Yes | Title of the pull request |
body | str | Yes | Body/description of the pull request (supports markdown) |
baseBranch | str | No | Target branch for the PR. Defaults to the repository's default branch. |
headBranch | str | No | Source branch for the PR. Defaults to the current branch. |
draft | bool | No | Create as a draft PR. Defaults to false. |
provider | "github" | "gitlab" | "bitbucket" | No | Optional provider override. Omit to auto-detect from origin; only github is supported today. |
Returns: Dict with url, number, provider
Example:
// Create a simple PR
const result = await createPullRequest({
title: "Add authentication feature",
body: "## Summary\n\nThis PR adds user authentication.\n\n## Test Plan\n\n- [ ] Test login flow"
});
console.log(`Created PR #${result.number}: ${result.url}`);
// Create a draft PR targeting a specific branch
await createPullRequest({
title: "WIP: New feature",
body: "Work in progress",
baseBranch: "develop",
draft: true
});
Error Codes:
| Code | Description |
|---|---|
NO_CREDENTIALS | No credentials found for the detected provider |
NO_REMOTE | No origin remote configured or provider not detected |
UNSUPPORTED_PROVIDER | Provider is not supported |
CLI_ERROR | PR creation failed (e.g., branch not pushed, PR already exists) |
| Provider | Status |
|---|---|
github | Supported when auto-detected or explicitly passed |
gitlab | Recognized but not supported yet; calls return UNSUPPORTED_PROVIDER |
bitbucket | Recognized but not supported yet; calls return UNSUPPORTED_PROVIDER |
// After completing work on a feature branch
// 1. Push the branch
await gitPush({});
// 2. Create a PR
await createPullRequest({
title: "Add user authentication",
body: "## Summary\n\nImplements OAuth2 login flow.\n\n## Test Plan\n\n- Log in with Google\n- Verify session persists"
});
// Pull latest changes from main
await gitPull({ branch: "main" });