# Agent Guidelines for Pstryk Energy Card ## Build/Test Commands - No build system - single JavaScript file (`pstryk-card.js`) - Test by adding card to Home Assistant dashboard - Debug mode: set `debug: true` in card config - No linting/formatting tools configured ## Code Style Guidelines - **Language**: Vanilla JavaScript ES6+ (no frameworks) - **File structure**: Single file with embedded CSS in template literals - **Class naming**: PascalCase (e.g., `PstrykCard`) - **Method naming**: camelCase with underscore prefix for private methods (e.g., `_getTranslations`) - **Variables**: camelCase, use const/let appropriately - **Comments**: Polish comments for user-facing text, English for technical notes - **Error handling**: Throw descriptive Error objects in `setConfig()` for validation - **Translations**: Support PL/EN via `_getTranslations()` method - **CSS**: Use CSS custom properties for theming, embed in `