How I actually use Claude Code as a WordPress dev

For the past year I have watched colleagues “chat” with LLMs in a browser tab, copying code back and forth like it is 2022. It is messy, and every paste is another chance to break something. Most of the Claude Code effectiveness people say they are missing comes from leaving the browser and working in the terminal.

I have been building on WordPress and WooCommerce for 14 years, long enough to watch most “productivity hacks” come and go. Agentic coding through the CLI held up, because the tool has file system access and permission to run things. Use it like a search engine and you lose almost all of that. It works better if you think of it as a junior dev who never sleeps and occasionally forgets the project’s coding standards.

Why Claude Code effectiveness starts in the terminal

The mistake I see most often is ignoring context. A CLI tool like Claude Code has a direct line to your directory structure, so it is not guessing where your functions.php sits. It reads your composer.json and works out the stack from there. That is the whole reason managing AI coding agent context matters so much.

How well the tool performs tracks almost exactly with how you prime it. Throw prompts at it with no slash commands and no memory and you are yolo-coding, and you will spend longer fixing hallucinations than you would have spent writing the code yourself.

1. Slash commands keep prompts consistent

My rule: the second time I write a prompt, it becomes a slash command. They are saved instructions, so you are not retyping a 300-word context window every time you want to run a test or check logs. One of mine checks my code against WordPress VIP standards before I open a pull request.

2. Project memory and the AGENTS.md file

Claude Code keeps two kinds of memory, user and project. User memory is global, the “I prefer tabs over spaces” sort of thing. Project memory is the one that changes your day. I keep an AGENTS.md file in the root directory, describing how that specific project is structured, what the naming conventions are, and where the legacy “gotchas” live.

On a high-traffic WooCommerce site, that means notes on avoiding race conditions during checkout and on how you handle transients. It is the cheapest way to improve Claude Code effectiveness, because the agent stops relearning your architecture at the start of every session.

Plan mode takes the ambiguity out

Start your sessions in plan mode. Claude reads the request and asks clarifying questions before it touches a line of code. A client once asked for a complicated multi-currency update, and in plan mode Claude found a flaw in how we were calculating tax for wholesale customers before it wrote the fix that would have carried the flaw forward.

That skips the debug loop where the AI keeps patching its own mistakes, and it pushes you to think the requirements through before you ask. This is roughly how I set up my local environment to keep things fast:

# Example Claude Code Config for WordPress Dev
claude config set --append-system-prompt "Always prefix PHP functions with bbioon_. Use strict types. Follow PSR-12."
# Run a quick check on a specific file
claude -p "Analyze this file for security bottlenecks: ./inc/class-checkout-handler.php"

Where the CLI slows me down

It is not perfect. Sometimes it is slower than Cursor, especially on massive log files, and because it lives entirely in the terminal you get no visual feedback until you flip back to your IDE. For digging through production logs or building a medium-difficulty feature, though, nothing I have used executes faster.

The point is not handing everything to the AI. It is to optimize your WordPress AI workflow so your attention goes to the architecture rather than the grunt work. If you are reading every line by hand for basic syntax errors, your setup is working against you.

If this is eating your dev hours, I can take it on. I have been working with WordPress since the 4.x days and I know how to get these tools pointed somewhere useful.

Automate instead of chatting

So: slash commands for the prompts you repeat, AGENTS.md for the context that has to survive between sessions, and plan mode before anything gets written. Treated as a terminal utility rather than a chat window, Claude Code stops handing you work you have to redo. You are an engineer, so use the tool like one.

author avatar
Ahmad Wael
I'm a WordPress and WooCommerce developer with 15+ years of experience building custom e-commerce solutions and plugins. I specialize in PHP development, following WordPress coding standards to deliver clean, maintainable code. Currently, I'm exploring AI and e-commerce by building multi-agent systems and SaaS products that integrate technologies like Google Gemini API with WordPress platforms, approaching every project with a commitment to performance, security, and exceptional user experience.