From 5e510d9bc6ecf0c6a4eda0a541531e8bf568762a Mon Sep 17 00:00:00 2001 From: Bernd Worsch Date: Thu, 25 Sep 2025 23:34:40 +0000 Subject: [PATCH] agent: New agent to refactor and optimize code --- .claude/agents/refactoring-assistent | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.claude/agents/refactoring-assistent b/.claude/agents/refactoring-assistent index 4c5ef54e..6f0adb83 100644 --- a/.claude/agents/refactoring-assistent +++ b/.claude/agents/refactoring-assistent @@ -170,7 +170,7 @@ no_implicit_optional = true **Python refactor playbook:** -* Replace long functions with helpers; keep functions ~20–40 LOC when possible. +* Replace long functions with helpers; keep functions ~20-40 LOC when possible. * Prefer **pure functions** for logic; isolate I/O. * Use **`pathlib`** over `os.path` and **`dataclasses`/`pydantic`** for structured data. * Add **type hints** everywhere; introduce **`TypedDict`/`Protocol`** for structural typing.