From Writing Code to Reviewing It: My AI Coding Workflow
This year I went from writing most of my code to reviewing most of it.
I'm a software developer and I've focused on frontend for the last four years. In my free time I take on side projects to keep myself up to date with web and app development. But this year, the way I code changed drastically with the rise of AI agents, plugins, and MCPs (Model Context Protocol servers, which let an agent talk to tools like your browser, database, or Jira). I was fortunate enough to explore them.
I've updated my Claude rules, skills, MCPs, and context files (like CLAUDE.md, which the agent reads at the start of every session) countless times. Since the middle of last year, I've spent less and less time writing code. That time now goes to auditing and reviewing AI output. Thankfully, community plugins make reviewing easier: they help me improve code quality and catch most edge cases, and you can install what's already out there. Some even shape how the agent talks back. I use i-have-adhd to keep its output summarised and concise.
Claude Code is where I get the most out of these tools. I used to run it in VS Code because reading its output there was easier than in a plain terminal. These days I use the Rex terminal, which lets me keep each worktree (a separate checkout of the same repo, so agents can work on different branches side by side) in its own session. That makes it much easier to keep track of what each agent is doing.
Set up your rules before anything else
It's super duper important to set up rules for how your project should be built: which tech stack, database, and cloud provider to use. Skills help here. A skill is a packaged set of instructions the agent loads for a specific kind of task. At skills.sh you can find skills for roles like solution architect, frontend, and backend, and they help you write those rules.
Keep refining those rules and update your context files regularly, so the agent doesn't produce weird patterns. For example, I have a hook called useScrollOnError(containerRef) that takes a container ref. Before I added a rule for it, the agent kept writing separate useEffect 's and useRef's for the same job, instead of using the hook or reading form state through useFormikContext. That's hard to maintain: change one and the others fall out of sync, and switching form libraries would break all of them. When that happens, update the rules so the whole codebase follows one standard. Only once your rules are set up should you start planning features.
My workflow: plan, build, test, review
Here's what I normally do:
- Plan
- Build/implement
- Test (unit/E2E)
- Review
/plan, /build, and /review are my own skills, built on top of Matt Pocock's skills and pstack.
Once I get the requirements, I run /plan, which writes the plan to a Markdown file. I review that plan against the code and update the file. Which tools it leans on depends on how much of my plan's usage limit I have left. If I need a plan fast, it uses pstack:poteto-mode (good for building prototypes). If I need a detailed but concise plan, it uses Matt Pocock's plan skill.
Once the plan is final, I run /build plan-file-name.md, which builds from the plan file. When it's done, it runs the tests (Playwright, for my TypeScript frontend projects) and checks the result against the requirements.
Then /review opens a draft PR and runs pstack's thermo-nuclear-code-quality-review on it. Finally, I review the diff myself. You can automate this flow however you like. I still rely on the product owner at my workplace for edge-case requirements, so there's some back-and-forth.
AI does a lot of the work now, but you're still responsible for your code.