← 返回 Skills 市场
xueyetianya

Lint

作者 bytesagain4 · GitHub ↗ · v2.0.1 · MIT-0
cross-platform ✓ 安全检测通过
481
总下载
0
收藏
2
当前安装
8
版本数
在 OpenClaw 中安装
/install lint
功能描述
Check code syntax, enforce style, and suggest auto-fixes with CI integration. Use when linting PRs, enforcing code style, detecting errors before merge.
使用说明 (SKILL.md)

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 \x3Cinput> Record a syntax/code check entry
lint validate \x3Cinput> Record a validation result
lint generate \x3Cinput> Record a code generation action
lint format \x3Cinput> Record a formatting operation
lint lint \x3Cinput> Record a linting pass
lint explain \x3Cinput> Record an explanation or annotation
lint convert \x3Cinput> Record a conversion operation
lint template \x3Cinput> Record a template action
lint diff \x3Cinput> Record a diff comparison
lint preview \x3Cinput> Record a preview action
lint fix \x3Cinput> Record an auto-fix action
lint report \x3Cinput> 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 \x3Cfmt> Export all data to JSON, CSV, or TXT format. Output file saved to ~/.local/share/lint/export.\x3Cfmt>
lint search \x3Cterm> 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

  • Bash (with set -euo pipefail)
  • Standard Unix utilities: date, wc, du, head, tail, grep, basename, cut
  • No external dependencies or API keys required

When 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 \x3Cterm> 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 format

# Search for all entries mentioning "import"
lint search import

# Export everything to JSON
lint export json

# View overall statistics
lint stats

# Health check
lint status

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

安全使用建议
This skill appears coherent and local-only: it logs linting actions to ~/.local/share/lint/, doesn't request credentials, and has no network calls. Before installing/using: (1) review scripts/script.sh to confirm behavior (it will be executed locally if you run it); (2) only make the script executable if you trust the source; (3) be aware it will create persistent logs in your home directory (remove them if desired); (4) if you want extra safety, run it in a non-privileged account or sandboxed environment. No immediate red flags were found.
功能分析
Type: OpenClaw Skill Name: lint Version: 2.0.1 The 'lint' skill is a simple Bash-based logging utility designed to record developer activities (such as linting, formatting, or validation) into local text files within ~/.local/share/lint/. Despite its name, the tool does not perform actual code analysis; it merely stores timestamped strings provided as arguments. The implementation in scripts/script.sh uses standard Unix utilities like grep, wc, and du, and contains no network activity, obfuscation, or unauthorized data access.
能力评估
Purpose & Capability
The name/description (linting, tracking, CI integration) align with the provided CLI behavior: recording lint/check/format actions and exporting reports. Required tools listed (bash and common Unix utils) match what the script uses; no unrelated credentials or services are requested.
Instruction Scope
SKILL.md and the bundled script confine actions to local logging and exports in ~/.local/share/lint/. There are no instructions to read arbitrary system config, exfiltrate data, or call external endpoints. Commands operate on the data directory and user-provided text.
Install Mechanism
There is no install spec (lowest install risk), but the package includes an executable script (scripts/script.sh). That script is straightforward and local-only, but users/agents will need to decide how it's invoked or installed into PATH. Inspect the script before making it executable.
Credentials
The skill requires no environment variables or credentials beyond standard HOME usage. The script writes and reads only from ~/.local/share/lint/ and does not access unrelated secrets or external services.
Persistence & Privilege
The skill persists user data under ~/.local/share/lint/, which is expected for a logging tool. always is false and it does not modify other skills or system-wide agent settings. Consider that logs will remain on disk until removed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lint
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lint 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.1
update
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.5
old template -> domain-specific v2.0.0
v1.0.4
old template -> domain-specific v2.0.0
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 lint
版本 2.0.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 8
常见问题

Lint 是什么?

Check code syntax, enforce style, and suggest auto-fixes with CI integration. Use when linting PRs, enforcing code style, detecting errors before merge. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 481 次。

如何安装 Lint?

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

Lint 是免费的吗?

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

Lint 支持哪些平台?

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

谁开发了 Lint?

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

💬 留言讨论