ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

format

Auto-format source code with language detection, presets, and diff preview. Use when formatting code, enforcing styles, or batch-formatting projects.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bytesagain/format
Or

Format

Developer toolkit for checking, validating, formatting, linting, converting, and managing code and text entries. All operations are logged with timestamps and stored locally for full traceability.

Commands

CommandUsageDescription
checkformat check <input>Record a check entry or view recent checks
validateformat validate <input>Record a validation entry or view recent validations
generateformat generate <input>Record a generate entry or view recent generations
formatformat format <input>Record a format entry or view recent formatting operations
lintformat lint <input>Record a lint entry or view recent lint results
explainformat explain <input>Record an explain entry or view recent explanations
convertformat convert <input>Record a convert entry or view recent conversions
templateformat template <input>Record a template entry or view recent templates
diffformat diff <input>Record a diff entry or view recent diffs
previewformat preview <input>Record a preview entry or view recent previews
fixformat fix <input>Record a fix entry or view recent fixes
reportformat report <input>Record a report entry or view recent reports
statsformat statsShow summary statistics across all entry types
export <fmt>format export json|csv|txtExport all entries to JSON, CSV, or plain text
search <term>format search <term>Search across all log files for a keyword
recentformat recentShow the 20 most recent history entries
statusformat statusHealth check — version, entry count, disk usage, last activity
helpformat helpShow help with all available commands
versionformat versionPrint version string

Each command (check, validate, generate, format, lint, explain, convert, template, diff, preview, fix, report) works the same way:

  • With arguments: Saves the input with a timestamp to <command>.log and logs to history.log.
  • Without arguments: Displays the 20 most recent entries from <command>.log.

Data Storage

All data is stored locally at ~/.local/share/format/:

  • <command>.log — Timestamped entries for each command (e.g., check.log, lint.log)
  • history.log — Unified activity log across all commands
  • export.json, export.csv, export.txt — Generated export files

No cloud, no network calls, no API keys required. Fully offline.

Requirements

  • Bash 4+ (uses set -euo pipefail)
  • Standard Unix utilities (date, wc, du, grep, head, tail)
  • No external dependencies

When to Use

Metadata

Stars3500
Views2
Updated2026-03-27
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bytesagain-format": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags

#format#tool#utility
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.