agents/skills/status/SKILL.md
Summarize the status of the current project or task. Works in both multi-repo workspaces and single repositories.
npx skillsauth add pkey/dotfiles statusInstall 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.
Retrieve the status of the project. It should be a summary of progress.
First, determine the workspace type:
Check if current directory is a git repo:
git rev-parse --git-dir 2>/dev/null
If NOT a git repo, scan for all git repositories in subdirectories:
for dir in */; do
if git -C "$dir" rev-parse --git-dir &>/dev/null; then
echo "$dir"
fi
done
Note: Use git rev-parse instead of checking for .git directory to handle both regular repos and git worktrees.
IMPORTANT: Check ALL discovered repositories - do not skip any. Each subdirectory that is a git repo (including worktrees) must be checked for branch, commits, PRs/MRs, and changes.
Single repo mode: If invoked inside a git repository, report status for that repo only.
Multi-repo mode: If invoked in a parent directory containing multiple repos, report status for ALL of them.
Determine whether each repo uses GitHub or GitLab before running PR/MR commands:
git remote -v
github.com → use gh CLIgitlab → use glab CLIFind PRs/MRs for the current branch, checking all states (open, merged, closed).
Important: Do NOT suppress stderr with 2>/dev/null - if a command fails, the error should be visible so issues (like incorrect flags) are surfaced rather than silently hidden.
GitHub:
gh pr list --head=<branch> --state=all --json number,title,state,mergedAt
GitLab (note: glab uses different flags than gh - there is no --state flag):
# Open MRs (default)
glab mr list --source-branch=<branch>
# Merged MRs
glab mr list --source-branch=<branch> --merged
# Closed MRs
glab mr list --source-branch=<branch> --closed
Run all three to get the complete picture. Alternatively, use the API directly:
glab api "projects/:id/merge_requests?source_branch=<branch>&state=all"
If a PR/MR is merged, skip CI and review checks for that repo (no longer applicable).
Check pipeline/workflow status for open PRs/MRs:
GitHub:
gh pr checks <number>
GitLab:
glab ci status
glab mr view <number>
Check for blocking reviews or unresolved threads:
GitHub:
gh pr view <number> --json reviews,reviewRequests
GitLab:
The standard glab mr view <number> does NOT show approval status. Use the API instead:
glab api "projects/<project-path-url-encoded>/merge_requests/<number>/approvals"
Example (for probely/backend MR 4310):
glab api "projects/probely%2Fbackend/merge_requests/4310/approvals"
Key fields in the response:
approved: boolean - whether MR is approvedapprovals_required: number of required approvalsapprovals_left: remaining approvals needed (0 = fully approved)approved_by: array of users who approvedmerge_status: "can_be_merged" when readyFor unresolved discussions, use:
glab mr view <number>
Show the scope of changes per repo:
git diff main --stat | tail -1
This provides a quick summary of files changed and lines added/removed.
Present status using this template:
## Status Summary
| Repo | Branch | PR/MR | CI Status | Reviews | Changes |
|------|--------|-------|-----------|---------|---------|
| repo-name | feature-branch | #123 | passing/failing | approved/pending | +100/-50 |
| repo-name | feature-branch | #456 (merged) | - | - | +200/-30 |
### Details
**[repo-name]** (open)
- Branch: `feature-branch`
- PR/MR: #123 - Title
- CI: ✅ passing / ❌ failing
- Reviews: X approved, Y pending
- Diff: X files, +Y/-Z lines
**[repo-name]** (merged)
- Branch: `feature-branch`
- PR/MR: #456 - Title (merged on YYYY-MM-DD)
### Recent Commits
- `abc1234` - Commit message (repo-name)
### Blockers
- List any blocking issues or pending reviews
### What's Next
- List immediate next steps or action items
After gathering status, identify and summarize the next steps:
AGENTS.md, TODO.md, progress.md) for remaining work itemsInclude a prioritized list of actionable next steps in the output.
tools
Use when working with git worktrees in pkey's repos — creating a branch, switching between worktrees, removing one, or starting a stacked PR with Graphite. The user has shell helpers (gwt, gwtn, gwtc, gwtl, gwtm, gwtrm, gwtrmf, gwtp) sourced from ~/dotfiles/tools/git-worktree.sh that enforce a consistent layout under ~/worktrees/<repo>/<branch>. Prefer these over raw `git worktree` commands so layout and main-worktree protection stay consistent.
tools
Reference for Helix editor keybindings, commands, and configuration. Use when the user asks about Helix shortcuts, how to do X in Helix, Helix config options, or how to set up language servers/themes in Helix.
development
Google Sheets: Read and write spreadsheets.
development
Google Sheets: Read values from a spreadsheet.