Skip to content

AI Marketing Agents in Claude Code: Build Your Team

Build AI marketing agents in Claude Code: which jobs become skills, which become subagents, the checks that stop bad posts, and how the team schedules its work.

AI Marketing Agents in Claude Code: Build Your Team

AI marketing agents in Claude Code are subagents: Markdown files that give Claude a role, a set of tools and its own context window. Skills hold the repeatable playbooks they follow. In November 2026, the setups that hold up give each agent one job and a check it cannot pass by itself, then hand finished drafts to a scheduler such as PostNext.

Key Takeaways

  • Three building blocks. CLAUDE.md holds the rules for every session, skills hold the step-by-step playbooks, subagents do one job in their own context window.
  • Skills first. A skill’s body loads only when it is used, so 20 playbooks cost almost nothing until one runs (Anthropic, November 2026).
  • One check per agent. In our own Claude Code video studio, an independent review agent failed 14 of 15 delivered Shorts that the builder had already passed.
  • Agents cost the same limits. Each subagent’s requests count toward your plan’s usage limits. One night of about 30 agents used about 12 million tokens in an hour and hit a 5-hour limit.
  • Publishing is a separate step. PostNext’s MCP server lets an agent save drafts and schedule posts on X, Instagram, LinkedIn, TikTok and Threads. Drafts never publish on their own.

What is an AI marketing agent in Claude Code?

An AI marketing agent in Claude Code is a subagent with a marketing job: research, writing, design, reporting or review. Anthropic defines a subagent as a specialised assistant with its own context window, its own system prompt, chosen tools and separate permissions. Claude reads each subagent’s description and delegates a task when the description matches. The agent returns a summary, not its whole working history. If your team works in the Claude app instead of the terminal, Claude for marketing covers the connectors and plugins.

That last part is the reason to use agents for marketing at all. Research for a campaign means reading many pages, competitor posts and reports. Done in the main conversation, all of that text stays in context and pushes out your brand rules. Done in a subagent, only the findings come back.

A subagent lives in a Markdown file. Project agents sit in .claude/agents/ and travel with the repository, so a team that shares the repo shares the agents. Personal agents sit in ~/.claude/agents/ and load in every project on your machine. Claude Code is part of paid Claude plans (Pro and above) or a Console account, not the free plan.

What is the difference between a skill, a subagent and CLAUDE.md?

CLAUDE.md is a file of standing rules that Claude Code reads at the start of every session. A skill is a folder with a SKILL.md playbook that loads only when a task needs it or when you type its name. A subagent is a separate worker with its own context window. Rules go in CLAUDE.md, procedures in skills, and jobs that read a lot or need a fresh view in subagents.

PartWhat it holdsWhen it loadsMarketing example
CLAUDE.mdFacts and rules for every taskEvery sessionBrand voice summary, banned words, “drafts only, never publish”
Skill (.claude/skills/<name>/SKILL.md)A step-by-step procedure, scripts, templatesWhen the description matches, or /nameWrite a LinkedIn post, build a carousel, write a campaign brief
Subagent (.claude/agents/<name>.md)A role, a tool list, a modelWhen Claude delegates, or you ask for it by nameMarket researcher, post reviewer, report analyst
MCP serverTools in another appWhen a tool is calledA scheduler, an image generator, an analytics source

Source: Anthropic Claude Code documentation on memory, skills and subagents (code.claude.com/docs, checked November 2026).

Anthropic’s own guidance on when to make a skill is plain: when you keep pasting the same instructions into chat, or when a section of CLAUDE.md “has grown into a procedure rather than a fact”. A brand voice guide is a fact file. “How we write a launch thread” is a procedure. Split them that way and CLAUDE.md stays short enough to be read every time.

How do you map a marketing team to agents and skills?

List the marketing tasks you do every week, turn each repeated task into a skill, then create an agent only where a job needs its own context or an independent view. Writing a post is a skill. Researching a market is an agent, because it reads a lot. Reviewing a post is an agent, because the writer should never grade its own work.

Bar chart of the parts in PostNext's own Claude Code video studio: 6 skills, highlighted, 5 agents, 3 commands and 3 hooks.

Most teams end up with more skills than agents. A sensible first map for a small brand:

JobBuild it asWhyTools it needs
Write posts for each networkSkillA fixed procedure with your format rulesRead, Write
Turn a blog post into postsSkillSame steps every timeRead, a scheduler
Campaign briefSkillA template to fillRead, Write
Market and competitor researchSubagentReads many pages, returns findings onlyWeb search, fetch
Post reviewerSubagentMust read the draft cold, without the briefRead only
Weekly results reportSubagentReads exports and returns the numbersRead, Bash
VisualsSkill plus an MCP serverThe skill holds the brand look, the server makes the imageAn image tool

For visuals, the design skill holds the brand look and an image tool does the drawing, for example DesignerBox’s MCP server for product photos and ads. For the post-writing skills, start from your written brand social media guidelines, because a skill can only follow rules that exist on paper.

Keep the agents few. Anthropic warns that agent descriptions take up context: when the combined descriptions of your own subagents pass 15,000 tokens, Claude Code shows a warning at startup. Five clear agents beat fifteen overlapping ones, because Claude picks an agent by its description, and two similar descriptions make the choice a coin toss.

Claude Code: Build Your Full AI Marketing Team (Agents + Claude Skills), a video by Grace Leung
Claude Code: Build Your Full AI Marketing Team (Agents + Claude Skills)Grace Leung on YouTube · 17:35

How do you create a marketing subagent?

Ask Claude Code to write one, or create the file yourself in .claude/agents/. Only two fields are required: name and description. Add a tools list to limit what the agent can touch and a model to choose its cost. Claude Code notices a new or changed file within a few seconds, with no restart.

A post reviewer that can read but never edit or publish:

---
name: post-reviewer
description: Reviews social media drafts before they are scheduled. Use after any post is written, before it goes to the calendar.
tools: Read, Grep
model: sonnet
---
You review social media drafts for a brand. You get only the draft and
the file brand/voice.md. You never see the brief.

For each draft, answer:
1. What would a stranger think this post is about after one read?
2. Which claim has no source in the draft or in brand/facts.md?
3. Which line breaks a rule in brand/voice.md?

End with PASS or FAIL and one line on the biggest problem.

Three details in that file matter more than the wording. The tool list has no Write and no scheduler, so the reviewer cannot change or post anything. It reads the draft without the brief, so it judges what a reader will see, not what the writer meant. And it runs on a cheaper model, which is fine for a reading job.

Older guides tell you to type /agents to open a creation wizard. Anthropic’s documentation says that wizard existed on Claude Code v2.1.197 and earlier. On current versions, /agents prints a reminder to ask Claude or edit the folders directly. The frontmatter also has a skills field that loads a skill’s full text into the agent at start, so a writer agent can carry your post-writing skill with it.

How do you write a marketing skill?

Create a folder in .claude/skills/ with a SKILL.md file inside. The top of the file has a description that tells Claude when to use it. The body holds the steps. The folder name becomes the command, so .claude/skills/linkedin-post/ runs with /linkedin-post, and Claude also starts it on its own when your request matches the description.

---
description: Writes a LinkedIn post from a source file. Use when asked for a LinkedIn post, a launch post or a recap.
---
1. Read the source file the user names, then brand/voice.md and brand/facts.md.
2. Write one post: the point in the first line, under 1,300 characters,
   one ask at the end, no hashtags in the body.
3. Use only numbers that appear in the source or in brand/facts.md.
4. Save it to drafts/linkedin/<date>-<slug>.md.
5. Hand the file to the post-reviewer agent. Fix what it flags once.

Skills can also hold scripts and templates next to SKILL.md. A carousel skill can keep the slide template in the same folder, and a report skill can keep the script that reads your analytics export. The script does the same thing every time, which a prompt cannot promise.

One trap for teams: personal skills in ~/.claude/skills/ do not load in Cowork or in cloud sessions, including cloud scheduled tasks. Anthropic’s docs say a cloud task reports the skill as not found. Put the skills a scheduled job needs in the project’s .claude/skills/ and commit them.

Why does each agent need a check it cannot pass by itself?

Because an agent that builds something also passes it. We run a Claude Code project as our own video studio, with 5 project agents, 3 commands, 6 skills and 3 hooks. Its lessons file records an independent review agent failing 14 of 15 delivered Shorts. The builder had already checked those frames and passed them.

A marketing agent team that checks itself: a skill writes the draft, a review agent reads it cold without the brief, highlighted, a script blocks rule breaks, the draft is saved, and a person approves it.

Two days earlier the same pattern showed up in a second form: a frame review on 10 “finished” reels found 6 real defects, and the builder’s own quick read had passed 4 of them. Neither failure came from a weak model. Both came from asking the same context to make a thing and judge it.

So the studio’s agents each do one check on one thing, and each gets only what its definition allows. Its operating manual puts it in one line: “an agent handed your conclusion returns it.” The script judge gets the script and a scoring rubric, never the brief. The “stranger reader” gets only the words on screen and says what a stranger understood. A script fails if any one of six scores is under 4 out of 5, and the writer never scores its own work.

The second lesson is that a rule in a file is not a check. The studio’s manual says a rule there is one sentence plus the tool or file that enforces it, and marks the rules that have no check yet. Its script checker exists because the same mistake shipped four times in one week, each time after the lesson was already written down. For a marketing team, the cheap version is a hook or a script that fails a draft with a banned word, a missing source or a link to the wrong page, before any person reads it.

The third lesson is about shared files. Three sessions edited the same project in one night, so the studio added a claims file. Each session writes which files it is changing and until when. A hook stops the first edit of a claimed file once and shows the claim. Nothing is locked, but nobody edits a file blind. Any team with two people running Claude Code in one repo needs the same idea.

How does the team publish to social media?

Connect a scheduler as an MCP server and give one agent or skill the job of saving drafts there. With PostNext, one command adds the server: claude mcp add --transport http --scope user postnext https://mcp.postnext.io/api, then /mcp to sign in. The agent can then save drafts and schedule posts on X, Instagram, LinkedIn, TikTok and Threads.

The tools an agent team uses most, from PostNext’s MCP reference (postnext.io/mcp/docs, November 2026):

ToolWhat the agent does with itPlan
list_connected_accountsFinds which channels exist before writingEvery plan
create_post_draftSaves a post of 1 to 2,200 characters with up to 10 images or videosEvery plan
request_asset_uploadUploads an image or video from your folderEvery plan
schedule_postPuts a draft in the queue at a set timeEvery plan, counts toward monthly posts
get_best_time_to_postSuggests a time from the account’s own historyPaid plans
get_post_metricsReads likes, comments and impressions on X; likes and comments on InstagramEvery plan

Keep a person between the draft and the post. PostNext’s MCP drafts never publish on their own, so an agent team can fill a week of drafts and a person schedules or approves them in the social media calendar. On the Teams plan, posts can go through an approval step first, which fits the content approval process most brands already run by email.

Two limits to plan around. Over MCP, get_post_metrics returns engagement for X and Instagram only; LinkedIn, Threads and TikTok return the publish status and link. And the MCP server covers five networks: PostNext’s postnext-social-manager skill uses the REST API and adds YouTube and Bluesky. The full setup, with prompts, is on PostNext’s page for posting from Claude Code, and our guide to Claude Code for marketing covers turning a changelog into posts.

How much does it cost to run an AI marketing team in Claude Code?

The agents cost your Claude plan’s usage, and the scheduling costs your scheduler’s plan. Anthropic’s documentation says each subagent sends its own requests, which count toward the same usage limits as your main conversation. Five agents running at once all draw on that one allowance. PostNext includes MCP access on every plan.

The usage side is where AI marketing agents surprise people. In our studio’s log, three large agent runs at once, about 30 agents, used about 12 million tokens in an hour and hit the account’s 5-hour limit. The fix was not a bigger plan. It was running the request a person was waiting for first and the long sweep after, and choosing cheaper models for reading jobs with the model field.

CostWhat sets itHow to keep it down
Claude usageEvery agent’s requests, in your plan’s limitsFewer agents, model: sonnet or haiku for reading and review jobs
ContextAgent descriptions and CLAUDE.md load every sessionShort descriptions; procedures in skills, not in CLAUDE.md
Scheduler postsPostNext Free: 10 scheduled posts a month on 1 channel; paid plans: 1,000 a monthSave drafts freely, schedule only what was approved
AI creditsPostNext Free: 10 AI credits; Premium: 150 a monthLet Claude write, so PostNext credits are not needed for drafting

PostNext figures from postnext.io/pricing and postnext.io/mcp/docs, checked 26 November 2026.

What should you build first?

Build one skill and one review agent around the task you repeat most, connect the scheduler, and run it for two weeks before adding anything. For most social teams that is “write this week’s posts from one source”. Add a research agent when you start a new market, and a reporting agent when you have a month of results worth reading.

Review loop for an AI marketing team: read every draft, fix the mistake, write it as a rule in the skill or voice file, highlighted, and turn the rule into a script check if it returns twice.

A first week that works:

  1. Write brand/voice.md and brand/facts.md: your tone, banned words, and the product facts a post may state.
  2. Write one skill that turns a source file into posts for your two main networks.
  3. Write one review agent with read-only tools that never sees the brief.
  4. Add the scheduler as an MCP server and tell the skill to save drafts only.
  5. Read every draft in the calendar for two weeks. Each mistake you correct goes into the skill or the voice file as a rule.
  6. When the same mistake returns twice after a rule, turn the rule into a script check.

Step 5 is where the team gets better. Our studio keeps every correction as a dated rule in one lessons file, and that file, not the number of agents, is what changed the output. If you want the wider picture of how assistants connect to social accounts first, read our guide to the social media AI agent.

Frequently Asked Questions

What are AI marketing agents?

AI marketing agents are AI assistants with one marketing job each, such as research, writing, design or reporting. In Claude Code they are subagents: Markdown files with a role, a list of allowed tools and a model. Claude hands a task to the agent whose description matches and gets a summary back.

What is the difference between Claude Code skills and subagents?

A skill is a playbook that loads into the current conversation when it is needed. A subagent is a separate worker with its own context window, tools and permissions. Use skills for procedures and subagents for jobs that read a lot or need an independent view, such as review.

How many agents does a marketing team need in Claude Code?

Start with one or two. A writing skill plus a read-only review agent covers most weekly social work. Add a research agent and a reporting agent when those jobs appear. More agents use your usage limits faster and make Claude’s choice between similar descriptions less reliable.

Can Claude Code agents post to social media by themselves?

They can schedule posts when a scheduler is connected as an MCP server. With PostNext, agents save drafts and can schedule them on X, Instagram, LinkedIn, TikTok and Threads. Drafts never publish on their own, so a person can approve every post first.

Do Claude Code subagents cost extra?

There is no separate fee, but each subagent’s requests count toward the same usage limits as your main conversation. Several agents at once use the allowance faster. Setting a cheaper model in an agent’s model field lowers the cost of reading and review jobs.

Do I need to code to build an AI marketing team in Claude Code?

No. Agents and skills are Markdown files written in plain sentences, and Claude Code can write them for you when you describe the job. You need to be comfortable with folders and a terminal. Claude Code needs a paid Claude plan or a Console account.

Sources

  • Anthropic, Create custom subagents (checked 26 November 2026): context windows, frontmatter fields, the 15,000-token description warning, /agents on v2.1.197 and earlier, usage limits.
  • Anthropic, Extend Claude with skills (checked 26 November 2026): SKILL.md, skill locations, loading only when used, skills in Cowork and cloud sessions.
  • Anthropic, How Claude remembers your project (checked 26 November 2026): CLAUDE.md.
  • PostNext, Post to social media from Claude Code and the MCP tool reference at postnext.io/mcp/docs (checked 26 November 2026): command, channels, tools, plan rules.
  • PostNext pricing, postnext.io/pricing (checked 26 November 2026).
  • Our Claude Code video studio: operating manual, agent definitions and lessons file (entries dated October and November 2026).

Chris

Head of Content at PostNext

Chris leads content and oversees development across the services this blog covers. The guides and tool comparisons here come out of the same decisions that shape what ships.

Follow along on Instagram at @postnextio for campaign breakdowns.

Your next week of posts, scheduled today

Write them yourself or ask your AI. PostNext publishes each post at the time you pick.

Plan, write and schedule your posts, with AI help when you want it.Plan and schedule your posts.