Community研究与数据分析github.com

steipete/mac-maintenance

Mac 维护:brew 更新/升级、拉取干净仓库、清空回收站。

mac-maintenance 是什么?

该技能用于自动执行 Mac 系统的日常维护任务,包括 Homebrew 包管理器更新与升级、清理 ~/Projects 下所有 Git 仓库(仅处理干净仓库)、以及清空 Finder 回收站。它适合在用户请求“清理 Mac”或“刷新包/仓库”时调用。该技能基于 shell 命令实现,并支持跳过脏仓库,最终输出简洁的统计信息(如已升级包数、已拉取/跳过/失败的仓库数、回收站清空状态)。适用于 macOS 环境。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/steipete/agent-scripts/tree/main/skills/mac-maintenance

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Mac 维护

当 Peter 要求进行 Mac 清理、维护或包/仓库刷新时使用。

运行

  1. Homebrew:
brew update && brew upgrade
  1. ~/Projects 下的仓库:
for repo in ~/Projects/*/.git; do
  dir=${repo:h}
  git -C "$dir" status --short --branch
  git -C "$dir" pull --ff-only
done

跳过脏仓库,除非 Peter 明确要求处理它们。报告跳过的路径。

  1. 清空回收站:
osascript -e 'tell application "Finder" to empty trash'
  1. 以简洁计数结束:
  • brew:升级完成 / 已是最新
  • 仓库:已拉取 / 已跳过 / 失败
  • 回收站:已清空 / 失败

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

steipete/agent-transcript

GitHub PR/issue agent transcripts: redact, preview, and insert safely.

steipete/beeper

Beeper cache: contact hints, room lookup, WhatsApp/iMessage traces, FTS.

steipete/browser-use

Existing Chrome automation: Chrome plugin first, mcporter fallback.

steipete/clawsweeper-status

ClawSweeper status: URLs, workflow health, active workers, ops snapshot.

steipete/clickclack

ClickClack ops: chat app, Hetzner deploy, DNS/docs/app, Docker rollout.

steipete/cloudflare-registrar

Cloudflare Registrar: domain availability, prices, registration via mcporter.

steipete/codex-debugging

Codex debugging: codex-rs core/tui/exec/cli/app-server/config.

steipete/create-cli

CLI UX/spec: args, flags, help, output, errors, config, dry-run.

steipete/discord-clawd

Discord-backed OpenClaw agent/session relay; not archive search.

steipete/domain-dns-ops

DNS/domain ops: registrars, zones, redirects, DNS/HTTP verify, manager truth.

steipete/frontend-design

Frontend UI: pages, apps, components, polished non-generic design.

steipete/github-author-context

GitHub contributor context: identity, activity, trust, company/team signal.

steipete/github-cache-hygiene

GitHub quota/cache hygiene: gh, ghx, xcache, gitcrawl, mirrors, limits.

steipete/github-deep-review

GitHub deep review: bugs, PRs, best fix, stale-or-real, read code first.

steipete/github-project-triage

GitHub issue/PR triage: queues, CI, blockers, risk, proof, next actions.

steipete/hopper-debugger

Hopper debugging: macOS/iOS binaries, ObjC/Swift symbols, dyld, LLDB.

steipete/instruments-profiling

Instruments/xctrace profiling: macOS/iOS traces, binaries, args, exports.

steipete/maintainer-orchestrator

Open-source maintainer orchestration: Codex app workers, work recovery, dependencies, vision, releases.

steipete/markdown-converter

Markdown conversion: PDF, Office, HTML, data, OCR, audio, ZIP, YouTube.

steipete/nano-banana-pro

Nano Banana/Gemini image gen/edit: text/image input, 512-4K workflows.

相关技能