prlisted
Install: claude install-skill bjornjee/agent-dashboard
Open a pull request for the current branch. This is the only sanctioned path
to PR creation — a `pr-skill-gate` hook blocks any direct `gh pr create` that
doesn't carry this skill's bypass marker.
Optional arguments: $ARGUMENTS
## Instructions
Each phase has a gate. Do not proceed until it passes.
---
### Phase 1: Sync state
Run in parallel:
1. `git status` — warn if uncommitted changes (but proceed; the cleanup phase may add commits anyway).
2. `BASE=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's|refs/remotes/origin/||' || echo main)` — detect default branch.
3. `git branch --show-current` — current branch.
4. `git rev-parse --abbrev-ref @{upstream} 2>/dev/null` — does it track a remote?
5. `git log --oneline $(git merge-base HEAD "$BASE")..HEAD` — commits on this branch.
6. `git diff --name-only "$BASE"...HEAD` — files changed vs base. Save this list — it's the input to Phase 3.
**Gate:** You have the changed-file list and the base branch.
---
### Phase 2: Clean up scratch artifacts
Delete transient files left over from implementation, testing, and discovery —
screenshots, Playwright MCP output, and tmp scratch — before the cleaner pass
inspects the diff. **Untracked only.** Never touch tracked or staged files.
Deletion is destructive and irreversible. This phase **requires explicit user
confirmation** before any `rm` runs.
1. Identify untracked artifacts. Use `git ls-files --others --exclude-standard`
for unignored untracked files, and `gi