replay-writer

Generate and refine Rust crate integration tests from JSON fixtures.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/augentic/specify --skill replay-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: replay-writer
Source: https://github.com/augentic/specify/tree/main/plugins/rt/skills/replay-writer
Command: npx skills add https://github.com/augentic/specify --skill replay-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps ensure your code behaves correctly by automatically generating integration tests from real-world JSON fixtures, catching regressions before they impact users.

Core Features & Use Cases

  • Automated Test Generation: Creates new tests from existing JSON data files in your crate's tests/data/replay/ directory.
  • Regression Prevention: Runs existing and newly generated tests to ensure code stability.
  • Use Case: After migrating an API, you have a collection of actual API responses. Use this Skill to convert those responses into tests that verify your new code handles them correctly.

Quick Start

Add integration tests from real-life JSON fixtures in the fleet_api crate's tests/data/replay/ folder.

Frequently Asked Questions about replay-writer

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

FAQPage Schema
How do I generate Rust integration tests from JSON fixtures?

You can generate Rust integration tests from JSON fixtures by placing real-world data files in your crate's `tests/data/replay/` directory. The Skill automates parsing these files to create new test cases, runs the suite, and iterates on adjustments until all tests pass.

Can I use real API responses for regression testing in Rust crates?

Yes, you can use real API responses for regression testing in Rust crates by saving them as JSON fixtures. The Skill reads these actual responses and converts them into integration tests to verify your new code handles them correctly and prevent regressions.

How does automated test generation from real-world data prevent code regressions?

Automated test generation from real-world data prevents code regressions by converting actual JSON data into verifiable test cases. The Skill runs the entire test suite continuously, iterating on code or test adjustments until all newly generated and existing tests pass successfully.

Do I need to manually format JSON data for Rust integration tests?

You do not need to manually format JSON data for Rust integration tests beyond placing the files in the `tests/data/replay/` directory. The Skill directly leverages these existing JSON fixtures to automatically generate and refine the necessary integration tests.

What is the best way to automate adding new test cases from JSON data in Rust?

The best way to automate adding new test cases from JSON data in Rust is to use a Skill that reads your `tests/data/replay/` directory. It automatically generates the tests, runs them, and iterates on adjustments until the entire crate test suite passes.