Skip to content
Testing
Skill

/testability-scoring

AI-powered testability assessment using 10 principles of intrinsic testability with Playwright and optional Vibium integration. Evaluates web applications against Observability, Controllability, Algorithmic Simplicity, Transparency, Stability, Explainability, Unbugginess,

From plugin
agentic-qe
534119 skills169 agents149 commands1 MCP

Claude Code

$ npx -y skills add proffesor-for-testing/agentic-qe --skill testability-scoring --agent claude-code

SKILL.md

testability-scoring.SKILL.md
name: testability-scoring
description: "AI-powered testability assessment using 10 principles of intrinsic testability with Playwright and optional Vibium integration. Evaluates web applications against Observability, Controllability, Algorithmic Simplicity, Transparency, Stability, Explainability, Unbugginess, Smallness, Decomposability, and Similarity. Use when assessing software testability, evaluating test readiness, identifying testability improvements, or generating testability reports."
category: testing-methodologies
priority: high
tokenEstimate: 1100
agents: [qe-quality-analyzer, qx-partner, qe-visual-tester]
implementation_status: optimized
optimization_version: 2.2
last_optimized: 2025-12-12
dependencies: []
quick_reference_card: true
tags: [testability, scoring, playwright, vibium, assessment, 10-principles, intrinsic-testability, james-bach, michael-bolton]
contributor: "@fndlalit"
vibium_integration: optional
trust_tier: 3
validation:
  schema_path: schemas/output.json
  validator_path: scripts/validate-config.json
  eval_path: evals/testability-scoring.yaml

Testability Scoring

Browser engine

Uses the **qe-browser** fleet skill (`.claude/skills/qe-browser/`) as the primary browser engine. Vibium is installed by `aqe init`. The legacy `scripts/run-assessment.sh` + Playwright path remains as a fallback when a team already has a Playwright test suite configured, but new runs should prefer:

vibium go "$TARGET_URL"
vibium wait load
vibium a11y-tree --json > /tmp/testability/tree.json
vibium eval --stdin --json <<'EOF' > /tmp/testability/signals.json
JSON.stringify({
  headings: document.querySelectorAll('h1,h2,h3,h4,h5,h6').length,
  testIds: document.querySelectorAll('[data-testid]').length,
  forms: document.querySelectorAll('form').length,
  ariaLabels: document.querySelectorAll('[aria-label]').length,
  links: document.querySelectorAll('a[href]').length,
});
EOF
node .claude/skills/qe-browser/scripts/assert.js --checks '[
  {"kind": "no_console_errors"},
  {"kind": "no_failed_requests"}
]'

<default_to_action> When assessing testability: 1. RUN assessment against target URL 2. ANALYZE all 10 principles automatically 3. GENERATE HTML report with radar chart 4. PRIORITIZE improvements by impact/effort 5. INTEGRATE with QX Partner for holistic view

**Quick Assessment:**

# Run assessment on any URL
TEST_URL='https://example.com/' npx playwright test tests/testability-scoring/testability-scoring.spec.js --project=chromium --workers=1

# Or use shell script wrapper
.claude/skills/testability-scoring/scripts/run-assessment.sh https://example.com/

**The 10 Principles at a Glance:** | Principle | Weight | Key Question | |-----------|--------|--------------| | **Observability** | 15% | Can we see what's happening? | | **Controllability** | 15% | Can we control the application? | | **Algorithmic Simplicity** | 10% | Are behaviors predictable? | | **Algorithmic Transparency** | 10% | Can we understand what it does? | | **Algorithmic Stability** | 10% | Does behavior remain consistent? | | **Explainability** | 10% | Is the interface understandable? | | **Unbugginess** | 10% | How error-free is it? | | **Smallness** | 10% | Are components appropriately sized? | | **Decomposability** | 5% | Can we test parts in isolation? | | **Similarity** | 5% | Is the tech stack familiar? |

**Grade Scale:**

  • **A (90-100)**: Excellent testability
  • **B (80-89)**: Good testability
  • **C (70-79)**: Adequate testability
  • **D (60-69)**: Below average
  • **F (0-59)**: Poor testability

</default_to_action>

Quick Reference Card

Running Assessments

| Method | Command | When to Use | |--------|---------|-------------| | Shell Script | `./scripts/run-assessment.sh URL` | One-time assessment | | ENV Override | `TEST_URL='URL' npx playwright test...` | CI/CD integration | | Config File | Update `tests/testability-scoring/config.js` | Repeated runs |

Principle Details

High Weight (15% each)

| Principle | Measures | Indicators | |-----------|----------|------------| | **Observability** | State visibility, logging, monitoring | Console output, network tracking, error visibility | | **Controllability** | Input control, state manipulation | API access, test data injection, determinism |

Medium Weight (10% each)

| Principle | Measures | Indicators | |-----------|----------|------------| | **Simplicity** | Predictable behavior | Clear I/O relationships, low complexity | | **Transparency** | Understanding what system does | Visible processes, readable code | | **Stability** | Consistent behavior | Change resilience, maintainability | | **Explainability** | Interface understanding | Good docs, semantic structure, help text | | **Unbugginess** | Error-free operation | Console errors, warnings, runtime issues | | **Smallness** | Component size | Element count, script bloat, page complexity |

Low Weight (5% each)

| Principle | Measures | Indicators | |-----------|----------|------------| | **Decomposability** | Isolation testing | Component separation, modular design | | **Similarity** | Technology familiarity | Standard frameworks, known patterns |

---

Assessment Workflow

1. Navigate to URL → 2. Collect Metrics → 3. Score Principles
                                              ↓
4. Generate JSON ← 5. Calculate Grades ← 6. Apply Weights
         ↓
7. Generate HTML Report with Radar Chart
         ↓
8. Open in Browser (auto-opens)

Output Files

tests/reports/
├── testability-results-<timestamp>.json  # Raw data
├── testability-report-<timestamp>.html   # Visual report
└── latest.json                           # Symlink

---

Integration Examples

CI/CD Integration

# GitHub Actions
- name: Testability Assessment
  run: |
    timeout 180 .claude/skills/testability-scoring/scripts/run-assessment.sh ${{ env.APP_URL }}

- name: Upload Reports
  uses: actions/upload-artifact@v3
  with:
    name: testability-reports
Read more
@proffesor-for-testing
Ships withagentic-qe

Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.

534119 skills169 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
534
Star history of proffesor-for-testing/agentic-qe on GitHub, a chart by star-history.com

Other skills on agentic-qe.

More skills from other plugins.

api-review

api-review

Produce the "Playwright 1.xx API Review" artifact for a range of commits - the public API additions and the breaking or behavior…

@microsoft@microsoftInstall Skill
add-e2e-selectors

add-e2e-selectors

Add reliable @grafana/e2e-selectors to interactive elements and key containers in the Grafana frontend. Use when adding e2e…

grafana2w78k
@grafana@grafanaInstall Skill
promptfoo-evals

promptfoo-evals

Write, refine, run, and QA promptfoo evaluation suites: promptfooconfig.yaml, prompts, providers, vars, tests, assertions,…

@promptfoo@promptfooInstall Skill
deepeval

deepeval

DeepEval evaluation workflow for AI agents and LLM applications. TRIGGER when the user wants to evaluate or improve an AI agent,…

@confident-ai@confident-aiInstall Skill

Questions about testability-scoring.

Which coding agents can use testability-scoring?
testability-scoring installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.