From e097c5b7170d520a2e55902a3f54a0ff2b1121a3 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 6 Apr 2026 16:12:58 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20require=20pre-task=20code=20health=20ch?= =?UTF-8?q?eck=20=E2=80=94=20refactor=20before=20feature=20work=20if=20bel?= =?UTF-8?q?ow=20gate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 6825d5f1..f8186751 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,6 +10,8 @@ Run `/laputa-next-task` — fetches next task (To Rework first, then Open), moves to In Progress, returns full description. +**Before writing a single line of code:** run `mcp__codescene__code_health_score` to check the current codebase health against `.codescene-thresholds`. If the score is already below the threshold, **stop and refactor first** — find the worst files with the MCP, improve them, commit, then start the task. Never start feature work on a codebase that is already below the gate. + - Read task description and all comments fully - For To Rework: the ❌ QA failed comment tells you exactly what to fix - Check `docs/adr/` for relevant architecture decisions before structural choices