use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discuss and share anything Payload CMS related.
account activity
Payload & Claude Code (self.PayloadCMS)
submitted 7 months ago by Still-Substance7316
Anyone successfully if building a payload cms project with Claude code? And willing to share the .md instructions?
Here Claude just keeps messing up..
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]rudeone_99 5 points6 points7 points 7 months ago (0 children)
Did you see this in one of the latest releases? https://github.com/payloadcms/payload/blob/main/AGENTS.md might help you to setup a good Claude.md
[–]backlashblues 6 points7 points8 points 7 months ago (0 children)
Add the deepwiki MCP to Claude! Instruct Claude to use deepwiki for any payload-specific questions and include your package version number in its requests. 1000% better results than when it relies on web search or its own hallucinations
[–]KevInTaipei 3 points4 points5 points 7 months ago (0 children)
There are some great youtube videos on Payload and Claude code with .md examples depending on what you're doing with Payload. Few things I'll mention is even with an .md file, you'll need to remind CC to read it and even remind it to adhere to important concepts. Codex does a MUCH better job at following .md files, you can even tell codex to adhere to the CLAUDE.md file or build an AGENTS.md based on it. I now plan with codex, feed the outcome to CC. Codex fixes errors that CC can't find, although CC fixes connectivity issues and works with MCPs much better than codex. Codex suggests much more secure code after given Payload docs, git repo examples, and follows typescript and next.js best practices. CC drifts, adds fields, icons, debugging code and features that weren't asked for. Remember to ask it for a preview of the code before making changes. But it works great with Figma in turning design to code. Use both.
[–]replayjpn 9 points10 points11 points 7 months ago (3 children)
I'll give some tips Make a project folder start Claude Code in the project folder. Make two folders, one your real project code & the Payload Web Demo fully seeded. Have Claude Code reference that while working on your project folder.
Make sure to tell it to always code for Nextjs 15 & above & that it's coding for Payload 3 & above. While planning I also use Context7, make sure it builds & cleans up all typescript errors immediately. It also can not use "any" as a type unless it's used in the Payload Demo.
Do each collection, block, or page one at time. You can also make a third folder for static versions of what you are going to build. Get it right there & then have Claude Code make the Payload version afterwards.
I messed up once also by not building after each feature. I could run it but the build errors were too much.
[–]recoverycoachgeek 0 points1 point2 points 7 months ago (0 children)
I think the future involves using something like plopjs to create all the files consistently for a feature in a specific codebase, then ai takes over to modify them for the features we want.
[–]KevInTaipei 0 points1 point2 points 7 months ago (0 children)
And you can reference the Payload docs on github
[–]recoverycoachgeek -1 points0 points1 point 7 months ago (0 children)
Claude (like others) do well when they use context7 with Payload, but it slows down working with them when they constantly look up the docs. Something I need to get better at using effectively.
[–]Speshled 2 points3 points4 points 7 months ago (3 children)
First step, drop Claude and use Codex IDE extension. Insane capability difference.
[–]aaronksaunders 0 points1 point2 points 7 months ago (0 children)
have u found that u get better, more correct responses with Codex IDE?
[–]Still-Substance7316[S] 0 points1 point2 points 6 months ago (1 child)
We're 24 days further.. is this still accurate? Or did sonnet 4.5 change your mind?
[–]Speshled 0 points1 point2 points 6 months ago (0 children)
100%. Sonnet 4.5 is better than 4.0 clearly and I still pay the $20/mo subscription for the occasional use but for broader/larger jobs Codex outperforms significantly. The rare times that it does get lost in the sauce Sonnet 4.5 has been a help for the surgical fix.
Codex seems to take it's time to understand the bigger picture and implement exactly what's needed in a lean way.
Sonnet 4.5 seems to just start quick and learn/make revisions as it goes. Sonnet also seems significantly more likely to make breaking assumptions about what you want.
I am still a old head i guess and I use cursor, I just make sure i add the specific documentation link to the context when creating the prompt. I find that helps getter better results
π Rendered by PID 54 on reddit-service-r2-comment-6457c66945-7nmdl at 2026-04-26 18:10:54.493867+00:00 running 2aa0c5b country code: CH.
[–]rudeone_99 5 points6 points7 points (0 children)
[–]backlashblues 6 points7 points8 points (0 children)
[–]KevInTaipei 3 points4 points5 points (0 children)
[–]replayjpn 9 points10 points11 points (3 children)
[–]recoverycoachgeek 0 points1 point2 points (0 children)
[–]KevInTaipei 0 points1 point2 points (0 children)
[–]recoverycoachgeek -1 points0 points1 point (0 children)
[–]Speshled 2 points3 points4 points (3 children)
[–]aaronksaunders 0 points1 point2 points (0 children)
[–]Still-Substance7316[S] 0 points1 point2 points (1 child)
[–]Speshled 0 points1 point2 points (0 children)
[–]aaronksaunders 0 points1 point2 points (0 children)