ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 narrowstacks

xcode-status

仅在 Xcode 项目文件夹(.xcodeproj/.xcworkspace)中启用的 Claude Code function-hook mod,显示最近建置或测试结果和已启动的模拟器,标记运行 0 个测试的情况,并阻止第二个并发 xcodebuild。

narrowstacks@narrowstacks

narrowstacks/claude-code-mods/tree/master/xcode-status

已翻译

关于这个 mod

xcode-status 是 narrowstacks/claude-code-mods 中的 Claude Code 函数钩子插件,仅在包含 .xcodeproj 或 .xcworkspace 的文件夹中启用。它在提示上方显示一行状态:最近一次建置或测试结果(并标记运行了 0 个测试的运行)以及当前已启动的模拟器;已有 xcodebuild 运行时会阻止第二次调用;切换目录后在 /cd 上重新检查,并为每个项目保存最近一次结果。

安装方式:

claude plugin marketplace add narrowstacks/claude-code-mods
claude plugin install xcode-status@claude-code-mods

或直接从 checkout 加载:

claude --plugin-dir ./xcode-status

可以使用 claude plugin validate ./xcode-status 和 claude plugin test ./xcode-status 进行验证和测试。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add narrowstacks/claude-code-mods
claude plugin install xcode-status
原文 / README

claude-code-mods

Function-hook mods for Claude Code. Each folder is one plugin.

| Mod | What it does | | --- | --- | | context-watch | One-line gauge above the prompt for context fill, cost and hot rate limits; toasts at 60/80/90%; compaction keeps your instructions and edited files; /ctx opens a context breakdown pane | | live-spinner | Spinner shows what is running: the Bash description or a trimmed command, the ssh host, file being read or edited, search, subagent, MCP tool; a tool's own elapsed time after 15s; "Waiting for signing approval" when a signed git commit or tag sits quiet | | pr-watch | Tracks PRs from gh pr / gt submit / git push output, shows checks above the prompt, toasts on green/red/merged, blocks foreground CI polling loops; /prs | | house-style | No em dashes: system prompt rule, reminder to the model after a write that adds one, toast when a reply uses one | | handoff | /handoff [focus] writes a state note from the conversation and clears; the next prompt carries it. /handoff save, show, drop | | agent-jobs | /jobs opens a pane of running subagents and background shells with elapsed time and a Stop button; toasts when background work finishes | | zsh-safe | Quotes glob flags zsh would expand (--include=*.ts, find -name *.ts) and keeps a grep that finds nothing from failing a cd ... && grep chain | | pm-guard | Blocks npm/npx/yarn where the lockfile says bun or pnpm, and steers to bun where there is no lockfile | | remote-guard | Asks before a destructive command (restart, rm, kill, reboot, pct/qm stop, zfs destroy) runs over ssh | | xcode-status | Only in a folder with an .xcodeproj/.xcworkspace: one line with the last build or test result (flags runs that executed 0 tests) and the booted simulator; blocks a second xcodebuild while one is running; re-checks on /cd and keeps each project's last result | | agent-models | Pins the model each subagent type runs on (Explore, general-purpose, Plan, any other, plus custom type=model pairs), set in /config or with /agent-models <type> <model>; a model the caller names wins unless "Override explicit models" is on | | worktrees | /worktrees pane: each git worktree with branch, uncommitted changes, ahead/behind and PR state; Remove (after asking) on clean worktrees whose PR is merged or closed, plus "Remove N merged" to clear every merged one at once | | pr-rules | Blocks gh pr create / gt submit when the repo keeps an [Unreleased] changelog and the branch adds no entry (skip with --label no-changelog); where the repo's CLAUDE.md says to label every PR (or requireLabels is on), blocks a PR with no --label and lists the repo's labels. Repos with neither are untouched; /pr-rules on|off|auto overrides per repo (kept across sessions) |

Install

claude plugin marketplace add narrowstacks/claude-code-mods
claude plugin install context-watch@claude-code-mods

Or load from a checkout without installing:

claude --plugin-dir ./context-watch --plugin-dir ./live-spinner

Check

claude plugin validate ./context-watch
claude plugin test ./context-watch

tsc -p ./context-watch works once Claude Code has loaded the mod and written .claude-plugin/types/.

更多类似作品