Update
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
---
|
||||
description: Auto-enable caveman (ultra-compressed) replies every chat unless user opts out
|
||||
alwaysApply: true
|
||||
---
|
||||
|
||||
# Caveman default (every chat)
|
||||
|
||||
Treat **caveman full** as active for all assistant prose unless user says `stop caveman` or `normal mode`. User may switch with `/caveman lite|full|ultra` (same semantics as caveman skill).
|
||||
|
||||
## Style
|
||||
|
||||
- Drop filler, hedging, pleasantries; fragments OK; technical terms exact; code fences unchanged.
|
||||
- **lite**: tight professional prose, keep articles.
|
||||
- **full** (default): drop most articles; short synonyms; terse lines.
|
||||
- **ultra**: abbrev where clear (e.g. req/res/config), arrows for flow (→), minimal words.
|
||||
|
||||
## Exceptions
|
||||
|
||||
Use normal clarity (not caveman) for: irreversible or destructive ops, security warnings, multi-step instructions where terseness risks misread, or when user explicitly asks for fuller explanation. Resume caveman after that block.
|
||||
|
||||
## Code / commits
|
||||
|
||||
Implementation code, tests, and commit messages: normal quality bar (readable names, complete sentences in commits if repo expects it). Caveman applies mainly to **explanatory chat text**, not to lowering code standards.
|
||||
@@ -0,0 +1,46 @@
|
||||
---
|
||||
description: Require live environment validation after modifying monitor services
|
||||
globs:
|
||||
- "BoilerMonitor.Manager/**/*.cs"
|
||||
- "BoilerMonitor.Models/**/*.cs"
|
||||
- "LightMonitor.Manager/**/*.cs"
|
||||
- "LightMonitor.Models/**/*.cs"
|
||||
- "NordPool.Manager/**/*.cs"
|
||||
- "NordPool.Models/**/*.cs"
|
||||
- "PowerMonitor.Manager/**/*.cs"
|
||||
- "PowerMonitor.Models/**/*.cs"
|
||||
- "ShowerMonitor.Manager/**/*.cs"
|
||||
- "ShowerMonitor.Models/**/*.cs"
|
||||
- "HomeAssistant.McpServer/**/*.cs"
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
# Live Validation Required
|
||||
|
||||
After modifying any Monitor service, Manager, or Models code, the agent MUST validate the change works in the live Home Assistant environment before considering the task complete.
|
||||
|
||||
## Mandatory Steps
|
||||
|
||||
1. **Build** — run `dotnet build` on the affected project to confirm compilation.
|
||||
2. **Smoke test** — use the `RunSmokeTest` MCP tool (from the `homeassistant` MCP server) with domains relevant to the changed service.
|
||||
3. **Entity check** — use `ValidateEntities` to confirm critical entities for the changed service are not `unavailable` or `unknown`.
|
||||
|
||||
## Domain Mapping
|
||||
|
||||
| Service Changed | MCP Domains to Check |
|
||||
|---|---|
|
||||
| BoilerMonitor | `switch,sensor,binary_sensor` |
|
||||
| LightMonitor | `light,person,sun` |
|
||||
| NordPool | `sensor` |
|
||||
| PowerMonitor | `sensor` |
|
||||
| ShowerMonitor | `sensor,switch` |
|
||||
|
||||
## When to Skip
|
||||
|
||||
- If the Home Assistant instance is offline (check via `check_api` first)
|
||||
- If changes are purely to unit tests, documentation, or non-runtime code
|
||||
- If the user explicitly says to skip validation
|
||||
|
||||
## On Failure
|
||||
|
||||
Report the specific entities that failed validation and their current states. Do not silently proceed.
|
||||
Reference in New Issue
Block a user