Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Guardex Merge Skills To Dev?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/opencue-guardex-merge-skills-to-dev)
---
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."
---
# 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
- `.codex/skills/**/SKILL.md`
- `package/gitguardex/templates/codex/skills/**/SKILL.md`
## Merge runbook (safe path)
1. Use the verified destination branch. Do not guess the base:
```sh
BASE_BRANCH="<base-branch>"
git ls-remote --exit-code origin "refs/heads/${BASE_BRANCH}"
```
2. Start a dedicated integration sandbox from base:
```sh
gx branch start "merge-skill-files-to-${BASE_BRANCH}" "skill-merge" --base "$BASE_BRANCH" --no-transfer
```
3. Enter the sandbox worktree printed by the command above.
4. Pull only skill files from each source agent branch:
```sh
SOURCE_BRANCH="<agent-branch>"
git checkout "$SOURCE_BRANCH" -- ':(glob).codex/skills/**/SKILL.md' ':(glob)package/gitguardex/templates/codex/skills/**/SKILL.md'
```
5. Verify scope before commit:
```sh
git status --short
git diff --name-only
```
6. Commit and deliver through the repository's gated `gx branch finish` flow:
```sh
git add .codex/skills package/gitguardex/templates/codex/skills
git commit -m "Merge skill file updates into ${BASE_BRANCH}"
gx branch finish --branch "$(git branch --show-current)" --base "$BASE_BRANCH" \
--via-pr --wait-for-merge --cleanup --gate-review --gate-autofix
```
## 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.