CHAT—Logger
/install autochatlogger
activity_logger 📝
A minimal skill for logging conversation messages to daily Markdown files.
Purpose
Automatically log every user message and assistant reply to a daily Markdown file.
What It Does
- Creates one log file per day:
workspace/chat/YYYY-MM-DD.md - Appends each conversation entry to the daily file
- Never overwrites existing data
- Creates directories and files automatically if they don't exist
Log Format
[HH:MM:SS]
User: \x3Cmessage>
Assistant: \x3Creply>
How It Works
The agent should manually log each conversation turn using this logic:
1. Create Daily Log File
const fs = require('fs');
const path = require('path');
const os = require('os');
// Get workspace path
const workspace = process.cwd(); // or your workspace path
const chatDir = path.join(workspace, 'chat');
// Create directory if it doesn't exist
if (!fs.existsSync(chatDir)) {
fs.mkdirSync(chatDir, { recursive: true });
}
// Get current date for filename
const now = new Date();
const dateStr = now.toISOString().split('T')[0]; // YYYY-MM-DD
const timeStr = now.toTimeString().split(' ')[0]; // HH:MM:SS
const logFile = path.join(chatDir, `${dateStr}.md`);
2. Append Log Entry
// Format log entry
const userMsg = /* get user message */;
const assistantMsg = /* get assistant reply */;
let logEntry = `\
[${timeStr}]\
`;
if (userMsg) {
logEntry += `User: ${userMsg}\
`;
}
if (assistantMsg) {
logEntry += `Assistant: ${assistantMsg}\
`;
}
// Append to file
fs.appendFileSync(logFile, logEntry);
3. Example Entry
[14:30:00]
User: Hello, how are you?
Assistant: I'm doing well, thank you for asking!
[14:32:15]
User: What's the weather like today?
Assistant: Let me check the weather for you.
Log Location
workspace/chat/YYYY-MM-DD.md
Example:
C:\Users\user\OpenClawWorkspace\chat\2026-03-07.md
Usage Notes
- This is a manual logging skill - the agent writes to the log file after each response
- The skill doesn't use hooks - it's triggered by agent code
- Each entry is appended with a timestamp
- The file is created automatically on first entry of the day
- Multiple conversations on the same day go to the same file
Integration
To use this skill:
- Copy the
chat/directory structure to your workspace - After each agent response, append the user message and assistant reply to the daily log file
- Use the format shown above
Files
SKILL.md- This fileREADME.md- ClawHub package readme
License
MIT
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install autochatlogger - After installation, invoke the skill by name or use
/autochatlogger - Provide required inputs per the skill's parameter spec and get structured output
What is CHAT—Logger?
Automatically logs every conversation message to workspace/chat/YYYY-MM-DD.md. Creates new files if needed, always appends never overwrites. It is an AI Agent Skill for Claude Code / OpenClaw, with 289 downloads so far.
How do I install CHAT—Logger?
Run "/install autochatlogger" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is CHAT—Logger free?
Yes, CHAT—Logger is completely free (open-source). You can download, install and use it at no cost.
Which platforms does CHAT—Logger support?
CHAT—Logger is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created CHAT—Logger?
It is built and maintained by JimyXu8812 (@jimyxu8812); the current version is v1.0.1.