Claude Code for Marketing: Stop Repeating Prompts With CLAUDE.md

Power users trading tips on Claude Code for marketing and engineering work keep pointing to one small file. It’s called CLAUDE.md, and I’m a little obsessed with it right now.

If your team pastes the same brand voice notes into every prompt (guilty, for months), this file is your fix. You write the rules once, and Claude reads them at the start of every session.

Keep reading for what people on X are saying, what a CLAUDE.md file does, what to put in one for a marketing team, and how to add modes, commands, and hooks on top.

TL;DR

  • CLAUDE.md holds your standing rules. Claude Code reads the file at the start of every session, so brand voice and workflow rules stop living in copy-paste.
  • Keep it short and specific. Anthropic’s docs suggest staying under two hundred lines per file, since longer files use more context and get followed less.
  • Add modes for different work. Tell Claude how to act when you’re brainstorming, planning, building, or reviewing.
  • Use hooks for hard rules. CLAUDE.md guides behavior, while hooks can block an action outright.

A trending story on X rounded up advice from experienced Claude Code users this week. The recurring themes were a CLAUDE.md file for guidelines, custom commands for repeat jobs, subagents for reviews, and hooks for automation.

One Engineer Lost Three Days to a Pop-Up

My favorite post in the thread came from Rajdeep Sengupta, an engineering lead at Chainrisk. He runs Claude Code around the clock on a home desktop and learned a painful lesson about permissions.

X post by Rajdeep Sengupta (@RajdeepS019) saying a permission pop-up stalled his always-on Claude Code job for three days.

View the post on X

His point lands hard for marketing teams running scheduled jobs. The model rarely breaks the workflow. Gaps in setup do, and a few clear rules plus the right permissions prevent most of those stalls.

Power Users Point to the Same Setup

AI and tech creator Sonal Shukla laid out a full project structure, with a CLAUDE.md file, a git-ignored CLAUDE.local.md for personal notes, custom commands, skills, and subagents for code review and security audits. The pattern is consistent across replies. People who get the most out of Claude Code invest in setup before they invest in prompts.

What a CLAUDE.md File Does

A CLAUDE.md file is a plain markdown file with standing instructions for Claude Code. Anthropic’s memory documentation says Claude reads these files at the start of every session. Your rules show up before your first prompt.

The docs also make an important point. Claude treats CLAUDE.md as context, so the more specific and concise your instructions are, the more consistently Claude follows them.

Where the File Lives

You can keep CLAUDE.md files at several levels. A personal file at `~/.claude/CLAUDE.md` applies to all your projects. A project file in the repository root applies to everyone working in that project, and a CLAUDE.local.md file holds your personal project notes and stays out of version control.

Run the `/init` command to generate a starter file. Claude scans the project and drafts one, and if a file already exists, it suggests improvements.

For big projects, Anthropic also supports topic files in a `.claude/rules/` folder. Those rules can apply only to certain folders or file types, so a paid media rule never clutters a blog draft session.

Keep the File Short

The docs suggest keeping each CLAUDE.md file under two hundred lines. Longer files use more context and get followed less often. Write each rule as one plain sentence, and cut anything Claude would figure out on its own.

What to Put in Your Marketing CLAUDE.md

A marketing CLAUDE.md should cover the rules you repeat most often. A starter file for a content team can be as simple as this:

  1. Voice. First person, plain words, short paragraphs, no em dashes.
  2. Audience. B2B marketing leaders with growing teams.
  3. Offers. The services you sell and the proof points you can cite.
  4. Workflow. Where drafts live, how files get named, and who approves them.
  5. Modes. How Claude should act while brainstorming, planning, building, or reviewing.

My team’s files follow the same pattern, with a few lines under each heading.

Pastel illustration titled What Goes in the File shows a filing drawer with folder tabs for brand voice, audience, banned words, workflows, and modes beside a waving pencil.

Brand Voice and Banned Words

List the tone, reading level, and point of view you want, plus words and phrases to avoid. Short rules work best, such as “write in first person” or “never use em dashes.” My post on AI agent memory explains why hard rules fix repeat mistakes faster than gentle reminders.

Audience and Offers

Describe your ideal customer, core offers, and the proof points you’re allowed to use. This keeps every draft pointed at the same buyer. My guide to reusable AI prompts covers the fields worth capturing.

Workflow Rules

Add rules for where files go, how drafts get named, and who approves what. Keep multi-step procedures out of CLAUDE.md. Anthropic suggests moving those into skills, which my post on AI skills vs prompts explains for marketers.

Pro-Tip
Every time you correct Claude twice for the same mistake, add one line to CLAUDE.md. Your file grows from real problems, and it stays short.

Review the file once a month. Delete rules nobody needs and tighten the ones Claude keeps missing.

Ask Claude to help with the cleanup. Paste a week of corrections into a session and ask which rules would have prevented them. Jonny Miller’s prompt, covered below, takes this idea further by mining old transcripts for mode mistakes.

Set Up Modes for Different Kinds of Work

Jonny Miller, creator of the Nervous System Mastery course, suggested on X setting up CLAUDE.md to recognize your working modes. His examples were brainstorming, planning, building, and strategy, each with a different response style.

Pastel illustration titled Modes of Work shows four paper lanterns labeled brainstorm, plan, build, and review above a sleeping cat on a cushion.

The idea fits marketing work well. In brainstorm mode, Claude should ask questions and offer options. In build mode, it should finish the draft with no check-ins.

The planning mode sits in between. Claude should research the topic from several angles, propose an outline, and wait for a yes before writing. Review mode flips the job, so Claude reads a finished draft against your rules and flags problems without rewriting everything.

Most frustration with AI drafts comes from a mode mismatch. You wanted ideas and got a finished post, or you wanted a finished post and got ten questions.

Write One Short Entry per Mode

For each mode, write how to recognize it, how Claude should behave, and what moves the work to the next mode. Keep each entry to a few lines, since every line loads in every session. Miller’s prompt also says building should start only when he says go, which is a smart guardrail for any team.

Go Further With Commands, Subagents, and Hooks

CLAUDE.md handles standing rules. Three other features handle repeat jobs, reviews, and hard limits, and each one gets more useful once your rules file is solid.

Custom Commands for Repeat Jobs

Turn a repeat task into a command or skill, like a review routine you call with `/review`. My roundup of the best Claude marketing skills lists ten worth installing.

Subagents for Reviews

Subagents run focused tasks in their own context, so a long review never crowds out the main conversation. A brand-voice reviewer or a fact checker works well as a subagent, since it reads the draft with fresh eyes. My comparison of Codex vs Claude Code shows which marketing ops jobs fit each tool.

Hooks for Hard Rules

Hooks run your own commands at set points in a session. Anthropic’s docs point to hooks when you need to block an action regardless of what Claude decides, such as publishing without approval. For a marketing team, a hook can stop a session from sending email, pushing to a live site, or deleting files until a person signs off. Those limits hold even when a rule in CLAUDE.md gets missed.

Watch Out
Permissions can stall unattended jobs. Test scheduled runs while you’re watching, and approve the tools each job needs before you leave it alone.

Once rules, commands, and hooks are in place, your team spends its time on the work itself. Shared tools help here too. My guide to the HubSpot MCP shows how to connect Claude to CRM data your rules can reference.

Train the Team on the Setup

The tools only help if your team knows how to use them. Plenty of users credit the setup for big gains, and one reply in the trending thread captured the mood.

X post by subiii (@_subiii_) saying Claude Max helps them do more than ten times their work output from two years ago.

View the post on X

That’s one person’s experience, so test any gains on your own work. Good training gets everyone closer to it, and Anthropic offers free courses on Coursera. My post on Claude certification for marketing teams covers when formal training pays off.

Write Your Team Rules Once

Claude Code for marketing works best when the rules live in one file. Start with brand voice, audience, and workflow rules, add modes for different work, and use hooks for anything that must never happen. Keep the file short, and update it every time Claude repeats a mistake.

For help setting up AI workflows across your marketing team, Single Grain offers marketing consulting services and content marketing services.

Frequently Asked Questions About Claude Code for Marketing

  • What is a CLAUDE.md file?

    A CLAUDE.md file is a plain markdown file with standing instructions for Claude Code. Claude reads it at the start of every session, so rules like brand voice, audience, and workflow steps apply without being pasted into each prompt.

  • How do marketers use Claude Code?

    Marketing teams use Claude Code for drafting content, reviewing copy against brand rules, building reports, and running repeat jobs through custom commands, skills, and subagents. A CLAUDE.md file keeps all of that work consistent.

  • Where should I put my CLAUDE.md file?

    Put team rules in a CLAUDE.md file at the project root so everyone gets them. Personal preferences can go in ~/.claude/CLAUDE.md for all your projects, and CLAUDE.local.md holds personal project notes that stay out of version control.

  • How long should a CLAUDE.md file be?

    Anthropic’s documentation suggests keeping each CLAUDE.md file under two hundred lines. Longer files use more context and get followed less consistently, so move multi-step procedures into skills or path-scoped rules.

  • Can CLAUDE.md stop Claude from taking an action?

    No. Claude treats CLAUDE.md as context, so it guides behavior without enforcing it. To block an action every time, such as publishing or sending email without approval, use a hook.

If you were unable to find the answer you’ve been looking for, do not hesitate to get in touch and ask us directly.