payload-cms

payload-cms is a skill for Claude Code from textura-agency/next16-claude-starter. It costs 101 tokens per session (1,998 once invoked), scanned A, original, Unlicense.

Instructions for adding Payload, a content management system for editing website content, to a Next.js app using Supabase for the database and file storage.

In plain words
What is it for?
Use it to install Payload, create collections based on the app’s pages, connect Supabase Postgres and Storage, generate types, and verify content reads.
Why use it?
It provides a defined installation and verification path while accounting for version compatibility, configuration, content collections, and database setup.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to install Payload, create collections based on the app’s pages, connect Supabase Postgres and Storage, generate types, and verify content reads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/textura-agency/next16-claude-starter/payload-cms
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add textura-agency/next16-claude-starter --skill payload-cms
Clone the repo
git clone --depth 1 https://github.com/textura-agency/next16-claude-starter

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for payload-cms

README.md
[![agentmods](https://agentmods.dev/badge/skills/textura-agency/next16-claude-starter/payload-cms/github.svg)](https://agentmods.dev/skills/textura-agency/next16-claude-starter/payload-cms)
Your own site
<a href="https://agentmods.dev/skills/textura-agency/next16-claude-starter/payload-cms"><img src="https://agentmods.dev/badge/skills/textura-agency/next16-claude-starter/payload-cms/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for payload-cms

Your own site · 80×15
<a href="https://agentmods.dev/skills/textura-agency/next16-claude-starter/payload-cms"><img src="https://agentmods.dev/badge/skills/textura-agency/next16-claude-starter/payload-cms.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 14
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00101 $0.01998
Opus 5 $0.00051 $0.00999
Sonnet 5 $0.00020 $0.00400
Haiku 4.5 $0.00010 $0.00200

Measured 12d ago against content hash 42ed9cb4b018, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

payload-cms scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/payload-cms/SKILL.md · 198 lines

How it starts

The opening of the file, as written. The whole thing — 198 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Payload CMS in this starter

Payload is a Next-native CMS: it installs into this app's app/ directory rather than running as a separate service. The database is Supabase Postgres (see the supabase-db skill), media goes to Supabase Storage over its S3-compatible API.

Verified against Payload 3.88.0 (2026-08). Payload 4 is in canary — do not use it here without checking the peer ranges yourself.

0. Pre-flight — three things that break the install

  1. Next.js version. @payloadcms/[email protected] peer-requires next >=16.2.6 <17. The starter is on 16.3.1, which satisfies it — but check, don't assume, since both sides move:
    node -p "require('./package.json').dependencies.next"
    npm view @payloadcms/next peerDependencies
    
    If Next is below the floor, bump it and eslint-config-next together.
  2. ESM. next.config.ts must be ESM to wrap with withPayload. This starter already uses next.config.ts with ESM syntax — check before assuming.
  3. A Supabase project must exist with both connection strings to hand. Run the supabase-db skill first if it does not.

Confirm the collection list with the user before writing any config. Derive the proposal from what the site actually renders — read src/views/** and the mock data in src/data/mocks/ and name real content types, not a generic posts.

1. Install

yarn add payload @payloadcms/next @payloadcms/db-postgres \
         @payloadcms/richtext-lexical @payloadcms/storage-s3 graphql sharp

sharp is required for image resizing. graphql is a hard peer dep even if you never use the GraphQL API.

2. src/payload.config.ts

import path from 'path'
import { fileURLToPath } from 'url'
import { buildConfig } from 'payload'
import { postgresAdapter } from '@payloadcms/db-postgres'
import { lexicalEditor } from '@payloadcms/richtext-lexical'
import { s3Storage } from '@payloadcms/storage-s3'
import sharp from 'sharp'

import { Media } from './collections/media'
import { Pages } from './collections/pages'

const dirname = path.dirname(fileURLToPath(import.meta.url))

export default buildConfig({
  admin: {
    user: 'users',
    importMap: { baseDir: path.resolve(dirname) },
  },
  collections: [Pages, Media],
  editor: lexicalEditor(),
  secret: process.env.PAYLOAD_SECRET || '',
  typescript: { outputFile: path.resolve(dirname, 'payload-types.ts') },
  db: postgresAdapter({
    pool: { connectionString: process.env.DATABASE_URL || '' },
    // Schema is pushed automatically in dev. In production this must be false —
    // ship migrations instead, or a deploy can rewrite the live schema.
    push: process.env.NODE_ENV !== 'production',
  }),
  plugins: [
    s3Storage({
      collections: { media: true },
      bucket: process.env.S3_BUCKET || '',
      config: {
        endpoint: process.env.S3_ENDPOINT,      // https://<ref>.storage.supabase.co/storage/v1/s3
        region: process.env.S3_REGION,          // e.g. eu-central-1
        forcePathStyle: true,                   // REQUIRED for Supabase
        credentials: {
          accessKeyId: process.env.S3_ACCESS_KEY_ID || '',
          secretAccessKey: process.env.S3_SECRET_ACCESS_KEY || '',
        },
      },
    }),
  ],
  sharp,
})

Read the full file on GitHub · 198 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 198 lines · 101 tokens per session scan A 42ed9cb4b018

Subscribe to this mod's changes

payload-cms is a skill published in the GitHub repository textura-agency/next16-claude-starter (117 stars, last pushed 3d ago), licensed Unlicense. It adds 101 tokens to every session and 1,998 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

azure-postgres-ts

Connect to Azure Database for PostgreSQL Flexible Server from Node.js/TypeScript using the pg (node-postgres) package. Use for PostgreSQL queries, connection pooling, transactions, and Microsoft Entra ID (passwordless) authentication. Triggers: "PostgreSQL", "postgres", "pg client", "node-postgres", "Azure PostgreSQL…

microsoft/skills · 94 tokens

butterbase

AI-native, open-source backend-as-a-service with a built-in Model Context Protocol server. Postgres, auth, storage, functions, AI gateway.

butterbase-ai/butterbase · 34 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

supabase-cli

This skill should be used when user asks to "use supabase CLI", "supabase init", "supabase start", "run migrations", "deploy edge functions", "manage Supabase project", or works with the supabase command-line tool for local development and project management.

fcakyon/claude-codex-settings · 60 tokens

supabase-js

This skill should be used when user asks to "use supabase-js", "query Supabase database", "supabase auth", "supabase storage", "supabase realtime", "supabase edge functions", or works with the @supabase/supabase-js JavaScript/TypeScript SDK.

fcakyon/claude-codex-settings · 64 tokens

supabase-node

Express/Hono with Supabase and Drizzle ORM.

alinaqi/maggy · 14 tokens