← 返回
开发者工具 中文

Ai Code Helper

Review, validate, and generate code with AI-powered linting. Use when fixing bugs, generating boilerplate, formatting, or running analysis.
使用 AI 驱动的 linting 审查、验证和生成代码。适用于修复 bug、生成模板、格式化或运行分析。
ckchzh
开发者工具 clawhub v2.0.2 2 版本 100000 Key: 无需
★ 0
Stars
📥 776
下载
💾 19
安装
2
版本
#latest

概述

AI Code Helper

A developer tools toolkit for checking, validating, generating, formatting, linting, explaining, converting, and fixing code from the command line. AI Code Helper provides persistent, file-based logging for each operation with timestamped entries, summary statistics, multi-format export, and full-text search across all records.

Commands

CommandDescription
----------------------
checkCheck code — log check results or view recent entries
validateValidate code or configurations — log validation results or view history
generateGenerate code snippets or boilerplate — log generation requests or view recent ones
formatFormat code — log formatting operations or view recent entries
lintLint code — log linting results or view recent lint entries
explainExplain code — log explanation requests or view recent explanations
convertConvert between formats or languages — log conversion operations or view history
templateTemplate management — log template operations or view recent templates
diffDiff comparison — log diff results or view recent diffs
previewPreview changes — log preview operations or view recent previews
fixFix code issues — log fix operations or view recent fixes
reportReport generation — log report entries or view recent reports
statsShow summary statistics across all log categories (entry counts, data size, first entry date)
export Export all data in json, csv, or txt format to the data directory
search Full-text search across all log files (case-insensitive)
recentShow the 20 most recent entries from the activity history log
statusHealth check — show version, data directory, total entries, disk usage, and last activity
helpShow the full help message with all available commands
versionPrint the current version string

Each data command (check, validate, generate, etc.) works in two modes:

  • Without arguments: displays the 20 most recent entries from that category
  • With arguments: saves the input as a new timestamped entry and reports the total count

Data Storage

All data is stored in plain text files under the data directory:

  • Category logs: $DATA_DIR/.log — one file per command (e.g., check.log, lint.log, generate.log), each entry is timestamp|value
  • History log: $DATA_DIR/history.log — audit trail of every command executed with timestamps
  • Export files: $DATA_DIR/export. — generated by the export command in json, csv, or txt format

Default data directory: ~/.local/share/ai-code-helper/

Requirements

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

When to Use

  1. Code review and validation — When you need to log code review findings, validation results, or quality checks for tracking purposes
  2. Generating boilerplate or snippets — When you want to log code generation requests and keep a history of what was generated and when
  3. Linting and formatting tracking — When you're running lint or format passes across a codebase and want to log results for each file or module
  4. Code conversion and migration — When converting code between languages or formats and you need to track what was converted and any issues found
  5. Bug fixing and diff analysis — When fixing bugs and you want to log the issue, the fix applied, and preview/diff results for future reference

Examples

# Check toolkit status
ai-code-helper status

# Log a code check result
ai-code-helper check "auth.py — missing input validation on login endpoint, 3 issues found"

# Log a validation result
ai-code-helper validate "docker-compose.yml — valid, all services resolve correctly"

# Log a code generation request
ai-code-helper generate "Created REST API boilerplate with FastAPI, includes auth middleware and rate limiting"

# Log a lint pass
ai-code-helper lint "src/ — 12 warnings (unused imports), 0 errors, eslint v8.50"

# Log a code explanation
ai-code-helper explain "Binary search implementation in utils.py — O(log n) time, handles edge cases for empty arrays"

# Log a fix
ai-code-helper fix "Fixed race condition in worker.py — added mutex lock around shared state access"

# View recent lint entries
ai-code-helper lint

# Search across all logs for a specific term
ai-code-helper search "validation"

# Export all data as JSON
ai-code-helper export json

# View summary statistics
ai-code-helper stats

# Show recent activity
ai-code-helper recent

Output

All commands return output to stdout. Export files are written to the data directory:

ai-code-helper export json   # → ~/.local/share/ai-code-helper/export.json
ai-code-helper export csv    # → ~/.local/share/ai-code-helper/export.csv
ai-code-helper export txt    # → ~/.local/share/ai-code-helper/export.txt

Every command execution is logged to $DATA_DIR/history.log for auditing purposes.


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

版本历史

共 2 个版本

  • v2.0.2 当前
    2026-05-01 05:13 安全 安全
  • v1.0.6
    2026-03-19 03:11 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,803
content-creation

Short Drama Writer

ckchzh
短剧剧本生成器。竖屏短剧、微短剧、剧情设计、角色塑造。Short drama script generator for vertical video dramas, plot design, character building. 短剧脚本
★ 8 📥 3,516
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,191