跳到正文
TakoAPI
返回技能列表

black-box

由 lilyjazz 提供

Shopping & E-commerce
385下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Indestructible audit logs for agent actions, stored in TiDB Zero.

描述

该技能的功能

Streams agent actions, errors, and reasoning chains to a TiDB Zero cloud database in real-time as persistent audit logs. Survives container crashes and environment resets. Supports both user-supplied credentials and auto-provisioned temporary databases.

Unlike local log files, cloud-persisted logs survive container crashes and remain queryable after the agent environment is gone.

何时使用

  • Retrieving the last 100 actions before a production agent crash
  • Proving agent behavior for compliance audits
  • Debugging a multi-step agent run that failed mid-execution
  • Persisting logs across ephemeral CI/CD containers
  • Tracking error patterns across repeated agent runs

示例工作流

输入

User asks: What did the agent do before it crashed?

智能体
  1. 1

    Connect to TiDB Zero using TIDB_* credentials or auto-provisioned DSN

  2. 2

    Query the agent_logs table for the most recent entries

  3. 3

    Filter by ERROR level and sort by timestamp descending

  4. 4

    Return the last 20 log entries with message and metadata fields

输出

A list of 20 timestamped log entries showing the agent's actions and errors leading up to the failure

前置要求

  • TIDB_HOST environment variable
  • TIDB_PORT environment variable
  • TIDB_USER environment variable
  • TIDB_PASSWORD environment variable
  • TiDB Zero account (if using auto-provisioning fallback)

安装

clawhub install lilyjazz/black-box

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接