chore: add agent guidance for symbol navigation and SDK docs (#30791)

This commit is contained in:
andig 2026-06-14 16:15:35 +02:00 • committed by GitHub
parent 359e053a40
commit fc34535d15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -112,6 +112,7 @@ Deep documentation on specific subsystems is available in `docs/agents/`. Load w
- Use `context.Context` for I/O, long-running, or cancelable operations
- Organize code into logical packages with clear responsibilities
- Prefer composition over inheritance, minimize external dependencies
- Navigate Go symbols with go-to-definition and find-references rather than text search; reserve text search for comments and string literals
### File Patterns
@ -265,6 +266,7 @@ Deep documentation on specific subsystems is available in `docs/agents/`. Load w
- Define device capabilities and configuration in templates at `templates/definition/[type]/`
- Test templates: `evcc --template-type [type] --template [file]`
- Update docs after template changes: `make docs`
- When implementing or debugging against a third-party device library (eebus-go/ship/spine-go, ocpp-go, modbus/SunSpec), consult the library's current upstream documentation before coding rather than relying on recalled API details
### Configuration