Skip to content
Back to skills

Bravos Resync

ASecurity

Carry annotation work that never reached the base branch onto it, and keep it true: when the briefing or autopilot says this checkout is far behind its base or lists idle branches with annotation work, or the user moved, rebased or abandoned a branch with annotations on it. Saves uncommitted work first, runs `bravos resync` to copy the sidecars and definitions and reanchor them, maps ids that duplicate the base's, re-reads every carried claim on code that changed since it was written, drops w...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 28, 2026
ai-agentsgogit

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add Bugb-Technologies/bravos-plugins --skill bravos-resync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bravos Resync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bravos Resync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bugb-technologies-bravos-resync-bravos-plugins/badge)](https://www.skillsdirectory.com/skills/bugb-technologies-bravos-resync-bravos-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bravos-resync
description: "Carry annotation work that never reached the base branch onto it, and keep it true: when the briefing or autopilot says this checkout is far behind its base or lists idle branches with annotation work, or the user moved, rebased or abandoned a branch with annotations on it. Saves uncommitted work first, runs `bravos resync` to copy the sidecars and definitions and reanchor them, maps ids that duplicate the base's, re-reads every carried claim on code that changed since it was written, drops what lost its code, and opens a PR. Use before annotating or proving on a stale checkout, and before running `bravos resync`."
---
<!-- bravos:generated -->

> Paths that start with `SKILL_DIR/` are files in this skill's own folder, the folder that holds this SKILL.md.
# Bravos resync: old annotation work is a lead, not a fact

## When

- The briefing says `Branch: … is N commits behind`, or lists `Annotation work not on <base>`.
- Autopilot says this checkout is behind its base.
- The user switched, rebased or abandoned a branch that carried annotations, or found old annotation work and asks whether it is still useful.

## Do

1. Find the base: `git symbolic-ref -q --short refs/remotes/origin/HEAD` prints `origin/<base>` (if empty, use `origin/main`). Run `bravos resync --list` to see how far this checkout is behind and which idle branches carry `.guardlink/` work the base lacks. Tell the user what you found in two lines and ask before you move their checkout.
2. Make uncommitted work safe before anything else. It holds the person's own code as well as annotations, so say what you are about to commit and ask once; then, on the old branch, commit it as it is with a message that says it is unreviewed work in progress (`git add -A` then `git commit -m "wip: unreviewed annotation drafts, kept for bravos resync"`). That commit is the only copy; a stash can be popped by another session, so never stash.
3. Start fresh from the base: `git fetch origin`, then `git switch -c resync/<old-branch> origin/<base>` (in a worktree when this checkout is shared with another session).
4. Preview: `bravos resync --from <old-branch>`. Read the counts: sidecars to carry, sidecars both sides have, definitions to carry, possible duplicates, and files changed since the claims were written. With inline annotations it copies nothing and says to bring the commits over with `git cherry-pick` or `git merge` instead; do that, then continue at step 7.
5. Apply: `bravos resync --from <old-branch> --apply`. It writes the sidecars and a marked block of carried definitions, runs `guardlink reanchor . --apply`, validates, and saves the full lists to `.bravos/resync/last.json`.
6. Map each possible duplicate: read both definitions. When they name the same thing, replace the carried id with the base's in the carried sidecars and delete its line from the carried block. When you are not sure, keep both and list the pair for the user.
7. Re-read every annotation in each file on the changed-since list against today's code, with bravos-annotate's rules: a claim that no longer says what the code does is corrected, or removed when its code is gone. Do the same for each sidecar on the symbol-gone list. Use the code graph (bravos-codegraph) to find where moved code went.
8. For a file both sides annotate (`both` in the report), compare the two sidecars and carry over only the claims the base's lacks, by hand.
9. Check the result: `guardlink validate .`, then `guardlink lint . --since origin/<base>` and fix each finding on lines you carried, then `guardlink diff origin/<base>` to list the exposures this brings back.
10. Open a PR from the resync branch. The body says which branch and commit the work came from, how many sidecars and definitions were carried, which ids were mapped, how many files were re-read, what was dropped, and every exposure it reopens, each marked unverified.

## Never

- Delete, reset or force-push the old branch or its uncommitted work; that is the user's call, after the PR merges.
- Stash work to move a checkout, or switch a checkout another session is using.
- Re-lock a carried claim with `guardlink verify` unless you re-read its code in this session.
- Write `@accepts`, `@entitles` or `@confirmed` for carried work, or keep an old `@confirmed` line without a replay that reproduces it today.
- Merge two ids because their names look alike; map only what you read and know is the same.
- Call carried exposures findings: they are claims about older code until re-read and proven.

## Done when

- The old work is in a commit on its branch, and the resync branch starts from the current base.
- Every possible duplicate is mapped or listed for the user.
- Every changed-since file and every symbol-gone sidecar was re-read, and each claim corrected, kept or removed.
- `guardlink validate .` reports no errors, and the PR lists what was carried, mapped, dropped and reopened.

## What it leaves for the next skill

- Exposures the carried work reopens, for bravos-prove or bravos-templatize to test.
- Confirmed claims that came with it, for bravos-recheck to replay.
- Files still without annotations, for bravos-annotate.

## Go deeper

- `SKILL_DIR/../bravos-annotate/SKILL.md` — the rules for correcting or removing a claim.
- `SKILL_DIR/../bravos-recheck/SKILL.md` — re-verifying claims after code changes.
- `SKILL_DIR/../bravos-codegraph/SKILL.md` — finding where moved code went.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.