Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

black-box

bởi lilyjazz

Shopping & E-commerce
385Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Yêu cầu

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

Cài đặt

clawhub install lilyjazz/black-box

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết