🦀 ClawHub
Trace Debugger Safety
by @gakkiismywife
Safer end-to-end trace debugging from trace_id using Jaeger and Elasticsearch with guarded Codex analysis. Use when a user wants a trace report similar to tr...
TERMINAL
clawhub install trace-debugger-safety📖 About This Skill
name: trace-debugger-safety description: Safer end-to-end trace debugging from trace_id using Jaeger and Elasticsearch with guarded Codex analysis. Use when a user wants a trace report similar to trace-debuger but needs reduced prompt-injection risk from untrusted logs, optional Codex execution (
--no-codex), and no hardcoded default repository path.
Trace Debugger Safety
Generate a self-contained Markdown trace debug report with safer defaults.
Inputs
trace_id (required)jaeger_url (optional, default http://127.0.0.1:16686)es_url (optional, default http://127.0.0.1:9200)repo_path (optional, absolute path, default empty)output_path (optional, default ./trace_debug_report_{trace_id}.md)es_index (optional, default filebeat-tracer-*)es_size (optional, default 2000)no_codex (optional flag; skip Codex analysis)Run
python3 skills/trace_debugger_safety/scripts/trace_debugger_safety.py \
--trace-id \
[--jaeger-url http://127.0.0.1:16686] \
[--es-url http://127.0.0.1:9200] \
[--repo-path /absolute/repo/path] \
[--no-codex] \
[--output-path ./trace_debug_report_.md]
Safety changes
--no-codex.repo_path; use empty default and skip code analysis when not provided.Output
output_pathUse exactly this message format:
<真实markdown报告文件名>
trace_id: xxxx
status: xxx
jaeger_url: xxx
es_url: xxx
代码仓库路径:仓库路径
关键结论摘要:xxxx
Notes
--no-codex is set, skip Codex analysis and rely on Jaeger + ES + optional code hints only.Caution
CAUTION: 主要风险在于 codex exec 的 prompt 注入面。不建议在不可信日志环境下直接使用。
📋 Tips & Best Practices
--no-codex is set, skip Codex analysis and rely on Jaeger + ES + optional code hints only.