← 返回 Skills 市场
jdchi

Claw Trace

作者 JDChi · GitHub ↗ · v1.1.1 · MIT-0
cross-platform ✓ 安全检测通过
311
总下载
0
收藏
1
当前安装
4
版本数
在 OpenClaw 中安装
/install claw-trace
功能描述
Track and visualize the OpenClaw agent's work process. Record tool call inputs, outputs, duration, and status, and present them in an easy-to-read format. **...
使用说明 (SKILL.md)

Claw Trace - Work Process Visualization

This Skill is used to record and display the AI agent's work process.

Feature Modules (Configurable)

User can say "enable XX feature" or "use simple mode" to switch.

Module 1: Call Table (Enabled by Default)

Step Tool Input Result Duration
1 web_search query: "xxx" ❌ Failed 0ms
2 web_fetch url: "xxx" ✅ Success 230ms

Module 2: Flowchart (Enabled by Default)

[User Request] ↓

  1. web_search → ❌ ↓
  2. web_fetch → ✅ ↓ [Reply to User]

Module 3: Statistics (Optional)

📊 Work Statistics
⏱️ Total Time: 8.5s
🔧 Tool Calls: 15 times
✅ Success Rate: 87% (13/15)

📈 Tool Usage Ranking:
  1. web_fetch  - 10 times (67%)
  2. exec       - 3 times (20%)

Module 4: Detailed Log (Optional)

Record complete input/output for each call (except sensitive info).

Module 5: Save to File (Optional)

Generate Markdown report saved to workspace.

Module 6: Filters (Optional)

Filter tool calls by various criteria:

Filter Type Command Example
By tool name "filter: tool_name" "filter: web_search"
By result "filter: success" / "filter: failed" "filter: failed"
By time "filter: last N calls" "filter: last 5 calls"
By keyword "filter: keyword in output" "filter: error"

Multiple filters can be combined: "filter: web_search and failed"

Module 7: Export Format (Optional)

Choose export format:

  • Markdown (default)
  • JSON
  • HTML (with syntax highlighting)

Usage

Configuration File

The Skill has a config file config.json with the following options:

{
  "enable": false,        // Whether to enable by default (default: false, on-demand)
  "mode": "simple",       // Mode: simple / full
  "enabledModules": {
    "table": true,        // Call table
    "flowchart": true,   // Flowchart
    "statistics": false,  // Statistics
    "detailedLog": false,// Detailed log
    "saveToFile": false  // Save to file
  },
  "language": "auto"       // Language: auto / zh / en
}

User Commands

User can modify config through conversation:

Command Action
"enable trace" enable = true
"disable trace" enable = false
"use simple mode" mode = simple
"use full mode" mode = full
"enable statistics" statistics = true
"enable filters" filters = true
"filter: tool_name" filter by tool name
"filter: success/failed" filter by result
"filter: last N calls" filter by count
"output in English" language = en
"output in Chinese" language = zh

Workflow

  1. Each time Skill is called: Read config.json first to get current config
  2. Based on config:
    • enable = false → Don't show (unless user explicitly requests)
    • enable = true → MUST automatically show trace output after every tool call, do NOT wait for user to ask
  3. When user modifies config: Update config.json and save

⚠️ Important Rule

When enable = true, trace output MUST be included in EVERY reply after tool calls automatically, without waiting for user to say "show trace"!

Language Auto-Detection

  • Output language follows user's language
  • User speaks Chinese → Output in Chinese
  • User speaks English → Output in English

Notes

  • Sensitive info (API Keys, passwords) should not be recorded
  • Truncate overly long output with [...]
  • Clearly indicate reasons for failed calls
  • Keep output concise, don't over-detail

⚠️ Security Guidelines

Sensitive Data Redaction (MANDATORY)

Before displaying any tool call input/output, you MUST redact the following:

Must redact:

  • API Keys, Tokens, Passwords (patterns: key=, token=, password=, Authorization:)
  • File contents that may contain secrets
  • User credentials or private data

How to redact:

  • Replace with [REDACTED] or [HIDDEN]
  • Keep the structure but mask values
  • Example: {"api_key": "sk-xxx"}{"api_key": "[REDACTED]"}

Safe Defaults

Default configuration is set to:

  • enable: false (off by default, user must explicitly enable)
  • detailedLog: false (don't record full inputs/outputs)
  • saveToFile: false (don't persist to disk)

Best Practices

  1. Test before enabling - Enable in a safe environment first
  2. Review outputs - Check that no secrets appear in traces
  3. Use simple mode - Avoid detailed logging in production
  4. Disable after use - Turn off when not needed
安全使用建议
This skill appears to be what it says, but be cautious: if you enable tracing, the agent will automatically show trace output after every tool call (potentially exposing sensitive inputs/outputs) unless redaction works perfectly. Before enabling: (1) test in a safe environment with non-sensitive data; (2) keep detailedLog/saveToFile disabled and use simple mode; (3) review a sample of traces to confirm redaction covers your secrets and conventions (headers, query strings, file contents, tokens in JSON, etc.); (4) avoid enabling in production or when handling private credentials. If you need stronger guarantees, request an implementation that enforces deterministic redaction rules or that never records certain categories (e.g., Authorization headers, entire request bodies for particular tools).
功能分析
Type: OpenClaw Skill Name: claw-trace Version: 1.1.1 The 'claw-trace' skill is a utility designed to monitor and visualize an AI agent's tool usage for debugging and transparency. It includes explicit security instructions in SKILL.md for the agent to redact sensitive data (API keys, passwords, and tokens) and is disabled by default in config.json. The instructions for automatic output and file logging are consistent with the tool's stated purpose and do not exhibit signs of malicious intent or unauthorized data exfiltration.
能力评估
Purpose & Capability
Name, description, and runtime instructions align: the skill records and presents tool-call traces and only needs its own config.json. There are no unexplained credentials, binaries, or installs.
Instruction Scope
The SKILL.md instructs the agent to record inputs/outputs, durations, and statuses and — when enable=true — to automatically include trace output after every tool call without waiting for user request. This is consistent with a tracer, but it significantly broadens what the agent will display (including potentially sensitive tool inputs/outputs). The document requires redaction of some patterns but does not provide an enforceable, comprehensive redaction implementation. The skill also instructs writing updates to config.json, which is within scope.
Install Mechanism
Instruction-only skill with no install spec and no code files. Nothing will be written to disk by an installer. Lower risk from installation perspective.
Credentials
No environment variables, credentials, or external config paths are requested. The config.json is the skill's own file and is appropriately scoped. No unrelated secrets are requested.
Persistence & Privilege
always is false and the skill is user-invocable. The skill can be invoked autonomously by the agent (platform default), which increases blast radius if traces include secrets — this is normal for skills but relevant given the automatic-trace mandate. The skill does write to its own config.json per its instructions, which is expected.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-trace
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-trace 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.1
claw-trace 1.1.1 changelog - Updated configuration in config.json (details not shown). - No changes to features, workflow, or security documented.
v1.1.0
claw-trace 1.1.0 adds filtering and export options, and clarifies trace output requirements. - Added filter module: filter trace records by tool name, status, keyword, or count. - Added export format options: Markdown (default), JSON, and HTML. - Clarified: when `enable = true` in config, trace output MUST be shown after EVERY tool call, automatically. - Updated user command list to include filter and export commands. - No breaking changes to config or core features.
v1.0.1
- Added detailed security guidelines for sensitive data redaction, including strict rules for masking API keys, tokens, and passwords. - Clarified default settings to enhance safety: trace is disabled by default, detailed logs are off, and file saving is off. - Provided explicit redaction examples and required masking formats. - Added best practices for safe usage, such as enabling in a test environment and reviewing outputs for secrets. - No changes to core features or user commands.
v1.0.0
claw-trace 1.0.0 – Initial release - Tracks and visualizes the OpenClaw agent's work process, including tool call inputs, outputs, duration, and status. - Offers configurable modules: call table, flowchart, statistics, detailed log, and save to file. - Allows users to customize output and switch modes (simple/full) through conversational commands. - Adapts output language based on user language (automatic, English, or Chinese). - Ensures sensitive information is not recorded and maintains concise, clear reporting.
元数据
Slug claw-trace
版本 1.1.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 4
常见问题

Claw Trace 是什么?

Track and visualize the OpenClaw agent's work process. Record tool call inputs, outputs, duration, and status, and present them in an easy-to-read format. **... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 311 次。

如何安装 Claw Trace?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-trace」即可一键安装,无需额外配置。

Claw Trace 是免费的吗?

是的,Claw Trace 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Claw Trace 支持哪些平台?

Claw Trace 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claw Trace?

由 JDChi(@jdchi)开发并维护,当前版本 v1.1.1。

💬 留言讨论