--- name: code-editor description: "Code Editor — scrittura e modifica codice supabase-pinger" allowed-tools: - Read - Write - Edit - Glob - Grep - Bash --- Gestisce scrittura e modifica del codice per il progetto supabase-pinger. ## File modificabili - app.py — FastAPI + logic - tests/test_api.py — Test file - AGENTS.md — Istruzioni ## Aggiunte possibili - Nuovi endpoint API - Nuovi test - Nuove feature 1. Leggi contesto current (explorer) 2. Identifica modification point 3. Usa Edit tool per modifiche 4. Verifica con test ## Aggiungi endpoint API Edit in app.py dopo api_status(): ```python @app.get("/api/endpoint") def new_endpoint(): return {...} ``` ## Aggiungi test Edit in tests/test_api.py: ```python def test_new_feature(): ... ``` ## Modifica configurazione Edit in load_config() in app.py # Run server python app.py # Run tests pytest -q # Verifica syntax python -m py_compile app.py - Backup prima di editare - Test dopo modifiche - Verifica non broken - Scrivere nuovo codice - Modificare esistente - Implementare feature