prepare-branch-context
Installation
SKILL.md
Prepare Branch Context
Create a read-only handoff pack so the next agent can act without re-running basic discovery. Optimize for speed: gather shape first, read only the highest-signal patches, and state unknowns instead of exhaustively proving every edge.
Execution mode: run in a subagent. Default: thrifty unless the user explicitly asks for another agent.
Inputs
- Preferred:
prepare-branch-context from <base-branch> - Also supports: omitted base branch,
commits <rev-range>, orfiles <path1,path2,...> - If no base is given: detect GitHub default branch; if that fails, fall back to
stagingand say so.
Fast workflow
- Resolve scope
- Determine current branch and
BASE_BRANCH. git fetch origin "$BASE_BRANCH"; useorigin/$BASE_BRANCHwhen available, otherwise local$BASE_BRANCHwith a note.- Respect explicit commit/file subset scopes.
- If there is no diff from the compare ref, emit a minimal summary and stop.
- Determine current branch and