Who it is forA developer who hands UI tasks to a coding agent and wants the agent to check its own work before reporting done.
The problemAgents report tasks complete without checking their Tailwind usage against the design system, so errors reach review.
The outcomeThe project has a Lint script, and the agent guidance file tells the agent to run it and fix all errors after each change.
What you need first
- Node.js 20.19 or later
- A Tailwind v4 project (shadcn/ui is not required)
- ESLint 9.30 or later, or Oxlint 1.80 or later
- A React, Vue, or Svelte project
Steps
- Run
npm install -D @shadcn/lint eslint @typescript-eslint/parserin the project, ornpm install -D @shadcn/lint oxlintif you use Oxlint. - Add
eslint .oroxlintas the Lint script in package.json. - Add this line to AGENTS.md: After making changes, run
npm run lintand fix all errors. - Run
npm run lintonce to confirm the script works before giving the agent a task.
Prompt for your agent
Use the GitHub repo shadcn-ui/lint to set up the lint loop in <project-path>. Install the package, add the lint script, and add the README instruction to AGENTS.md. Expected output: npm run lint exits cleanly on the current code. Verify that a deliberate arbitrary value in one file makes the command report an error.
Caveat. The README reports eval results across many agent runs, but those results come from the authors' own tests and are not a guarantee for every project.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for shadcn-ui/lint and "Make coding agents fix Lint errors before finishing"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer