# Visibility Exports

> Visibility Exports 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.

Review that newly exported functions have callers outside the package, lowercasing those that don't.

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

## SKILL.md

# Skill: Visibility Review — Don't Export What Doesn't Need to Be Exported

Use this when reviewing Go code that adds new exported functions or methods.

## What to check

For every new exported identifier, grep for callers outside the declaring package. If all
callers are within the same package, lowercase it — exported symbols become permanent API
surface that can't be removed without a breaking change.

```bash
grep -rn ".FunctionName()" ./ --include="*.go"
```

Note: test files in the same package (`package foo`) can access unexported symbols, so
there's no need to export just for tests.

---

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