Skip to content
Back to skills

Metamorphic Testing

ASecurity

Use this skill when you need to derive test candidates from input transformations and expected relations when a direct oracle is limited; triggers include 变形测试 and metamorphic test design.

  • 313 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 6, 2026
testinggotestinggit

Security analysis

A100/100

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

Scanned November 6, 2026

npx -y skills add naodeng/awesome-qa-skills --skill metamorphic-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Metamorphic Testing?

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

Security grade badge for Metamorphic Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/naodeng-metamorphic-testing/badge)](https://www.skillsdirectory.com/skills/naodeng-metamorphic-testing)

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
---
name: metamorphic-testing
description: Use this skill when you need to derive test candidates from input transformations and expected relations when a direct oracle is limited; triggers include 变形测试 and metamorphic test design.
license: PolyForm-Noncommercial-1.0.0
metadata:
  version: "1.0.0"
  compatibility: ""
  author: "Awesome QA Skills contributors"
  language: "en"
  category: "testing-types"
  source: "https://github.com/naodeng/awesome-qa-skills"
  license-url: "https://polyformproject.org/licenses/noncommercial/1.0.0"
---

# Metamorphic Test Design

Derive test candidates from input transformations and expected relations when a direct oracle is limited. Produce MT-## design candidates within the evidence boundary; do not execute tests or claim coverage or pass results.

## When to Use

- Analyze baseline inputs, transformation rules, expected relations, output invariants, randomness, and existing evidence.
- Preserve selection rationale, evidence gaps, priority, and validation actions.
- Inputs are incomplete but a bounded first pass can mark items unassessed or blocked.

## Output Format Options

- Use Markdown by default; use tables, JSON, or CSV only when explicitly requested or required by the delivery format.
- Separate static analysis, unexecuted work, evidence states, and Human decisions; keep items unassessed, blocked, or NOT_RUN when runtime evidence is absent.

## How to Use

1. Read `prompts/metamorphic-testing.md` and provide the objective, scope, material, environment, and evidence.
2. Start with separate known, missing, conflicting, stale, out_of_scope, and assumptions entries.
3. Produce MT-## findings with source, evidence state, applicability, impact/priority, owner, close condition, and validation.
4. Separate facts, evidence-backed inferences, recommendations, and Human decisions.
5. Recommend follow-up validation without claiming execution.

## Domain Execution Essentials

- Define source input domain, transformation T, output relation R and sourced preconditions. An absent exact oracle does not permit arbitrary equivalence assumptions.
- Deliver input/transformation/output-relation/precondition/counterexample tables, separating relation applicability from implementation satisfaction.
- When deriving domain candidates, read and follow [prompts/metamorphic-testing.md](prompts/metamorphic-testing.md) for the domain procedure and oracle; retain valid controls, evidence gaps, and validation actions for each item.

## Core Constraints

- Do not invent transformation relations, outputs, or randomness claims, or treat a relation table as execution evidence.
- File presence, names, templates, and Eval configuration are not runtime evidence.
- Do not edit requirements, code, test assets, or target systems, or accept risk for a Human.

## Pre-delivery Check

- [ ] The six-part input audit is complete.
- [ ] Every MT-## has source, evidence state, applicability, concern, impact/priority, owner, close condition, and validation.
- [ ] Facts, inferences, recommendations, and Human decisions are separate.
- [ ] Unexecuted, unverified, unassessed, and pending-decision items are explicit.

## Reference Files

- Read evals/eval.yaml and matching cases for regression; configuration does not prove project results.
- Use evals/trigger-prompts.csv and evals/local-rules.json for trigger checks; missing skill.selection evidence is BLOCKED.

## Common Pitfalls

- Do not treat a method name, file presence, or candidate count as execution, coverage, pass, or release evidence.
- Do not fill missing relations, transformations, or results with convention; preserve unassessed, blocked, and pending items.
- Do not expand this specialist design into a complete strategy, full test cases, runtime execution, or a release decision.

## Best Practices

- Complete the six-part input audit before selecting the smallest traceable and verifiable finding scope.
- Keep the source, evidence state, impact/priority, owner role, close condition, validation method, and residual risk for every finding.
- Write validation suggestions as next actions; do not upgrade package structure, candidate counts, or local Eval configuration into real quality conclusions.

Files in this skill

  • SKILL.md4.1 KB
  • agents/openai.yaml329 B
  • evals/cases/basic-success.yaml830 B
  • evals/cases/domain-method-control.yaml1.1 KB
  • evals/cases/domain-method-success.yaml1.2 KB
  • evals/cases/edge-incomplete-input.yaml806 B
  • evals/cases/edge-scope-boundary.yaml911 B
  • evals/eval.yaml526 B
  • evals/local-rules.json138 B
  • evals/trigger-prompts.csv715 B
  • prompts/metamorphic-testing.md3.4 KB

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.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.