Claude Code writes the code, Docker runs the store on your computer, Git records every step and GitHub ships it. This guide takes you from an empty folder to a working WooCommerce store, step by step.
PowerShell commands, compose.yaml, WP-CLI, CLAUDE.md, skills, subagents, hooks, MCP, permissions, Git branches and safe deployment, all on one example store project with files you can copy.
compose.yaml with docker compose up -d. Put project rules in CLAUDE.md, repeatable jobs in skills and specialist work like testing in subagents. Each change lives on its own Git branch, is approved through a pull request and goes live via GitHub Actions.What is Claude Code?
Claude Code is not a chat window that suggests snippets; it is an agent that works inside your project. Give it a task and it reads the files, makes a plan, writes the code, runs commands such as docker compose or git within the permissions you allow, and reports back. We cover how AI agents work in general in How to build an AI agent. Seven building blocks let you tailor Claude Code to a project:
| Building block | Where it lives | When it loads | E-commerce example |
|---|---|---|---|
| CLAUDE.md | Repo root | Every session | Commands, folder layout, “never edit core” rule |
| Rules | .claude/rules/*.md | Every session or for matching files | A coding standard that applies only to PHP files |
| Skill | .claude/skills/name/SKILL.md | When relevant or via /name | /urun-ekle: bulk product import from CSV |
| Subagent | .claude/agents/*.md | When a task is delegated, in its own context | woo-test: tests cart → checkout |
| Hook | .claude/settings.json | Every time, automatically | PHP syntax check after every file edit |
| MCP server | claude mcp add | When the tool is needed | Real-browser testing with Playwright |
| Permissions | .claude/settings.json | On every command | docker compose allowed, git push asks, .env blocked |
A simple rule: what Claude must always know goes in CLAUDE.md, long instructions needed sometimes go in a skill, work that needs separate expertise goes to a subagent, and checks that must never be skipped go in a hook. Anthropic recommends keeping CLAUDE.md under 200 lines.
Project architecture: what runs where?
| Tool | Role | Cost (November 2026) |
|---|---|---|
| PowerShell | The Windows command line for installs, Docker and Git. | Built into Windows |
| WSL 2 | A Linux kernel inside Windows; Docker Desktop runs containers on it. | Free |
| Docker Desktop | Runs containers and includes docker compose. | Free for small businesses and personal use |
| Git + GitHub | Records every change; branches and pull requests for teamwork, Actions for deployment. | Free plan is enough |
| VS Code | Code editor with a Claude Code extension and Git UI. | Free |
| Claude Code | The agent that writes, tests and runs the Git workflow. | Claude plan or API |
Step 1: Install everything with PowerShell
Right-click PowerShell in the Start menu and choose Run as administrator. Only the first WSL 2 setup needs admin rights; Docker Desktop can be installed per user without them. Restart afterwards and open Docker Desktop once.
PowerShell or CMD?
Every command in this guide is for PowerShell.Copy-Item, $env: and Read-Host do not work in CMD.Requirements
64-bit Windows 10 22H2 or Windows 11 23H2, virtualization enabled in BIOS and at least 8 GB of RAM.Folder location
Use a short path such asC:\Projeler. Folders synced by OneDrive cause locks and slowdowns.Faster file access
For large projects, cloning the repo into the Linux file system inside WSL improves file watching and speed; Docker recommends it.Step 2: Create the GitHub repository
The GitHub CLI (gh) creates a private repo and clones it in one command. The first login confirms your GitHub account in the browser. For Git identity (user.name, user.email) and cloning with VS Code, see our WordPress Git workflow guide. The example store uses Turkish folder and branch names (tema = theme, eklenti = plugin, ozellik = feature); rename them freely.
Add at least these to .gitignore: .env, node_modules/, *.sql, *.zip and .claude/settings.local.json (personal settings). That keeps passwords and database dumps off GitHub.
Step 3: Define the store with compose.yaml
Docker Compose describes every service the store needs in one file. Our example has five: wordpress (PHP 8.3 + Apache), db (MariaDB), wpcli (WordPress from the command line), phpmyadmin (database panel) and mailpit (a test inbox that catches order e-mails).
Pin versions
Use tags likemariadb:11.4 and wordpress:php8.3-apache instead of latest so everyone runs the same stack.Persistent volumes
db_data and wp_data survive container removal. docker compose down -v deletes them too.wpcli user
user: "33:33" makes WP-CLI write files with the same owner as WordPress and prevents permission errors.Test e-mails
Point an SMTP plugin to hostmailpit, port 1025; messages appear at localhost:8025.Step 4: Start the store
With Docker Desktop running, two commands in the repo folder are enough. The first run downloads images and may take a few minutes; later starts take seconds.
| Docker command | What it does | When |
|---|---|---|
docker compose up -d | Starts all services in the background. | Every work session |
docker compose ps | Lists running services and ports. | When something won’t open |
docker compose logs -f wordpress | Streams WordPress/PHP errors. | White screen or 500 error |
docker compose stop | Stops services; data stays. | End of the day |
docker compose run --rm wpcli wp … | Runs a WP-CLI command in a throwaway container. | Setup, products, settings |
docker compose down -v | Removes containers and the database. | Only for a deliberate reset |
Step 5: Install WordPress and WooCommerce with WP-CLI
Using WP-CLI instead of clicking through the installer has two benefits: the steps repeat exactly in every environment, and Claude Code can run them itself. Our example store targets Türkiye, so it installs the Turkish language pack and sets the currency to TRY; use your own locale and currency.
Then finish WooCommerce settings at localhost:8080/wp-admin: store address, tax rates, shipping zones and payment methods. Always use your payment provider’s test mode and test keys (Stripe, PayPal, or a local provider such as iyzico in Türkiye). Live keys belong only on the live server, in an environment variable.
Step 6: Write project rules in CLAUDE.md
CLAUDE.md is the instruction file Claude Code reads at the start of every session. Put commands, folder layout, coding rules and hard limits there. Keep it short: every line goes into context on every request.
Step 7: Build your first feature with Claude Code
Type claude in the repo folder. For bigger tasks, start in Plan mode (Shift+Tab cycles modes): Claude reads the files, lists what it will do and waits for your approval. Approve a good plan or correct it, so no time or usage is wasted on the wrong direction.
/init
Scans the project and drafts a starter CLAUDE.md./permissions
Sets which commands run without asking./agents · /mcp
Manage subagents and MCP servers./clear · /compact
Start fresh on a new task or summarize a long session; project memory stays.Step 8: Add skills, subagents, hooks and MCP
As the project grows, stop repeating instructions and teach Claude Code permanently. Four tools do that.
Permissions and hooks: the seatbelt
Permission rules decide which commands Claude runs without asking, which ones it asks about and what it can never touch. A hook is a command that runs every time an event happens: below, every file edit triggers a PHP syntax check and any error is fed back to Claude.
Skills: recipes for repeatable work
A skill is a SKILL.md file in its own folder. Its description is visible every session, but the body loads only when used, so long instructions don’t fill the context. disable-model-invocation: true makes the skill run only when you type /urun-ekle.
Subagents: specialists with their own context
A subagent runs in a separate context with its own instructions and limited tools, and returns only a summary. It is ideal for testing, security reviews or code review because the main session stays clean.
MCP: new tools for Claude
MCP (Model Context Protocol) is the standard that connects Claude Code to outside tools. With the Playwright MCP server, Claude opens your store in a real browser, adds products to the cart, goes to checkout and catches errors. MCP servers also exist for GitHub, databases and design tools.
Step 9: E-commerce essentials
Payments
Test mode first, then 3-D Secure, refunds and failed-payment scenarios.Shipping and stock
Shipping zones, free-shipping threshold, stock alerts and order-status e-mails tested in Mailpit.Legal pages
Terms of sale, privacy policy and cookie consent for your market; in Türkiye also the distance-sales contract and ETBİS registration. Not legal advice.SEO and speed
Product schema, category structure, image compression and caching. See our e-commerce SEO guide and WordPress speed optimization.Step 10: Git branches and safe deployment
Every feature gets its own branch. Claude Code commits, you review the diff (git diff) and open a pull request. When the approved PR merges into main, GitHub Actions uploads only the theme and plugin folders to the live server. The database and uploads folder are never touched.
| Git command | What it does |
|---|---|
git switch -c feature/name | Creates a branch and switches to it. |
git status · git diff | Shows what changed. |
git add · git commit -m "…" | Records the change. |
git push -u origin feature/name | Sends the branch to GitHub. |
git pull | Fetches new changes from GitHub. |
git revert <commit> | Undoes a released change without rewriting history. |
Shared hosting
Actions uploads theme and plugin over SSH/SFTP. Server credentials live in GitHub Secrets.VPS + Docker
A production version of the same compose file runs on the server, with a reverse proxy for HTTPS.First migration
Move the database once and switch URLs fromlocalhost:8080 to your domain with wp search-replace.After launch
Purge caches, test payment and order flow once more on live, and submit the sitemap to Search Console.8 common mistakes and the right way
Tap a card: the red side shows the mistake, the green side the fix.
Which path fits you?
Setup checklist
Frequently asked questions
What is Claude Code?
Claude Code is Anthropic’s AI coding agent. It runs in the terminal, inside VS Code, in the desktop app and on the web. It reads your project files, writes code, runs commands (Docker, Git, WP-CLI) and pushes changes to GitHub. You steer it with CLAUDE.md instructions, skills, subagents and permission settings.
How do you use Claude Code?
Open a terminal in your project folder and type claude. In the first session, run /init to create a CLAUDE.md and /permissions to set what it may run. For bigger tasks, press Shift+Tab to enter Plan mode and approve the plan first. Claude makes the change; you test it on the local Docker site and approve it through a pull request.
Is Claude Code free?
No. Claude Code is included with paid Claude plans (Pro and above) or billed per use through the API. Plans and prices change, so check Anthropic’s official pricing page for current details (November 2026).
What is Docker and why use it for an e-commerce project?
Docker runs an application and everything it needs (PHP version, database, web server) in isolated packages called containers. With a compose.yaml file, every teammate and Claude Code spin up the identical environment with one command (docker compose up -d), which ends “it works on my machine” problems.
Is Docker Desktop free?
Docker Desktop is free for personal use, education, non-commercial open source projects and small businesses with fewer than 250 employees AND less than $10 million in annual revenue. Commercial use in larger companies requires a paid subscription (Docker license page, November 2026).
What is the difference between CLAUDE.md, a skill and a subagent?
CLAUDE.md holds persistent project rules loaded every session. A skill is a repeatable workflow loaded only when relevant or invoked with /name (for example /urun-ekle). A subagent is a specialist that works in its own context with limited tools and returns only a summary (for example woo-test). Checks that must run every time belong in a hook.
Let us build your store with this setup
Docker development environment, WooCommerce store, Claude Code rules, test agents and automated deployment. You just approve. WordPress management starts at $100/month.
Free consultationWooCommerce developmentRelated: WordPress Git workflow · How to build an AI agent · n8n pricing · E-commerce SEO agency · E-commerce industry · WordPress management · Sources: Claude Code: CLAUDE.md, skills, subagents, hooks · Skills docs · Subagents docs · Docker Desktop on Windows · Docker Desktop license · WP-CLI. Screens are illustrations; versions and UI details may change. The “example store” is not a real client.
