Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Bat

ASecurity

Log and search local text entries from the command line. Use when adding quick notes, searching past entries, or exporting a simple activity log.

12 stars
0 votes
0 copies
1 views
Added 9/7/2026
toolsshellbashgitapi

Works with

terminalcliapi

Security Analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned 9/7/2026

$npx -y skills add bytesagain/ai-skills --skill bat --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bat?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Bat
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/bytesagain-bat/badge)](https://www.skillsdirectory.com/skills/bytesagain-bat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
version: "2.0.2"
name: Bat
description: "Log and search local text entries from the command line. Use when adding quick notes, searching past entries, or exporting a simple activity log."
author: BytesAgain
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
tags: ["notes", "log", "search", "cli", "productivity"]
---

# Bat

A lightweight, multi-purpose command-line utility for logging, searching, and managing text entries. All data remains on disk in plain-text log files — no cloud, no dependencies.

## Commands

| Command | Description |
|---------|-------------|
| `run <arg>` | Execute the main function — prints the argument and logs the action. |
| `config` | Show the config file path (`$DATA_DIR/config.json`) and log the action. |
| `status` | Print current status ("ready") and log the check. |
| `init` | Initialize the data directory — confirms creation at `$DATA_DIR`. |
| `list` | Print all entries from the main data log (`data.log`). Shows "(empty)" if no entries exist. |
| `add <text>` | Append a timestamped entry to the log. Format: `YYYY-MM-DD <text>`. |
| `remove <text>` | Mark an entry as removed and log the removal action. |
| `search <term>` | Case-insensitive search through all logged entries. Shows "Not found" if no matches. |
| `export` | Output the full data log to stdout. Pipe to a file for backups: `bat export > backup.txt`. |
| `info` | Show version number and data directory path. |
| `help` | Show full usage information with all available commands. |
| `version` | Print version number (`v2.0.2`). |

## Data Storage

All data is stored in `~/.local/share/bat/` by default:

- `data.log` — Main log file (one entry per line, date-prefixed via `add`)
- `history.log` — Command history with timestamps (auto-maintained by every command)
- `config.json` — Configuration file path (shown by `bat config`)

Set the `BAT_DIR` environment variable to change the storage location. Alternatively, `XDG_DATA_HOME` is respected if `BAT_DIR` is not set.

## Requirements

- Bash 4+ (uses `local` variables, `set -euo pipefail`)
- Standard Unix utilities (`grep`, `date`, `wc`, `cat`)
- No external dependencies or API keys required

## When to Use

1. **Quick note-taking from the terminal** — Use `bat add` to jot down thoughts, meeting notes, or TODO items without leaving the shell.
2. **Maintaining a running activity log** — Every `add` creates a dated entry, building a chronological record of activities over time.
3. **Searching past entries by keyword** — Use `bat search <term>` to find specific entries with case-insensitive matching.
4. **Exporting and backing up notes** — Use `bat export > backup.txt` to dump all entries for backup, sharing, or migration.
5. **General-purpose CLI data management** — Use `run`, `init`, `config`, and `status` as building blocks for scripted workflows and automation pipelines.

## Examples

```bash
# Add a note about a meeting
bat add "Met with client about Q2 targets"

# Add another entry
bat add "Sent follow-up email to vendor"

# List all logged entries
bat list

# Search for entries mentioning "client"
bat search "client"

# Export log to a backup file
bat export > ~/bat-backup.txt

# Check version and data directory
bat info

# Initialize (or verify) the data directory
bat init

# Check operational status
bat status

# Show config file path
bat config
```

## Output

All commands print results to stdout and log actions to `history.log`. The `add` command confirms each save with the added text. The `list` and `export` commands output raw log content suitable for piping and redirection.

---

*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*

Attribution

bytesagainbytesagain
View sourceSee grades on GitHubMore from bytesagain →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

ucoz-landing-skill

Create and edit uCoz homepage landing pages via MCP: custom templates, hero sections, lead forms, navigation menus, SEO, and responsive layout. Includes a visual design system (style selection, layout/grid, section recipes, typography/spacing, color tokens, component states, icons, modern CSS/JS, motion, imagery, social proof, copy/voice, accessibility). Uses ucoz-mcp tools for templates, site file uploads, and site modules.

107 votes

Paperclip

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

953191 votes

Pptx

Presentation toolkit (.pptx). Create/edit slides, layouts, content, speaker notes, comments, for programmatic presentation creation and modification.

471861 votes

Daw Music

Digital Audio Workstation usage, music composition, interactive music systems, and game audio implementation for immersive soundscapes.

761 votes

Instantly Rdsthomas Mission Control

Instantly.ai cold email outreach API - manage campaigns, leads, accounts, and analytics. Use for cold email automation, lead management, campaign creation/monitoring, and email account warmup.

761 votes
View all in tools →