reproduction-trace-instrumenter

Instrument Python programs to capture execution traces and generate JSON replay scripts.

142|14|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill reproduction-trace-instrumenter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: reproduction-trace-instrumenter
Source: https://github.com/ArabelaTso/Skills-4-SE/tree/main/skills/reproduction-trace-instrumenter
Command: npx skills add https://github.com/ArabelaTso/Skills-4-SE --skill reproduction-trace-instrumenter

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill helps developers pinpoint and fix elusive bugs by capturing detailed execution traces, enabling consistent reproduction and diagnosis of failures.

Core Features & Use Cases

  • Code Instrumentation: Instruments Python code to record function calls, variable states, and control flow.
  • Trace Generation: Creates detailed trace.json files capturing program execution.
  • Replay Scripting: Generates executable Python scripts to deterministically replay the captured execution flow.
  • Use Case: Reproduce an intermittent bug by instrumenting the application, running it until the bug occurs, and then using the generated replay script to debug the exact sequence of events locally.

Quick Start

Use the reproduction-trace-instrumenter skill to instrument the file 'my_app.py' and save the trace to 'trace.json'.

Frequently Asked Questions about reproduction-trace-instrumenter

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

FAQPage Schema
How do I capture a Python execution trace for reproducing intermittent bugs?

To capture a Python execution trace for bug reproduction, you instrument the target Python code to record function calls, variable states, and control flow, generating a detailed JSON trace file for deterministic replay.

What is Python code instrumentation for bug replay?

Python code instrumentation for bug replay is the process of modifying the AST to capture execution events, such as function calls and variable assignments, outputting a JSON trace and executable script to deterministically reproduce the exact sequence of events.

Can I generate a replay script from a Python trace.json file?

Yes, you can generate a replay script from a Python trace.json file using a dedicated replay generator component, which creates an executable Python script that deterministically replays the captured execution flow for local debugging.

Does this bug reproduction tool work with any Python 3 application?

Yes, this bug reproduction tool works with Python 3 applications by manipulating the Abstract Syntax Tree (AST) to instrument the code, requiring no external dependencies to capture function calls and control flow events.

What is the best way to debug an intermittent Python bug locally?

The best way to debug an intermittent Python bug locally is to instrument the application to capture detailed execution traces, run it until the bug occurs, and then use the generated replay script to debug the exact sequence of events.

What Python execution events are captured during trace instrumentation?

During trace instrumentation, Python execution events captured include function calls, variable assignments, and control flow events, all of which are saved into a detailed JSON trace file for subsequent bug reproduction and diagnosis.