技巧

shadcn/lint 发布,为 Tailwind 设计系统提供代码规范检查工具

Agents are only as good as the proof-checkers, compilers, type systems, and linters you give them. ...

精选理由

shadcn 新出的这个工具很实用,专门给 AI 代理用的,能帮它遵守 Tailwind 的规则,避免出错。

shadcn/lint 是一个针对 Tailwind CSS 设计系统的代码规范检查工具,它帮助 AI 代理遵循设计系统的规则。当 AI 代理违反规则时,错误信息会解释问题并指导如何使用组件、变体和主题进行修复。

原文 · Guillermo Rauch

Agents are only as good as the proof-checkers, compilers, type systems, and linters you give them. ...

Agents are only as good as the proof-checkers, compilers, type systems, and linters you give them. 𝚜𝚑𝚊𝚍𝚌𝚗/𝚕𝚒𝚗𝚝 helps agents stay on track with the rules of your design system. Meta: verifiers + skills are the new 'frameworks'! shadcn @shadcn Introducing shadcn/lint. An agent-first linter for Tailwind design systems. You define what’s allowed. When an agent breaks a rule, the error explains what’s wrong and how to fix it using your components, variants and theme. There’s a lot you can do with this. Let me show you ↓ github.com/shadcn-ui/lint 🔗 View Quoted Tweet 💬 27 🔄 10 ❤️ 311 👀 21258 📊 58 ⚡