Use cases · Codex

Content creation with Codex: writing skills, drafts and site copy

Codex is a coding agent, but writing in a repository is the same kind of work: read the sources, draft a file, revise it on feedback. A voice in AGENTS.md and a writing skill or two turn it into a steady drafter of posts, docs and site copy. This page covers the setup, the rules and how to batch drafts with codex exec with nothing going out unreviewed.

What Codex does for content creation

  • Drafts blog posts and guides from your notes, sources and past posts, in your voice.
  • Writes landing page and docs copy straight into the site's repository, with a pull request to review.
  • Turns one post into a draft for each social channel.
  • Updates old posts when the facts change, and checks every claim against a source.

Codex features for content creation

FeatureWhat it doesHow to start
AGENTS.mdYour voice and rules, read before every taskAdd a writing section at the repository root
SkillsThe steps for each kind of piece, in .agents/skills/<name>/SKILL.mdInstall them with the skills CLI or write your own
Web searchLive browsing for research; cached results by defaultcodex --search
Scheduled tasksA weekly draft from the ChatGPT desktop app or the webCreate it in Scheduled

How to set up Codex for content creation

  1. Connect the tools

    Install the skills you want and start Codex with live search when a piece needs research. Keep drafts, sources and published posts in one repository so Codex can read them all.

    # Open-source marketing and writing skills
    npx skills add ummydev/marketing-team-skills
    
    # Live web search for research
    codex --search
  2. Write the rules in AGENTS.md

    Codex reads AGENTS.md before any work: ~/.codex/AGENTS.md, then the files from the repository root down to the folder it's working in. Put the job's rules there, or in a skill under .agents/skills/ if they're long. See the AGENTS.md guide.

    ## Writing rules
    - Voice: plain and specific. Short sentences, no hype words,
      no emoji in headlines.
    - Every claim needs a source or our own number; link it.
    - Drafts go in drafts/ with the sources at the bottom.
      Never publish, post or schedule anything yourself.
    - One post becomes a LinkedIn draft, an X thread draft and a
      newsletter paragraph, each in its own file.
  3. Run it without the interactive interface

    codex exec runs one task and exits. Progress goes to stderr and the final message to stdout; -o also writes it to a file and --json streams events. The sandbox is read-only unless you pass --sandbox workspace-write.

    # Draft each post in the list, one file each
    codex exec --sandbox workspace-write \
      "Draft every post listed in briefs/this-week.md, following AGENTS.md"
  4. Put it on a schedule

    Create a scheduled task in the ChatGPT desktop app or on the web (the CLI doesn't manage them), or run codex exec from cron. See how to make Codex proactive.

Source: Codex documentation

Limits and safety

  • It drafts; people publish. Keep posting and sending behind an approval.
  • It doesn't know your customers. Give it your positioning, real quotes and the past posts that worked.
  • Social networks can limit or ban accounts that move too fast. Have it draft locally and let a person post.
  • Codex sandboxes commands by default: writes stay in the workspace and the network is off. Keep danger-full-access for an isolated runner or container.

Claude Code or Codex for content creation?

The rules carry over. Write them once in AGENTS.md and put @AGENTS.md in CLAUDE.md, and both agents read the same file.

Step by step for the other agent: content creation with Claude Code.

Claude CodeCodex
Rules fileCLAUDE.mdAGENTS.md
Connect toolsclaude mcp addcodex mcp add or config.toml
Run without youclaude -pcodex exec
Schedule/schedule, desktop scheduled tasks, /loopScheduled tasks in the ChatGPT app, cron
Built in for content creationSkills, /loop, /scheduleSkills, live web search
With Crewmark

Make content creation someone's job

Commands run when someone remembers to run them. Crewmark turns your own Codex into an AI employee with a role, a goal in numbers, working hours and a heartbeat, so the work happens on schedule and shows up on a board.

  1. Start from the role

    The AI marketing agent, with these rules in its brief.

  2. Put the work on its board

    Add the job as a recurring issue. The employee wakes on its heartbeat, does it and reports in a comment.

  3. Related

    Claude Code for marketing covers every marketing job, and the weekly competitor digest is a ready brief.

FAQ

Can Codex write blog posts?

Yes. It drafts posts and copy as files in your repository from your notes and sources, following the voice in AGENTS.md. Review every draft before it's published.

Are there writing skills for Codex?

Yes. Codex reads skills from .agents/skills, and npx skills add installs Crewmark's open-source Marketing Team Skills into Codex as well as Claude Code.

Can Codex research a topic on the web?

Yes. Start it with codex --search for live web search; without it, search uses cached results.

Checked against Claude Code's and OpenAI's Codex documentation on November 13, 2026.

Hand content creation to an AI employee on Codex.

Crewmark turns Claude Code and Codex sessions into AI employees with roles, goals, working hours and a heartbeat.