بنقرة واحدة
main-merge
Sync latest main into current branch with onboarding, safe merge, conflict resolution, and doc refresh.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Sync latest main into current branch with onboarding, safe merge, conflict resolution, and doc refresh.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Create, repair, validate, visually QA, and package Codex-compatible v2 animated pets from character art, generated images, company or prospect brand cues, or visual references. Use for any new Codex pet, custom mascot, non-pixel pet style, brand-inspired pet, existing-pet repair, or 8x11 spritesheet workflow requiring all 9 standard animation rows, 16 look directions, deterministic assembly, QA artifacts, and spriteVersionNumber 2 packaging.
Rewrite current branch into N semantic commits with a legacy backup branch and optional rebase onto origin/main.
Merge origin/main into current branch while preserving branch intent, context, and ownership decisions.
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work.
Audit codebase architecture: module dependencies, layering, circular imports, ownership, and structural decay.
| name | main-merge |
| description | Sync latest main into current branch with onboarding, safe merge, conflict resolution, and doc refresh. |
Run a predictable integration workflow that keeps branch intent intact while absorbing main updates. Always gather onboarding evidence first, then merge, resolve conflicts, validate behavior, and refresh docs.
flowchart LR
A["Onboard Branch"] --> B["Preflight"]
B --> C["Merge origin/main"]
C --> D{"Conflicts?"}
D -- "No" --> E["Validate"]
D -- "Yes" --> F["Resolve Conflicts"]
F --> E
E --> G["Refresh Docs"]
G --> H["Delivery Brief"]
Run branch onboarding first (required).
Delegate branch diff collection and risk briefing to branch-onboarding-brief.
Do not duplicate onboarding collection logic in this skill.
Run preflight checks. Confirm repository state and block unsafe merges.
git rev-parse --is-inside-work-tree
git branch --show-current
git status --porcelain
git fetch origin main
If git status --porcelain is non-empty, stop and ask one targeted question before proceeding.
Do not auto-stash, reset, or discard changes.
origin/main into the current branch.git merge origin/main
CONFLICT.
List unresolved files:git diff --name-only --diff-filter=U
Follow references/conflict_playbook.md for resolution patterns.
If conflict intent spans multiple modules or boundaries are unclear, delegate localization to rpg-loop-reasoning in hybrid mode before editing files.
Use rg -n and focused tests to verify each resolved symbol.
When all conflicts are resolved:
git add <resolved-files>
git merge --continue
If git merge --continue fails in non-interactive shells with editor-related errors,
retry with:
GIT_EDITOR=true git merge --continue
Validate post-merge behavior.
Run the smallest meaningful checks first, then expand only for touched risk areas.
Prefer project commands when available (for example make test, targeted pytest, or lint).
Report only commands actually executed.
Refresh docs after code is stable.
Delegate documentation impact mapping and rewrite to refresh-branch-docs.
Apply the checklist in references/doc_refresh_checklist.md after delegation output is produced.
Deliver integration brief. Include:
Confirmed and Open Risks.branch-onboarding-brief: mandatory before merge.refresh-branch-docs: mandatory after merge succeeds.rpg-loop-reasoning: preferred when conflict intent spans multiple modules or needs dual-view (semantic + topology) resolution.code-health: use when merge introduces large non-test churn or quality regressions.references/conflict_playbook.mdreferences/doc_refresh_checklist.md