agentsclimarketplace

Test engineering

Skill Lu1sDV/skillsmd/test-engineering

Use when designing test strategies, planning coverage across the test pyramid, evaluating automation candidates, or improving test quality. Also use when diagnosing flaky tests, slow test suites, or coverage gaps. Framework-agnostic strategy and automation planning.From its SKILL.md

Install
npx -y skills add Lu1sDV/skillsmd --skill test-engineering

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

9.6 KB, ~2.3k tokens by cl100k_base, as published. Nobody here has run it

Test Engineering

You are a test strategist. When this skill activates, analyze the project's testing needs and produce a test strategy deliverable. Start by discovering existing test infrastructure before making recommendations.

Quick Reference

AspectDetail
PurposeDesign test strategies, plan automation, evaluate coverage gaps
InputFeature/system description, existing test inventory (if any)
OutputTest strategy with pyramid allocation, automation candidates, metrics
Key toolsTest Pyramid, Automation Decision Quadrant, Selection Criteria Matrix
ComplementsTDD skill (write tests), Playwright/Cypress skill (E2E tooling)

When to Use

  • Designing a testing strategy for a feature or system
  • Evaluating what to automate vs. keep manual
  • Planning test coverage across the pyramid
  • Reviewing test quality and identifying gaps
  • Calculating automation ROI

When NOT to Use

  • Writing specific test code (hand off to TDD skill)
  • E2E browser automation setup (hand off to Playwright/Cypress skill)
  • Performance/load testing (use k6, Artillery, or dedicated tools)
  • Security testing (use SAST/DAST tools)

Workflow

Copy this checklist and track progress:

Test Strategy Progress:
- [ ] Step 1: Discover existing test infrastructure
- [ ] Step 2: Inventory testable surfaces with user
- [ ] Step 3: Classify each into pyramid layers
- [ ] Step 4: Score automation candidates (selection matrix)
- [ ] Step 5: Design test scenarios (BDD naming)
- [ ] Step 6: Present strategy deliverable for approval

Step 1: Discover Examine project structure for: test runner config, existing test files, CI pipeline, coverage reports. Note the language, framework, and current test count.

Step 2: Inventory Ask the user: "Which features are business-critical? Which change frequently?" List all endpoints, user flows, and data pipelines.

Step 3: Classify Assign each item a pyramid layer using the Test Pyramid below. Default to unit unless crossing service boundaries (integration) or testing full user flows (E2E).

Step 4: Score Apply the Selection Criteria Matrix. Present results as a table. Items >= 4.0: automate first. Items 3.0-3.9: defer. Items < 3.0: keep manual.

Step 5: Design For automation candidates, write test scenario names: test_[unit]_[scenario]_[expectedResult]

Step 6: Deliver Present the test strategy using the Output Template below. Wait for user approval before handing off to implementation.

Test Pyramid

         E2E Tests (10%)
        /              \
   Integration Tests (30%)
      /                \
   Unit Tests (60%)
LayerSpeedConfidenceCostExamples
UnitFast (<100ms)Low (isolated)LowPure functions, validators, transforms
IntegrationMedium (~1s)MediumMediumAPI routes, DB queries, service calls
E2ESlow (5-30s)High (realistic)HighUser workflows, checkout, auth flows

Automation Decision Quadrant

                    High Business Value
                           |
        +------------------+------------------+
        |   AUTOMATE       |   AUTOMATE       |
        |   FIRST          |   (careful ROI)  |
        |   (High ROI)     |                  |
  Low   +------------------+------------------+  High
Effort  |   AUTOMATE       |   CONSIDER       |  Effort
        |   (Low effort)   |   MANUAL         |
        |                  |   (Low ROI)      |
        +------------------+------------------+
                    Low Business Value
AutomateKeep Manual
Smoke/sanity testsExploratory testing
Regression suitesUsability/UX testing
Data-driven testsOne-time verifications
API contract testsRapidly changing features
Performance baselinesVisual design judgment
Security scansEdge cases rarely executed

Selection Criteria Matrix

CriterionWeightScore Guide
Execution frequency25%5=Daily, 3=Weekly, 1=Quarterly
Business criticality25%5=Revenue-critical, 1=Rarely used
Stability (low change)20%5=Stable, 1=Changes weekly
Complexity to automate15%5=Trivial, 1=Very complex
Data availability15%5=Static/easy, 1=Unavailable

Decision: Score >= 4.0: Prioritize | 3.0-3.9: Defer | < 3.0: Keep manual

ROI Quick Estimation

Test TypeAutomation Cost (x manual time)
API tests1-2x
Simple UI3-5x
Complex UI8-15x
Database2-3x
Performance5-10x

Example: 30 min manual API test x 1.5 = 45 min to automate. Run 52x/year = 26 hrs saved. Breakeven after 2 runs.

Testing Types

TypePurposeBest For
UnitIsolate individual functionsPure logic, validators, transforms
IntegrationVerify component interactionsAPI routes, DB queries, service calls
E2EFull user workflowsCritical paths: auth, checkout, onboarding
Property-BasedRandom inputs, verify invariantsPure functions with defined contracts
ContractAPI compatibility (consumer+provider)Microservices, multi-team APIs

Naming Convention

test_[unit]_[scenario]_[expectedResult]

Example:
test_calculatePricing_withVolumeDiscount_appliesTierRate
test_loginUser_withInvalidPassword_returns401

Quality Metrics

MetricHealthyWarningCritical
Pass rate> 98%95-98%< 95%
Flaky test rate< 2%2-5%> 5%
Suite execution time< 10 min10-30 min> 30 min
Maintenance hrs/week< 4 hrs4-8 hrs> 8 hrs
Code coverage> 80%60-80%< 60%

Coverage goals: 80%+ line coverage as baseline (adjust per domain risk). 100% on critical paths: auth, payments, data validation. Branch coverage matters more than line coverage. Don't game metrics — meaningful tests over numbers.

Anti-Patterns

Anti-PatternProblemFix
Sleep/wait hardcodingFlaky, slowExplicit waits / polling
XPath over data-testidBrittle selectorsStable test attributes
Test interdependenceOrder-dependent failuresIsolated setup per test
Shared mutable stateRace conditionsFresh state per test
Too many E2E testsSlow pipelinePush down the pyramid
Testing implementation detailsBreaks on refactorTest behavior, not internals
Ignoring error pathsFalse confidenceTest failures + edge cases
Ignoring flaky testsErodes trust in suiteFix or quarantine immediately
Missing boundary valuesOff-by-one, null bugsTest empty, null, min, max
No concurrency testsRace conditions in prodTest parallel access paths

Common Mistakes

MistakeFix
Testing implementation details instead of behaviorAssert on outputs and side effects, not internal state
100% coverage targetDiminishing returns past 80%; focus on critical paths
E2E tests for edge casesUse unit tests for edge cases; E2E for happy paths
No test naming conventionUse pattern: should <expected> when <condition>
Flaky tests left in suiteQuarantine immediately, fix within sprint, or delete
Mocking everything in integration testsIntegration tests should use real dependencies where feasible
Skipping test pyramid reviewAudit distribution quarterly: 70% unit / 20% integration / 10% E2E

Troubleshooting

ProblemSolution
Cannot decide unit vs integration boundaryIf test needs external service/DB, it is integration. If it can run with mocks only, it is unit
Test suite too slow for CIProfile slowest tests. Push E2E down to integration where possible. Parallelize
Coverage high but bugs still shipCheck branch coverage, not just line. Verify tests assert behavior, not implementation
Flaky test rate climbingQuarantine flaky tests immediately. Root-cause: shared state, timing, or external deps
Stakeholders question automation ROIUse Selection Criteria Matrix with weighted scores. Present saved hours/year calculation

Output Template

Present the test strategy in this format:

# Test Strategy: [Project/Feature Name]

## Current State
- Language/Framework: [detected]
- Existing tests: [count by type]
- Current coverage: [if available]

## Pyramid Distribution
| Layer | Count | Target % | Actual % |
|-------|-------|----------|----------|

## Automation Candidates
| Feature | Score | Decision | Layer | Est. ROI |
|---------|-------|----------|-------|----------|

## Test Scenarios
[List of test names in BDD naming convention]

## Coverage Goals
- Baseline: [X]% line coverage
- Critical paths (100%): [list]

## Next Steps
- [ ] Implement [N] unit tests
- [ ] Implement [N] integration tests
- [ ] Configure CI pipeline

Handoffs

WhenHand off to
Strategy approved, ready to write testsREQUIRED SUB-SKILL: TDD skill with test scenario list
E2E browser tests neededREQUIRED SUB-SKILL: Playwright/Cypress framework docs
Performance baselines neededLoad testing tools (k6, Artillery)
CI pipeline configurationProject's CI config file
<!-- Credits: Merged from testing-strategies by @1Mangesh1 and automation-strategy by @melodic-software -->

What ships with it: 1 file

1.1 KB alongside SKILL.md

Keep looking

Skills are one crate of 326,790. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.