Show HN:AI Lint – 教導程式碼代理團隊的標準,而不僅僅是語法

Hacker News·

AI Lint 是一款新產品,讓開發者能夠教導 AI 程式碼代理團隊特定的程式碼標準和最佳實踐,超越基本的語法,以提高程式碼的可維護性。它使用「準則文件」來指導代理,並提供 JavaScript/Node.js 的免費預覽。

Image

It passes tests. It runs. But it fights the grain of the language. It invents state when the platform provides it. It hides causality behind clever one-liners. It creates three different solutions to the same problem in the same file. The architecture is technically valid but cognitively expensive.

Prompting for "clean code" didn't help. The agents needed what I'd give a talented junior: a handbook on taste.

So I wrote doctrine files—markdown constraints that teach agents the difference between code that compiles and code that's maintainable. Things like:

  • "More than 20 mutable state variables in a file? You have multiple modules pretending to be one."

  • "Three approaches to the same problem coexisting? Pick one, delete the others."

  • "If you can't explain the condition in one sentence, extract it to a named boolean."

AI Lint is the productization of this. It's not a CLI or SaaS—just optimized text files you drop into .cursorrules, AGENTS.md, or your system prompt. The agents read them and actually follow them.

There's doctrine (what belongs) and rejects (what to refuse). When rules conflict, there's an override protocol. It's designed for context injection, not human reading.

Business model: Paid packs for different stacks (Apps, Systems, etc). But I've released a free preview on GitHub with the core philosophy and JavaScript/Node.js doctrine so you can test the impact.

Curious what anti-patterns AI keeps injecting into your codebases. I'm expanding the Go and Rust rejects right now, and planning iOS/Swift and infra (Docker, k8s) packs next.

Image

Hacker News

相關文章

  1. Show HN:我為我的 AI 代理編寫了「AI Lint」原則文件,以灌輸資深工程師的判斷力

    3 個月前

  2. Show HN:AI Lint 輔助代理程式工作,加速建構並提升品質

    3 個月前

  3. Show HN:Agentlearn – AI 代理基礎互動課程

    4 個月前

  4. Show HN: Libretto – 讓 AI 瀏覽器自動化具備確定性

    8 天前

  5. Show HN:Pilot – AI 編碼的共享記憶體與基於證據的提交

    3 個月前