一键导入
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 职业分类
| 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">
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.