r/webdev • u/p0sitiv3_Junki3 • 9d ago
Curious about people's workflow using AI
So, yeah. I'm very curious about how developers use AI in their workflow. I go first: if I need to start a project from the scratch for example using pnpm, At first I plan endpoints, etc. Then, I think about .css styles. So, I write all colours, dark/light mode, etc. Then, pages, buttons, etc. but in a very rough way. Then I make components in a way AI will understand later to make it right and finally security but very incomplete way, for example: CORS, then I add some security skills, for example from Cloudflare, etc. The point here is showing AI what you want to do later, not writing the whole code yourself. But, showing the path AI must follow. After that, I ask AI to improve the small code I made. But I don't ask: "AI finish this project". I go instead for every unfinished function, component, hooks, etc and ask:"make it better". Knowing that every path AI takes is because I instruct to it already. So, in a way I have the control, since AI already have the context of the project I make AI to work recursively. I also ask to comment changes that are relevant to the project in the changed files for future references. For me, It works great, because if you show AI some code before completion, even if it's small. AI agents will just works great. Anyone working this way too? Last but not least, I take care of commits, GitHub actions, etc. myself. I don't trust AI to push any files outside my dev projects.