Skip to content
Back to skills

Quality Test Gate

ASecurity

Use `analysis-agent`, `task-agent`, or `review-agent` for standalone tests, validation strategy/infrastructure, or current proof/coverage. Supporting tests stay with the production behavior owner.

  • 7 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
testinggosecurity

Security analysis

A100/100

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

Scanned October 4, 2026

npx -y skills add machenjie/rd-skills --skill quality-test-gate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quality Test Gate?

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

Security grade badge for Quality Test Gate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machenjie-quality-test-gate/badge)](https://www.skillsdirectory.com/skills/machenjie-quality-test-gate)

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: quality-test-gate
description: "Use `analysis-agent`, `task-agent`, or `review-agent` for standalone tests, validation strategy/infrastructure, or current proof/coverage. Supporting tests stay with the production behavior owner."
---

# quality-test-gate

## Role

Map acceptance and failure paths to proving signals.

- **Analysis mode (`analysis-agent`):** Select the proof strategy.
- **Task mode (`task-agent`):** Prove the changed mechanism with current existing-check results or a necessary test change.
- **Review mode (`review-agent`):** Judge coverage and freshness.

## When To Use

- standalone test implementation or validation strategy
- test fixtures, mocks, or validation infrastructure are the changed owner
- explicit proof coverage or current validation, even without production edits

## Do Not Use

- tests or fresh validation are supporting obligations of a production implementation
- validation already fresh and complete

## Required Inputs

- observable acceptance and non-goals
- validation entry points material risks and execution constraints
- **Analysis mode (`analysis-agent`):** current behavior, existing tests, and uncovered acceptance risks.
- **Task mode (`task-agent`):** changed paths, regression mechanism, and repository validation entry points.
- **Review mode (`review-agent`):** changed behavior, supplied proof, and freshness marker.

## Professional Decision Rules

- Map each acceptance and material failure to one signal.
- Select the lowest level exercising the real boundary.
- Record stale, flaky, skipped, or partial evidence as limited.

## High-Value Gotchas

- A broad green suite can miss the changed mechanism.
- A mock or stale result can prove the harness instead of current behavior.

## Execution Checklist

- **Analysis mode:** Map acceptance and material failure paths to test levels.
- **Task mode:** Run applicable existing checks after the final material edit.
- **Task mode:** Add or change the smallest proving test only when existing checks miss a material mechanism.
- **Task mode:** Capture the current result and the behavior it proves.
- **Review mode:** Judge changed-file, negative-path, and freshness coverage.
- Record unproved scope with its owner and release consequence.

## Stop / Escalation Conditions

- Stop before production mutation or authority overrun.
- Escalate unowned flaky, skipped, or partial evidence.
- Flag uncovered changed files or acceptance.

## Output Contract

- **Analysis mode (`analysis-agent`):** validation strategy; acceptance-to-signal mapping; uncovered acceptance.
- **Task mode (`task-agent`):** current check results and any necessary test change; covered behavior; remaining regression risk.
- **Review mode (`review-agent`):** coverage verdict; uncovered changed behavior; stale or missing proof.

## Targeted References

| Path | Type | Load when | Do not load when | Required by | Required output |
|---|---|---|---|---|---|
| [checklist](references/checklist.md) | decision-checklist | Ordinary acceptance-to-test mapping needs a compact checklist | The root checklist already covers the bounded change | analysis-agent, task-agent, review-agent | checklist-result, validation-plan |
| [index](references/index.md) | index | competing quality test gate references require dependency, conflict, or output-fragment selection | the quality test gate root or a task-named reference already resolves selection | analysis-agent, task-agent, review-agent | reference-selection |
| [test output and gates](references/test-output-and-gates.md) | targeted | Migration, security, release, concurrency, or multi-boundary proof needs deeper calibration | A local targeted test is sufficient | analysis-agent, task-agent, review-agent | gate-decision, residual-risk |
| [test structure boundaries](references/test-structure-boundaries.md) | targeted | Fixtures, mocks, golden data, shared helpers, private access, or test placement affect correctness | No test-structure decision exists | analysis-agent, task-agent, review-agent | validation-plan, proof-limit |

Files in this skill

  • SKILL.md4.8 KB
  • examples/example-output.md430 B
  • references/checklist.md618 B
  • references/index.md1 KB
  • references/test-output-and-gates.md3.4 KB
  • references/test-structure-boundaries.md2.6 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.

Comments

Loading comments…