Interaction Logger

Log user and assistant interactions to persistent history files with atomic writes.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/WangK0221/OpenClaw_Shrimp --skill interaction-logger-wangk0221
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Interaction Logger
Source: https://github.com/WangK0221/OpenClaw_Shrimp/tree/main/skills/interaction-logger
Command: npx skills add https://github.com/WangK0221/OpenClaw_Shrimp --skill interaction-logger-wangk0221

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of logging user and assistant interactions into structured history files, preventing manual errors and ensuring compliance with logging rules.

Core Features & Use Cases

  • Atomic Writes: Ensures log files are not corrupted even if the system crashes during writing.
  • Log Rotation: Automatically archives old log files when they exceed 5MB, preventing excessively large files.
  • Dynamic Targets: Supports logging for predefined users and automatically creates log files for new users.
  • Use Case: Automatically log every conversation turn between a user and the assistant, creating a detailed, searchable history for each user.

Quick Start

Log a message from the assistant to the user 'zhy' with the content 'Hello world'.

Frequently Asked Questions about Interaction Logger

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log user and assistant interactions to persistent history files?

You can log user and assistant interactions to persistent history files by using atomic writes and abstracting file I/O to ensure data integrity. This approach automatically structures conversational logs into searchable records.

What is log rotation and when do I need it for conversation logs?

Log rotation is the automatic archiving of old log files when they exceed a specific size threshold, such as 5MB. You need it for conversation logs to prevent excessively large files from degrading system performance.

How do I automatically create conversation logs for new users?

You can automatically create conversation logs for new users by implementing dynamic target mapping. This mechanism detects unrecognized users and provisions a new persistent history file on the fly without manual configuration.

Does writing conversation logs with atomic writes prevent data corruption?

Yes, writing conversation logs with atomic writes prevents data corruption. It ensures log files remain intact and uncorrupted even if the system experiences a sudden crash or power failure during the writing process.

What is the best way to maintain compliance when logging chat history?

The best way to maintain compliance when logging chat history is to automate the process using structured parsing and predefined rules. This prevents manual errors and abstracts file I/O for consistent conversational logs.