원클릭으로
branch-onboarding-brief
Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Create, repair, validate, visually QA, and package Codex-compatible v2 animated pets from character art, generated images, company or prospect brand cues, or visual references. Use for any new Codex pet, custom mascot, non-pixel pet style, brand-inspired pet, existing-pet repair, or 8x11 spritesheet workflow requiring all 9 standard animation rows, 16 look directions, deterministic assembly, QA artifacts, and spriteVersionNumber 2 packaging.
Rewrite current branch into N semantic commits with a legacy backup branch and optional rebase onto origin/main.
Merge origin/main into current branch while preserving branch intent, context, and ownership decisions.
Chain branch onboarding, code-health, and non-test analysis into a branch-scoped remediation plan.
Audit codebase architecture: module dependencies, layering, circular imports, ownership, and structural decay.
Assess tech debt and rank refactoring priorities, change pain, maintainability risks, and cleanup roadmap.
| name | branch-onboarding-brief |
| description | Summarize current branch diff from fork point with intent, scope, risks, and context for follow-on work. |
Create a reliable, repeatable onboarding phase that summarizes the current branch changes since its fork point, grounds that summary in actual changed-code inspection, then produces a structured branch briefing and immediately hands off to the requested next action.
Before running repo-scoped branch commands, verify context once:
git rev-parse --is-inside-work-tree
Prefer the bundled script for deterministic data:
CODEX_HOME=${CODEX_HOME:-$HOME/.codex}
SKILL_DIR="$CODEX_HOME/skills/branch-onboarding-brief"
test -f "$SKILL_DIR/scripts/collect_branch_info.py" && python "$SKILL_DIR/scripts/collect_branch_info.py" --format json
Bundled collector semantics:
--base names the upstream branch used only to resolve the branch fork point; omit it to default to origin/HEAD, then main/mastergit merge-base --fork-point <base> HEAD, falling back to git merge-base <base> HEADfork_point..HEADcompare_mode so parent workflows can see which range each metric usedbase and fork_pointIf the bundled skill path is missing, search exact candidates under "$CODEX_HOME/skills" first and run the first returned absolute path:
rg --files "$CODEX_HOME/skills" -g 'collect_branch_info.py'
python /absolute/path/from-search/collect_branch_info.py --format json
If the script is unavailable (or script path check fails), fall back to:
git log --since=1.week --name-only
git diff --stat
git branch --show-current
base=$(git symbolic-ref --short refs/remotes/origin/HEAD 2>/dev/null || printf '%s\n' main)
fork=$(git merge-base --fork-point "$base" HEAD 2>/dev/null || git merge-base "$base" HEAD)
git log "$fork"..HEAD --oneline
git diff "$fork"..HEAD --name-only
git diff "$fork"..HEAD --numstat
git diff --stat "$fork"..HEAD
If the repo does not use main, detect the default upstream branch:
git symbolic-ref refs/remotes/origin/HEAD
Do not stop at commit subjects, file counts, or diff stats. Before writing the briefing, inspect the actual changed code on the current branch.
Minimum grounding contract:
git diff ... --name-onlyprobe-deep-searchPreferred tool order:
probe symbols <changed-file>probe extract <changed-file>#<symbol> or probe extract <changed-file>:<line-range>probe query <pattern> <changed-path> --language python for structural matchesrg / sed / direct file reads only when probe is unavailable or insufficientSuggested commands:
probe symbols src/stowage/planner/spp/pipeline.py
probe extract src/stowage/planner/spp/pipeline.py#run_loading_spp_pipeline_result
probe query "def $NAME($$$)" src/stowage/planner/spp --language python
If the branch is large, still read all risky/core files and inspect at least the top churn modules plus one representative file per remaining changed area before briefing.
Provide this phase before taking any additional task actions unless the user explicitly says to skip it.
Include:
Use the template in "$CODEX_HOME/skills/branch-onboarding-brief/assets/branch_brief_template.md". Keep the formatting tight and use the PR Workflow style as a reference (sections like Overview, Key Changes, Metrics, Risks, Tests, Review Focus).
When categorizing changes, make your criteria explicit (for example: tests by tests/, TUI by src/tui/, domain logic by src/stowage/). If categorization is heuristic, say so. Include at least a short code-grounded subsection describing which changed files/symbols were actually inspected and what they imply for the next task.
"$CODEX_HOME/skills/branch-onboarding-brief/scripts/collect_branch_info.py" first; do not start with broad repo-wide scans.probe against those changed paths before any broad text search.rg on identified files/modules first; only then expand with rg --files.git rev-parse --is-inside-work-tree; if it fails, stop branch-only analysis and report.scripts/collect_branch_info.py; verify the bundled skill path with test -f first, then use rg --files "$CODEX_HOME/skills" -g 'collect_branch_info.py' before any repo-wide search.rg --files "$CODEX_HOME/skills" -g 'collect_branch_info.py' finds a path, run that exact absolute path instead of retrying a repo-local scripts/collect_branch_info.py.origin/HEAD) and proceed with the minimal diff set.collect_branch_info.py: Gather branch diff data and emit JSON/Markdown.branch_brief_template.md: Structured briefing template.