← 返回 Skills 市场
CHAT—Logger
作者
JimyXu8812
· GitHub ↗
· v1.0.1
289
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install autochatlogger
功能描述
Automatically logs every conversation message to workspace/chat/YYYY-MM-DD.md. Creates new files if needed, always appends never overwrites.
使用说明 (SKILL.md)
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
安全使用建议
This skill appears to do exactly what it says: append conversation turns to daily Markdown files under workspace/chat. Before using it, decide and configure where 'workspace' should be (avoid ambiguous process.cwd()), restrict filesystem permissions for the chat directory, and consider privacy: logs may contain sensitive information or secrets from conversations. Implement retention/rotation, encryption, or opt-out for sensitive messages if needed. Because this is an instruction-only skill, it won't run unless the agent or runtime implements the logging steps — review any agent code that performs the actual writes to ensure it follows the append-only behavior and writes only to the intended path.
功能分析
Type: OpenClaw Skill
Name: autochatlogger
Version: 1.0.1
The autochatlogger skill is a straightforward utility designed to record conversation history into daily Markdown files within the local workspace. The logic provided in SKILL.md uses standard Node.js modules (fs, path) to append timestamps and messages to files named by date (e.g., YYYY-MM-DD.md) in a dedicated 'chat' directory. There are no indicators of data exfiltration, unauthorized network access, or malicious intent.
能力评估
Purpose & Capability
Name and description (daily append-only logging) align with the SKILL.md. No extra binaries, credentials, or config paths are requested that would be unrelated to simple filesystem logging.
Instruction Scope
Instructions are narrowly scoped to creating a chat/ directory and appending timestamped entries to daily Markdown files using Node.js fs APIs. One practical note: the sample code uses process.cwd() as the workspace, so the agent will write to its current working directory unless an explicit workspace path is provided — this is expected but worth being deliberate about to avoid writing logs to an unexpected location.
Install Mechanism
No install spec or external downloads; instruction-only skill that relies on built-in Node.js modules. Lowest-risk installation footprint.
Credentials
No environment variables, credentials, or config paths are required. The requested filesystem write access (workspace) is proportionate to the stated logging purpose.
Persistence & Privilege
always is false and the skill does not request elevated or persistent platform privileges. It only describes writing files under the workspace, which is consistent with its purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install autochatlogger - 安装完成后,直接呼叫该 Skill 的名称或使用
/autochatlogger触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Renamed skill from "chat_logger" to "activity_logger"
- Removed automatic logging via hooks; now logging must be triggered manually by agent code
- Deleted files: hook script (index.js), hook documentation (HOOK.md), and metadata (_meta.json)
- Clarified that no hook is used and provided step-by-step manual logging instructions in SKILL.md
- Added README.md for package documentation
v1.0.0
skill called "chat_logger".
Requirements:
Create the skill inside:
skills/chat_logger/
The skill should automatically log every conversation message.
Log format:
workspace/chat/YYYY-MM-DD.md
Each entry format:
[time]
User:
Assistant:
If the file does not exist, create it.
Always append, never overwrite.
After creating the skill:
register it in the OpenClaw skills system
enable it automatically
Confirm when the skill is installed and active.
元数据
常见问题
CHAT—Logger 是什么?
Automatically logs every conversation message to workspace/chat/YYYY-MM-DD.md. Creates new files if needed, always appends never overwrites. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 289 次。
如何安装 CHAT—Logger?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install autochatlogger」即可一键安装,无需额外配置。
CHAT—Logger 是免费的吗?
是的,CHAT—Logger 完全免费(开源免费),可自由下载、安装和使用。
CHAT—Logger 支持哪些平台?
CHAT—Logger 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 CHAT—Logger?
由 JimyXu8812(@jimyxu8812)开发并维护,当前版本 v1.0.1。
推荐 Skills