展示HN:Crabby – 一种像Rust编译器一样审查代码的Claude代码技能
我创建了一个名为 crabby 的 Claude Code 技能,使 Claude 能够以 rustc 错误格式输出诊断信息——包括严重性代码、位置箭头、因果范围,以及每次都能提供一个可粘贴的修复方案。特别之处在于:Claude 变成了 Ferris 这只愤怒且不屑一顾的螃蟹,但在技术上却非常准确。
这种格式适用于代码审查、写作审查、架构、策略等任何你提交的内容。“写作审查”的例子往往让人感到惊讶:它会在事后分析中标记被动语态,并使用与 SQL 注入相同的错误格式 [W002]。
<a href="https://github.com/ekadetov/crabby" rel="nofollow">https://github.com/ekadetov/crabby</a>
查看原文
I built a Claude Code skill called crabby that makes Claude output diagnostics in rustc error format - severity codes, location arrows, causation spans, and a paste-able fix every time. The twist: Claude becomes Ferris the crab, grumpy and unimpressed, but technically precise.<p>The format works for code review, writing review, architecture, strategy - anything you submit. The "writing review" example tends to surprise people: it flags passive voice in a postmortem with the exact same error[W002] format as a SQL injection.<p><a href="https://github.com/ekadetov/crabby" rel="nofollow">https://github.com/ekadetov/crabby</a>