← 返回 Skills 市场
ckchzh

Ai Code Helper

作者 BytesAgain2 · GitHub ↗ · v2.0.2 · MIT-0
cross-platform ⚠ suspicious
387
总下载
0
收藏
2
当前安装
10
版本数
在 OpenClaw 中安装
/install ai-code-helper
功能描述
Review, validate, and generate code with AI-powered linting. Use when fixing bugs, generating boilerplate, formatting, or running analysis.
使用说明 (SKILL.md)

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

Command Description
check Check code — log check results or view recent entries
validate Validate code or configurations — log validation results or view history
generate Generate code snippets or boilerplate — log generation requests or view recent ones
format Format code — log formatting operations or view recent entries
lint Lint code — log linting results or view recent lint entries
explain Explain code — log explanation requests or view recent explanations
convert Convert between formats or languages — log conversion operations or view history
template Template management — log template operations or view recent templates
diff Diff comparison — log diff results or view recent diffs
preview Preview changes — log preview operations or view recent previews
fix Fix code issues — log fix operations or view recent fixes
report Report generation — log report entries or view recent reports
stats Show summary statistics across all log categories (entry counts, data size, first entry date)
export \x3Cfmt> Export all data in json, csv, or txt format to the data directory
search \x3Cterm> Full-text search across all log files (case-insensitive)
recent Show the 20 most recent entries from the activity history log
status Health check — show version, data directory, total entries, disk usage, and last activity
help Show the full help message with all available commands
version Print 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/\x3Ccommand>.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.\x3Cfmt> — 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 | [email protected]

安全使用建议
This skill appears to do what it says: a local CLI logger for code review/generation/linting activity. Before installing/using it, review the bundled script (already included) and be mindful that any text you pass (including full code snippets, configuration, or secrets such as API keys) will be written in cleartext to ~/.local/share/ai-code-helper/*.log and history.log. If you plan to log sensitive content, consider: (1) not logging secrets or truncating/redacting them before saving, (2) setting restrictive file permissions on the data directory, (3) adding the data directory to backups/retention policies or .gitignore as appropriate, and (4) periodically deleting or encrypting logs. The minor version/name mismatches are cosmetic but you can verify the latest script in the upstream repo if desired.
功能分析
Type: OpenClaw Skill Name: ai-code-helper Version: 2.0.2 The skill is a logging utility for tracking AI agent activities, but it contains vulnerabilities in the `search` and `export` commands within `scripts/script.sh`. The `_search` function is vulnerable to option injection (e.g., passing `-f /etc/passwd` as a search term), which could allow unauthorized file reading, and the `_export` function lacks proper escaping when generating JSON, leading to potential data corruption or injection if log entries contain special characters.
能力评估
Purpose & Capability
Name/description (Ai Code Helper / code review, generate, lint, format, etc.) align with the provided script and SKILL.md: the tool is a local CLI that logs operations and provides simple export/search/stats functionality. Minor cosmetic inconsistencies (SKILL.md header uses 'Claude Code' and script reports v2.0.0 while registry shows v2.0.2) are present but do not alter capability.
Instruction Scope
SKILL.md instructions and the script implement only local operations (writing/reading plain-text logs under ~/.local/share/ai-code-helper, searching with grep, exporting files). This matches the declared scope. Important note: the tool persistently records any user-provided input (including code snippets, config, or secrets) to plain-text logs and history, which is a privacy/data-leakage risk if users store sensitive material.
Install Mechanism
No install spec is provided (instruction-only with a bundled script); nothing is downloaded or written outside the user's data directory. No external package installs or remote fetches are present in the included script.
Credentials
The skill declares no required environment variables, credentials, or config paths and the script only uses HOME to construct a per-user data directory. No unrelated credentials or network endpoints are requested.
Persistence & Privilege
The skill runs as a normal CLI and stores persistent data in the user's home (~/.local/share/ai-code-helper). always:false and default autonomous invocation are set. The persistent logging behavior is expected for a historical/logging tool, but users should be aware it will retain any input indefinitely unless they delete or rotate files.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ai-code-helper
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ai-code-helper 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.0.2
update
v2.0.1
SKILL.md rewritten to align with script.sh. All commands documented. Added Data Storage, Requirements, When to Use, Examples.
v2.0.0
v2.5 standard: Use-when desc, homepage, source, security fix
v1.0.6
old template -> domain-specific v2.0.0
v1.0.5
old template -> domain-specific v2.0.0
v1.0.4
Quality upgrade
v1.0.3
De-template, unique content, script cleanup
v1.0.2
Quality fix: cleaner docs, removed flags
v1.0.1
Quality improvement: better docs, examples, cleaner text
v1.0.0
Initial release
元数据
Slug ai-code-helper
版本 2.0.2
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 10
常见问题

Ai Code Helper 是什么?

Review, validate, and generate code with AI-powered linting. Use when fixing bugs, generating boilerplate, formatting, or running analysis. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 387 次。

如何安装 Ai Code Helper?

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

Ai Code Helper 是免费的吗?

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

Ai Code Helper 支持哪些平台?

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

谁开发了 Ai Code Helper?

由 BytesAgain2(@ckchzh)开发并维护,当前版本 v2.0.2。

💬 留言讨论