Agents & OrchestrationSûr100100/100
Branch Align (Ansible)
Align branch name with artifact ID when they mismatch. Use when: renumbering a REQ/DR/ADR after branch creation, "branch name is wrong", "rename branch to match", or when PR review flags branch/artifact mismatch. Handles the git branch rename and remote update.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs branch-align__ansible-apme-operator__agents-skills-2b9560c7763fAnsible
ansible/apme-operator
Contenu à copier
--- name: branch-align description: >- Align branch name with artifact ID when they mismatch. Use when: renumbering a REQ/DR/ADR after branch creation, "branch name is wrong", "rename branch to match", or when PR review flags branch/artifact mismatch. Handles the git branch rename and remote update. argument-hint: "[new-branch-name]" user-invocable: true metadata: origin: Ansible author: APME Operator contributors version: 1.0.0 --- # Branch Align Rename a git branch to match its artifact ID after renumbering. ## Why This Skill Exists During PR review, branch names sometimes need to align with the work (e.g. `feat/ubi-manager-image` → `fix/route-custom-host-rbac` after scope change): ``` Branch: feat/wrong-name Target: fix/route-custom-host-rbac ``` This skill renames the branch locally and on the remote fork. ## Arguments - `[new-branch-name]` — target branch name (e.g., `docs/req-011-aa-deprecated-reporting`) - `--dry-run` — show what would happen without executing ## Workflow ### 1. Detect Current State ``` Current branch: docs/req-005-aa-deprecated-reporting Tracks remote: fork/docs/req-005-aa-deprecated-reporting Open PR: #102 (https://github.com/ansible/apme-operator/pull/102) PR head: ffirg:docs/req-005-aa-deprecated-reporting ``` ### 2. Confirm New Name If argument provided, use it. Otherwise: ``` New branch name? (current: docs/req-005-aa-deprecated-reporting) > docs/req-011-aa-deprecated-reporting ``` Validate format: - Matches artifact ID in branch (e.g., `req-011` matches `REQ-011`) - Follows naming convention (`type/id-slug`) ### 3. Execute Rename ```bash # Rename local branch git branch -m docs/req-005-aa-deprecated-reporting docs/req-011-aa-deprecated-reporting # Push new branch to remote git push -u fork docs/req-011-aa-deprecated-reporting # Delete old remote branch git push fork --delete docs/req-005-aa-deprecated-reporting ``` ### 4. Update PR (if exists) GitHub PRs automatically track renamed branches if the new branch is pushed before deleting the old one. Verify: ``` PR #102 now tracks: ffirg:docs/req-011-aa-deprecated-reporting ``` If PR doesn't update automatically, provide manual fix: ```bash gh pr edit 102 --head ffirg:docs/req-011-aa-deprecated-reporting ``` ### 5. Summary ``` Done! - Renamed: docs/req-005-aa-deprecated-reporting → docs/req-011-aa-deprecated-reporting - Remote updated: fork - PR #102: Now tracks new branch Old branch deleted from remote. ``` ## Edge Cases | Situation | Handling | |-----------|----------| | Uncommitted changes | Stash before rename, restore after | | Not on the branch to rename | Prompt to checkout or specify branch | | No open PR | Skip PR update step | | Multiple remotes | Prompt which remote to update | | Protected branch | Warn and abort | ## Safety Checks 1. **Never rename `main` or `master`** — abort with error 2. **Check for uncommitted changes** — stash or abort 3. **Verify remote exists** — fail gracefully if fork not configured 4. **Confirm before deleting old remote branch** — show what will be deleted ## Example Session ``` /branch-align docs/req-011-aa-deprecated-reporting Current branch: docs/req-005-aa-deprecated-reporting Target branch: docs/req-011-aa-deprecated-reporting This will: 1. Rename local branch 2. Push new branch to 'fork' 3. Delete old branch from 'fork' 4. PR #102 will track new branch Proceed? (Y/N) Y Renaming local branch... done Pushing to fork... done Deleting old remote branch... done Verifying PR #102... tracks new branch ✓ Done! Branch aligned with REQ-011. ``` ## Integration with pr-new The `pr-new` skill should: 1. Check if branch name matches artifact IDs being committed 2. Warn if mismatch detected 3. Offer to invoke `branch-align` before pushing Add to pr-new pre-flight checks: ``` Checking branch/artifact alignment... - Branch: docs/req-005-aa-deprecated-reporting - Artifacts: REQ-011, DR-013 ⚠️ Branch name contains 'req-005' but artifacts use REQ-011 Run /branch-align to fix? (Y/N) ```
Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Branch Align (Ansible)
`[new-branch-name]` — target branch name (e.g., `docs/req-011-aa-deprecated-reporting`)
`--dry-run` — show what would happen without executing
Matches artifact ID in branch (e.g., `req-011` matches `REQ-011`)
Follows naming convention (`type/id-slug`)
Comment utiliser Branch Align (Ansible)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Branch Align (Ansible)
Dis simplement à ton agent quelque chose comme :
Applique le skill branch-align__ansible-apme-operator__agents-skills-2b9560c7763f à cette tâche
Utilise branch-align__ansible-apme-operator__agents-skills-2b9560c7763f pour améliorer cette implémentation
Passe en revue ce sujet avec branch-align__ansible-apme-operator__agents-skills-2b9560c7763f
Skills liés à Branch Align (Ansible)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.