Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
ConnectKit is a cross-platform Flutter plugin that unifies access to health and fitness data from Apple HealthKit (iOS) and Google Health Connect (Android). It provides a type-safe Dart API that abstracts platform differences while maintaining performance and privacy.
# Install dependencies flutter pub get # Run tests flutter test # Format code (required before submitting PRs) dart format . # Generate platform channel code (Pigeon) ./script/generate_code.sh
# Navigate to example directory cd example # Install dependencies flutter pub get # Run the example app flutter run
Flutter/Dart Layer:
lib/connect_kit.dart - Main singleton entry point and public APIlib/src/services/ - Business logic and operation serviceslib/src/pigeon/ - Auto-generated platform channel code (DO NOT EDIT)lib/src/logging/ - Cross-platform logging wrapper (CKLogger)lib/src/models/ - Data models for health informationPlatform Layers:
ios/Classes/ - Swift implementation using HealthKitandroid/src/main/kotlin/ - Kotlin implementation using Health Connectpigeon/messages.dart - Pigeon schema for type-safe platform channelsConnectKit.instanceThe project uses Pigeon for type-safe platform channels. The schema is defined in
pigeon/messages.dart. After modifying the schema, run:
./script/generate_code.sh
This regenerates code in:
lib/src/pigeon/connect_kit_messages.g.dartios/Classes/Pigeon/android/src/main/kotlin/dev/luix/connect_kit/Pigeon/IMPORTANT: Never manually edit files in generated directories.
test/ - Unit tests for Dart codeexample/ - Integration testing and manual testing app# Run all unit tests flutter test # Run tests with coverage flutter test --coverage
ConnectKit uses a structured logging system (
CKLogger) that:
Usage:
import 'package:connect_kit/src/logging/ck_logger.dart'; CKLogger.i('Permissions', 'Requested HealthKit access for steps'); CKLogger.e('DataSync', 'Failed to sync data', error: exception);
NEVER use
print() or debugPrint() - always use CKLogger.
NEVER log health data or user identifiers.
dart format . before committinglib/connect_kit.dartlib/src/models/pigeon/messages.dartlib/src/services/flutter pub get was run firstflutter clean && flutter pub getConnectKit.forTesting()The
@.doc-agent/ folder contains comprehensive documentation for AI code agents to understand and work with the project codebase effectively.
Consuming Documentation:
@.doc-agent/README.md first to locate relevant specialized knowledgeUpdating Documentation:
/doc-agent command should add or update information in the @.doc-agent/ folder/doc-agent command with the necessary information to keep documentation current/doc-agent command has specialized knowledge about how to properly structure and organize documentation within this folderThe documentation system ensures continuity and knowledge transfer across development sessions while maintaining consistency in how project information is organized and accessed.