HealthKit Code Review for Openclaw

A specialized technical review agent designed to ensure Apple HealthKit implementations follow strict privacy, performance, and architectural best practices.

anderskev
v1.2.1
Apr 22, 2026
0
814
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install healthkit-code-review

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install healthkit-code-review using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is HealthKit Code Review?

The HealthKit Code Review skill is a specialized tool within the Openclaw Skills ecosystem tailored for iOS and macOS developers working with sensitive health data. It systematically analyzes Swift or Objective-C codebases to identify common pitfalls in HKHealthStore management, authorization patterns, and background delivery cycles. By enforcing Apple's privacy-by-design principles, this skill ensures that applications handle user data ethically and efficiently.

This skill is particularly valuable for teams aiming to pass App Store review and maintain high-performance health integrations. It automates the verification of complex logic such as anchored object queries, statistics collection, and the strict completion handler requirements of observer queries, reducing the manual overhead for senior developers during the code review process.

HealthKit Code Review Use Cases

  • Reviewing initial setup of HKHealthStore and verifying isHealthDataAvailable checks.
  • Auditing permission request flows to ensure compliance with Apple's privacy guidelines.
  • Optimizing HealthKit queries for performance by replacing manual summing with HKStatisticsQuery.
  • Troubleshooting background delivery and observer query lifecycle issues.
  • Validating data type handling for HKQuantityType and HKCategoryType units.

How HealthKit Code Review Works

  1. The skill identifies files in the codebase containing HealthKit imports or HK prefix APIs to define the review scope.
  2. It verifies the presence of hardware availability checks before any store initialization or data access.
  3. The agent analyzes authorization logic, checking if completion handlers correctly interpret success versus actual data access permissions.
  4. It evaluates all active queries for proper predicates, result limits, and threading, ensuring UI updates occur on the main queue.
  5. For background-enabled apps, it inspects registration points and ensures completion handlers are invoked within the required 15-second window.
  6. Finally, it generates a structured report based on the six-stage review gate process to provide actionable feedback.

HealthKit Code Review Setup

To integrate this review capability into your local development environment using Openclaw Skills, use the following commands:

# Clone the skill repository
git clone https://github.com/openclaw/healthkit-code-review.gitnn# Add the skill to your AI agent configuration
openclaw install . /path/to/healthkit-code-review

# Run a review on your iOS project directory
openclaw run healthkit-code-review --path ./YourXcodeProject

HealthKit Code Review Data Schema & Taxonomy

The skill organizes its analysis across several key reference domains to provide deep technical context:

Reference Module Target APIs Focus Areas
authorization.md HKHealthStore, requestAuthorization Privacy status, permission UI, and store injection.
queries.md HKSampleQuery, HKStatisticsQuery Predicates, anchors, and aggregation efficiency.
background.md HKObserverQuery, enableBackgroundDelivery Background tasks, completion handlers, and entitlements.
data-types.md HKQuantityType, HKWorkout Unit conversions, metadata, and data structure validation.

HealthKit Code Review Advanced Features

  • Multi-stage review gates that prevent logical fallacies in review reports by enforcing sequential pass conditions.
  • Specific validation for HKObjectQueryNoLimit to prevent memory issues with unbounded result sets.
  • Enforcement of main-thread dispatching for query results to prevent UIKit threading violations.
  • Deep-link reference mapping to specific documentation files for immediate developer remediation.
  • Persistence validation for HKQueryAnchors to ensure reliable data synchronization across app launches.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*