prepare-branch-context

prepare-branch-context is a skill for Claude Code from jnsahaj/skills. It costs 47 tokens per session (505 once invoked), scanned A, original, no licence file.

A branch-analysis tool that examines the differences between your current Git branch and the main branch, along with its related pull request. A branch is a separate line of development, and a pull request is a proposed change awaiting review.

In plain words
What is it for?
Use it to get caught up on what a branch changes, prepare context for new work, or inspect an open pull request.
Why use it?
It helps you quickly understand existing work before handling a follow-up request.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to get caught up on what a branch changes, prepare context for new work, or inspect an open pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jnsahaj/skills/prepare-branch-context
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.

Any agent
npx skills add jnsahaj/skills --skill prepare-branch-context
Clone the repo
git clone --depth 1 https://github.com/jnsahaj/skills

Made for: Claude Code.

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 prepare-branch-context

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnsahaj/skills/prepare-branch-context/github.svg)](https://agentmods.dev/skills/jnsahaj/skills/prepare-branch-context)
Your own site
<a href="https://agentmods.dev/skills/jnsahaj/skills/prepare-branch-context"><img src="https://agentmods.dev/badge/skills/jnsahaj/skills/prepare-branch-context/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prepare-branch-context

Your own site · 80×15
<a href="https://agentmods.dev/skills/jnsahaj/skills/prepare-branch-context"><img src="https://agentmods.dev/badge/skills/jnsahaj/skills/prepare-branch-context.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.1 $0.00047 $0.00505
Opus 5 $0.00023 $0.00253
Sonnet 5 $0.00009 $0.00101
Haiku 4.5 $0.00005 $0.00051

Measured 10d ago against content hash 4284631f389c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

prepare-branch-context 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 10d 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/prepare-branch-context/SKILL.md · 55 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 10d ago First seen · 55 lines · 47 tokens per session scan A 4284631f389c

Subscribe to this mod's changes

prepare-branch-context is a skill published in the GitHub repository jnsahaj/skills (56 stars, last pushed 2mo ago), with no licence file. It adds 47 tokens to every session and 505 once invoked, about $0.0002 per session on Opus 5. 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-30.

Related

Other skills, from other repositories

review-loop

Bounded review-apply-resolve convergence loop for a GitHub PR (draft PRs are fine). Runs up to N=5 iterations of pr-reviewer → implement-suggestion (--resolve-all) → polish simplify, converging until every review thread is resolved — through a fix OR a reply (answered question, recorded rationale) — so the PR is left…

mthines/agent-skills · 446 tokens

implement-suggestion

Implements review-comment suggestions across one or more PRs. Multi-PR mode (default when $ARGUMENTS contains PR URLs; empty $ARGUMENTS auto-detects the active PR) per PR: resolves a worktree, fetches every actionable comment from both human teammates AND AI code-review bots (claude[bot], coderabbitai[bot], …)…

mthines/agent-skills · 314 tokens

create-pr

Generates a short, narrative GitHub pull request description (≤ 25 lines, hard ceiling 40), pushes the branch, opens the PR as a draft, then runs review-loop (pr-reviewer → implement-suggestion → polish simplify, up to 5 iterations) until every review thread is resolved via fix or reply. Scale down with --no-review…

mthines/agent-skills · 188 tokens

autonomous-workflow

The phase-based machinery (0–7) behind the aw dispatcher — task intake through tested PR delivery in an isolated Git worktree, with optional companion skills for planning, quality gates, TDD, UX, code quality, docs, and CI verification. Companions skip silently if not installed. NOT the entry point and not…

mthines/agent-skills · 142 tokens

changelog

Generates a personal markdown changelog of merged or closed pull requests authored by the current user and Linear tickets the user closed or worked on, over a configurable window (default 7 days), grouped by feature area (e.g. Dashboards, Agent0). Inputs sourced from gh search prs --author=@me and the Linear MCP. Use…

mthines/agent-skills · 123 tokens

pr-review

One-shot read-only review of a GitHub PR — dispatches the pr-reviewer agent and reports its verdict and findings without touching your code. The short entry point for "review this PR" when you do not want an apply-and-converge loop. Also writes maintainer relevance rules via /pr-review remember . Invoke with…

mthines/agent-skills · 78 tokens