From 702f50cc30e15cdfce8f0154aa6e9cc7f47fca9d Mon Sep 17 00:00:00 2001 From: Luca Sacchi Ricciardi Date: Thu, 2 Apr 2026 16:27:30 +0200 Subject: [PATCH] chore: add project configuration and agent skills - Add requirements.txt with pytest and requests dependencies - Add TDD Python Specialist skill for test-driven workflow - Add Git & Changelog skill for conventional commits - Configure .opencode/skills/ directory structure --- .opencode/skills/Git_and_Changelog/SKILL.md | 11 +++++++++++ .opencode/skills/TDD_Python_Specialist/SKILL.md | 17 +++++++++++++++++ requirements.txt | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 .opencode/skills/Git_and_Changelog/SKILL.md create mode 100644 .opencode/skills/TDD_Python_Specialist/SKILL.md create mode 100644 requirements.txt diff --git a/.opencode/skills/Git_and_Changelog/SKILL.md b/.opencode/skills/Git_and_Changelog/SKILL.md new file mode 100644 index 0000000..715bc61 --- /dev/null +++ b/.opencode/skills/Git_and_Changelog/SKILL.md @@ -0,0 +1,11 @@ +Skill: Git & Changelog Manager + +Istruzioni per la gestione dei commit e del versionamento. + +Standard + +Conventional Commits: Ogni commit deve iniziare con feat:, fix:, docs:, test:, refactor:, chore:. + +Atomic Commits: Un commit per ogni singola modifica funzionale. + +Common Changelog: Dopo ogni feat o fix, aggiorna CHANGELOG.md nella sezione [Unreleased] o nella versione corrente. diff --git a/.opencode/skills/TDD_Python_Specialist/SKILL.md b/.opencode/skills/TDD_Python_Specialist/SKILL.md new file mode 100644 index 0000000..b05bb21 --- /dev/null +++ b/.opencode/skills/TDD_Python_Specialist/SKILL.md @@ -0,0 +1,17 @@ +Skill: TDD Python Specialist + +Questo playbook istruisce l'agente su come operare in modalità TDD. + +Workflow Obbligatorio + +Red: Crea un file in tests/test_feature.py. Definisci il test. Eseguilo con pytest e conferma il fallimento. + +Green: Scrivi il codice minimo necessario in scripts/ o nella root per far passare il test. + +Refactor: Ottimizza il codice mantenendo i test verdi. + +Tooling + +Usa sempre il venv: source venv/bin/activate. + +Comando di test: pytest. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..547de5c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +pytest +requests