Prompt

ha_strava — Cursor Rules

by craibo

AI Summary

Cursor rules for refactoring Strava Home Assistant integration to use consolidated sensors per activity type, remove external dependencies, and add device tracking. Useful for Home Assistant developers and Strava integration maintainers.

Install

# Download to your project root
curl -o .cursorrules "https://raw.githubusercontent.com/craibo/ha_strava/main/.cursor/rules/strava_sensor_refactor_plan.mdc"

Description

Strava Activities and Summary data integration for Home Assistant

Overview

Refactor the Strava Home Assistant integration to use single sensors per activity type instead of individual activity sensors, remove geocode.xyz dependency, and add device source tracking.

Functional Requirements:

• [ ] All 50 Strava activity types supported • [ ] Device source tracking working • [ ] Activity type selection functional • [ ] No geocode.xyz dependency • [ ] Performance improved (no external API calls)

Quality Requirements:

• [ ] All tests passing • [ ] Code coverage maintained • [ ] Documentation updated • [ ] Breaking changes documented • [ ] Performance benchmarks met ---

Project Status: 🚧 IN PROGRESS

Started: 2024-12-19 Target Completion: TBD Current Phase: Planning Complete ---

Quality Score

B

Good

79/100

Standard Compliance72
Documentation Quality68
Usefulness75
Maintenance Signal100
Community Signal95
Scored Yesterday

GitHub Signals

Stars123
Forks12
Issues8
Updated14d ago
View on GitHub

Trust & Transparency

Open Source — MIT

Source code publicly auditable

Verified Open Source

Hosted on GitHub — publicly auditable

Actively Maintained

Last commit 14d ago

123 stars — Growing Community

12 forks

My Fox Den

Community Rating

Works With

Cursor