docs: require pre-task code health check — refactor before feature work if below gate

This commit is contained in:
lucaronin
2026-04-06 16:12:58 +02:00
parent 8b98e77680
commit 8fe5340416

View File

@@ -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