bbeny123/pragma/tests-first
Claude Code and agent skill by bbeny123/pragma
- community
Checking that the SKILL.md file is still in the repository.
Chooses behavior tests and proportionate verification for features, fixes, refactors, and test review. Use when coverage or checks matter.
Install
npx vskill@latest install bbeny123/pragma/tests-firstSKILL.md
The same SKILL.md was published earlier as bbeny123/pragma/tests-first.
Tests First
Inspect changed behavior and existing coverage. Protect current behavior and explicit contracts; each test should catch a meaningful regression or contract violation, rather than freeze implementation or chase coverage.
Write useful tests
When coverage is needed, prefer a complete behavior test before implementation; afterward is also valid. Verify final behavior and use intermediate checks to resolve concrete uncertainty. Do not force a RED/GREEN/REFACTOR sequence or revert working code merely to manufacture a failing test.
- Derive expectations from the contract, checked examples, or known-good data, independently of production logic and its helpers.
- Prefer classical testing with real dependencies; assert results, state, and side effects. Use real infrastructure for SQL, transactions, wiring, or protocol contracts; E2E for full-journey risks. Choose the smallest trustworthy boundary, without fixed test ratios.
- Keep purposeful unit tests. Use test doubles when real dependencies are impractical or a narrow interaction is itself contractual. Understand side effects before mocking; preserve the behavior under test. Keep fixtures faithful to the relevant real shape, omitting irrelevant fields.
- Assert calls, arguments, counts, or ordering only when contractual. Assert persisted state when persistence is the behavior under test.
- Keep setup/helpers simple. Avoid test-only production APIs, tests that only verify mock interactions, source-text snapshots, and trivial-forwarding tests unless they protect a meaningful transformation or contract.
- Trigger asynchronous operations once and await an observable outcome with a bounded check; use delays only for a real timing reason.
- Remove duplicate, brittle, or discarded-alternative tests that protect no current behavior. Tiny editorial/mechanical edits or adequate existing coverage can need no new test.
Verify proportionately
Choose checks from affected contracts, risk, and repository requirements. Tests, builds, static inspection, manual checks, and runtime/integration evidence establish different claims.
Read results and exit status; distinguish code failures from unavailable infrastructure before changing code or builds. Repeat or broaden checks for relevant edits, failures, unresolved concerns, or explicit requirements; small changes do not automatically require a full suite.
Report what was checked, observed failures, and material limits. Reuse evidence that still applies to the final state; a focused check does not establish a full-suite pass.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/tests-first/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/bbeny123/pragma/tests-first)