Payload agent skill

The official Payload CMS skill shipped inside the package: collections, fields, hooks, access control, queries and database adapters

  • 45,565 ★ on the repository
  • Last commit
  • MIT
Skill

Minimal access

Why this level

  • The skill consists of instructions and references
All reasons and checks

payloadcms/payload

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add skills/payload-agent-skill

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Minimal accessThe tool runs nothing and makes no network calls.

  • The skill consists of instructions and references

This is third-party code. Review the repository files before installing.

What it does

The skill lives inside the payload npm package, so its content matches the installed version. SKILL.md opens with a table of common tasks linking to reference files, and the agent opens only the one it needs. References cover collections with auth, uploads and drafts, all field types, hooks, access control down to row-level security, the Local API, REST and GraphQL, MongoDB, Postgres and SQLite adapters, custom endpoints, plugin development, the jobs queue and localization. The skill also helps debug validation, relationship and transaction errors.

Who it is for. For developers building sites and backends on Payload CMS and Next.js with an agent.

Good fit when

  • You need to add collections, fields or hooks to a Payload project
  • You need access control that does not leak data through the Local API
  • You need to debug a validation error or a relationship query

Not a fit when

  • The project uses another CMS
  • You need guidance for a Payload version other than the installed one

Example request

Add a Payload posts collection with drafts and edit access limited to the author

Limitations

SKILL.md costs about 8,000 tokens when opened; references load on demand. The Claude Code plugin tracks main rather than the installed version, so do not enable it alongside the node_modules pointer.

How to disable. Remove the skill reference from AGENTS.md or uninstall the payload plugin via /plugin.

FAQ

Do I need to install anything in a new project?

No, create-payload-app sets up the skill automatically; skip it with --no-agent.

When do I need the plugin?

Only if you contribute to Payload itself or want guidance for unreleased changes.

Discussion

No questions or reviews yet.

Skills

Scalar API Reference skill for agents

Scalar API Reference skill

Official

A skill that adds a Scalar reference to an app from its OpenAPI description: integrations, authentication, themes, migration from Swagger UI

SkillMinimal access16.3KRepository stars

Better Auth skills

Better Auth Skills

Official Better Auth skills: scaffold authentication in JS and TS projects and guide a secure setup

SkillExtended access227Repository stars
Editors’ pick

Supabase's official skills: help an agent work with the database, Auth, Edge Functions and Postgres best practices

SkillMinimal access2.9KRepository stars
Editors’ pick

The official FastAPI skill, bundled with the package, teaching agents to write code for the installed version

SkillMinimal access104.3KRepository stars
Editors’ pick

Official skills and agents from the .NET team: performance, MSBuild, NuGet, upgrades, testing, ASP.NET Core, Blazor and MAUI

PluginExtended access5.8KRepository stars

The official Prisma 8 skill installed from your project's packages: data contract, migrations, queries and version upgrades

SkillExtended access47.7KRepository stars

README in short

Payload is an open Next.js framework with an admin panel and a TypeScript backend that works as a headless CMS. The main README covers starting with create-payload-app and templates, while the AI Tooling docs page explains that the skill ships in the package and is wired through AGENTS.md. The same page covers the Claude Code plugin from the repository's marketplace. MIT licensed.

README badge

Original SKILL.md

---
name: payload
description: Use when working with Payload projects (payload.config.ts, collections, fields, hooks, access control, Payload API). Use when debugging validation errors, security issues, relationship queries, transactions, or hook behavior.
---

# Payload Application Development

Payload is a Next.js native CMS with TypeScript-first architecture, providing admin panel, database management, REST/GraphQL APIs, authentication, and file storage.

## Quick Reference

| Task | Solution | Details |
| --- | --- | --- |
| Auto-generate slugs | `{ type: 'slug', useAsSlug: 'title' }` | [FIELDS.md#slug-field](reference/FIELDS.md#slug-field) |
| Restrict content by user | Access control with query | [ACCESS-CONTROL.md#row-level-security-with-complex-queries](reference/ACCESS-CONTROL.md#row-level-security-with-complex-queries) |
| Local API user ops | `user` + `overrideAccess: false` | [QUERIES.md#access-control-in-local-api](reference/QUERIES.md#access-control-in-local-api) |
| Draft/publish workflow | `versions: { drafts: true }` | [COLLECTIONS.md#versioning--drafts](reference/COLLECTIONS.md#versioning--drafts) |
| Computed fields | `virtual: true` with **field-level** `hooks.afterRead` returning the value | [FIELDS.md#virtual-fields](reference/FIELDS.md#virtual-fields) |
| Document titles | Stored top-level field in `admin.useAsTitle` | [COLLECTIONS.md#useastitle](reference/COLLECTIONS.md#useastitle) |
| Conditional fields | `admin.condition` | [FIELDS.md#conditional-fields](reference/FIELDS.md#conditional-fields) |
| Custom field validation | `validate` function | [FIELDS.md#validation](reference/FIELDS.md#validation) |
| Filter relationship list | `filterOptions` on field | [FIELDS.md#relationship](reference/FIELDS.md#relationship) |

Report a problem

Foxx AIPayload agent skill
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.