Skip to content
Back to skills

Testability

ASecurity

Enforces dependency injection, pure functions, observable state, and seam-based design

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
testingtesting

Security analysis

A100/100

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

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill testability --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testability?

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

Security grade badge for Testability
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-testability/badge)](https://www.skillsdirectory.com/skills/aibot88-testability)

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
---
id: testability
title: Testability Quality Dimension
description: Enforces dependency injection, pure functions, observable state, and seam-based design
trigger:
  - "testability"
  - "test"
  - "testing"
  - "unit test"
---

# Testability Quality Dimension

Every component must be testable in isolation. If it's hard to test, the design is wrong.

## Checklist

Mark each item ✅ Pass / ❌ Fail / ⚠️ N/A:

### Dependency Injection
- [ ] Dependencies passed in (not imported directly)
- [ ] Mocking is straightforward
- [ ] No static method abuse
- [ ] No global state in business logic

### Pure Functions
- [ ] Business logic is pure (same input = same output)
- [ ] Side effects isolated to boundaries
- [ ] No hidden dependencies
- [ ] Deterministic test results

### Seams
- [ ] Integration points clearly defined
- [ ] Easy to inject test doubles
- [ ] Unit tests don't need full system
- [ ] Boundary interfaces are thin

### Test Coverage
- [ ] All new functions have tests
- [ ] Edge cases covered (null, empty, error)
- [ ] Happy path AND error path tested
- [ ] No test-free zones in business logic

### Test Quality
- [ ] Tests are readable (describe intent)
- [ ] Tests are fast (no sleep, no real I/O)
- [ ] Tests are independent (no shared state)
- [ ] Tests are maintainable (no magic numbers)

## When to Check
- Design-time: verify testability in the design
- Pre-ship: verify all functions have tests

## Fix if Failing
Refactor to use dependency injection. Extract side effects. Add tests. Use test doubles at boundaries.

Files in this skill

  • SKILL.md1.5 KB
  • source.json583 B

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.