Agent skill

log-agent

Record agent run logs into .tmp/logs/. Use this to maintain an audit trail of agent actions and errors.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/log-agent

SKILL.md

Log Agent

Overview

This skill provides a standardized way to log agent activities to the filesystem. It creates JSON-formatted log entries in .tmp/logs/ (or a specified directory).

Usage

Log Script

Syntax:

bash
python3 .agent/skills/log-agent/scripts/log_run.py <agent_name> <message> [--log_dir <dir>]

Example:

bash
python3 .agent/skills/log-agent/scripts/log_run.py ParserAgent "Started parsing resume.pdf"

Log Format:

json
{"timestamp": "2023-10-27T10:00:00", "agent": "ParserAgent", "message": "Started parsing resume.pdf"}

Didn't find tool you were looking for?

Be as detailed as possible for better results