guardex-merge-skills-to-dev
Use when you need to merge SKILL.md updates from agent branches/worktrees into the local base branch (default: dev) with the multiagent-safety flow.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 28
- Forks
- 4
01 前言 Front Matter
- name
- guardex-merge-skills-to-dev
- description
- Use when you need to merge SKILL.md updates from agent branches/worktrees into the local base branch (default: dev) with the multiagent-safety flow.
03 SKILL.md 正文
GuardeX Merge Skills to dev
Use this skill when you only want to promote Codex skill file updates into the base branch (normally dev) without editing the visible base checkout directly.
What this merges
skills/**/SKILL.md.codex/skills/**/SKILL.mdtemplates/codex/skills/**/SKILL.md
Merge runbook (safe path)
- Resolve the base branch:
BASE_BRANCH="$(git config --get multiagent.baseBranch || echo dev)"
echo "$BASE_BRANCH"
- Start a dedicated integration sandbox from base:
gx branch start "merge-skill-files-to-${BASE_BRANCH}" "skill-merge" "$BASE_BRANCH"
-
Enter the sandbox worktree printed by the command above.
-
Pull only skill files from each source agent branch:
SOURCE_BRANCH="<agent-branch>"
git checkout "$SOURCE_BRANCH" -- ':(glob)skills/**/SKILL.md' ':(glob).codex/skills/**/SKILL.md' ':(glob)templates/codex/skills/**/SKILL.md'
- Verify scope before commit:
git status --short
git diff --name-only
- Commit and merge back to base using guardex finish flow:
git add skills .codex/skills templates/codex/skills
git commit -m "Merge skill file updates into ${BASE_BRANCH}"
gx branch finish --branch "$(git rev-parse --abbrev-ref HEAD)" --base "$BASE_BRANCH" --via-pr --wait-for-merge --cleanup
Notes
- If a source branch has non-skill changes, this runbook keeps them out of the merge.
- If merge conflicts occur, resolve only within the skill files, then rerun
gx branch finish. - Do not commit directly on
dev/main; always merge through an agent branch/worktree.
04 同仓库更多 Skills
opensrc
Fetch exact dependency or external repository source before inspecting internals. Use for package implementation, upstream behavior, or external GitHub source lookup.
gx-act
Run GitHub Actions workflows locally with nektos/act before pushing, so CI failures are caught on the laptop and the PR can be squash-merged on the first remote run.
guardex-merge-skills-to-dev
Use when you need to merge SKILL.md updates from agent branches/worktrees into the local base branch (default: dev) with the multiagent-safety flow.
gitguardex
Use for GitGuardex branch/worktree safety, agent or subagent collision avoidance, file ownership, and gated PR finishing. Not for code-quality review.
pr-lens
Generate local PR Lens architecture and data-flow diagrams alongside a GitGuardex Codex or Claude PR review.
gx-act
Run GitHub Actions workflows locally with nektos/act before pushing, so CI failures are caught on the laptop and the PR can be squash-merged on the first remote run.