Loading...
Loading...
Quick situational awareness for the current git branch. Summarizes what a feature branch is about by analyzing commits and changes against trunk. On trunk, highlights recent interesting activity. Use when user says "wtf", "what's going on", "what is this branch", "what changed", or "catch me up".
npx skill4agent add nathan13888/nice-skills wtfWriteEditReadGlobGrep/wtf/wtf auth/wtfCURRENT=$(git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD)
DETACHED=$?
if git rev-parse --verify main &>/dev/null; then TRUNK="main"
elif git rev-parse --verify master &>/dev/null; then TRUNK="master"
else TRUNK=""; fi
echo "CURRENT=$CURRENT"
echo "TRUNK=$TRUNK"
echo "DETACHED=$DETACHED"git log --oneline -10TRUNKAskUserQuestionCURRENT == TRUNKMERGE_BASE=$(git merge-base HEAD $TRUNK)
echo "=== LOG ==="
git log --format="%h %s%n%w(0,4,4)%b" $MERGE_BASE..HEAD
echo "=== STAT ==="
git diff --stat $MERGE_BASE..HEAD
echo "=== SHORTSTAT ==="
git diff --shortstat $MERGE_BASE..HEAD
echo "=== MERGE_BASE ==="
echo $MERGE_BASE-- '*{focus}*'git loggit diff --statgit logecho "=== RECENT ==="
git log --oneline --since="7 days ago" --format="%h %s (%an, %ar)"
echo "=== COUNT ==="
git rev-list --count --since="7 days ago" HEAD## WTF: {branch-name}
**Purpose:** {one-sentence description of what this branch does, inferred from commit messages}
**Base:** diverged from {trunk} at {merge-base-short} ({N} commits ahead)
**Scope:** {files changed} files | +{insertions} -{deletions}
### Changes
- {2-5 bullets summarizing logical changes, grouped by concern}
### Key Files
| File | Change | What |
| ------ | ------ | ---------------------- |
| {path} | +n/-n | {one-line description} |
---
**Next:**
1. Show the full diff
2. Deep-dive into a specific file
3. `/check` something specific## WTF: {trunk-branch}
{N} commits in the last 7 days.
### Highlights
**{Day}**
- {hash} {summary} ({author})
### Filtered Out
{N} routine commits omitted (deps, CI, docs).
---
**What do you want to look at?**
1. A specific commit
2. A different time range
3. Changes by a specific author
4. A specific area of the codebase