bedkillerspacex-boop/codex-skill-library/android-health-connect

Claude Code and agent skill by bedkillerspacex-boop/codex-skill-library

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Android Health Connect integration for owned apps: permissions, data types, privacy rationale, read/write least privilege, and user-facing permission UX. Use when adding fitness/health data sync via Health Connect APIs — not for exfiltrating health data from other apps without user consent and policy compliance.

Install

npx vskill@latest install bedkillerspacex-boop/codex-skill-library/android-health-connect

SKILL.md

The same SKILL.md was published earlier as bedkillerspacex-boop/codex-skill-library/android-health-connect.

Android Health Connect

Scope And Authorization

  • In scope: Health/fitness features in apps you ship; compliance with Play and privacy policies.
  • Out of scope: Covert harvesting of health data; bypassing Health Connect permission UX.
  • Health data is sensitive — minimize types, retention, and sharing.
  • Pair with code-quality-standards and privacy review processes.

When To Use

  • Reading/writing steps, exercise, sleep, vitals via Health Connect.
  • Migrating from Google Fit APIs to Health Connect.
  • Declaring health permissions and rationales correctly.
  • Security/privacy review of health data flows.

Do Not Use As Primary

NeedSkill instead
Photo/media access privacyandroid-photo-picker
General Android pentestandroid-pentesting-tricks
Backend API authzapi-auth-and-jwt-abuse / API skills
Implementation quality baselinecode-quality-standards

Domain Focus

TopicGuidance
PermissionsPer data-type read/write permissions; request only needed
Data typesRecord types (Steps, ExerciseSession, HeartRate, …)
AggregationPrefer aggregates over raw samples when sufficient
RationaleIn-app education before system permission
BackgroundUnderstand foreground vs longer access limitations
SyncSecure backend storage; encryption; retention limits

Workflow

1. Confirm scope and success criteria
  1. Record which data types, why, retention, third-party sharing.
  2. Success: least-privilege permissions; user can revoke; no access without grant; backend policies documented.
  3. Legal/privacy sign-off for health data if required.
2. Declare permissions (manifest)
xml
<!-- Examples — use only what you need; names evolve with SDK -->
<uses-permission android:name="android.permission.health.READ_STEPS"/>
<uses-permission android:name="android.permission.health.WRITE_STEPS"/>
<!-- Additional types as required -->
  1. Align with Play health policy declarations.
  2. Avoid broad unused types “for later.”
3. Feature availability and client setup
kotlin
val availability = HealthConnectClient.getSdkStatus(context)
if (availability != HealthConnectClient.SDK_AVAILABLE) {
// Guide user to install/update Health Connect
}
val client = HealthConnectClient.getOrCreate(context)
4. Permission request UX
kotlin
// Use PermissionController / contract APIs for Health Connect permissions
// Show educational UI explaining why steps are needed before request
val granted = client.permissionController.getGrantedPermissions()
if (needed.none { it in granted }) {
// launch permission request activity/contract
}
  1. Handle deny and “don’t ask again” with settings deep link.
  2. Feature must degrade gracefully without health access.
5. Read/write least data
kotlin
// Sketch: read steps aggregate for a time range instead of infinite history
val request = ReadRecordsRequest(
recordType = StepsRecord::class,
timeRangeFilter = TimeRangeFilter.between(start, end)
)
val response = client.readRecords(request)
PracticeRationale
Time-bounded queriesMinimize data
AggregatesLess sensitive footprint
No log of raw vitalsPrivacy
Encrypt at rest server-sideProtect sync
6. Security review checklist
CheckPass
Permissions match actual API callsYes
No export of health DB content providers unintentionallyYes
Backup rules exclude sensitive health caches if requiredReviewed
Network sync TLS + authzYes
Third-party SDKs don’t over-read healthReviewed
7. Verify
bash
adb shell dumpsys package com.example.app | rg -i health
# Manual: grant subset of types; confirm others fail closed
# Manual: revoke in system settings; app handles without crash
8. Hand off
  1. Privacy policy text updated for health data.
  2. Data deletion path (account delete clears health copies).
  3. Monitor for SDK changes in Health Connect permissions.

Good / Bad

TopicGoodBad
ScopeSteps only for step challengeRead all vitals “just in case”
UXClear rationaleSilent request on first launch
StorageMinimal sync + retentionInfinite raw HR on server
FailuresFeature disables cleanlyCrash if HC missing

Output Checklist

  • [ ] Data types and purpose documented
  • [ ] Manifest permissions minimized
  • [ ] Availability + install guidance handled
  • [ ] Permission UX + revoke path tested
  • [ ] Queries time-bounded; logging safe
  • [ ] Backend retention/deletion defined
  • [ ] Play/privacy policy aligned
  • [ ] code-quality-standards applied

Rules

  • User consent and platform permissions are mandatory.
  • Minimize health data collection and retention.
  • Never bypass Health Connect for covert access.
  • Treat health data as high sensitivity in RE/test notes.
  • Owned apps only for implementation guidance.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/bedkillerspacex-boop/codex-skill-library/android-health-connect/badge)](https://verified-skill.com/skills/bedkillerspacex-boop/codex-skill-library/android-health-connect)

Something wrong with this skill or its page? Tell us.