RamezHany

payload cms skills

by RamezHany
Testing & developer experience
v?
MIT

Overview

Summary generated from the README

A library of Agent Skills in the SKILL.md format for coding agents such as Cursor, Claude Code, Codex, OpenCode and Gemini CLI. Each skill is an ordered procedure for building Payload 3 and Next.js sites, covering bootstrap, live preview, media, SEO, auth, forms, payments, testing and Vercel deployment. It installs through the skills CLI and includes a local MCP server that exposes the skills. It assumes a free-tier-first stack with Turso and Vercel.

Features

  • Kickoff skill that reads a brief, plans phases and routes work to other skills
  • Skills for bootstrap, live preview, media uploads, SEO, localization and RBAC
  • Guardrails for scope, shell use, loop breaking and unattended runs
  • Skills for forms, bookings and payments, and integrations such as Resend
  • Testing and Vercel deployment skills covering migrations, env vars and cron
  • Local stdio MCP server with list_skills, read_skill and read_reference tools

Use cases

  • Guide an AI coding agent to scaffold a Payload 3 and Next.js site from the official template
  • Keep unattended agent runs bounded with shared guardrails and a phased plan
  • Standardize live preview, direct uploads and Vercel deployment across client projects

From the author

Agent Skills for building Payload CMS + Next.js websites on a free-tier-first stack.

Installation

npm i payload-cms-skills

0

Stars

0

Forks

6

Open Issues

Yesterday

Last Updated

0

Weekly Downloads

v

npm Version

Dependencies

GitHub stars

00 since Nov 15

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20260
Dec 5, 20260
Dec 4, 20260
Dec 3, 20260
Dec 2, 20260
Dec 1, 20260
Nov 30, 20260
Nov 29, 20260
Nov 28, 20260
Nov 27, 20260
Nov 26, 20260
Nov 25, 20260
Nov 24, 20260
Nov 23, 20260
Nov 22, 20260
Nov 21, 20260
Nov 20, 20260
Nov 19, 20260
Nov 18, 20260
Nov 17, 20260
Nov 16, 20260
Nov 15, 20260
npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

Each point is npm's rolling 7-day download count.

Health Score

25/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1465291821-root.svg)](https://payloaddirectory.dev/plugins/1465291821-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1465291821-root"><img src="https://payloaddirectory.dev/badge/1465291821-root.svg" alt="Payload Directory"></a>
Updated Dec 4, 2026Created Nov 20, 2026

README

Payload CMS Skills — Agent Skills that make coding agents build Payload CMS 3 and Next.js websites the same way every time.

GitHub Sponsors

Payload CMS Skills

Agent Skills that make coding agents build Payload CMS 3 + Next.js websites the same way every time: started from the official template, with working live preview and saves, uploads that go straight from the browser, and guardrails for unattended runs.

The skills follow the open Agent Skills format. They work in Cursor, Claude Code, Codex, OpenCode, Gemini CLI, and any other agent that reads SKILL.md files, regardless of which model runs them.

Documentation, including the phase list, is published at https://ramezhany.github.io/payload-cms-skills/.

Why this exists

Generic agents building Payload sites tend to:

  • scaffold from scratch instead of using the official template, then drift from Payload conventions
  • implement live preview client-side only, which breaks drafts, locales, and caching
  • fail saves on SQLite or in production because of transaction settings, missing migrations, or uploads that pass through a 4.5 MB serverless body limit
  • loop for hours in unattended mode, rerun the same failing command, and write throwaway scripts that wander the machine

Each skill here is a short, ordered procedure with explicit file paths, verified snippets, decision tables, and a "Done when" checklist. Agents load only the skills a task needs, which keeps token use low.

Install

npx skills add RamezHany/payload-cms-skills

This installs every skill into the agent folders you pick. To install a single skill:

npx skills add RamezHany/payload-cms-skills --skill payload-live-preview

Manual install and per-tool paths are in docs/INSTALL.md.

Use

Open the project and tell your agent:

Use the payload-project-kickoff skill. The brief is in PROJECT.md.

The kickoff skill loads the guardrails, detects the scenario (new site, backend for an existing frontend, feature, or fix), writes a phased plan into PROJECT.md, and routes each phase to the right skill.

Two defaults ship with every build. A quiet footer signature — the credit text Developed by Ramez Hany linking to https://ramez-hany.com, with an optional logo that stays empty unless the user adds one — is seeded by payload-seo-geo in phase 4 after site-settings exists; at first setup the agent tells the user they may replace the name and link once. Before delivery, the payload-testing skill runs an 11-item final presence checklist; a missing item is fixed to its owning skill's spec or asked for, never marked done.

Phases

The kickoff skill writes these into PROJECT.md and works on one phase at a time. Skip a phase the brief does not need. Keep this order.

A Figma URL adds a design handoff before phase 1. Motion, 3D, or a copied component adds the creative frontend step after that handoff and before bootstrap.

Written. Every phase in this table has its skill in this repository. Design, Creative, and phases 1 through 8 are available to install.

Still open. Payload 4, after it is stable. That is library work, not a client-site phase. Skills stay on Payload 3.x until the migration issue is closed. On a client site, the phases below still start unchecked in PROJECT.md.

PhaseIn this repoWorkSkills
DesignWrittenOnly when the brief has a Figma filefigma-handoff
CreativeWrittenOnly when the design needs motion, 3D, or a copied componentcreative-frontend
1WrittenFolder layout, and a refactor when the frontend already existsproject-architecture
2WrittenApp shell and data modelpayload-bootstrap
3WrittenRoles, admin brand, languagespayload-auth-rbac, payload-admin-branding, payload-localization
4WrittenPreview, media, SEO, legal pagespayload-live-preview, payload-media, payload-seo-geo, payload-legal-trust
5WrittenForms, bookings, integrations, client MCPpayload-forms-crm, payload-bookings-payments, payload-integrations, payload-mcp
6WrittenCache cost and speedpayload-performance
7WrittenSave, preview, and invalidation checkspayload-testing
8WrittenVercel, migrations, env, cronpayload-deploy-vercel

The same checklist is what the project pack writes into PROJECT.md.

Skills

SkillUse it for
payload-project-kickoffEntry point: reads the brief, detects the scenario, plans phases, routes to skills
agent-guardrailsHard rules for scope, shell use, loop breaking, secrets, and unattended runs
project-architectureCanonical folder layout, code conventions, refactor-first playbook for existing frontends
figma-handoffFigma frames mapped onto locale routes, tokens in the existing theme
creative-frontendFree motion, 3D, and copied components after a license check
payload-bootstrapNew project from the official template, or Payload added to an existing Next.js app
payload-admin-brandingAdmin panel that matches the site brand with minimal, upgrade-safe CSS
payload-localizationContent locales, RTL, admin language that follows the content locale, localized routes
payload-live-previewServer-side live preview with drafts, autosave, locales, and cache bypass
payload-mediaDirect browser uploads (Cloudinary, R2, S3), in-browser WebP optimization, Mux video
payload-seo-geoSEO, AEO, GEO: metadata, JSON-LD, sitemap, /llms.txt, Summarize with AI links
payload-legal-trustAdmin-editable policy pages, trust center, cookie consent, GDPR badge
payload-forms-crmFrontend forms (React Hook Form + Zod), leads collection, simple CRM, CSV export
payload-bookings-paymentsConsultation booking with Paymob, Stripe, PayPal, or Tap, plus Google Calendar. Kashier and Fawry are documented but not verified
payload-integrationsResend, Mailgun, Google Sheets, Drive, Search Console, Turnstile
payload-mcpOptional MCP endpoint tuned for Vercel limits
payload-auth-rbacMultiple admins, roles, field-level access, safe defaults
payload-performanceCaching and revalidation, bundle size, images, lazy loading, Core Web Vitals
payload-testingSave-and-persist tests, live preview tests, save-failure diagnosis
payload-deploy-vercelVercel Hobby limits, migrations in CI, env vars, cron, Turso

These skills sit on top of the official Payload skill, which covers the full Payload API. The kickoff skill makes sure it is installed in the project, version-matched to Payload 3.

Default stack

ConcernChoice
FrameworkNext.js (latest stable, App Router) + Payload 3.x + Tailwind CSS
DatabaselibSQL / Turso through @payloadcms/db-sqlite
HostingVercel (Hobby limits respected)
ImagesCloudinary, or Cloudflare R2 / S3, uploaded directly from the browser
VideoMux (alternatives: Vimeo, unlisted YouTube)
EmailResend, or Mailgun over SMTP
Client dataTanStack Query
FormsReact Hook Form + Zod
PaymentsPaymob, Stripe, PayPal, Tap (Kashier and Fawry are not verified)

Exact verified versions live in versions.json. A weekly workflow opens an issue when upstream versions drift.

Mixing models

The skills are written so that smaller and cheaper models can follow them step by step. A setup that works well:

RoleExample models
Design in FigmaMuse, Gemini
Build featuresGemini, Claude, Grok
Small scoped tasksDeepSeek, Xiaomi MiMo, OpenCode Big Pickle
ReviewClaude, Opus

See skills/payload-project-kickoff/references/model-roles.md.

Repository layout

skills/            one folder per skill (SKILL.md + references/ + assets/)
project-pack/      static brief form (no server)
scripts/           validator, upstream check, and the library MCP server
docs/              GitHub Pages site (index.html) plus architecture, install, roadmap, versions
.github/           CI workflows, issue and pull request templates
versions.json      verified package versions

Project pack

Open project-pack/index.html in a browser. It downloads PROJECT.md, AGENTS.md, and skills-install.txt. Nothing is uploaded. Details are in project-pack/README.md.

Library MCP

This is a local stdio server for the skills in this repository. It is not the Payload MCP plugin inside a client website (payload-mcp).

node scripts/library-mcp.mjs

Point the editor at that command with the absolute path of this clone. The server speaks newline-delimited JSON-RPC (2025-03-26 and 2024-11-05) and exposes list_skills, read_skill, and read_reference. Confirm the config file path in the current editor docs before saving it.

{
  "mcpServers": {
    "payload-cms-skills": {
      "command": "node",
      "args": ["<absolute-path-to-this-clone>/scripts/library-mcp.mjs"]
    }
  }
}

Roadmap

Payload 4 waits until it is stable. See docs/ROADMAP.md.

Contributing

Contributions are welcome. Read CONTRIBUTING.md first; run npm run validate before opening a pull request.

License

MIT. The official Payload skill that projects install separately is MIT-licensed by Payload CMS, Inc.

Similar plugins