Payloadcms

From akillness/jeo-skills · View interactive version

Payloadcms is an AI agent skill from the GitHub repository akillness/jeo-skills. Operate Payload CMS (Next.js-native headless CMS) in repo workflows: bootstrap a Payload app, configure collections/globals, run local dev + migrations, and ship safe content-model changes. Use when the request mentions Payload CMS, payload config, collection schema, admin panel, or Next.js + headle

How to use this skill

Skill file

payloadcms — Payload CMS operator

Keyword: payload, payloadcms, headless cms, payload config

When to use this skill

When not to use this skill

Instructions

Step 1) Identify the operating mode

Pick one primary mode before editing anything:

| Mode | Use when | Core output |

|---|---|---|

| Bootstrap | New install or first-time integration | working local Payload app |

| Modeling | Collection/global schema updates | reviewed model diff + migration notes |

| Runtime debug | Admin/API failing or misconfigured | root-cause + verified fix |

| Release prep | Production rollout request | risk/rollback + verification checklist |

Step 2) Preflight checks

  1. Verify runtime/toolchain in repo (node, package manager, framework layout)
  2. Locate Payload config (payload.config.*) and model files
  3. Confirm environment/secrets shape (DATABASE_URI, storage/auth keys)
  4. Inspect existing migration history before schema edits

Step 3) Execute smallest valid workflow

A. Bootstrap
B. Modeling
C. Runtime debug
D. Release prep

Step 4) Validation checklist

Examples

Example 1: Add a new collection safely

Prompt: "Add a blog-post collection to our Payload app and keep migration risk low"

Mode:
- Modeling

Expected flow:
- Locate payload config and collection directory
- Add collection schema with access defaults
- Run local checks (admin + API)
- Document migration/rollback in PR notes

Example 2: Debug broken admin panel route

Prompt: "Payload admin page fails after yesterday's schema change"

Mode:
- Runtime debug

Expected flow:
- Reproduce failure
- Isolate misconfigured field/access/env issue
- Apply minimal fix
- Verify admin loads and affected API endpoint works

Best practices

  1. Keep model changes small and auditable per PR
  2. Never merge schema changes without migration + rollback notes
  3. Validate both admin UI and API surface for touched models
  4. Prefer explicit access rules over implicit defaults
  5. Treat environment binding and adapter configuration as first-class checks

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.