Skip to content
Claude Code setup and reference for Magento

Claude Code, set up for Magento.

Install and log in, write a CLAUDE.md for a Magento repo, lock things down with permission rules and hooks, then add MCP servers, skills, subagents and headless runs when you need them. Every command here was checked against the official Claude Code docs.

  • Commands checked against code.claude.com, November 2026
  • Magento examples: env.php, vendor/, bin/magento, phpunit
  • Team setup workshop on request, quoted first
Adobe Certified Magento developer since 2021 Claude Code workflows for Magento teams
  • curl Native installer

    curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux and WSL. Homebrew (brew install --cask claude-code) and npm (Node.js 22 or later) also work. Check with claude --version and claude doctor.

  • Paid plan Account needed

    Claude Code needs a Pro, Max, Ultra, Team, Enterprise or Console account; the free claude.ai plan does not include it. Amazon Bedrock, Google Cloud and Microsoft Foundry are also supported.

  • /init Starter CLAUDE.md

    Run /init and Claude writes a first CLAUDE.md from your codebase. The docs suggest keeping each file under 200 lines, so trim it to what Claude cannot find by reading the code.

  • deny Rules over requests

    CLAUDE.md is context, not enforcement. For anything that must never happen, such as reading app/etc/env.php, use a deny rule or a PreToolUse hook. A deny rule covers Claude’s file tools and common shell reads; turn on the sandbox for OS-level blocking.

Reference

The six parts of a Claude Code setup on a Magento repo

Claude Code reads your repo, edits files and runs commands in your terminal, asking before anything it is not allowed to do. These are the files and commands that control what it knows and what it may touch.

  • Install, log in, verify

    Install with the native installer, Homebrew or npm, then run claude in the Magento root and follow the browser login. claude --version prints the version; claude doctor checks the install and your settings files without starting a session. Native installs update themselves; Homebrew installs do not.

  • A CLAUDE.md for a Magento repo

    Project file: ./CLAUDE.md or ./.claude/CLAUDE.md. Personal: ~/.claude/CLAUDE.md and a gitignored CLAUDE.local.md. Put in what the repo does not say: how to run bin/magento in your setup, the test and lint commands, “never edit vendor/ or generated/”, and where your modules live (for example app/code/Panth). Use .claude/rules/ for rules that only apply to some paths.

  • Permission rules in settings.json

    In .claude/settings.json add permissions.allow, ask and deny lists. Deny is checked first, then ask, then allow. Examples: deny Read(./app/etc/env.php) and Bash(rm -rf *), allow Bash(bin/magento cache:clean *). A Read deny rule does not stop a command that reads files without naming them, such as grep -r, or a script that opens files; the sandbox does. Commit the file so the whole team gets the same rules.

  • Hooks for checks that must always run

    Hooks live in the same settings files. A PreToolUse hook with matcher Edit|Write can refuse any edit under vendor/ by exiting with code 2; the reason on stderr goes back to Claude. A PostToolUse hook can run php -l on every PHP file Claude edits. The hook gets the tool call as JSON on stdin.

  • MCP servers, only the ones you trust

    claude mcp add --transport http <name> <url> adds a remote server; --scope project writes it to .mcp.json so it can be committed. Keep tokens in environment variables, not in the file. The docs warn that servers which fetch outside content can carry prompt injection, and a production database is never a good first server.

  • Skills, subagents and headless runs

    A file at .claude/skills/<name>/SKILL.md (or the older .claude/commands/<name>.md) becomes /<name>, with $ARGUMENTS for input. A subagent is a Markdown file in .claude/agents/ with name and description frontmatter; it works in its own context window. For scripts and CI, claude -p "…" --allowedTools "Read" runs without the interactive UI.

How to set up

Set it up in this order

The first three steps are one-off setup. The last two are how you keep working. The label under each step says how often you do it.

  1. 01

    Install and log in

    Run the installer for your system, open a new terminal and check claude --version. Start claude in the Magento root, log in, and ask one read-only question about a module before you let it edit anything.

    Once per machine
  2. 02

    Write CLAUDE.md

    Run /init, then cut it down to commands, conventions and gotchas Claude would otherwise rediscover. Add the exact command that checks work in this repo, for example vendor/bin/phpunit app/code/Panth/YourModule/Test/Unit.

    Once per repo
  3. 03

    Set rules and hooks

    Commit a .claude/settings.json with deny rules for secrets and destructive commands, and one hook for the check you never want skipped. Personal overrides go in .claude/settings.local.json.

    Once per repo
  4. 04

    Add tools when you need them

    Add an MCP server, a skill or a subagent only when a real task asks for it. Each one costs context and needs maintenance, so start with none and add as you go.

    As needed
  5. 05

    The daily loop

    Write a specific prompt (file, symptom, what done looks like), ask for a plan on larger changes, give Claude a check it can run, ask for the command and its output as evidence, then read the diff and commit it yourself.

    Per task

Your quote

Get a fixed quote for your project

Send your store URL and describe what you want to change. We can review the requirements and agree a written scope, quote and timeline before work starts.

  • Written scope, price and timeline
  • You approve every change
Team setup

Want help setting this up for your team?

Send a short WhatsApp message with your stack and team size. I reply with questions or a quote for a setup workshop.

Message me on WhatsApp

No form to fill. Send me a quick message. I reply during 10 AM to 7 PM IST, Monday to Saturday.

Helpful to mention

  • Company / repo URL
  • What you need
  • Team size
  • Primary stack
  • Claude plan
  • Primary goal

These are already in the message for you. Just add your answers.

Message me on WhatsApp

Or save my number: +91 84012 70422

Client reviews

What clients say about working with me

Reviews from merchants and developers I have worked with.

What Our Customers Say

Kishan works very hard, with a lot of knowledge about Magento 2.

“Kishan works very hard, with a lot of knowledge about Magento 2. He helped us getting our website to a new level. I would highly recommend Kishan and I'm giving Kishan 5 stars without any hesitation and look forward to working with him again on future

K

K.

Kishan was a great freelancer, 100% would recommend.

“Kishan was a great freelancer, 100% would recommend. Great, friendly personality and was always willing to put the time and effort to make sure the job was 100% correct. Always cared for the business, if any changes had to be made he would notify me of downtime, run tests on a...

LM

L. M.

Kishan is a great magento developer and he was a great asset to our organization.

“Kishan is a great magento developer and he was a great asset to our organization. He worked with us for a long time and he provided to us a lot of knowledge about magento. we are very gratefull with

AR

A. R.

Great experience working with kishan, He assist me with email task and provided awesome and great work.

“Great experience working with kishan, He assist me with email task and provided awesome and great work. I highly recommend him for development and magento 2

AS

A. S.

Kishan did great job - everything as expected!

“Kishan did great job - everything as expected! I would definitely recommend

JM

J. M.

CEO

Consistently accessible with strong Magento expertise.

“Consistently accessible with strong Magento expertise. I intend to collaborate with him on another

GY

G. Y.

Clients I work with are in

  • United States
  • United Kingdom
  • Canada
  • Australia
  • Germany
  • France
  • Netherlands
  • India
FAQ

Everything you wanted to know about Claude Code

What is Claude Code?

Claude Code is Anthropic’s coding tool that runs in your terminal inside a repository. It reads your files, edits them and runs commands such as tests, asking for permission according to your settings. Install it with the native installer, Homebrew or npm (Node.js 22 or later), then run claude in the repo and log in through the browser. It needs a paid Claude plan or a Console account: the free claude.ai plan does not include it.

How is Claude Code different from Cursor, GitHub Copilot, or Aider?

This guide does not compare tools feature by feature, because they change often. What Claude Code does is documented: it runs in your terminal inside the repo, reads and edits files and runs commands within your permission rules, and it supports CLAUDE.md, hooks, MCP servers, skills and subagents. To choose, try each tool on a copy of one Magento repo and judge them on the same checks: does it find the right files, respect your deny rules and pass your tests.

What Claude models does Claude Code use?

It uses Anthropic’s Claude models. Which models you can pick depends on your plan and changes over time, so check the model list in the Claude Code docs rather than a fixed list here. Claude Code can also run through Amazon Bedrock, Google Cloud Agent Platform or Microsoft Foundry if your company buys model access there.

How do I install Claude Code?

Pick one install method:

  • Native installer: curl -fsSL https://claude.ai/install.sh | bash on macOS, Linux or WSL, or irm https://claude.ai/install.ps1 | iex in Windows PowerShell.
  • Homebrew: brew install --cask claude-code (Homebrew installs do not update themselves).
  • npm: npm install -g @anthropic-ai/claude-code, with Node.js 22 or later and without sudo.

Check it with claude --version and claude doctor. Then run claude inside your repo and follow the browser prompts to log in.

What is a CLAUDE.md file and why does every project need one?

CLAUDE.md is a Markdown file that Claude Code loads at the start of every session, from ./CLAUDE.md or ./.claude/CLAUDE.md in the project, plus ~/.claude/CLAUDE.md for your own defaults. Put in it what Claude cannot work out from the code: the commands that build and check the repo, conventions such as plugins over preferences, and rules like never editing vendor/. Run /init for a first draft and keep it under 200 lines. It is context, not enforcement: anything that must never happen belongs in a deny rule or a PreToolUse hook.

Are slash-commands like Cursor’s @-mentions?

They do different jobs. Typing @ and a path pulls a file into one prompt. A slash command runs a saved prompt: in Claude Code these are skills, stored at .claude/skills/<name>/SKILL.md (the older .claude/commands/<name>.md format still works), and $ARGUMENTS is replaced by whatever you type after the command. Use @ for context and a skill for a task you repeat.

What are MCP servers and why should I use them?

MCP (Model Context Protocol) servers connect Claude Code to other tools and data, such as an issue tracker or a database. Add one with claude mcp add, for example claude mcp add --transport http <name> <url>. The default scope is local to you; project scope writes .mcp.json in the repo root so the team shares it, and its values can reference environment variables so secrets stay out of the file. Only add servers you trust: a server that fetches outside content can expose you to prompt injection.

What are hooks in Claude Code?

Hooks are commands that run at fixed points in a Claude Code session, such as PreToolUse (before a tool runs), PostToolUse, Stop or SessionStart. You configure them in .claude/settings.json or your user settings, with a matcher such as Edit|Write. A PreToolUse hook that exits with code 2 blocks the call and its message goes back to Claude, so it can refuse edits under vendor/. A PostToolUse hook can run php -l after each PHP edit. Unlike CLAUDE.md, hooks run every time.

What are sub-agents and when should I spawn them?

Subagents are Markdown files with YAML frontmatter in .claude/agents/ (project) or ~/.claude/agents/ (your own). Each one runs in its own context window and returns a summary, so a long search or review does not fill your main session. The tools field limits what it can use: a reviewer with tools: Read, Grep, Glob cannot edit files or run git diff, so pass it the list of changed files from the main session.

How much does Claude Code cost, Claude Pro vs Team vs API?

Claude Code needs a paid Claude plan (such as Pro, Max, Team or Enterprise) or a Console account billed for API use; the free claude.ai plan does not include it. Prices and usage limits change, so check Anthropic’s current pricing before you choose. Teams that already buy model access through Amazon Bedrock, Google Cloud Agent Platform or Microsoft Foundry can use that instead.

What are the best Claude Code workflows for ecommerce dev?

Workflows that suit a Magento repository:

  • Ask for a plan before any change that touches several files.
  • Give Claude a check to run, such as php -l, a PHPUnit path or phpcs --standard=Magento2, and ask for the command and its output.
  • Save a repeated task, such as a new plugin class, as a skill with $ARGUMENTS.
  • Review a branch with a read-only subagent.
  • Block app/etc/env.php with a deny rule and vendor/ edits with a hook.

The learning path on this site walks through each one on your own repo.

Claude Code for Magento Free prompts and tools Ask me