Test Writing

Convert ALW and methodology outputs into executable pytest tests.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/gtylee/CodexGAS --skill test-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Test Writing
Source: https://github.com/gtylee/CodexGAS/tree/main/modelgas/skills/tests
Command: npx skills add https://github.com/gtylee/CodexGAS --skill test-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill translates risk assessments and validation requirements into concrete, executable tests that verify model behavior, numerical stability, and outcome reasonableness.

Core Features & Use Cases

  • Test plan generation: Produces a matrix of test names, purposes, and categories tailored to ALW and methodology outputs.
  • Pytest generation: Outputs runnable pytest files that implement the tests against the provided evidence.
  • Data requests: Specifies schema-only dataset requirements when data is necessary for tests.
  • Traceability: Maps each test to ALW items and supporting evidence.

Quick Start

Request a test plan and pytest skeletons for the provided model risk artifacts, referencing the test_matrix.yaml under data/ and the ALW/methodology outputs.

Frequently Asked Questions about Test Writing

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

FAQPage Schema
How do I generate pytest scripts from model risk assessments?

This Skill generates pytest scripts from model risk assessments by converting ALW and methodology outputs into executable tests. It produces runnable pytest files that validate conceptual soundness, implementation correctness, and numerical stability.

What is test traceability in financial model validation?

Test traceability in financial model validation maps each generated test to specific ALW items and supporting evidence. This ensures clear evidence links and deterministic tests by specifying data schemas, seeds, tolerances, and traceability identifiers.

How do I create a test plan matrix for methodology outputs?

To create a test plan matrix for methodology outputs, request a test plan from the Skill referencing the test_matrix.yaml. It produces a matrix of test names, purposes, and categories tailored to your ALW artifacts.

Can I specify data schema requirements for executable model tests?

Yes, you can specify data schema requirements for executable model tests. The Skill specifies schema-only dataset requirements and seeds when data is necessary for tests to ensure deterministic validation outcomes.

Does this approach work for numerical stability and outcome reasonableness checks?

Yes, this approach works for numerical stability and outcome reasonableness checks. It applies executable tests across financial modeling workflows to validate implementation correctness and verify model risk assumptions.