Why I Built a 4,000-Line Agent Skill Instead of Another npm Package

Dev.to AI
Generative AI

The Problem I use Claude Code (and sometimes Cursor) for frontend work every day. And every day, I fix the same mistakes: // AI generates this const user: User = await res. json Looks fine. TypeScript is happy. But res.json returns any at runtime - if the API changes shape, this silently breaks in production. // AI also loves this const [ isLoading, setIsLoading ] = useState ( false ) const [ error, setError ] = useState < Error | null > ( null ) const [ data, setData ] = useState < User | null > ( null ) Three separate pieces of state that can represent impossible combinations.