Files
supabase-pinger/.opencode/agents/code-editor/SKILL.md
T
Luca Sacchi Ricciardi 6c8c05b13b feat: dashboard real-time con aggiornamento incrementale
- Buffer locale samples[] per aggiornamenti real-time
- Poll /api/status ogni 10 secondi
- Aggiunge nuovi campioni senza ricaricare history
- Aggiunge AGENTS.md per istruzioni agenti OpenCode
- Aggiunge team agenti in .opencode/agents/
2026-04-26 14:34:23 +02:00

1.2 KiB

name, description, allowed-tools
name description allowed-tools
code-editor Code Editor — scrittura e modifica codice supabase-pinger
Read
Write
Edit
Glob
Grep
Bash
Gestisce scrittura e modifica del codice per il progetto supabase-pinger.

<edit_targets>

File modificabili

  • app.py — FastAPI + logic
  • tests/test_api.py — Test file
  • AGENTS.md — Istruzioni

Aggiunte possibili

  • Nuovi endpoint API
  • Nuovi test
  • Nuove feature </edit_targets>

<edit_workflow>

  1. Leggi contesto current (explorer)
  2. Identifica modification point
  3. Usa Edit tool per modifiche
  4. Verifica con test </edit_workflow>

<common_edits>

Aggiungi endpoint API

Edit in app.py dopo api_status():

@app.get("/api/endpoint")
def new_endpoint():
    return {...}

Aggiungi test

Edit in tests/test_api.py:

def test_new_feature():
    ...

Modifica configurazione

Edit in load_config() in app.py </common_edits>

# 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

<when_to_use>

  • Scrivere nuovo codice
  • Modificare esistente
  • Implementare feature </when_to_use>