git
git, github, hosting, remote, pull-request, issues, actions
- License 许可
- BSD-3-Clause
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- git
- description
- git, github, hosting, remote, pull-request, issues, actions
- compatibility
- Requires Git and the `gh` CLI authenticated to GitHub.
02 资源文件 1
- 脚本scripts/sync-remotes5.9 KB
03 SKILL.md 正文
GitHub hosting operations
Goal
Use GitHub as the only remote hosting control plane for repository, pull-request, issue, release, and Actions operations.
Host policy
- Inspect repository remotes with
git remote -vbefore remote operations. github.comis the supported hosting target.- If the current remote points at Forgejo,
git.starintel.actor, or another host, do not use that host for Agent Zero work. Resolve or add the corresponding GitHub remote/repository instead. - Never mirror, duplicate, or create a second PR/issue on another forge as part of the same task.
- If no GitHub repository exists and remote creation is authorized, create it on
GitHub with
gh repo create.
GitHub CLI
| Operation | Command |
|---|---|
| Auth status | gh auth status |
| Login | gh auth login |
| Repo view | gh repo view OWNER/NAME |
| Repo create | gh repo create |
| Repo list/search | gh repo list / gh search repos |
| PR list | gh pr list |
| PR create | gh pr create |
| PR view | gh pr view NUMBER |
| PR checks | gh pr checks NUMBER |
| PR merge | gh pr merge NUMBER |
| Issue list | gh issue list |
| Issue create | gh issue create |
| Issue view | gh issue view NUMBER |
| Labels | gh label list / gh label create |
| Releases | gh release list / gh release create |
| Actions runs | gh run list / gh run view |
Remote synchronization
For /sync-remotes, run scripts/sync-remotes from the repository. It
reports branch drift between the canonical remote (the Forgejo host,
else origin) and the mirror remote (GitHub, else the only other
remote): same, ahead-canonical, ahead-mirror, diverged,
missing-on-canonical/mirror, missing-remote. Exit 1 means drift,
warnings, or unfixable state; exit 0 means in sync.
With --push it fast-forwards the mirror to canonical for
ahead-canonical branches only. It refuses to push from a dirty
worktree, never force-pushes diverged branches, and reports divergence
for manual reconciliation. Pass --json for machine-readable rows.
Never duplicate issues or pull requests across hosts: search the
canonical host first with tea, and only mirror an artifact to GitHub
when the repository configuration designates GitHub as canonical.
Rules
- Use GitHub-native tooling for hosting operations.
- Do not invoke
tea, Forgejo APIs, Forgejo Actions, orgit.starintel.actorfor Agent Zero workflows. - Never duplicate a repository or pull request across hosts.
- Do not push credentials, token-bearing URLs, or auth output into logs, commits, PRs, or issues.
- Follow each repository's documented branch, PR, review, and CI requirements.
- Never bypass a red required check merely to land a change.
- Prefer exact-head checks before merge when the repository has concurrent work.
04 同仓库更多 Skills
unknown-frontmatter
validator, fixture
zara-phone-pair
zara, phone, pairing, adb, wireless-debugging, curve, enrollment, android
zara-mcp
zara, mcp, stdio, http, tools, resources, prompts, debugging
youtube-context
youtube, transcripts, yt-dlp, whisper, video-context
worker-orchestration
workers, routing, delegation, fleet, budgets, concurrency
task-steward-worker
steward, rage, leases, fencing, heartbeat, receipts