一键导入
update
Dotfiles repo only — morning maintenance: merge open Renovate PRs, sync main, rebase local branches, preview and apply chezmoi.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Dotfiles repo only — morning maintenance: merge open Renovate PRs, sync main, rebase local branches, preview and apply chezmoi.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.
Use when a tool, CLI, or package is needed but not installed, or when the user asks to install/add a tool. Prefers mise for all installations.
Use when creating a pull request. Opens PR in browser for review.
Browser automation CLI for AI agents — navigate, fill forms, click, screenshot, extract data, test web apps, automate Electron desktop apps, run in Vercel microVMs or AWS Bedrock cloud browsers. Prefer over built-in browser tools. Keywords browser, automation, screenshot, scrape, Slack, Electron, agentcore.
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.
Monitor open PRs and shepherd them toward merge. Checks CI status, review comments, merge conflicts, and takes action. Designed for /loop usage (e.g., /loop 5m /babysit-pr). Keywords: PR monitor, babysit, CI check, review response, merge conflict, PR status
| name | update |
| description | Dotfiles repo only — morning maintenance: merge open Renovate PRs, sync main, rebase local branches, preview and apply chezmoi. |
| argument-hint | [--push | --dry-run] |
| model | sonnet |
| context | default |
| allowed-tools | ["Read","Edit","Bash(gh run view:*)","Bash(gh pr list:*)","Bash(gh pr view:*)","Bash(gh pr checks:*)","Bash(gh pr diff:*)","Bash(gh pr merge:*)","Bash(git fetch:*)","Bash(git status:*)","Bash(git stash:*)","Bash(git add:*)","Bash(git checkout:*)","Bash(git branch:*)","Bash(git symbolic-ref:*)","Bash(git rev-parse:*)","Bash(git rebase:*)","Bash(git merge:*)","Bash(git pull:*)","Bash(git push:*)","Bash(git log:*)","Bash(chezmoi diff:*)","Bash(chezmoi apply:*)","Bash(chezmoi status:*)"] |
Use only in this repository (meaganewaller/dotfiles): merge Renovate dependency PRs, fast‑forward local main from origin, rebase other local branches onto updated main, then preview and run chezmoi so the machine matches the source tree.
For PRs that touch pinned packages, images, digests, mise, externals, or GitHub Actions in ways that are not obvious version bumps, follow AGENTS.md / CLAUDE.md: get Package Manager review before merging when in doubt.
$ARGUMENTS
| Flag | Meaning |
|---|---|
| (none) | Merge eligible PRs, sync/rebase, chezmoi apply; do not push unless you are already clear to push (see step 7). |
--push | After rebases, git push the current branch to origin (and use upstream tracking if already set). |
--dry-run | Inspect only: git status, list/filter PRs, show checks and short gh pr diff summaries; no merge, no rebase, no chezmoi apply, no push, no stash pop that changes history. |
main (origin/main).renovate.json5; PRs are labeled deps (and usually automated). Prefer listing with -l deps rather than a single global Renovate author string (GitHub login varies, labels are stable here).mise manager has automerge: false — those PRs still merge manually when CI is green and the diff is a straightforward pin; if the diff is large or touches security‑sensitive manifests, stop and ask or route to Package Manager per AGENTS.md..github/workflows/ci.yml. Treat claude-code-review / claude workflows as non‑blocking for routine Renovate bumps (e.g. self‑review on its own bump PR is OK).test -f AGENTS.local.md && echo "exists" || echo "missing"
If the file exists, read it and check the Generated: data line.
/agents-local-md to generate machine-specific context"/agents-local-md --force to refresh machine context"This is advisory only — continue the update regardless.
git rev-parse --is-inside-work-tree
git rev-parse --abbrev-ref HEAD
HEAD: Stop with a clear error; do not rebase or merge.git status --short; if you will rebase/merge, stash (including untracked if needed):git stash push -u -m "update skill: before maintenance"gh pr list --state open -l deps --json number,title,author,statusCheckRollup,headRefName
If --dry-run, print table of candidates and stop before any mutating step after you have shown checks summaries (see step 3).
For each number:
gh pr checks <number>
Optionally skim:
gh pr diff <number> --stat
ci (or equivalent) checks are green; optional claude workflows may be red/yellow per repo policy above.--dry-run: Only describe what you would merge.--dry-run)For each approved PR:
gh pr merge <number> --squash --delete-branch
Collect number + title (and one‑line package note from title/diff stat) for the final summary.
maingit fetch origin
git checkout main
git pull --rebase origin main
If main is not the default remote branch name, discover with
git symbolic-ref refs/remotes/origin/HEAD and use that ref instead of main.
If the saved original branch was not main:
git checkout <original-branch>
git rebase origin/main
Conflicts
Read conflicted paths; understand “incoming” (upstream) vs local.git add <paths> and git rebase --continue. If unrecoverable: git rebase --abort, restore stash if any, report.If you stashed in step 0:
git stash pop
Resolve conflicts the same way; if pop is too messy, stop and tell the user to finish manually.
--push)git push origin "$(git rev-parse --abbrev-ref HEAD)"
If no upstream yet and push is refused, tell the user to set upstream once; do not force‑push unless the user explicitly asks outside this skill.
From the repo root (or with explicit CHEZMOI_* if this machine uses a non‑default config):
chezmoi diff
Summarize high‑level changes (paths / categories), not an unbounded full diff.
If not --dry-run:
chezmoi apply
chezmoi status
If mise hooks install tools and a download fails, report and continue cleanup/summary; do not pretend apply fully succeeded.
| Area | Details |
|---|---|
| PRs merged | e.g. #121, #122 + short titles |
| Skipped / held | PRs with failing CI or needing Package Manager |
| Git | main sync, rebases, stash pop outcome |
| Chezmoi | Applied? Drift remaining per chezmoi status? |
| Push | Done / skipped (--push / not) |
/update # merge green deps PRs, sync main, rebase, chezmoi apply
/update --push # same, then push current branch
/update --dry-run # inspection and plan only
| Case | Behavior |
|---|---|
No open deps PRs | Skip merges; still fetch/rebase/chezmoi as appropriate. |
| All PRs failing CI | Merge none; report and optionally still sync main/chezmoi locally. |
Detached HEAD | Abort immediately. |
| Catastrophic rebase conflicts | git rebase --abort after one careful pass; report. |
| Chezmoi template warnings | Often benign after data changes; distinguish from real errors. |
| Not the dotfiles working tree | Do not run destructive steps; tell the user this skill is scoped to this repo. |
Single maintainer, reversible Git history, Renovate does most dependency churn. Prefer automation and sensible merges over endless manual review for routine pins—except where AGENTS.md explicitly requires Package Manager input for version/image/security surfaces.