원클릭으로
repo-reset
Pull latest main, switch to it, then assess and clean up merged branches and worktrees for a given repo
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Pull latest main, switch to it, then assess and clean up merged branches and worktrees for a given repo
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Review a PR (by link or from current context) or the current feature branch using a multi-model, verification-first workflow.
Summarize the recent work done in the current Claude context into today's Obsidian daily note (daily/YYYY-MM-DD.md), merging without duplicating. Use when the user says "obsidian daily", "log my work to obsidian", "update my daily note", or asks to record today's work into their Obsidian vault.
Create a good pull request
Fetch, assess, and address PR review comments — fix valid ones, explain why invalid ones are skipped, reply with commit links, and resolve threads.
Create a meaningful git commit message based on current changes.
GitHub Actions workflow standards for this repository. Use when reviewing or fixing GitHub Actions workflows to enforce security hardening, permissions, and operational conventions.
| name | repo-reset |
| description | Pull latest main, switch to it, then assess and clean up merged branches and worktrees for a given repo |
When invoked with a repo name (e.g., /repo-reset mono), perform the following steps in order:
/Users/jason.meridth/code/<repo>cd <repo-path>
git fetch upstream main 2>/dev/null || git fetch origin main
git checkout main
git merge upstream/main --ff-only 2>/dev/null || git merge origin/main --ff-only
upstream remote if it exists, fall back to origingit worktree list (use git worktree list --porcelain for parsing)main) is never touched - skip itgh pr list --head <branch> --state merged --json number --jq '.[0].number' (merged / open / none)git -C <worktree-path> status --porcelain - non-empty means uncommitted changes or untracked filesprunable in git worktree list --porcelaingit worktree remove <path>git worktree prunegit branch -d refuses to delete a branch that is checked out in a worktree, so the worktree must go first--force) - report it as Skip (dirty) and leave it alonemain (and master if it exists)gh pr list --head <branch> --state merged --json number --jq '.[0].number'git branch -d <branch>git branch -D (force delete) - only use -d (safe delete)Print a summary:
Repo: <repo-name>
Branch: main @ <short-sha>
Deleted branches: <list or "none">
Skipped branches: <list with reason, or "none">
Worktrees removed: <list or "none">
Worktrees pruned: <count or "none">
Worktrees skipped: <list with reason (open PR / no PR / dirty), or "none">