jnsahaj/skills/prepare-branch-context
Claude Code and agent skill by jnsahaj/skills
- community
Checking that the SKILL.md file is still in the repository.
Analyze the current branch's diff from main and related PR to build context for followup requests. Triggers on "prepare context", "branch context", "catch me up", "what's on this branch".
Install
npx vskill@latest install jnsahaj/skills/prepare-branch-contextSKILL.md
Prepare Branch Context
Build a comprehensive understanding of the current branch so you can handle followup requests with full context.
Steps
- Identify the current branch and base branch:
``bash git branch --show-current git merge-base HEAD main ``
- Gather the diff from main:
``bash git diff main...HEAD --stat git diff main...HEAD `` Read through the full diff carefully. Understand what files were changed, added, or removed, and what the changes do.
- Review the commit history on this branch:
``bash git log main..HEAD --oneline `` Read commit messages to understand the progression of changes.
- Check for a related PR:
``bash gh pr list --head "$(git branch --show-current)" --json number,title,body,url,state,comments --jq '.[0]' `` If a PR exists, read its title, description, and comments for additional context (acceptance criteria, discussion, review feedback).
- Summarize your understanding to the user:
- What this branch does (high-level purpose)
- Key files and areas of the codebase affected
- Notable decisions or patterns visible in the changes
- Any open review comments or discussion from the PR
- Current state (clean, uncommitted changes, etc.)
- Signal readiness: Tell the user you're ready for followup questions or tasks related to this branch.
Rules
- Do NOT make any changes to files. This skill is read-only.
- Read the actual diff content, not just the stat summary. You need to understand the code changes.
- If there's no PR, that's fine — just skip that step and note it.
- If the diff is very large, focus on understanding the overall structure first, then read key files in detail.
- Keep the summary concise but thorough enough that you could confidently make changes to this branch.
- If the branch is
mainor has no divergence from main, tell the user there's nothing to analyze.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/prepare-branch-context/SKILL.md
Popularity
- Repository stars
- 57
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jnsahaj/skills/prepare-branch-context)