skills/wtf/SKILL.md
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 skillsauth add nathan13888/nice-skills wtfInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Single-pass situational awareness for the current git branch. Analyzes git state only -- no source file reads.
Write, Edit, Read, Glob, and Grep are intentionally excluded from allowed-tools. This skill MUST NOT read or modify any files.
Follow all 3 steps sequentially.
Parse the optional focus argument from everything after /wtf.
/wtf auth -> focus is "auth"/wtf (bare) -> no focus, full analysisRun a single Bash call to detect the git context:
CURRENT=$(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 -10 around that point, summarize, and stop.TRUNK is empty) -> use AskUserQuestion to ask the user for their trunk branch name, then continue.CURRENT == TRUNK) -> go to Step 2B.Run a single Bash call to collect all data at once:
MERGE_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
If a focus argument was provided, add path filtering:
-- '*{focus}*' to the git log and git diff --stat commandsEdge case -- no divergence: If git log returns nothing (merge base == HEAD), report "Branch exists but hasn't diverged from {trunk} yet." and stop.
Parse the output silently. Do NOT echo the raw git output. Proceed to Step 3A.
Run a single Bash call:
echo "=== RECENT ==="
git log --oneline --since="7 days ago" --format="%h %s (%an, %ar)"
echo "=== COUNT ==="
git rev-list --count --since="7 days ago" HEAD
Parse the output:
Edge case -- no recent activity: If count is 0, expand the window to 30 days and re-run. If still 0, report "Quiet repo -- no commits in the last 30 days." and stop.
Parse the output silently. Do NOT echo the raw git output. Proceed to Step 3B.
Output in this exact format:
## 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
Output in this exact format:
## 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
data-ai
Ingest arbitrary feedback (GitHub/GitLab URL, pasted review, image, file path, free text) about the current repo, decompose it into a prioritized action plan with per-item owners (human / main-agent / subagent), confirm with the user, then dispatch execution. Use when user says "/tackle", "address this feedback", "act on this review", "work through this feedback", or "what should I do about this".
development
Capture a problem or change request, verify it lightly against the codebase, draft a structured issue report, then route to one of: upload to GitHub/GitLab, document in code, hand off for implementation, or a free-text next step. Use when user says "/issue", "report a problem", "file a bug", "raise an issue", "track this", or "open a ticket".
testing
Create a new git branch off trunk using the project's existing naming convention. Detects trunk (main/master/etc.) and the dominant prefix pattern (feat/, <username>/, etc.) from existing branches, slugifies the feature description, and runs git checkout -b. Use when user says "feature branch", "new branch", "create branch", "git branch", or "/feature-branch".
development
Finds suspicious, architecturally problematic, or high-impact maintainability issues in a codebase. Deploys parallel analysis agents to explore code, then synthesizes findings into a prioritized report. Use when user says "find problems", "audit code", "what's sus", "code review the repo", "find tech debt", or asks about code quality.