Github:my status

From kagenti/kagenti · View interactive version

Github:my status is an AI agent skill from the GitHub repository kagenti/kagenti. Personal status dashboard - your PRs, reviews, issues, and worktrees at a glance

How to use this skill

Skill file

My Status

Personal action items: what needs your attention right now.

Table of Contents

Variables

Set at session start:

export OWNER=<org-or-user>
export REPO=<repo-name>

When to Use

Auto-approved: All gh commands are read-only and auto-approved.

Workflow

1. Detect Current User

GH_USER=$(gh api user --jq '.login')
echo "Status for: $GH_USER"

2. My Open PRs (with CI + review status)

gh pr list --repo $OWNER/$REPO --author @me --state open \
  --json number,title,createdAt,updatedAt,reviewDecision,statusCheckRollup,headRefName \
  --jq '.[] | "#\(.number) [\(.headRefName)] \(.title)\n  Review: \(.reviewDecision // "NONE")\n  CI: \([.statusCheckRollup[]? | .conclusion] | group_by(.) | map("\(.[0]): \(length)") | join(", "))\n  Updated: \(.updatedAt)\n"'

3. Reviews Requested From Me

gh pr list --repo $OWNER/$REPO --search "review-requested:@me" --state open \
  --json number,title,author,createdAt,updatedAt \
  --jq '.[] | "#\(.number) by @\(.author.login): \(.title) (updated: \(.updatedAt))"'

4. Issues Assigned to Me

gh issue list --repo $OWNER/$REPO --assignee @me --state open \
  --json number,title,labels,createdAt,updatedAt \
  --jq '.[] | "#\(.number) \(.title)\n  Labels: \([.labels[].name] | join(", "))\n  Updated: \(.updatedAt)\n"'

5. PRs Where I Am Mentioned (last 7 days)

gh pr list --repo $OWNER/$REPO --search "mentions:@me" --state open \
  --json number,title,author,updatedAt \
  --jq '.[] | "#\(.number) by @\(.author.login): \(.title) (updated: \(.updatedAt))"'

6. My Worktree Status

echo "=== Worktrees ===" && \
git worktree list --porcelain | grep -E "^worktree|^branch" | paste - - | \
while read wt branch; do
  dir=$(basename "$(echo "$wt" | sed 's/worktree //')")
  br=$(echo "$branch" | sed 's|branch refs/heads/||')
  pr=$(gh pr list --head "$br" --json number,state,title --jq '.[0] | "PR #\(.number) [\(.state)]"' 2>/dev/null || echo "No PR")
  printf "%-40s %-30s %s\n" "$dir" "$br" "$pr"
done

Output Format

Present results as a summary:

## Status for @username

### My Open PRs: N
| # | Branch | Title | CI | Review |
|---|--------|-------|----|--------|
| ... |

### Reviews Waiting for Me: N
| # | Author | Title | Age |
|---|--------|-------|-----|
| ... |

### Issues Assigned to Me: N
| # | Title | Labels | Updated |
|---|-------|--------|---------|
| ... |

### Active Worktrees: N
| Worktree | Branch | PR |
|----------|--------|---|
| ... |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.