- Safety First: NEVER commit
.envfiles or hardcode API keys. - Asyncio: Use
async/awaitfor all network and database operations to prevent blocking the event loop. - Typing: Use type hints (PEP 484) for all new functions and classes.
- Logging: Use the system logger. Critical errors should also be logged to Supabase (
system_logstable).
- tasks.json: Update
.opencode/tasks.jsonafter every significant change. - Checkpointing: Use
/checkpoint(or follow the protocol) when handing off to a new agent. - Comments: Focus on why, not what. Keep code clean and self-documenting.
- Local Testing: Always test locally before pushing to
main. - Integration Tests: Use
test_integration.pyfor full system checks. - Mocking: Mock external APIs (Alpaca, NewsAPI) in unit tests.
- Commit Messages: Use descriptive, prefix-based messages (e.g.,
feat:,fix:,docs:,refactor:). - Pi Deployment: Push to
mainfor automatic deployment to Raspberry Pi (monitored by cron).
- Lies IMMER .opencode/tasks.json ZUERST
- Validiere gegen tasks.schema.json
- Markiere NUR Tasks als completed die du verifiziert hast
- Reviews k枚nnen NUR vom N脛CHSTEN Agent gemacht werden, nicht vom gleichen
- Pr眉fe ob Dateien/Funktionen existieren bevor du sie referenzierst
- Update tasks.json nach jeder signifikanten 脛nderung