← Back to Skills Marketplace
ckchzh

Logbook

by BytesAgain2 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ Security Clean
338
Downloads
0
Stars
1
Active Installs
8
Versions
Install in OpenClaw
/install logbook
Description
Write journal entries, search history, and export your personal log digitally. Use when journaling thoughts, searching past entries, exporting notes.
README (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]

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install logbook
  3. After installation, invoke the skill by name or use /logbook
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug logbook
Version 2.0.1
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 8
Frequently Asked Questions

What is Logbook?

Write journal entries, search history, and export your personal log digitally. Use when journaling thoughts, searching past entries, exporting notes. It is an AI Agent Skill for Claude Code / OpenClaw, with 338 downloads so far.

How do I install Logbook?

Run "/install logbook" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Logbook free?

Yes, Logbook is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Logbook support?

Logbook is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Logbook?

It is built and maintained by BytesAgain2 (@ckchzh); the current version is v2.0.1.

💬 Comments