Give Claude Code a WordPress Project Guide

Lexi Morgan

Lexi Morgan

My name is Lexi, I'm part of the creative team behind BigX Media’s content strategy. When I'm not writing, you’ll find me exploring downtown Conway, sipping on a latte, and dreaming up new ways to empower local businesses.

What if the secret to getting better results from Claude Code wasn’t writing a better prompt, but giving it a better understanding of your WordPress website?

Picture this.

You hire a talented new developer. They know PHP, understand website design, and can troubleshoot complicated problems. You’re excited to put them to work.

There’s just one little problem.

You haven’t told them anything about your website.

They don’t know which theme you’re using. They don’t know whether your pages were built with Bricks, Divi, or Elementor. They don’t know which plugins are important, where custom code belongs, or which parts of your website should never be touched.

Then you hand them the keys and say, “Go fix something!”

Sweetheart, that’s a mighty interesting way to invite trouble!

Working with Claude Code can feel much the same way.

Claude Code is a powerful AI coding assistant. It can inspect files, suggest changes, write code, and help troubleshoot WordPress problems. But even a capable assistant needs to understand the project it’s working on.

That’s why learning to Give Claude Code a WordPress Project Guide can make such a difference.

And here’s the wonderful part.

You don’t have to be an experienced programmer to get started.

You simply need to understand what information Claude needs, where to put that information, and how to make sure it follows your expectations.

Let’s walk through it together.

Why Give Claude Code a WordPress Project Guide?

Imagine owning a restaurant.

Would you let a new chef redesign your entire menu without explaining your recipes, customers, or kitchen procedures?

Of course not.

Your website deserves that same level of care.

Every WordPress website has its own personality and technical setup.

One website might use:

  • WordPress with a custom child theme
  • Bricks Builder for page layouts
  • FluentCart for online sales
  • Rank Math for search engine optimization
  • Custom PHP for business-specific features

Another might use Divi, WooCommerce, and several specialized plugins.

Both are WordPress websites, but their internal structures can be very different.

When you give Claude Code a project guide, you’re providing the information it needs to make decisions that fit your particular website.

Instead of repeatedly explaining your preferences, you create a document Claude can consult during future work sessions.

That document is commonly called CLAUDE.md.

Think of it as an employee handbook for your AI developer.

It explains how your website works, what your priorities are, and what procedures should be followed.

A good project guide doesn’t guarantee perfect results. However, it gives Claude a much better starting point and can help reduce repeated misunderstandings.

For anyone maintaining a business website, that’s a valuable improvement.

What Exactly Is a CLAUDE.md File?

A CLAUDE.md file is a plain-text Markdown document containing instructions for Claude Code.

You don’t need special software to understand it.

Markdown simply lets you organize written instructions using headings, lists, and ordinary text.

For example:

# WordPress Project Guide

## Website Information
- Platform: WordPress
- Page builder: Bricks Builder
- SEO plugin: Rank Math

## Development Rules
- Work on staging before production.
- Do not edit WordPress core files.
- Explain proposed changes before implementing them.
- Preserve existing website functionality.

## Testing
- Check PHP syntax after PHP changes.
- Test affected pages on desktop and mobile.
- Report anything that could not be verified.

That’s it.

No complicated programming language.

No mysterious secret commands.

Just clear instructions that explain how you want Claude to approach your project.

According to Anthropic’s Claude Code documentation, project-level instruction files can live in the project root or inside the .claude directory.

Claude reads applicable project instructions during its sessions.

However, there’s one important detail.

These files provide guidance, not a guaranteed security barrier. Claude can still misunderstand an instruction, and separate permission controls are needed for actions that must be restricted.

In other words, your guide helps Claude make better decisions, while proper safeguards help protect your website.

Give Claude Code a WordPress Project Guide Before Asking for Changes

Let’s say your WordPress homepage suddenly displays a PHP warning.

Your first instinct might be to tell Claude:

“Fix the PHP error on my website.”

That request sounds reasonable.

But it leaves some important questions unanswered.

Where is the website located?

Is Claude working with a local copy, a staging environment, or the actual production website?

Can it modify plugin files?

Should it create a backup?

How should it test the repair?

What happens if the suggested change creates another problem?

Without enough information, Claude may need to ask several follow-up questions or make assumptions.

A well-written project guide helps answer these questions before the work begins.

Consider this instruction:

“Before modifying PHP files, identify the source of the warning, explain the proposed solution, and confirm that a recoverable backup exists. Apply changes on staging and test the affected functionality before recommending deployment.”

Now Claude has a much clearer direction.

It understands that identifying the problem comes before changing files.

It also understands that testing is part of the assignment.

That’s the difference between simply requesting a repair and establishing a repeatable development process.

Step 1: Start With a Safe WordPress Project Copy

Before creating your project guide, let’s talk about something I consider absolutely essential.

Protecting your website.

If your website handles customer inquiries, online payments, reservations, or business information, even a small coding mistake can become expensive.

That’s why I recommend beginning with a local development environment or staging website.

A staging website is essentially a working copy of your website where you can test changes without immediately affecting visitors.

For example, imagine a small business in Conway, Arkansas, that receives customer inquiries through its WordPress contact form.

The business owner wants Claude Code to improve the form’s appearance.

Sounds simple.

But what if the modification accidentally breaks form submissions?

If the work happens directly on the public website, customers could encounter the problem before anyone notices.

On staging, the owner can inspect the changes, test the form, and approve the finished result.

That’s a much more comfortable way to work.

Before allowing Claude to modify anything:

  1. Create a current backup of your website and database.
  2. Confirm that the backup can be restored.
  3. Set up a staging or local development copy.
  4. Keep important credentials out of project instruction files.
  5. Make sure you understand which files Claude can access.
  6. Use version control where practical.

Remember that a staging environment and a backup solve different problems.

Staging provides a place to experiment.

A backup gives you a recovery option.

You want both.

Step 2: Let Claude Learn About Your WordPress Website

Here’s where things start getting interesting.

Claude Code can inspect the files inside a project it has permission to access.

That means you don’t necessarily have to explain every technical detail yourself.

You can ask Claude to examine the project and identify its structure.

Try this starter prompt:

Review this WordPress project before making
any changes.

Identify:
1. The active theme and child theme.
2. The main custom plugins.
3. Important custom code locations.
4. The development and testing tools.
5. Any existing project instructions.

Do not modify files.

Summarize what you discover and identify
anything that needs my confirmation.

Notice those three powerful words?

Do not modify files.

For this first assignment, we only want Claude to investigate.

It’s important to understand that Claude can generally inspect only what the connected project and tools expose.

A local WordPress code folder may not reveal active plugin settings, database content, or the current production configuration.

If Claude cannot verify something, ask it to say so.

Never encourage an AI assistant to fill important technical gaps with guesses.

Once the review is complete, you’ll have useful information to include in your project guide.

Step 3: Create Your First CLAUDE.md File

Now we’re ready to create the document.

The easiest starting point is often Claude Code’s /init command.

Open Claude Code in your WordPress project directory and enter:

/init

Claude Code can analyze the project and prepare a starter instruction file.

If an instruction file already exists, the command can suggest improvements instead of replacing it.

Review the generated content carefully.

Does it identify the correct theme?

Does it understand your custom plugin structure?

Are the testing instructions accurate?

Has it included any assumptions that need correction?

You can also create the file manually.

Simply create a text file named:

CLAUDE.md

Place it at the root of your WordPress project.

The filename matters because Claude Code recognizes it as a source of project instructions.

For teams, the file can be committed to the project’s Git repository, provided it contains no private credentials or sensitive information.

That allows developers working on the same project to share a common set of instructions.

And sweetheart, shared instructions are a beautiful thing when several people are working on one website!

Step 4: Add a Useful WordPress Project Guide

Here’s a practical starter template that readers can copy and customize.

It provides a foundation without assuming every WordPress website uses the same tools.

# WordPress Project Guide

## Project Overview
- Website name: [Website Name]
- Platform: WordPress
- Environment: Local or staging
- Theme: [Theme Name]
- Child theme: [If Applicable]
- Page builder: [Builder Name]
- SEO plugin: [Plugin Name]

## Project Goals
- Preserve existing website functionality.
- Keep the website responsive.
- Maintain accessibility and readability.
- Protect performance and SEO settings.
- Avoid unnecessary plugins and dependencies.

## Safety Rules
- Inspect relevant files before editing.
- Never modify production without approval.
- Never edit WordPress core files.
- Avoid modifying third-party plugin files.
- Protect credentials and customer data.
- Confirm a recoverable backup exists.
- Request approval before destructive actions.

## Coding Standards
- Follow WordPress coding conventions.
- Sanitize and validate incoming data.
- Escape output appropriately.
- Use WordPress APIs when suitable.
- Make focused, maintainable changes.
- Do not suppress errors to hide problems.

## Page Builder Rules
- Respect the existing page builder.
- Avoid replacing builder templates unnecessarily.
- Preserve reusable components.
- Check responsive layouts.

## Testing Requirements
- Check PHP syntax after PHP edits.
- Test the feature being changed.
- Check related pages and functionality.
- Review relevant error logs.
- Report tests that could not be run.

## Communication
- Explain proposed changes.
- Identify affected files.
- Ask questions when information is missing.
- Summarize completed modifications.
- Include rollback guidance when appropriate.

There you go!

You’ve created something much more valuable than a random collection of AI prompts.

You’ve established expectations.

However, customize this template before relying on it.

For instance, if a website uses Divi, include instructions relevant to Divi.

If you’re developing a custom plugin, identify where its PHP, JavaScript, and CSS files belong.

If you’re working with WooCommerce or another checkout system, include additional safeguards for payment-related functionality.

A project guide should describe your actual website, not an imaginary one.

Step 5: Tell Claude What It Must Never Change

This might be the most important section in the entire process.

Many WordPress problems happen because changes are made in the wrong location.

For example, modifying WordPress core files can create maintenance problems and may cause changes to disappear during updates.

Editing third-party plugin files can produce similar difficulties.

Your project guide should explain these boundaries.

Consider adding:

## Protected Areas

Do not directly modify:
- WordPress core files
- Third-party plugin source files
- Production configuration
- Database records without approval
- Payment or authentication logic
  without explicit review

When a requested change affects these areas,
explain the concern and propose a safer method.

This creates an opportunity for Claude to stop and discuss potential risks.

But let’s be clear about something.

Writing “do not modify” in a guide isn’t the same as technically preventing access.

For stronger protection, use appropriate file permissions, tool restrictions, approval prompts, backups, and environment separation.

A written rule provides direction.

A technical control enforces a boundary.

Both have their place.

Step 6: Teach Claude How You Build WordPress Pages

Not all WordPress websites are built the same way.

That’s especially true when page builders enter the picture.

Imagine asking Claude to improve a homepage created with Bricks Builder.

Claude might find custom CSS files, theme templates, and JavaScript assets.

But the visible page layout could also depend on builder data stored in the WordPress database.

Changing a nearby PHP or CSS file might not produce the result you expected.

This is why your project guide should explain your preferred editing process.

For example:

## Bricks Builder Workflow

- Identify whether a design is controlled
  by Bricks before editing theme files.
- Preserve existing global styles.
- Avoid duplicating styling rules.
- Explain when a change requires editing
  builder settings in WordPress.
- Test desktop, tablet, and mobile layouts.

For a Divi website, you would customize those instructions around its builder and theme structure.

The lesson is simple.

Claude needs to understand where the website’s design actually lives.

If an area is controlled by the database or a visual builder, a code-only solution may not be enough.

A good assistant should recognize that difference and explain the available options.

Step 7: Include SEO Rules From the Beginning

Now let’s talk about something near and dear to our hearts at BigX Media.

Search engine optimization.

A beautiful website is wonderful.

But what happens if a development change accidentally removes an important heading, alters a canonical URL, or changes how search engines see your pages?

Those mistakes can create problems that aren’t immediately obvious.

That’s why SEO belongs inside your WordPress project guide.

Try these instructions:

## SEO Requirements

- Preserve existing page URLs unless approved.
- Do not remove metadata without review.
- Maintain logical heading structures.
- Protect structured data implementations.
- Avoid unnecessary redirect changes.
- Preserve image alternative text.
- Check whether changes affect Rank Math.
- Report potential SEO consequences.

For business owners in Conway, Russellville, or anywhere else, these details matter.

Imagine a local roofing company whose service page ranks well for an important search phrase.

A developer redesigns the page, accidentally removes its primary heading, and changes the page address.

The new design might look fantastic.

But those changes deserve review because they could affect search visibility and existing links.

A project guide encourages Claude to consider those consequences before making changes.

This also matters for AI-focused search experiences.

Clear content, useful headings, accurate business details, and accessible pages help make information easier for both people and automated systems to interpret.

There is no magic instruction that guarantees AI search visibility.

Good website structure still matters.

Step 8: Give Claude a Clear Testing Checklist

One thing I’ve learned about technology is that something can look finished long before it’s actually ready.

A button might look beautiful but not work.

A PHP warning might disappear while the underlying problem remains.

A desktop layout might look amazing while the mobile version falls apart.

That’s why testing should never be an afterthought.

Your instructions might say:

## Required Verification

After making changes:

1. List the files modified.
2. Explain the purpose of each change.
3. Run available syntax checks.
4. Run relevant automated tests.
5. Test affected WordPress functionality.
6. Identify anything not verified.
7. Recommend a rollback procedure.
8. Wait for approval before deployment.

This gives Claude a useful finish line.

Instead of simply announcing that it changed the code, it should explain what was done and how the result was checked.

Of course, Claude cannot honestly claim to have tested a website in a browser unless it has access to a suitable browser or testing tool.

The same applies to database queries, server logs, and other resources.

If something wasn’t tested, the report should say so.

That’s not a failure.

That’s transparency.

And transparency helps you make better decisions.

Step 9: Keep Your Project Guide Short and Useful

Here’s where some folks get carried away.

They discover that Claude can read instructions and decide to write an entire novel.

Forty pages later, their project guide contains everything from PHP standards to what someone ordered for lunch last Tuesday.

Bless their hearts.

The problem is that longer instructions aren’t automatically better instructions.

Anthropic recommends keeping project instruction files concise, organized, and consistent, with roughly 200 lines or fewer as a useful target for a single CLAUDE.md file.

Why?

Because Claude has to process those instructions along with the files and conversation needed for the current task.

An oversized guide can waste context and introduce conflicting directions.

Instead, focus on information that matters repeatedly.

Ask yourself:

  • Does Claude need to know this every session?
  • Is this rule specific and actionable?
  • Can Claude verify whether it followed the rule?
  • Does another instruction contradict it?
  • Would this information fit better in a separate document?

For larger projects, Claude Code supports more focused rules within .claude/rules/.

You can use these to organize instructions for specific parts of your project.

That way, your main guide stays manageable.

Think of it as keeping the employee handbook separate from the detailed instruction manual for a particular machine.

Both are useful.

They simply serve different purposes.

Step 10: Give Claude a Small Assignment

We’ve created the guide.

We’ve explained the website.

We’ve established safety expectations.

Now let’s put everything to work.

Don’t begin with a complete website redesign.

Choose something small and easy to verify.

For example:

Read the project instructions.

Review the custom CSS related to the
homepage contact button.

Suggest a way to improve its appearance
on mobile devices.

Do not modify files yet.

Explain your proposed change, the files
involved, and how we can test it.

This is a wonderful first assignment because it limits the scope.

Claude has to read your instructions, inspect the appropriate files, and explain its recommendation.

You can review the answer before approving any changes.

Once you’re comfortable, try another assignment.

Perhaps ask Claude to identify outdated code patterns in a custom plugin.

Or request a review of unnecessary CSS.

Or have it investigate a PHP warning using sanitized logs.

Each completed assignment helps you evaluate whether your guide is clear enough.

Give Claude Code a WordPress Project Guide That Improves Over Time

Here’s something I don’t want you to overlook.

Your project guide shouldn’t become a forgotten document.

It should grow with your website.

Suppose Claude repeatedly places custom functions in the wrong file.

That’s a sign your instructions may need clarification.

Add something specific:

“Custom business functionality belongs in our designated custom plugin, not in the parent theme.”

Now imagine Claude repeatedly suggests installing another plugin for features your website already supports.

You might add:

“Before recommending a new plugin, inspect existing tools and explain why they cannot meet the requirement.”

These are practical improvements based on real situations.

You don’t have to add a new rule every time something happens.

Focus on repeated mistakes, important discoveries, and decisions that should remain consistent.

And occasionally remove instructions that are no longer relevant.

For example, if your website moves from one page builder to another, update the guide.

Outdated instructions can be just as confusing as missing instructions.

Common Mistakes Beginners Should Avoid

Let’s look at a few mistakes that can cause unnecessary headaches.

Mistake 1: Treating CLAUDE.md as a Security System

Your guide is not a replacement for access controls.

Use real permissions and approval safeguards to protect sensitive operations.

Mistake 2: Including Passwords or API Keys

Never place WordPress administrator passwords, hosting credentials, payment secrets, or other sensitive values in a project guide.

Keep secrets in properly protected systems.

Mistake 3: Giving Claude Too Much Freedom

Avoid instructions such as:

“Fix anything you think needs fixing.”

That’s a broad assignment with unpredictable consequences.

Give Claude specific tasks and review the results.

Mistake 4: Forgetting the Database

Many WordPress settings and page-builder layouts live in the database.

A guide based only on visible project files may miss important details.

Mistake 5: Skipping Human Review

AI assistance can speed up development.

It doesn’t eliminate your responsibility to approve important changes.

Mistake 6: Never Updating the Guide

Your website will evolve.

Its instructions should evolve with it.

These are simple habits, but they can save a remarkable amount of frustration.

How BigX Media Approaches AI-Assisted WordPress Development

At BigX Media, we believe powerful AI tools become more useful when paired with clear processes and human judgment.

That’s especially important for small businesses.

A business owner doesn’t necessarily want to understand every line of PHP.

They want their website to work.

They want customers to find them.

They want forms to deliver inquiries, checkout systems to process orders, and pages to look professional on mobile devices.

AI-assisted development can help make website improvements more accessible.

But the goal shouldn’t be to hand an entire business website over to an automated tool without supervision.

The goal is to combine capable technology with thoughtful planning.

A well-maintained WordPress project guide supports that approach.

It helps document decisions, establish consistency, and make future work easier to understand.

For anyone just beginning with Claude Code, that’s a terrific place to start.

Give Claude Code a WordPress Project Guide and Make Your Next Project Easier

Let’s bring everything together.

You don’t need to become a professional developer overnight.

You don’t need to memorize hundreds of WordPress functions.

And you certainly don’t need to create a massive instruction manual.

Start with the basics.

Document what your website uses.

Explain where changes should happen.

Establish safety procedures.

Describe your testing expectations.

Then let Claude help you with one carefully chosen task.

Review what happens.

Improve the instructions when necessary.

Over time, you’ll have something far more useful than a collection of forgotten prompts.

You’ll have a working guide that explains how your website should be maintained.

And that’s a smart investment in the future of your website.

Ready to make AI-assisted WordPress development easier?

The team at BigX Media helps business owners understand modern web technology, improve their online presence, and find practical ways to put AI to work.

Whether you’re exploring Claude Code for the first time or looking for better ways to maintain your WordPress website, we’re here to help.

Visit BigX Media and let’s talk about what your website could accomplish next.

Because sweetheart, the smartest AI assistant in the world still works better when somebody gives it good directions!


Quick Questions & Answers

Q: What is a CLAUDE.md file in WordPress?

A: It’s a Markdown file that gives Claude Code project instructions, coding standards, and workflow guidance.

Q: Can Claude Code create a project guide automatically?

A: Yes. Run /init in your project to generate a starter guide, then review and customize it.

Q: Should I use Claude Code directly on my live WordPress website?

A: Use staging or local development first. Test changes before approving production deployment.

Q: Does CLAUDE.md prevent Claude from making mistakes?

A: No. It provides guidance, but permissions, testing, backups, and human review remain essential.

Q: Do I need to understand PHP to create a project guide?

A: No. You can start with plain-language instructions and ask a developer to review technical details.


A Little Humor From Lexi

Greg told me, “Lexi, I think Claude Code needs better instructions.”

I said, “Well, sugar, that’s exactly what I’ve been telling you!”

Greg replied, “I’m talking about WordPress!”

And I said, “Oh, I know, sweetheart. But while we’re writing instructions, should I make you a copy, too?”

He hasn’t approved that pull request yet. 😂


Frequently Asked Questions

1. Where should I save my CLAUDE.md file?

Save it in your project root or the project’s .claude directory.

2. Can I use CLAUDE.md with different WordPress themes?

Yes. Customize the instructions for each theme, builder, plugin setup, and development workflow.

3. How often should I update my WordPress project guide?

Review it after major website changes and whenever repeated mistakes reveal missing or outdated instructions.

Join the list of customers who have made the switch to BigX Media to meet all of their online needs.

Here at BigX Media our goal is to ensure that your business grows to the levels you have been wishing for and more. Don't leave your success to chance, get on board with a team that knows how to help you grow and expand your business and online marketing needs.

Shouldn't your face be here joining these happy clients?
2626 | BigX Media Holdings®
#1 Website Design and Marketing Agency
When your online digital footprint matters,
let the team at BigX Media help you captivate
your online audience.

Our Hours

  • Monday
    09:30 - 04:00
  • Tuesday
    10:00 - 05:00
  • Wednesday
    09:30 - 04:00
  • Thursday
    10:00 - 05:00
  • Friday
    09:30 - 04:00
  • Saturday
    10:00 - 02:00
  • Sunday
    Closed
  • © 2026 | BigX Media | All Rights Reserved
    Sitemap Privacy Policy Terms of Service

    Let's meetup and have a discussion!

    Pick a time for us to have a virtual meeting to talk about your website or marketing needs.