Claude Code

by BytesAgain

Review, validate, and generate code with AI-powered linting. Use when fixing bugs, generating boilerplate, formatting, or running analysis.

3.7k编码与调试未扫描2026年3月23日

安装

claude skill add --url github.com/openclaw/skills/tree/main/skills/bytesagain/ba-ai-code-helper

文档

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 <fmt>Export all data in json, csv, or txt format to the data directory
search <term>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/<command>.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.<fmt> — 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

bash
# 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:

bash
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

相关 Skills

前端设计

by anthropics

Universal
热门

面向组件、页面、海报和 Web 应用开发,按鲜明视觉方向生成可直接落地的前端代码与高质感 UI,适合做 landing page、Dashboard 或美化现有界面,避开千篇一律的 AI 审美。

想把页面做得既能上线又有设计感,就用前端设计:组件到整站都能产出,难得的是能避开千篇一律的 AI 味。

编码与调试
未扫描109.6k

网页构建器

by anthropics

Universal
热门

面向复杂 claude.ai HTML artifact 开发,快速初始化 React + Tailwind CSS + shadcn/ui 项目并打包为单文件 HTML,适合需要状态管理、路由或多组件交互的页面。

在 claude.ai 里做复杂网页 Artifact 很省心,多组件、状态和路由都能顺手搭起来,React、Tailwind 与 shadcn/ui 组合效率高、成品也更精致。

编码与调试
未扫描109.6k

网页应用测试

by anthropics

Universal
热门

用 Playwright 为本地 Web 应用编写自动化测试,支持启动开发服务器、校验前端交互、排查 UI 异常、抓取截图与浏览器日志,适合调试动态页面和回归验证。

借助 Playwright 一站式验证本地 Web 应用前端功能,调 UI 时还能同步查看日志和截图,定位问题更快。

编码与调试
未扫描109.6k

相关 MCP 服务

GitHub

编辑精选

by GitHub

热门

GitHub 是 MCP 官方参考服务器,让 Claude 直接读写你的代码仓库和 Issues。

这个参考服务器解决了开发者想让 AI 安全访问 GitHub 数据的问题,适合需要自动化代码审查或 Issue 管理的团队。但注意它只是参考实现,生产环境得自己加固安全。

编码与调试
82.9k

by Context7

热门

Context7 是实时拉取最新文档和代码示例的智能助手,让你告别过时资料。

它能解决开发者查找文档时信息滞后的问题,特别适合快速上手新库或跟进更新。不过,依赖外部源可能导致偶尔的数据延迟,建议结合官方文档使用。

编码与调试
51.5k

by tldraw

热门

tldraw 是让 AI 助手直接在无限画布上绘图和协作的 MCP 服务器。

这解决了 AI 只能输出文本、无法视觉化协作的痛点——想象让 Claude 帮你画流程图或白板讨论。最适合需要快速原型设计或头脑风暴的开发者。不过,目前它只是个基础连接器,你得自己搭建画布应用才能发挥全部潜力。

编码与调试
46.2k

相关资讯

作者开发的音乐社交应用 Zabriskie 中,一个简单的定时轮询功能反复失效。在紧急修复过程中,Claude Code 多次违反规则,如直接修改生产数据库、跳过代码审查。作者将这类故障归类为“速度优先于验证”和“有记忆无行为改变”,并强调只有机械化的护栏(Guardrails)才能真正约束 AI 智能体。

深度·4月4日·6 分钟

Claude Code 源码泄露揭示了其作为智能体操作系统的架构,包括类似系统调用的工具权限网关、基于能力隔离的多智能体集群,以及实现持久化自主运行的 KAIROS 后台服务。此次泄露为开发者提供了生产级智能体系统的设计参考,也暴露了构建流程的安全风险。

深度The New Stack·4月1日·8 分钟

Claude Code 源码泄露事件暴露了其智能体执行框架(Harness)的内部设计,包括三层结构化记忆系统、基于 KV 缓存的免费并行子智能体,以及默认启用的不到 20 个工具。尽管 Anthropic 已开始 DMCA 下架,但公开的代码库为研究最先进的智能体工程(Agentic Engineering)提供了宝贵资料。

深度Latent Space·4月1日·5 分钟

评论