skills/ghostscope-runtime-analysis/SKILL.md
Explain GhostScope and turn the project docs into concrete tracing commands, trace scripts, privilege setup, and issue-report workflows for source-aware runtime analysis. Use when the user asks how to install GhostScope, provide source tree and DWARF inputs, handle eBPF privileges, attach to a PID or binary, choose between `-p` and `-t`, inspect variables, write GhostScope trace scripts, use Input Mode commands, work through container or PID-namespace CLI scenarios, or triage GhostScope failures, crashes, and GitHub issue reports.
npx skillsauth add swananan/ghostscope ghostscope-runtime-analysisInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Translate GhostScope documentation into runnable commands and minimal trace scripts.
Prefer repository docs as the source of truth. When the user is writing in Chinese, prefer the docs/zh/ counterparts first.
references/doc-map.md, then use README.md, docs/comparison.md, and docs/faq.md or README-zh.md, docs/zh/comparison.md, and docs/zh/faq.md.references/cli-cookbook.md, then docs/install.md or docs/zh/install.md.ghostscope --help first, and use subcommand help such as ghostscope bpffs prune --help when relevant. If ghostscope is unavailable but the shared workspace is the GhostScope repo, fall back to references/cli-cookbook.md, then docs/configuration.md or docs/zh/configuration.md.trace, info, source, save traces, or srcpath: read references/cli-cookbook.md, then docs/input-commands.md or docs/zh/input-commands.md.ghostscope --script-help first and treat its output as the source of truth for the current installed DSL. If ghostscope is unavailable but the shared workspace is the GhostScope repo, fall back to docs/scripting.md or docs/zh/scripting.md.docs/container.md or docs/zh/container.md.docs/limitations.md or docs/zh/limitations.md.references/issue-reporting.md, then docs/install.md, docs/container.md, and docs/limitations.md or their docs/zh/ counterparts.ghostscope is not installed or not found, recommend installing it first with curl -fsSL https://raw.githubusercontent.com/swananan/ghostscope/main/scripts/install.sh | bash.sudo or equivalent capabilities.setcap or running a prepared wrapper script with sudo.ghostscope -p <PID>, use the PID visible in the same environment where GhostScope runs.-p <PID> for one already-running process.-t <PATH> when the user wants startup coverage, wants to trace all processes using a binary or library, or is targeting a shared library explicitly.--script-file for repeatable command-line workflows.trace and info commands for interactive exploration.trace <pattern> { ... } block.trace <target>, emit only the statements inside the block, not another top-level trace.setcap command or a ready-to-run sudo wrapper script.ghostscope --script-help, or fall back to docs/scripting.md or docs/zh/scripting.md only when GhostScope is unavailable.docs/container.md.docs/limitations.md for caveats first.-t shared-library targets where new processes must expose globals, mention --enable-sysmon-shared-lib.srcpath map over telling the user to move files manually.ghostscope --help and relevant subcommand help.-p PID semantics, and known -t shared-library caveats./tmp/ghostscope-issue-*.md with scripts/prepare_issue_report.py.https://github.com/swananan/ghostscope/issues.development
Run GhostScope e2e through the project runner service API, including explicit topology runs, with direct topology-aware `cargo test` only as a fallback when the runner is unavailable. Use when the user asks to execute e2e tests, run a specific test case, run tests for a specific repo path, diagnose e2e failures, handle sudo or permission issues around eBPF test execution, or run container-topology e2e scenarios.
tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------