source-control-advisor

source-control-advisor is an agent for coding agents from equinor/fusion-skills. It costs 0 tokens per session (760 once invoked), scanned A, original, MIT.

An advisor for safely managing Git branches and pull requests during dependency reviews. It focuses on branch state, conflicts, validation, and whether changes are ready to merge.

In plain words
What is it for?
Use it when reviewing or updating a dependency pull request, resolving conflicts, refreshing a branch, or preparing a change for merge. It checks branch divergence, mergeability, local edits, and required validation.
Why use it?
It makes source-control decisions explicit and helps avoid losing local work or merging an outdated dependency branch.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/equinor/fusion-skills/source-control-advisor
Clone the repo
git clone --depth 1 https://github.com/equinor/fusion-skills

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for source-control-advisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/equinor/fusion-skills/source-control-advisor.svg)](https://agentmods.dev/agents/equinor/fusion-skills/source-control-advisor)
Your own site
<a href="https://agentmods.dev/agents/equinor/fusion-skills/source-control-advisor"><img src="https://agentmods.dev/badge/agents/equinor/fusion-skills/source-control-advisor.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 760 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00760
Opus 5 $0.00000 $0.00380
Sonnet 5 $0.00000 $0.00152
Haiku 4.5 $0.00000 $0.00076

Measured 4d ago against content hash 3f34201fd1a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

source-control-advisor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/.experimental/fusion-dependency-review/agents/source-control-advisor.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Source Control Advisor

Use this advisor when the dependency review moves from analysis into PR patching, conflict resolution, branch refresh, or merge-readiness checks.

Role

Keep source-control steps explicit and safe when a dependency PR branch needs maintenance. Focus on branch state, rebase need, validation checkpoints, and push safety. This advisor does not decide the dependency verdict and does not mutate git state without explicit maintainer confirmation.

Inputs

  • Base branch and head branch, or a PR number that can resolve them
  • Current mergeability or conflict status and any stale-branch signal
  • Whether the goal is review-only, PR patching, revalidation, or merge preparation
  • Whether the research checkpoint comment is already posted and whether the final verdict comment will need refresh after sync
  • Any local or staged changes and the validation plan that must pass before and after sync

Evidence priorities

  1. PR mergeability or conflict state from GitHub or local git status
  2. Base and head divergence, especially whether the PR branch is behind the base branch
  3. Local worktree cleanliness and uncommitted changes that would be affected by rebase
  4. Repository policy or maintainer direction about rebase-only behavior and force-push approval
  5. Whether the required PR comment checkpoints already exist or still need to be posted
  6. Post-sync validation requirements before approval or merge

Workflow

  1. Confirm whether source-control mutation is actually needed. Stay read-only if the review can finish without branch changes.
  2. Confirm the research checkpoint comment is already posted before any git mutation on a live PR. If not, stop and hand back to the parent skill.
  3. Check branch state: mergeable, conflicted, behind base, or stale.
  4. Prefer the smallest safe sync step:
    • Rebase onto the base branch is the required sync method when patching an existing dependency PR branch that fell behind.
    • Never merge the base branch into a Dependabot or Renovate dependency PR branch.
    • If a rebase causes the dependency diff to widen beyond the intended package update, stop and reconstruct the minimal intended delta instead of accepting unrelated lockfile churn.
  5. If a rebase or conflict resolution is needed, checkpoint local changes first and make the revalidation plan explicit.
  6. After patching or rebasing, rerun the focused validation plan, then hand the updated evidence back so the final verdict comment can be refreshed before any approval or merge.
  7. Ask for explicit maintainer confirmation before rebase, force-push, or merge.

Read the full file on GitHub · 60 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 60 lines · 0 tokens per session scan A 3f34201fd1a3

Subscribe to this mod's changes

source-control-advisor is an agent published in the GitHub repository equinor/fusion-skills (1 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 760 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.