Skip to main content

xcodebuild-notify

Sends macOS notifications after xcodebuild commands, showing Build Succeeded or Build Failed with scheme and project info. Mimics Xcode's native build notifications. Auto-triggers on xcodebuild via PostToolUse hook.

소스 정보

저장소
artemnovichkov/skills
최근 소스 활동
2026년 4월 25일 09:10
감지된 SKILL.md 언어
영어
스타
41
포크
3

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
6 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
xcodebuild-notify
description
Sends macOS notifications after xcodebuild commands, showing Build Succeeded or Build Failed with scheme and project info. Mimics Xcode's native build notifications. Auto-triggers on xcodebuild via PostToolUse hook.
# xcodebuild-notify macOS notifications for `xcodebuild` commands, mimicking Xcode's native build notifications. ## When to Use This skill activates automatically via a PostToolUse hook on Bash commands. No manual invocation needed — any `xcodebuild` command triggers it. ## How It Works The hook script (`hooks/scripts/xcodebuild-notify.sh`) runs after every Bash tool use: 1. Checks if the command contains `xcodebuild` — exits early if not 2. Parses `-scheme` and `-project` flags from the command 3. Checks tool output for `BUILD SUCCEEDED` or `BUILD FAILED` 4. Sends a macOS notification via `osascript` ### Hook Configuration The PostToolUse hook is defined in `hooks/hooks.json`: ```json { "PostToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "bash $CLAUDE_PLUGIN_ROOT/hooks/scripts/xcodebuild-notify.sh", "async": true } ] } ] } ``` ### Notification Examples **Build succeeds:** ``` Title: "Build Succeeded" Body: "MyScheme | MyApp Project" ``` **Build fails:** ``` Title: "Build Failed" Body: "MyScheme | MyApp Project" ``` Commands that don't produce `BUILD SUCCEEDED` or `BUILD FAILED` (e.g., `xcodebuild clean`, `xcodebuild -help`) are silently skipped. ## Requirements - macOS (uses `osascript` for notifications) - `jq` (`brew install jq`) — parses hook input JSON
GitHub에서 보기