failure-oriented-instrumentation

Instrument suspicious code regions with logging, tracing, and assertions.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers efficiently debug software by strategically adding instrumentation to code, focusing only on suspicious areas to capture high-signal runtime data for failures and bugs.

Core Features & Use Cases

  • Targeted Instrumentation: Adds logging, tracing, and assertions only to relevant code sections, minimizing overhead.
  • Multi-language Support: Works with Python, JavaScript/TypeScript, Java, and C/C++.
  • Use Case: When a critical application crashes unexpectedly, use this Skill to instrument the functions in the stack trace and log key variable values just before the crash to identify the root cause.

Quick Start

Use the failure-oriented-instrumentation skill to instrument the processUser function in UserService.java to log the userId and the retrieved user object before line 45.

Frequently Asked Questions about failure-oriented-instrumentation

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

FAQPage Schema
How do I add targeted logging to debug a crash in my Python application?

Targeted logging for debugging a Python crash involves analyzing the stack trace to identify suspicious code regions, then strategically inserting logging and tracing statements to capture high-signal runtime data before the failure point.

When should I use failure-oriented instrumentation instead of adding logs everywhere?

Use failure-oriented instrumentation when debugging failures to minimize overhead, selectively adding tracing and assertions only to relevant code sections identified by error messages and stack traces to capture high-signal runtime data.

Can I use this targeted instrumentation approach for JavaScript and Java codebases?

Yes, targeted instrumentation for debugging crashes and exceptions supports JavaScript, TypeScript, Java, and C/C++ codebases, allowing you to trace function execution and log variable states across multiple languages.

What is the best way to capture runtime data for an unexpected application exception?

The best way to capture runtime data for unexpected exceptions is to analyze the error message, locate the suspicious functions in the stack trace, and apply targeted assertions and tracing to log variable values right before the crash occurs.

How do I trace specific function variables to find the root cause of a bug?

To trace specific function variables for bug root cause analysis, instrument the targeted functions by adding logging statements that capture the values of key variables and objects at critical execution points before the unexpected behavior occurs.