watchos-code-review
Reviews watchOS code for app lifecycle, complications (ClockKit/WidgetKit), WatchConnectivity, and performance constraints. Use when reviewing code with import WatchKit, WKExtension, WKApplicationDelegate, WCSession, or watchOS-specific patterns.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/anderskev/watchos-code-reviewWhat This Skill Does
The watchos-code-review skill is a specialized diagnostic and auditing tool for Apple Watch development. It acts as an expert pair programmer for watchOS-specific architecture, focusing on the unique constraints of the wearable environment, such as battery sensitivity, background runtime limitations, and the transition from legacy ClockKit to modern WidgetKit complications. The skill identifies architectural bottlenecks in WatchConnectivity, checks for proper implementation of lifecycle delegates, and ensures performance benchmarks are met for the constrained hardware of Apple Watch.
Installation
You can install this skill directly via the OpenClaw CLI using the following command:
clawhub install openclaw/skills/skills/anderskev/watchos-code-review
Once installed, the skill automatically registers hooks for files containing watchOS imports, allowing you to trigger reviews by referencing the skill in your project.
Use Cases
- Legacy Migration: Transitioning older watchOS apps from ClockKit to WidgetKit and Smart Stack integration.
- Connectivity Debugging: Resolving issues with data synchronization between iPhone and Watch using WCSession.
- Performance Optimization: Reducing battery drain and memory pressure caused by inefficient background tasks or incorrect scene handling.
- Code Audits: Validating compliance with Apple's strict UI guidelines and background runtime requirements for app approval.
Example Prompts
- "Analyze this WCSession implementation. Is the reachability check correct for transferring heavy health data to the iPhone?"
- "Review my background task handling in
WKApplicationDelegate. Am I scheduling the next update correctly, and is the snapshot being finalized?" - "My watchOS app crashes when transitioning from a nested TabView. Does my code follow the recommended navigation patterns to avoid memory leaks?"
Tips & Limitations
- Context is Key: Always include the relevant part of the
WKExtensionorAppdelegate to get the most accurate feedback. - Reference Loading: You can manually trigger specific documentation loading by requesting the skill to pull from
references/for detailed deep-dives into specific APIs. - Limitations: While this skill is an expert in watchOS patterns, it cannot run the code. It should be used for architectural review and logical verification rather than unit testing or runtime debugging. Always test your app on physical hardware, as the simulator often masks background runtime and battery issues.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-anderskev-watchos-code-review": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Related Skills
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
fetch-pr-feedback
Fetch review comments from a PR and evaluate with receive-feedback skill
swift-testing-code-review
Reviews Swift Testing code for proper use of
rust-testing-code-review
Reviews Rust test code for unit test patterns, integration test structure, async testing, mocking approaches, and property-based testing. Covers Rust 2024 edition changes including async fn in traits for mocks,
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do