# Duplicated Logic

> Duplicated 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 identical (or near-identical) blocks across types/adapters/call sites that should live in a shared helper — and newly extracted helpers with only one caller.

- Skill name: `duplicated-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/duplicated-logic/SKILL.md
- Repository: kubernetes-sigs/kueue (2,719 GitHub stars when collected)

## SKILL.md

# Skill: Duplicated Logic Across Types/Adapters/Call Sites

**Duplicated logic across types/adapters/call sites** — identical (or near-identical)
blocks that should live in a single shared helper. Conversely, flag a *newly extracted*
helper that has only one caller and no clear near-term reuse.

---

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