Agent Skillspollinations/pollinations › sync-production

sync-production

GitHub

通过GitHub合并API将main分支同步至production,预检冲突并处理结果。

.claude/skills/sync-production/SKILL.md pollinations/pollinations

Trigger Scenarios

merge main into production deploy main to production sync production

Install

npx skills add pollinations/pollinations --skill sync-production -g -y
More Options

Non-standard path

npx skills add https://github.com/pollinations/pollinations/tree/main/.claude/skills/sync-production -g -y

Use without installing

npx skills use pollinations/pollinations@sync-production

指定 Agent (Claude Code)

npx skills add pollinations/pollinations --skill sync-production -a claude-code -g -y

安装 repo 全部 skill

npx skills add pollinations/pollinations --all -g -y

预览 repo 内 skill

npx skills add pollinations/pollinations --list

SKILL.md

Frontmatter
{
    "name": "sync-production",
    "description": "Sync the main branch into production via the GitHub merges API. Pre-checks for merge conflicts and bails out with a clear reason if the merge isn't clean. Use when asked to merge main into production, deploy main to production, or sync production."
}

Sync Production

Server-side merge of mainproduction using the GitHub merges API. No local checkout, no working tree changes.

Quick Usage

.claude/skills/sync-production/scripts/sync-production.sh

What It Does

  1. Fetches origin/main and origin/production
  2. Lists the commits that would be merged
  3. Pre-checks for conflicts with git merge-tree (no working tree touched)
  4. If conflicts → stops with the conflicting paths and exits non-zero. Resolve manually, then re-run.
  5. If clean → calls POST /repos/pollinations/pollinations/merges to create the merge commit on production server-side

Exit Codes

  • 0 — merge succeeded, or nothing to merge
  • 2 — merge would conflict (paths printed)
  • 3 — GitHub merges API rejected the request (branch protection, missing branches, etc.)

On Conflict

The skill stops and reports the conflicting files. Don't try to force it — surface the reason in chat and resolve manually:

git checkout production && git pull
git merge main           # resolve conflicts in editor
git push origin production

Overrides

SYNC_REPO=owner/repo SYNC_BASE=staging SYNC_HEAD=main \
  .claude/skills/sync-production/scripts/sync-production.sh

Notes

  • Run from repo root
  • Requires gh (authenticated, push access to production) and jq
  • Branch protection on production that requires PRs will cause exit code 3 — open a PR manually with gh pr create --base production --head main in that case

Version History

  • 99bce92 Current 2026-07-25 10:39

Same Skill Collection

.claude/skills/abuse-detection/SKILL.md
.claude/skills/candidate-evaluation/SKILL.md
.claude/skills/code-formatting/SKILL.md
.claude/skills/community-leaderboard/SKILL.md
.claude/skills/enter-services/SKILL.md
.claude/skills/issue-maker/SKILL.md
.claude/skills/manage-vast-gpu-fleet/SKILL.md
.claude/skills/model-debugging/SKILL.md
.claude/skills/model-management/SKILL.md
.claude/skills/monitor-services/SKILL.md
.claude/skills/polli-video/SKILL.md
.claude/skills/polli/SKILL.md
.claude/skills/r2-glacier-migration/SKILL.md
.claude/skills/spending-analysis/SKILL.md
.claude/skills/tinybird-deploy/SKILL.md
.claude/skills/voting-status/SKILL.md
.claude/skills/web-research/SKILL.md
apps/openclaw/skills/founder-meditation/SKILL.md
packages/polli-cli/SKILL.md

Metadata

Files
0
Version
8303332
Hash
6ced7a2f
Indexed
2026-07-25 10:39

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 06:56
浙ICP备14020137号-1 $mapa de visitantes$