O

okx-audit-log

by @okxv
4.4(20)

Provides structured audit log file paths, supporting developers in offline troubleshooting of Agent runtime issues, stored in JSON Lines format.

audit-logdebuggingjsonltroubleshootingGitHub
Installation
npx skills add okx/onchainos-skills --skill okx-audit-log
compare_arrows

Before / After Comparison

1
Before

When the Agent encounters issues, it lacks complete operational logs, forcing reliance on scattered console output and memory recall. This makes offline troubleshooting difficult, and problem reproduction and localization are severely time-consuming.

After

Audit logs fully record Agent behavior in JSON Lines format. Developers can analyze log files offline to quickly pinpoint abnormal nodes and error causes, supporting structured queries and filtering.

SKILL.md

okx-audit-log

Onchain OS Audit Log

Provide the audit log file path for developers to troubleshoot issues offline.

Response

Tell the user:

  • Log file path: ~/.onchainos/audit.jsonl (or $ONCHAINOS_HOME/audit.jsonl if the env var is set)

  • Format: JSON Lines, one JSON object per line

  • First line (device header): {"type":"device","os":"<os>","arch":"<arch>","version":"<cli_version>"} — written once when the log file is created; preserved across rotations

  • Entry fields: ts (local time with timezone, e.g. 2026-03-18 +8.0 18:00:00.123), source (cli/mcp), command, ok, duration_ms, args (redacted), error

  • Rotation: max 10,000 lines, auto-keeps the device header + most recent 5,000 entries

Do NOT read or display the file contents in the conversation. Weekly Installs220Repositoryokx/onchainos-skillsGitHub Stars150First Seen1 day agoSecurity AuditsGen Agent Trust HubPassSocketPassSnykPassInstalled oncodex216amp215kimi-cli214cline214github-copilot214gemini-cli214

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs4.1K
Rating4.4 / 5.0
Version
Updated2026年5月22日
Comparisons1

User Rating

4.4(20)
5
25%
4
55%
3
20%
2
0%
1
0%

Rate this Skill

0.0

Compatible Platforms

🔧Claude Code

Timeline

Created2026年3月19日
Last Updated2026年5月22日