# Misplaced Logic

> Misplaced Logic is an Agent Skill for testing & quality published in the kubernetes-sigs/kueue repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Flag code put somewhere a reader would not expect to find it — cleanup scattered across callers, validation deep in business logic.

- Skill name: `misplaced-logic`
- Category: [Testing & Quality](https://www.openparable.com/skill/testing-quality/1)
- Source: https://github.com/kubernetes-sigs/kueue/blob/HEAD/cmd/experimental/skills/reviewer/architectural-decisions/misplaced-logic/SKILL.md
- Repository: kubernetes-sigs/kueue (2,719 GitHub stars when collected)

## SKILL.md

# Skill: Misplaced Logic

**Misplaced logic** — code put somewhere a reader would not expect to find it.
Cleanup belongs inside the `Delete` path, not scattered across callers; validation
belongs at the trust boundary, not deep in business logic.

---

Source: https://www.openparable.com/skill/testing-quality/misplaced-logic (OpenParable). Cite the canonical URL above.
