andresgongora/agent-config/coding-unit-test
Claude Code and agent skill by andresgongora/agent-config
- community
Checking that the SKILL.md file is still in the repository.
Guides unit-test work in any language. Load for unit tests, TDD, testability, coverage, or test-framework choice. Skip for tiny glue and unstable spikes that need no test-first ritual, or for test infrastructure and CI configuration.
Install
npx vskill@latest install andresgongora/agent-config/coding-unit-testSKILL.md
The same SKILL.md was published earlier as andresgongora/agent-config/coding-unit-test.
Discipline for useful, deterministic tests. No unnecessary tooling. No internal coupling.
Outcome
Prove stable behavior. Follow repo idiom. Never bind to implementation internals.
Inspect First
Before writing tests:
- test command and framework in use.
- test locations and file naming convention.
- fixtures, fakes, mocks, helpers in use.
- assertion idiom and async/error handling.
- nearby tests for the same boundary.
Existing setup: do NOT add framework, runner, layout, or assertion library unless it genuinely cannot test the contract.
No setup exists:
- material, repo-wide framework choice: ask.
- clear ecosystem default: choose it, state choice.
- no clear default: choose one sane default, state choice; use root
tests/unless language or tooling convention gives stronger evidence.
Design
- Name stable module boundary.
- State contract: inputs, outputs, effects, invariants, failures.
- Choose honest test level:
- pure unit.
- unit with fake at adapter seam.
- integration test.
- boundary too muddy: improve design before forcing test.
- Cover behavior branches, errors, and regressions with focused named cases.
- Assert observable results only. Private calls, internal structure, incidental order: untested.
Prefer: pure functions, explicit dependencies, adapter-isolated effects, deterministic time/randomness, narrow fakes.
Painful setup signals bad boundary. Improve boundary before adding mock scaffolding.
Reject:
- booting half system for local logic.
- mocks that restate implementation or lack contract.
- timing/network/filesystem/randomness/shared-state flake sources.
- snapshots/goldens where explicit assertions say more.
TDD and Coverage
- Stable, valuable seam: test before, with, or after change — favor early feedback.
- Tiny glue, exploratory code, unstable interface: no ritual test-first.
- Coverage measures gaps; never chase percentage with low-value tests.
- Intentional contract change: update affected tests — do not preserve obsolete expectations.
Validate
Run narrow relevant tests first, then repo-standard test command when proportionate. Report exact command, result, and unrun scope. Report coverage metric only from coverage command; inspection may identify untested paths.
Escalate
Ask before:
- competing framework conventions within the same repo.
- large testability refactor.
- unclear or conflicting test policy.
Boundaries
- Stable behavior deserves tests; every glue line does not.
- Integration behavior stays labelled integration.
- Repo forbids or limits tests: obey.
- Not for test infrastructure or CI configuration.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/coding-unit-test/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andresgongora/agent-config/coding-unit-test)