AgentSkillsCN

watch-monitor

精通watchOS与iOS的单元测试、UI测试,以及测试驱动开发。当您需要使用XCTest测试SwiftUI视图、测试WatchKit组件,或为手表应用制定完善的测试策略时,本技能将为您提供专业支持。

SKILL.md
--- frontmatter
name: watch-monitor
description: Launch the live watch debug monitor TUI to track integration events in real-time

Watch Debug Monitor

Launch the real-time watch integration debug monitor.

What This Does

Starts an interactive TUI dashboard that shows:

  • ⌚ Live event stream (hooks, requests, approvals, errors)
  • ☁️ Cloud server connectivity status
  • 🔗 Pairing status
  • 🪝 Hook status
  • 📨 Pending approval requests
  • 🎫 Auto-creates Ralph tasks when issues are detected

Run the Monitor

bash
.claude/hooks/watch-debug-monitor.sh

Press Ctrl+C to exit.

Related Commands

CommandDescription
.claude/hooks/watch-debug-viewer.shBrowse saved debug sessions
.claude/hooks/watch-debug-viewer.sh tailFollow latest log live
.claude/hooks/watch-debug-viewer.sh errorsShow only errors
.claude/hooks/watch-debug-viewer.sh statsShow statistics

Auto-Bug Detection

The monitor automatically creates Ralph tasks when patterns indicate issues:

PatternThresholdTask ID
Cloud connectivity failures3 in 5minDBG-CLOUD
Pairing ID mismatchImmediateDBG-PAIR
Request timeouts2 in 10minDBG-TIMEOUT
Hook failures3 in 5minDBG-HOOK
High rejection rate5 in 10minDBG-UX-REJECT
APNs failures2 in 5minDBG-APNS

Logs Location

All sessions saved to: .claude/logs/watch-debug/