← 返回 Skills 市场
ckchzh

Logbook

作者 BytesAgain2 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
338
总下载
0
收藏
1
当前安装
8
版本数
在 OpenClaw 中安装
/install logbook
功能描述
Write journal entries, search history, and export your personal log digitally. Use when journaling thoughts, searching past entries, exporting notes.
使用说明 (SKILL.md)

LogBook

LogBook is a data processing and analysis toolkit for querying, importing, exporting, transforming, validating, and visualizing datasets from the terminal. It provides 10 core commands for working with structured data, plus built-in history logging and a quick dashboard view. All operations are local — no external APIs, databases, or network connections required.

Commands

Command Description
logbook query \x3Cargs> Query data from the local data store. Logs the query action to history for auditing.
logbook import \x3Cfile> Import a data file into the local store. Accepts any file path as input.
logbook export \x3Cdest> Export processed results to a specified destination (defaults to stdout).
logbook transform \x3Csrc> \x3Cdst> Transform data from one format or structure to another.
logbook validate \x3Cargs> Validate data against the built-in schema. Reports schema compliance status.
logbook stats \x3Cargs> Display basic statistics — total record count from the data log.
logbook schema \x3Cargs> Show the current data schema. Default fields: id, name, value, timestamp.
logbook sample \x3Cargs> Preview the first 5 records from the data store, or "No data" if the store is empty.
logbook clean \x3Cargs> Clean and deduplicate the data store, removing redundant entries.
logbook dashboard \x3Cargs> Quick dashboard showing total record count and summary metrics.
logbook help Show help with all available commands and usage information.
logbook version Print version string (logbook v2.0.0).

Data Storage

All data is stored locally in ~/.local/share/logbook/ (override with LOGBOOK_DIR or XDG_DATA_HOME environment variables).

Directory structure:

~/.local/share/logbook/
├── data.log         # Main data store (line-based records)
└── history.log      # Unified activity log with timestamps

Every command logs its action to history.log with a timestamp (MM-DD HH:MM) for full traceability. The main data file data.log holds all imported and processed records.

Requirements

  • Bash (with set -euo pipefail)
  • Standard Unix utilities: date, wc, head, du, echo
  • No external dependencies, databases, or API keys required
  • Optional: Set LOGBOOK_DIR environment variable to customize the data directory location

When to Use

  1. Importing and querying datasets — Pull in CSV, log, or structured data files and run quick queries against them from the terminal without needing a full database setup.
  2. Data validation workflows — Validate incoming data against the built-in schema (id, name, value, timestamp) before processing to catch format issues early.
  3. Data transformation pipelines — Transform data between formats or structures as part of an ETL-like workflow, all within a lightweight bash script.
  4. Quick dashboard and statistics — Get instant record counts and summary metrics via dashboard or stats without writing custom aggregation scripts.
  5. Data cleanup and deduplication — Use clean to remove duplicate records and normalize the data store before exporting or feeding into downstream analysis.

Examples

# Import a data file
logbook import transactions.csv

# Query the data store
logbook query "status=active"

# View the data schema
logbook schema

# Preview first 5 records
logbook sample

# Get basic statistics (record count)
logbook stats

# Transform data between formats
logbook transform raw.csv cleaned.csv

# Validate data integrity against schema
logbook validate

# Quick dashboard view
logbook dashboard

# Export results
logbook export results.json

# Clean and deduplicate the data store
logbook clean

# Show version
logbook version

Environment Variables

Variable Description Default
LOGBOOK_DIR Custom data directory path ~/.local/share/logbook
XDG_DATA_HOME XDG base data directory (fallback) ~/.local/share

Powered by BytesAgain | bytesagain.com | [email protected]

安全使用建议
This skill is low-risk from a security/credential perspective: it operates only on local files and asks for no API keys or network access. Before installing or invoking it, note that many commands are placeholders that only echo the requested action and append an entry to history.log rather than actually importing or transforming data. If you plan to store sensitive journal entries, remember they will be plain text under ~/.local/share/logbook (or under LOGBOOK_DIR if you set it). Consider: (1) reviewing the included scripts/script.sh yourself, (2) setting LOGBOOK_DIR to a directory with appropriate permissions, (3) not storing highly sensitive secrets in these logs, and (4) backing up or removing logs you do not want retained. If you expected full ETL functionality, verify whether a more complete implementation is available upstream before relying on it.
功能分析
Type: OpenClaw Skill Name: logbook Version: 2.0.1 The LogBook skill is a benign utility for logging and managing personal data. The bash script (scripts/script.sh) implements a basic command-line interface that logs actions to a local history file (~/.local/share/logbook/history.log). While the implementation is currently a skeleton—where commands like 'import', 'query', and 'transform' only print status messages and log the action rather than performing the complex data processing described in the documentation—it contains no malicious code, network activity, data exfiltration, or security vulnerabilities.
能力评估
Purpose & Capability
Name/description promise a local journaling/data toolkit and the included bash script implements a command-line interface that reads/writes under a local data directory. However, several advertised features (import/transform/validate/clean/export) are implemented only as informational echoes and history log entries rather than performing actual data transformations or imports. This is an implementation shortfall (not a credential mismatch) the user should be aware of.
Instruction Scope
SKILL.md and the script limit actions to local file operations in the data directory and standard unix utilities (date, wc, head, mkdir, echo). The instructions do not read unrelated system paths, request extra env vars beyond LOGBOOK_DIR/XDG_DATA_HOME, nor do they transmit data externally.
Install Mechanism
No install spec and only a small bash script are included. Nothing is downloaded or extracted from external URLs; the skill does not write to unexpected system locations beyond its own data directory.
Credentials
The skill requires no credentials and declares only optional LOGBOOK_DIR and XDG_DATA_HOME environment variables to customize the local storage path. Use of $HOME as a fallback is expected. There are no secret-like env vars requested.
Persistence & Privilege
always is false and the skill does not request elevated privileges. It creates and writes only to its own data directory (~/.local/share/logbook by default) and does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install logbook
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /logbook 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.5
yaml-fix+quality
v1.0.4
yaml-fix+quality
v1.0.3
Quality upgrade
v1.0.2
Quality upgrade: custom functionality
v1.0.1
Standards compliance: unique content, no template text
v1.0.0
Initial release
元数据
Slug logbook
版本 2.0.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 8
常见问题

Logbook 是什么?

Write journal entries, search history, and export your personal log digitally. Use when journaling thoughts, searching past entries, exporting notes. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 338 次。

如何安装 Logbook?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install logbook」即可一键安装,无需额外配置。

Logbook 是免费的吗?

是的,Logbook 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Logbook 支持哪些平台?

Logbook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Logbook?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.1。

💬 留言讨论