Skip to content
Back to skills

Mkl Write Regression

ASecurity

Write a focused regression test from an established bug reproduction and public behavior. Use when a fix needs a test that fails on the affected version; avoid mirroring the implementation or weakening assertions.

  • 49 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 19, 2026
ai-agentspythongit

Security analysis

A100/100

Scanned September 29, 2026

npx -y skills add 00200200/maintainer-skills-lab --skill mkl-write-regression --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mkl Write Regression?

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

Security grade badge for Mkl Write Regression
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/00200200-mkl-write-regression/badge)](https://www.skillsdirectory.com/skills/00200200-mkl-write-regression)

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: "mkl-write-regression"
description: "Write a focused regression test from an established bug reproduction and public behavior. Use when a fix needs a test that fails on the affected version; avoid mirroring the implementation or weakening assertions."
---

# Write a regression test

Read the reproduction, expected public behavior, and nearby test conventions. Derive the assertion from the behavior a caller needs, not from the proposed implementation.

Write the smallest test that captures the defect. Use deterministic inputs and existing project dependencies where practical. Do not mock away the faulty path. Place supporting fixtures beside the test and explain any environment requirements.

Run the test against the affected implementation before accepting it as a regression test. Use concise output flags (`pytest -q --tb=short -x`, or `python3 tools/test_fast.py`; unittest: `-q -f`) so failures stay readable instead of dumping full local-variable tracebacks. Inspect why it failed: an assertion about the reported behavior is evidence; an import error, collection failure, permission problem, or timeout is not the intended proof. Keep the test unchanged when evaluating the fix.

If the fix is already present, use an isolated checkout or an equivalent preserved baseline to test the pre-fix version. Preserve the user's current checkout and uncommitted work. Do not revert their working tree merely to get a red test.

Return the test location, why the assertion represents the bug, the baseline result, and the fixed-version result if tested. Name any checks not run. Do not alter the expected result just to make the suite green.

The source library's [independent example test](https://github.com/00200200/maintainer-skills-lab/blob/main/examples/bugfix/test_slug.py) asserts punctuation and whitespace behavior without reproducing the implementation's transformation steps.

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…

Newsletter

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