Skip to content
agents.store
devcms

payloadcms-dev

PayloadCMS dev plugin for Agents Store. Covers collections, fields, globals, hooks, access control, authentication, queries, data management (trash/query presets/folders), localization, adapters, Lexical rich text, admin customization, jobs queue, plugin development, official plugins, Next.js integration, deployment, CLI, migrations, and end-to-end scenarios for TypeScript developers building with Payload v3.

v1.5.1Updated

  • payloadcms
  • payload
  • cms
  • headless-cms
  • nextjs
  • typescript
  • lexical
  • mongodb
  • postgres
  • sqlite
  • localization
  • authentication
  • deployment
  • plugins
  • dev
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install payloadcms-dev@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (23)

  • access-control

    This skill should be used when the user asks about "Payload access control", "RBAC in Payload", "row-level security", "isAdmin function", "field access control", "global access control", "overrideAccess", "multi-tenant Payload", "filter by user role", "Payload Access function", or needs to decide who can create/read/update/delete documents.

  • adapters

    This skill should be used when the user asks about "Payload database adapter", "Postgres in Payload", "MongoDB Payload setup", "SQLite Payload", "S3 storage adapter", "Cloudflare R2 Payload", "Vercel Blob upload", "Payload email Resend", "Payload Nodemailer SMTP", "Payload transactions", or needs to wire Payload to a database, file storage, or email provider.

  • admin-customization

    This skill should be used when the user asks to "customize the Payload admin panel", "swap in a custom React component", "build a custom field component", "create a custom admin view", "add a dashboard widget", "use useField/useForm", "change the admin logo or nav", "enable document locking", or "customize admin CSS" in PayloadCMS v3.

  • api-reference

    This skill should be used when the user asks for "PayloadCMS REST endpoint", "Payload curl example", "Payload GraphQL query syntax", "Payload Local API method signature", "Payload login endpoint", "Payload auth headers", or needs the exact HTTP/method signature for a Payload API call.

  • authentication

    This skill should be used when the user asks to "add login to Payload", "set up OAuth/SSO", "write a custom auth strategy", "use API keys", "configure auth cookies", "customize verification emails", "refresh a JWT", or "handle forgot-password" — anything about Payload v3 authentication strategies, operations, or auth emails beyond the basics covered in collections.

  • cli-recipes

    This skill should be used when the user asks about "payload migrate", "payload generate:types", "payload generate:importmap", "payload migrate:create", "payload migrate:down", "payload migrate:reset", "payload migrate:refresh", "payload migrate:status", "payload run", "payload jobs:run", "generate:db-schema", "Payload CLI commands", or needs to run the Payload command-line tool for schema migrations, codegen, one-off scripts, or job processing.

  • cms-migration

    This skill should be used when the user asks to "migrate WordPress to Payload", "move content from Contentful to Payload", "import Strapi data into Payload", "migrate Sanity to PayloadCMS", "Webflow CMS to Payload", "design Payload collections from CMS export", or needs a structured workflow for moving content from another CMS into Payload.

  • collections

    This skill should be used when the user asks to "create a Payload collection", "define a CollectionConfig", "set up an auth collection", "build an upload collection", "add drafts/versions", "configure admin panel for a collection", "enable live preview", "set defaultColumns", or needs to model any content type in PayloadCMS v3.

  • data-management

    This skill should be used when the user asks to "enable soft delete in Payload", "trash and restore documents", "recover a deleted record", "set up query presets", "save and share list filters", "organize documents in folders", "group documents by a field", "use admin.groupBy", or wants the recent v3 data-management features (Trash, Query Presets, Folders, Group By).

  • deployment

    This skill should be used when the user asks to "deploy Payload to production", "deploy Payload to Vercel", "dockerize a Payload app", "build without a database connection", "add rate limiting", "prevent API abuse", "optimize Payload performance", or "configure serverless database connections". Covers the production build, Vercel and Docker/Node self-host targets, building without a live DB, locking down REST/GraphQL, and query performance.

  • examples

    This skill should be used when the user asks "show me a complete Payload example", "give me a working Payload blog", "Payload ecommerce example", "Payload auth-only API example", "Payload jobs worker example", "Payload multi-tenant example", or wants end-to-end scenario walkthroughs instead of isolated snippets.

  • fields

    This skill should be used when the user asks about "Payload field types", "add a relationship field", "blocks field", "array field", "rich text field", "upload field", "virtual field", "conditional fields", "field validation", "join field", "point/geolocation field", "slug field helper", or needs to design any field inside a PayloadCMS collection or global.

  • globals

    This skill should be used when the user asks to "create a Payload global", "add site settings", "build a header/footer global", "define a GlobalConfig", "set global access control", "add hooks to a global", "fetch a global with the Local API", or needs to model any single-instance configuration (nav, homepage, announcement banner) in PayloadCMS v3.

  • hooks

    This skill should be used when the user asks about "Payload hooks", "beforeChange", "afterChange", "afterRead", "beforeDelete", "field hooks", "global hooks", "prevent hook loops", "Next.js revalidation in Payload", "transaction safe hooks", "auto-set author from req.user", or needs to wire up lifecycle automation in PayloadCMS.

  • jobs-queue

    This skill should be used when the user asks about "Payload jobs queue", "Payload background tasks", "Payload workflows", "Payload cron scheduling", "Payload task retries", "Payload runJobs", "Payload autoRun", "queue a job in Payload", or needs to run any background or scheduled work in PayloadCMS.

  • lexical-editor

    This skill should be used when the user asks about "Payload rich text", "Lexical editor in Payload", "custom Lexical feature", "richText blocks", "richText link/upload/relationship", "custom Lexical node", "render Payload Lexical to JSX", "convert Lexical to HTML", or needs to customize the editor inside `richText` fields.

  • localization

    This skill should be used when the user asks to "add localization to Payload", "translate content into multiple languages", "configure locales", "make a field localized", "set a fallback locale", "internationalize the admin UI", "query a specific locale", or "add a language to the admin panel" in PayloadCMS v3.

  • nextjs-integration

    This skill should be used when the user asks about "Payload with Next.js", "getPayload in server component", "Payload App Router", "Payload route groups", "Payload live preview Next.js", "revalidate Payload page", "Payload server actions", "Payload draft mode", "Payload Next.js cache", or needs to wire PayloadCMS into a Next.js 15/16 App Router frontend.

  • official-plugins

    This skill should be used when the user asks to "add the SEO plugin", "use plugin-form-builder", "set up multi-tenant", "add full-text search", "integrate Stripe", "add redirects", "configure the Payload Sentry plugin", "import/export data", "use the Payload MCP plugin", or "which official Payload plugin should I use" — installing and configuring the official @payloadcms/plugin-* packages in PayloadCMS v3.

  • plugin-development

    This skill should be used when the user asks to "build a Payload plugin", "create payload-plugin package", "write a Payload plugin from scratch", "add fields via plugin", "preserve hooks in plugin", "publish payload-plugin to npm", "plugin architecture in Payload", or needs to author or maintain a reusable PayloadCMS plugin.

  • queries

    This skill should be used when the user asks about "Payload Local API", "payload.find", "payload.findByID", "where query", "Payload query operators", "depth and populate", "filter Payload by relationship", "sort and paginate Payload results", "Payload REST API query string", "GraphQL queries", or needs to read or write data with Payload.

  • setup

    This skill should be used when the user asks to "install PayloadCMS", "create a Payload project", "set up Payload v3", "scaffold Payload app", "initialize Payload with Next.js", "pick a Payload database adapter", "configure payload.config.ts", or needs to bootstrap a fresh Payload project from zero to a running admin panel.

  • troubleshoot

    This skill should be used when the user asks about "Payload error", "Payload not working", "Payload TypeError", "access bypass in Local API", "Payload hook infinite loop", "Payload transaction rollback", "Cannot find module payload", "Payload import map missing", "Payload type generation fails", "Could not resolve component", or sees a stack trace from Payload they want decoded.

Commands (1)

  • scaffold

    Scaffold a fresh PayloadCMS v3 project with create-payload-app, walking through database adapter, template, and package manager choices.

Agents (1)

  • payloadcms-developer

    Use this agent when the user is actively building, debugging, or extending a PayloadCMS v3 project — designing collections and fields, wiring hooks and access control, integrating Payload with Next.js, building third-party Payload plugins, migrating from another CMS, or troubleshooting a Payload error. <example> Context: The user is starting a new Payload-backed project. user: "Help me design collections for a SaaS that has projects, project members, and timesheet entries." assistant: "I'll use the payloadcms-developer agent to design the data model end-to-end." <commentary>This is multi-collection schema design with access control implications — the developer agent loads the right Payload skills and proposes a typed, tenant-aware design.</commentary> </example> <example> Context: A hook is misbehaving in production. user: "My afterChange hook keeps firing in a loop and exhausting DB connections." assistant: "Let me use the payloadcms-developer agent to diagnose the loop and apply the context-flag pattern." <commentary>The agent invokes the troubleshoot and hooks skills, then proposes a targeted fix with the req.context guard pattern.</commentary> </example> <example> Context: The user is authoring a reusable Payload plugin. user: "I want to publish a payload-plugin-sentry package that adds error reporting to every collection's afterError hook." assistant: "I'll use the payloadcms-developer agent — this needs the plugin-development conventions and the right (options) => (config) pattern." <commentary>Plugin authoring has specific structural rules (SWC build, multi-export entrypoints, hook-array preservation) that the agent enforces via the plugin-development skill.</commentary> </example>

README

Developer plugin for PayloadCMS v3. Packages Payload knowledge — collections, fields, globals, hooks, access control, authentication, queries, data management (trash/presets/folders), localization, adapters, Lexical, admin customization, jobs queue, plugin development, official plugins, Next.js integration, deployment, CLI, migrations, and end-to-end scenarios — so Claude Code can build with Payload confidently in any session.

What's Inside

23 Skills

SkillWhen Claude triggers it
setupInitial scaffolding, payload.config.ts, DB adapter selection, type generation.
collectionsDesigning CollectionConfig — slug, admin, auth, upload, versions, drafts, live preview.
fieldsAll field types, validation, virtual, conditional, blocks, join, with reference catalog.
globalsGlobalConfig for site settings, header/footer, nav — access, hooks, versions, findGlobal/updateGlobal.
hooksCollection/field/global hooks, context flag, req threading, Next.js revalidation.
access-controlCollection/field/global access, RBAC, row-level Where filters, multi-tenant patterns.
authenticationCookie/JWT/API-key/custom (OAuth/SSO) strategies, auth operations, verification & forgot-password emails.
queriesOperators, depth, populate, sort, AND/OR, Local/REST/GraphQL.
data-managementTrash (soft delete), Query Presets, Folders, and Group By aggregation.
localizationlocalization config, localized fields/relationships, fallback locales, locale queries, admin i18n.
adaptersPostgres / MongoDB / SQLite / D1, S3 / R2 / GCS / Azure / Vercel Blob, Resend / Nodemailer + transactions.
lexical-editorRich text customization — features, blocks, links/uploads, custom nodes, JSX rendering.
admin-customizationCustom React components, custom views, dashboard widgets, admin React hooks, doc locking, CSS.
jobs-queueTasks, workflows, retries, cron schedules, declarative schedule, in-process autoRun, external triggers.
nextjs-integrationApp Router fetch, route groups, draft mode, live preview, ISR + revalidation, server actions.
plugin-developmentAuthoring payload-plugin-* packages: SWC build, hook preservation, multi-entry exports.
official-pluginsInstalling & configuring @payloadcms/plugin-* — SEO, form-builder, search, stripe, multi-tenant, redirects, nested-docs, sentry, import-export, MCP.
deploymentProduction build, Vercel / Docker / self-host, building without a DB, preventing API abuse, performance.
cli-recipespayload migrate, generate:types/importmap/db-schema, payload run, info, jobs:run, migrate:create/down/refresh.
troubleshootAccess bypass, hook loops, transaction breaks, type-gen failures, import-map errors.
cms-migrationConfig-first workflow: WordPress / Contentful / Strapi / Sanity / Webflow → Payload.
api-referenceLocal API method signatures, REST endpoints, GraphQL schema rules. (disable-model-invocation)
examples5 end-to-end scenarios: blog CMS, e-commerce, auth-only API, jobs worker, multi-tenant SaaS.

1 Agent

payloadcms-developer — A Payload v3 specialist. Use it for multi-step work: designing collections + access + hooks together, debugging production issues across skills, authoring third-party plugins.

1 Command

/payloadcms-dev:scaffold [project-name] — Bootstraps a new Payload v3 project. Walks the user through DB adapter, template, package manager and coding-agent skill (--no-agent by default, so the run never waits on a prompt), runs create-payload-app, then explains the generated .env and admin-first-user flow.

Installation

This plugin lives in the AGENTS.STORE public marketplace. From any Claude Code session:

/plugin install payloadcms-dev

Or add the marketplace and install:

/plugin marketplace add https://github.com/Agents-Store/claude-plugins
/plugin install payloadcms-dev@agents-store-claude-plugins

Prerequisites

Once a Payload project is created with this plugin's /scaffold command, you'll need:

  • Node.js ^22.23.5 || ^24.22.3 || >=26.13.1 (payload engines field since 3.94). Node 18 and 20 are not supported — use a current 22 or 24 LTS patch release.
  • pnpm 9+, npm 10+, yarn 4+, or bun 1+.
  • A database: PostgreSQL, MongoDB (replica set for transactions), or SQLite/libSQL.
  • Optional: object storage (S3 / R2 / Vercel Blob / Azure / UploadThing) for production uploads.
  • Optional: an email provider (Resend, SMTP-compatible service via Nodemailer).

Quick Start

Inside a Claude Code session with this plugin enabled:

/payloadcms-dev:scaffold my-payload-app

Then prompt-driven work:

  • "Help me design collections for a blog with categories, tags, and authors."
  • "Add a beforeChange hook that auto-slugifies titles."
  • "Write access control so authors only see their own drafts."
  • "Build a complete payload-plugin-cloudinary package."
  • "My afterChange hook is firing in a loop — fix it."

Each prompt triggers the relevant topic skill automatically based on quoted phrases in the user's request.

Architecture Notes

  • No .mcp.json — PayloadCMS is self-hosted per-project. No public SaaS MCP exists, and stuffing a self-hosted URL into a shared plugin wouldn't work for other users. Each developer wires their own Payload instance via pnpm dev.
  • No userConfig — Payload secrets like PAYLOAD_SECRET, DATABASE_URI, S3_*, RESEND_API_KEY belong in the project's .env, not in plugin-level config. They vary per project and per environment.
  • Knowledge-only plugin — file-based skills, an agent, and one scaffolding command. No external services, no auto-running code.
  • Targets Payload v3 (verified against 3.94.x, Nov 2026 — 3.90 and 3.93 are security releases; see authentication → "Upgrade to 3.90" and deployment). Payload 4.0 (admin redesign, hierarchies in core, framework adapters/TanStack) is published as a beta/canary pre-release — not for production; revisit the folders/data-management and admin-customization skills when 4.0 goes stable.
  • Next.js compatibility — @payloadcms/next 3.94.x requires next >=16.4.5 <17 (and React ~19.0.9 || ~19.1.10 || ~19.2.9 || ^19.3.1), or a patched 15.x line (>=15.2.9 <15.3, >=15.3.9 <15.4, >=15.4.11 <15.5); 15.5.x is not supported. Re-check with npm view @payloadcms/next@latest peerDependencies.next.
  • Breaking defaults covered since 3.89 — closed payload-jobs collection (3.89), and in 3.90: Stripe plugin rest object, API keys shown once (useAPIKey: { reveal: true }), upload hardening, Form Builder submission access, lexical 0.50 (import from @payloadcms/richtext-lexical/lexical).

Source Material & Credits

This plugin adapts MIT-licensed content from the official PayloadCMS skills repo, then expands with material drawn from payloadcms.com/docs and the llms-full.txt Payload provides for AI assistants. Adapted topics are re-organized into Agents Store's narrow-skill convention so each topic is independently triggerable.

License

This plugin's structure and original prose: AGENTS.STORE conventions. Adapted reference material from payloadcms/skills: MIT (see LICENSE upstream).

Support

  • Report skill issues or improvements: open an issue at the AGENTS.STORE marketplace repo or use /plugin-creator:feedback.
  • Payload itself: payloadcms.com / GitHub / Discord.

Related MCP connectors

  • Payload

    Third party

    Let an agent read and write the collections of your Payload app.

    Payload