Ask HN: How can I get better at using AI for programming?
471 pointsI've had a fairly steady process for doing this: look at each route defined in Django, build out my `+page.server.ts`, and then split each major section of the page into a Svelte component with a matching Storybook story. It takes a lot of time to do this, since I have to ensure I'm not just copying the template but rather recreating it in a more idiomatic style.
This kind of work seems like a great use case for AI assisted programming, but I've failed to use it effectively. At most, I can only get Claude Code to recreate some slightly less spaghetti code in Svelte. Simple prompting just isn't able to get AI's code quality within 90% of what I'd write by hand. Ideally, AI could get it's code to something I could review manually in 15-20 minutes, which would massively speed up the time spent on this project (right now it takes me 1-2 hours to properly translate a route).
Do you guys have tips or suggestions on how to improve my efficiency and code quality with AI?
Comments (469) 111 threads
Show all comments
Showing thread 24 of 111
One is called Superpowers (you should be able to find it by typing “claude code superpowers github”), and there are many other skills installed for all sorts of things. Gotta give props to whoever came up with the skills idea at Anthropic. It’s a smart way of handling context — instead of dumping pages of helper text into the prompt (for example, how to properly build a frontend website), it just provides some metadata and lets the agent decide whether it needs to load more.
I highly recommend spending time finding and installing lots of these skill plugins. They can make even the cheapest small AI models work way better.
I’ve been using the Superpowers plan mode: it creates a detailed plan first, then there’s an execute mode (and a few others I’m forgetting). I can give it a long, hard task — like converting a large app to another language - and if I run plan first and then execute, I can just let it run for hours and come back to something that’s basically done: fully tested, following best practices, with most bugs fixed.
There are some skills for frontend development, and now anytime I make a website, its crazy amazing looking and has all the stuff I usually forget.