Skip to content

Syscall and library call tracing with strace and ltrace for diagnosing binaries that misbehave without crashing.

CCM score
60 of 100
skills.sh installs
822
GitHub stars
303
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers basic strace invocation, filtering by syscall category, interpreting common errno values, and ltrace library-call tracing
  • Includes a table of 10 errno meanings (ENOENT, EACCES, EPERM, ECONNREFUSED, and others) with typical causes
  • Provides flags for timestamps (-t, -T, -r), summaries (-c), string length (-s), and forked children (-f)
  • Designed for diagnosing missing files, permission failures, network issues, and seccomp kills without a debugger

Install

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill strace-ltrace -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

strace / ltrace

Purpose

Guide agents through tracing system calls with strace and library calls with ltrace — the most effective tools for diagnosing incorrect binary behaviour without a crash or debugger.

Triggers

  • "My program behaves incorrectly — how do I trace what it's doing?"
  • "How do I find what files a binary is opening?"
  • "strace shows ENOENT — how do I interpret it?"
  • "How do I trace network calls with strace?"
  • "What is ltrace and how does it differ from strace?"
  • "How do I trace a running process?"

Workflow

1. Basic strace usage

# Trace all syscalls of a command
strace ./myapp arg1 arg2

# Attach to running process
strace -p 12345

# Trace child processes too (-f = follow fork)
strace -f ./myapp

# Save to file (raw output — not stdout)
strace ./myapp 2> trace.txt

# Most useful: timestamps + summary
strace -t -f ./myapp 2>&1 | head -100

2. Filter by syscall category

# Trace file operations only
strace -e trace=file ./myapp

# Trace network syscalls
strace -e trace=network ./myapp

# Trace specific syscalls
strace -e trace=open,openat,read,write ./myapp

Details

Repository
github.com/mohitmishra786/low-level-dev-skills
Categories
Debugging, CLI & Terminal
First seen
Jun 3, 2026

Questions

What does the strace-ltrace skill help me do?

The strace-ltrace skill guides an agent through tracing system calls with strace and library calls with ltrace. It is aimed at diagnosing a binary that behaves incorrectly without crashing, such as file-not-found errors, permission failures, network issues, or unexpected library calls.

How do I install the strace-ltrace skill?

Run npx -y skills add mohitmishra786/low-level-dev-skills --skill strace-ltrace -y in your project. Once installed, the agent can trace syscalls and library calls to find out what a binary is actually doing.

How does strace differ from ltrace in this skill?

strace traces kernel system calls such as open, read and write, while ltrace traces user-space library calls such as fopen, malloc and printf. The skill recommends strace when the binary interacts with files, network or the OS, and ltrace when it calls library functions you cannot see.

Where does strace-ltrace stand in the Debugging category?

strace-ltrace is in the Debugging category on Claude Marketplaces, alongside diagnosing-bugs, safe-debug, systematic-debugging and sentry-cli. It focuses on tracing what a binary does at the syscall and library level rather than stepping through code.

More from mohitmishra786/low-level-dev-skills

All 54

Similar to Strace Ltrace

More Debugging