Index of every page on this site: llms.txt
All skills
betab0t avatar
by Omri Ben-Bassatbetab0t/skills48 stars
3
Run it yourself

Debug and trace C/C++/Rust programs with the GNU Debugger (GDB) without blocking the agent. Use when you need to set tracepoints, inspect variables, or monitor a running process while staying responsive to the user.

Use this Skill: https://skilld.dev/gh/betab0t/skills/gdb

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

demo_prompts.md

≈344 tokens on demand. Your agent reads this file only when SKILL.md points to it.

<!-- AGENT: DO NOT READ OR USE THIS FILE. It is for human testers only. -->

GDB Skill — Demo Prompts

For humans only. This file contains copy-paste prompts for manually testing the GDB skill. The agent should not read or reference this file.


Scenario: Dynamic Tracing of a Demo App

Prompt 1 — Setup and Initial Trace

I want to test your GDB debugging skills. Compile the examples/demo_app.c from the GDB skill with debug symbols, then start a GDB session on it. Set a tracepoint on loop_function that fires when iteration == 1000 and prints the current item's name. Then run the program.

Prompt 2 — Dynamic Modification

Actually, I changed my mind. Remove the previous tracepoint and set a new one that fires on iteration 500 and prints "haha". Keep the program running.

Prompt 3 — Multitasking (Distractor)

While we wait for the 500th iteration, can you quickly search Google for "GDB dprintf vs breakpoint" and summarize the difference?

Prompt 4 — Verification

Okay, did we hit the 500th iteration yet? If so, what was printed?

Prompt 5 — Cleanup

Great. Now remove all breakpoints and tracepoints, but keep the demo app process running. Verify that it's still alive after you remove them.

Prompt 6 — Termination

Okay, kill the demo app process and clean up everything.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides a non-blocking GDB interface using named pipes and logging. While technically well-implemented, it exposes a minor risk of indirect prompt injection as the agent is instructed to read program output from a log file without specific sanitization or boundary markers.

  • Socket2mo

    1 alert: gptAnomaly

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 583a9f3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 weeks ago.

Dormantupdated 10 months ago

README badge

README badge for betab0t/skills