rb-tdd-scientific-code

Implement test-driven development workflows for scientific and numerical codebases.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/richardmbailey/rb-skills --skill rb-tdd-scientific-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rb-tdd-scientific-code
Source: https://github.com/richardmbailey/rb-skills/tree/main/rb-tdd-scientific-code
Command: npx skills add https://github.com/richardmbailey/rb-skills --skill rb-tdd-scientific-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the high risk of silent failures in scientific and numerical computing by enforcing a strict test-driven development workflow that prioritizes mathematical invariants, numerical stability, and reproducibility.

Core Features & Use Cases

  • Scientific Integrity: Enforces strict validation of units, conservation laws, and numerical tolerances to prevent drift.
  • Stochastic Validation: Ensures distributional correctness for probabilistic models rather than relying on single-seed flakiness.
  • Use Case: Use this when developing a new simulation engine or numerical solver to ensure that every code change maintains physical consistency and passes rigorous benchmark regression tests.

Quick Start

Invoke the rb-tdd-scientific-code skill to begin a test-driven implementation of the new numerical solver module.

Frequently Asked Questions about rb-tdd-scientific-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write tests for numerical simulation code that enforce conservation laws and tolerances?

Test-driven development for numerical simulation code enforces strict validation of conservation laws, dimensional consistency, and tolerances to prevent silent drift. It ensures physical consistency across code changes by verifying mathematical invariants.

What is the best way to test stochastic models without relying on a single random seed?

Stochastic validation for probabilistic models ensures distributional correctness rather than relying on single-seed flakiness. It validates statistical properties and distributional outcomes across multiple simulation runs.

How do I set up benchmark regression tests for a numerical solver?

Benchmark regression tests for numerical solvers verify that every code change maintains physical consistency and passes rigorous benchmark fixtures. This workflow ensures high-fidelity verification of invariants across coupled model pipelines.

Does test-driven development work for reproducible research and scientific computing?

Test-driven development for reproducible research satisfies strict requirements for reproducible research and dimensional consistency. It applies test-driven workflows to scientific codebases requiring high-fidelity verification of invariants and tolerances.

Why does my scientific code pass unit tests but fail in coupled model pipelines?

Coupled model pipelines require rigorous integration testing to prevent silent failures in scientific computing. Enforcing strict validation of units, conservation laws, and numerical tolerances prevents drift that isolated unit tests often miss.