smithery.ai

refactoring-05-testing-regression

Use when adding tests and regression checks for Python research code.

First seen Apr 10, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,184 B
  • docs SUMMARY.md 110 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Refactoring 05: Testing and Regression

Goal

Protect core logic with small, fast tests and regression checks for key metrics.

Sequence

  • Order: 05
  • Previous: refactoring-04-data-io-validation
  • Next: refactoring-06-static-analysis-style

Workflow

  • Identify stable, critical functions and write unit tests first.

- Success: Core logic has focused unit tests.

  • Add regression tests for metrics or outputs using small fixtures.

- Success: Key metrics have stable regression checks.

  • Keep tests fast; mark slow or data heavy tests as optional.

- Success: Default test run finishes quickly.

  • Prefer deterministic fixtures over sampling from large datasets.

- Success: Tests run deterministically without external data.

  • Add a single command to run tests via uv run.

- Success: One documented command runs the full test suite.

Guardrails

  • Avoid testing training loops end to end unless requested.
  • Do not add flaky tests; stabilize randomness before asserting values.
  • Keep test data small and stored under tests/.