Skip to content
Back to skills

Eng Test Conventions

ASecurity

Go test-shape discipline for Compozy. Use when writing or editing *_test.go under cmd or internal after test placement is justified. Do not use for non-Go tests, fixture-only changes, or as a replacement for eng-consolidate-test-suites.

  • 2,785 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 3, 2026
testingpythongobashsql

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 20, 2026

npx -y skills add compozy/compozy --skill eng-test-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Eng Test Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Eng Test Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/compozy-eng-test-conventions/badge)](https://www.skillsdirectory.com/skills/compozy-eng-test-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: eng-test-conventions
description: >-
  Go test-shape discipline for Compozy. Use when writing or editing *_test.go under
  cmd or internal after test placement is justified. Do not use for non-Go
  tests, fixture-only changes, or as a replacement for eng-consolidate-test-suites.
trigger: implicit
---

# Compozy Test Conventions

Name the invariant, owning layer, and existing suite before changing coverage; reuse that working note. Use `eng-consolidate-test-suites` when placement is unclear, including a proposed new file with no obvious owner. No test is needed merely to raise coverage.

Read the nearby canonical suite and relevant sections of `references/test-shape-rules.md` for subtests, parallelism, errors/assertions, interfaces, tags, integration behavior, mocks, helpers, and race/cgo.

- Co-ship affected ACP/E2E fixtures, typed matchers, and generated expectations with runtime-contract changes. Exercise real SQLite or production-like process boundaries where the owning layer requires them.
- Repair production regressions without weakening tests. If an assertion itself contradicts the established contract, substantiate that mismatch before changing it.
- Keep touched tests in the canonical subtest shape; do not rewrite unrelated suites. Transitive `t.Setenv` use keeps the enclosing test serial.

For changed Go test files, run the read-only heuristic checker:

```bash
python3 .agents/skills/eng/eng-test-conventions/scripts/check-test-conventions.py <file_path>
```

Fix real findings; document a demonstrated false positive without weakening the convention. Run the affected repository race-enabled suite with `CGO_ENABLED=1` and the owning lint lane, reusing current evidence when those inputs are unchanged. Root `make gate` and PR CI apply once at the enclosing delivery stage; a local test change does not require opening a PR.

Files in this skill

  • SKILL.md3.5 KB
  • references/test-shape-rules.md4.6 KB
  • scripts/check-test-conventions.py4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.