Lint
by @xueyetianya
Check code syntax, enforce style, and suggest auto-fixes with CI integration. Use when linting PRs, enforcing code style, detecting errors before merge.
clawhub install lintπ About This Skill
name: lint version: "2.0.0" author: BytesAgain homepage: https://bytesagain.com source: https://github.com/bytesagain/ai-skills license: MIT-0 tags: [lint, tool, utility] description: "Check code syntax, enforce style, and suggest auto-fixes with CI integration. Use when linting PRs, enforcing code style, detecting errors before merge."
Lint
Lint is a developer-focused toolkit for recording and tracking code quality operations from the terminal. It provides 13 core action commands for managing checks, validations, formatting, linting, code generation, conversions, templates, diffs, previews, fixes, reports, and explanations β all with timestamped local logging for full traceability. Additional utility commands let you view statistics, export data, search history, and monitor health status.
Commands
Core Action Commands
Each action command works in two modes: run without arguments to view the 20 most recent entries, or pass input text to record a new timestamped entry.
| Command | Description |
|---------|-------------|
| lint check | Record a syntax/code check entry |
| lint validate | Record a validation result |
| lint generate | Record a code generation action |
| lint format | Record a formatting operation |
| lint lint | Record a linting pass |
| lint explain | Record an explanation or annotation |
| lint convert | Record a conversion operation |
| lint template | Record a template action |
| lint diff | Record a diff comparison |
| lint preview | Record a preview action |
| lint fix | Record an auto-fix action |
| lint report | Record a report generation |
Utility Commands
| Command | Description |
|---------|-------------|
| lint stats | Show summary statistics β entry counts per category, total entries, data size, and earliest activity timestamp |
| lint export | Export all data to JSON, CSV, or TXT format. Output file saved to ~/.local/share/lint/export. |
| lint search | Full-text search across all log files (case-insensitive) |
| lint recent | Show the 20 most recent entries from the history log |
| lint status | Health check β version, data directory, total entries, disk usage, last activity |
| lint help | Show help with all available commands |
| lint version | Print version string (lint v2.0.0) |
Data Storage
All data is stored locally in ~/.local/share/lint/. Each action command writes to its own log file (e.g., check.log, validate.log, fix.log). A unified history.log records every action with timestamps. No external services, databases, or network connections are used.
Directory structure:
~/.local/share/lint/
βββ check.log # Check entries
βββ validate.log # Validation entries
βββ generate.log # Generation entries
βββ format.log # Formatting entries
βββ lint.log # Lint pass entries
βββ explain.log # Explanation entries
βββ convert.log # Conversion entries
βββ template.log # Template entries
βββ diff.log # Diff entries
βββ preview.log # Preview entries
βββ fix.log # Fix entries
βββ report.log # Report entries
βββ history.log # Unified activity log
βββ export.* # Export output files
Requirements
set -euo pipefail)date, wc, du, head, tail, grep, basename, cutWhen to Use
1. Tracking linting sessions β Record which files you linted, what issues you found, and what fixes you applied, all with timestamps for audit trails.
2. Code review workflows β Log check and validate results during PR reviews so you can refer back to what was inspected and when.
3. Template and diff management β Keep a running record of template operations and diff comparisons across project iterations.
4. Exporting quality reports β Use lint export json to generate machine-readable reports of all recorded lint activity for CI dashboards or team reviews.
5. Searching past actions β Quickly find previous lint results, fixes, or explanations with lint search across all categories.
Examples
# Record a check on a Python file
lint check "src/main.py β 3 unused imports found"Record a fix applied
lint fix "Removed unused imports in src/main.py"View recent formatting actions
lint formatSearch for all entries mentioning "import"
lint search importExport everything to JSON
lint export jsonView overall statistics
lint statsHealth check
lint status
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
β‘ When to Use
π‘ Examples
# Record a check on a Python file
lint check "src/main.py β 3 unused imports found"Record a fix applied
lint fix "Removed unused imports in src/main.py"View recent formatting actions
lint formatSearch for all entries mentioning "import"
lint search importExport everything to JSON
lint export jsonView overall statistics
lint statsHealth check
lint status
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com