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
explanation-docs
Explanation documentation patterns for understanding-oriented content - conceptual guides that explain why things work the way they do
tutorial-docs
Tutorial patterns for documentation - learning-oriented guides that teach through guided doing
pytest-code-review
Reviews pytest test code for async patterns, fixtures, parametrize, and mocking. Use when reviewing test_*.py files, checking async test functions, fixture usage, or mock patterns.
reference-docs
Reference documentation patterns for API and symbol documentation. Use when writing reference docs, API docs, parameter tables, or technical specifications. Triggers on reference docs, API reference, function reference, parameters table, symbol documentation.
serde-code-review
Reviews serde serialization code for derive patterns, enum representations, custom implementations, and common serialization bugs. Use when reviewing Rust code that uses serde, serde_json, toml, or any serde-based serialization format. Covers attribute macros, field renaming, and format-specific pitfalls.