ai-test-driven-quality
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Use to define and execute risk-based verification for approved behavior. Apply TDD when useful and run the relevant unit, integration, end-to-end, acceptance, accessibility, localization, performance, offline, and failure tests. Produce traceable evidence, not coverage-only claims.
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- vibeguard-skill-systemSkill
- ai-architecture-evolutionSkill
- ai-legacy-modernizationSkill
- ai-api-contract-guardianSkill
- ai-data-quality-and-reconciliationSkill
- ai-safe-data-migrationSkill
- ai-ui-ux-designSkill
- ai-project-discoverySkill
- ai-documentation-and-handoffSkill
- ai-environment-bootstrapSkill
- ai-accessibility-and-localizationSkill
- ai-visual-qualitySkill
- ai-cloud-cost-optimizerSkill
- ai-privacy-and-data-governanceSkill
- ai-data-and-integrationsSkill
- ai-production-feature-builderSkill
- ai-implementation-strategistSkill
- ai-infrastructure-as-codeSkill
- ai-forensic-investigationSkill
- ai-skill-author-and-evaluatorSkill
- ai-dependency-upgrade-managerSkill
- vibe-codebase-structureSkill
- vibe-executerSkill
- vibe-exploreSkill
- voice-agentsSkill
- voice-ai-developmentSkill
- voice-ai-engine-developmentSkill
- vulnerability-scannerSkill
- ai-observability-and-reliabilitySkill
- ai-next-step-skill-routerSkill
- ai-vibeguard-directorSkill
- ai-performance-optimizerSkill
- ai-ultraplanSkill
- ai-incident-responseSkill
- ai-release-and-deploySkill
- ai-deep-researchSkill
- ai-disaster-recoverySkill
- ai-code-review-and-cleanupSkill
- ai-production-readiness-reviewerSkill
- ai-security-auditSkill
- ai-deep-brainstormingSkill
- ai-systematic-debuggingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Prefer deterministic, isolated, repeatable tests with clear oracles.
- Distinctive: line 40
Test happy paths, boundaries, invalid input, permissions, concurrency, failure, retry, recovery, and data integrity as applicable.
- Distinctive: line 41
Use real boundaries for integration tests where practical.
- Distinctive: line 42
Keep E2E journeys focused on critical user outcomes and stable selectors.
- Distinctive: line 43
Do not access production, spend money, send real communications, or mutate real user data without approval.
- Distinctive: line 44
Never weaken assertions, skip failing tests, lower thresholds, or update snapshots blindly to achieve green status.
- Distinctive: line 53
Run focused tests first, then the appropriate broader suite.
- Distinctive: line 96
Stop after the defined outcome, an approval gate, a genuine blocker, or the retry budget is exhausted.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ai-Test-Driven Quality
Mission
Produce trustworthy evidence that approved behavior works, fails safely, and remains maintainable across the project's important environments.
Use this skill when
- A test strategy or acceptance evidence is missing.
- A feature should be developed test-first.
- Unit, integration, E2E, accessibility, localization, performance, offline, migration, or recovery behavior needs verification.
- A release requires a risk-based quality decision.
Do not use this skill when
- The primary task is diagnosing an unexplained failure; use systematic debugging first.
- Product expectations are not testable yet; route to planning.
Test design principles
- Derive tests from risks and acceptance criteria, not implementation details alone.
- Prefer deterministic, isolated, repeatable tests with clear oracles.
- Test happy paths, boundaries, invalid input, permissions, concurrency, failure, retry, recovery, and data integrity as applicable.
- Use real boundaries for integration tests where practical; do not let excessive mocks prove a system that cannot work together.
- Keep E2E journeys focused on critical user outcomes and stable selectors.
- Do not access production, spend money, send real communications, or mutate real user data without approval.
- Never weaken assertions, skip failing tests, lower thresholds, or update snapshots blindly to achieve green status.
Workflow
- Map each acceptance criterion and important risk to one or more tests.
- Select the cheapest test level that can prove the behavior, adding higher-level tests for critical integration and journeys.
- Establish baseline failures or gaps.
- In TDD mode, write a meaningful failing test, implement the minimum behavior, then refactor with the suite green.
- Prepare isolated fixtures and safe test data. Control time, randomness, network, and concurrency where needed.
- Run focused tests first, then the appropriate broader suite.
- Investigate flaky or inconsistent results; do not simply retry until passing.
- Capture command, environment, duration, result, and artifact evidence.
- State what was not tested and why.
Load only the relevant playbook:
references/test-matrix.mdreferences/e2e-accessibility.mdreferences/performance-resilience.md
Quality decision
Return PASS, CONDITIONAL PASS, or FAIL against the approved scope. Coverage is supporting information, not a substitute for behavior evidence.
Output contract
quality_result:
decision: PASS | CONDITIONAL_PASS | FAIL
criteria_mapped: []
tests_added_or_changed: []
commands_run: []
passed: []
failed: []
flaky_or_blocked: []
artifacts: []
untested_risks: []
recommended_next_skill: <canonical id>Specialist boundaries added in 0.8.0
- Route screenshot and visual-regression ownership to
ai-visual-quality. - Route accessibility, localization, Arabic RTL, and assistive-technology ownership to
ai-accessibility-and-localization. - Route measurement-led optimization to
ai-performance-optimizer; retain verification of performance acceptance criteria here.
Completion protocol
- Return one standardized status:
completed,completed_with_warnings,partial,blocked,failed,needs_approval, orneeds_user_input. - Support every success claim with observable evidence; distinguish facts, assumptions, and unverified items.
- Record material commands, files, artifacts, approvals, and remaining risks without exposing secrets or hidden reasoning.
- Recommend one next skill only when another step is actually required.
- Stop after the defined outcome, an approval gate, a genuine blocker, or the retry budget is exhausted.
Result-strengthening protocol
Before claiming completion: (1) restate the measurable outcome, (2) execute only within the approved scope, (3) verify with observable evidence, (4) actively challenge the result for regressions, missing cases, and unsupported assumptions, and (5) report status using the shared result schema. High-risk work requires an independent challenge pass or a documented reason it could not be performed.
Quality gate
- Critical acceptance criteria and risks have appropriate evidence.
- Tests are repeatable, independent, and do not rely on real production side effects.
- Failures are investigated rather than hidden by retries or weakened assertions.
- The report clearly separates passed, failed, blocked, flaky, and untested areas.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

