payload-cms

payload-cms is a skill for Claude Code from textura-agency/next16-claude-starter. It costs 216 tokens per session (4,474 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/. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is yarn generate:importmap # silent no-op? → node node_modules/payload/bin.js generate:importmap --force.

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

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,474 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.00216 $0.04474
Opus 5.5 $0.00086 $0.01790
Sonnet 5.5 $0.00043 $0.00895
Haiku 4.5 $0.00022 $0.00447

Measured 23d ago against content hash b9dab80f557b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 23d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scaffold.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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 · 219 lines

How it starts

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

Payload CMS — the admin flow

This is the flow a production site went through to get an admin its owner called "great": every word on the site editable, grouped the way the site reads, SEO per page with a live link preview, light consented analytics, the site's own look, and a guide with screenshots inside the admin. It is written down as kits (templates/) and decisions (below) so the next site gets there in one pass instead of twenty requests.

Read first: obsidian/workflows/cms-admin.md (the flow at a glance) and obsidian/backend/cms-payload.md (the architecture). Verified against Payload 3.89 · Next 16.3 · Node 24 (2026-10).

The decisions — and why

Every one of these was a request or a defect on the reference site. Don't undo one without the reason in front of you.

# Decision Why
D1 Payload inside the app — app/(payload) + app/(site), one build, one deploy The owner asked for one project. Local API reads in process — no HTTP hop, works at build time.
D2 Fields are derived from the content objects (text-schema.ts walks src/data/mocks/*), not hand-written Every string becomes a field defaulted to today's copy; a new line in code is a new field next deploy. Hand-written schemas drift and miss copy.
D3 Reading is a merge: getText("hero") returns the code's HERO with the admin's strings laid over it — same type Views and components stay untouched. A deliberate exception to "use the generated type in the view" (rule payload.md).
D4 Blank / missing / DB down → the code's copy, error logged The site never goes blank because the CMS did. A fresh database renders the full site.
D5 Globals, not collections or blocks, for a marketing page's sections Each section exists once; its order is choreographed with motion/scene, so it is not the editor's to reorder. Collections only for things that are many (posts, cases). Blocks only when the editor genuinely composes pages.
D6 Wiring is skipped (SKIP: id, href, anchors, textures, scene data…); card lists have fixed rows matched by a hidden key The editor rewrites a card but cannot break the layout, cross-wire a card to another's image, or add a 7th card to a 6-slot ring.
D7 OPEN_LISTS with a floor/ceiling for lists the layout can resize; an added row must fill every line + photo The client asked to change counts; the floor is what keeps a carousel from showing empty glass.
D8 Photos are optional uploads beside their copy ("Replace photo"): blank → photo in code; upload → its URL, alt, a 512 px small size for textures, crop dropped Same fallback rule as text. Only content photos — decorative art and the scene stay in code.
D9 One SEO global, a tab per page + Site defaults; parity with everything <head>, JSON-LD and sitemap.xml emit; a link-preview card per tab "SEO for each page, the same as the site has it." Titles are absolute (Brand | …, 50–60 chars) and written for search; the plugin's fields are placed by hand because routes are fixed.
D10 Share image seeded into Media on onInit (idempotent, never throws) The editor sees the real card in the admin and can replace it, instead of a hint about a file in the code.
D11 Routes stay static; every global's afterChange → revalidatePath("/", "layout") Hard rule #15 holds; saves still show at once.
D12 Migrations only, push: false everywhere; yarn migrate:direct over the session pooler The same steps on every machine and the host. push against a live DB is how schemas get rewritten.
D13 Storage plugin always registered (enabled from env, alwaysInsertFields), files linked from the public bucket URL The schema — and so the migrations — never depend on whether a laptop has S3 keys. next/image and WebGL loaders fetch from Supabase's CDN, not through /api/media/file.
D14 English admin, labels in the editor's words, sidebar groups in reading order, row labels from the row's own copy An admin that reads like the site is one an owner uses.
D15 Every legal section is one rich-text field (bold, links, lists, h3; table/button as blocks) Asked for after a block-per-paragraph model: an editor could not bold a word or link inside a sentence. Start with rich text.
D16 /admin and /api/ disallowed in robots.ts; /llms.txt from the SEO global; sitemap lastmod = the globals' updatedAt SEO audit findings: a login screen in the crawl budget, request-time lastmod (ignored), no llms.txt.
D17 Things that are many (posts, locations, services) are collections with their own routes — the blog / collection kits — each page indexed only when it clears a bar, an old slug answering 308 Blogs and page sets are where sites win long-tail search, and where thin, templated or orphaned pages lose it.

Read the full file on GitHub · 219 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 23d ago Changed · +19 lines · +43 tokens per session b9dab80f557b
  2. 1mo ago Changed · +2 lines · +72 tokens per session aff829c1eb4c
  3. 2mo 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 (145 stars, last pushed 23d ago), licensed Unlicense. It adds 216 tokens to every session and 4,474 once invoked, about $0.0009 per session on Opus 5.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

payload-cms compared with skills from other repositories

payload-cms next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
payload-cmstextura-agency/next16-claude-starterSkill14523d agoUnlicenseA216Claude Code
azure-postgres-tsmicrosoft/skillsSkill3.2kyesterdayMITA94Claude Code
supabasesupabase/agent-skillsSkill3.0kyesterdayMITA185Claude Code, Codex
butterbasebutterbase-ai/butterbaseSkill3.0kyesterdayApache-2.0A34Claude Code, Codex
supabase-clifcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A60Claude Code
supabase-jsfcakyon/claude-codex-settingsSkill1.2kyesterdayApache-2.0A64Claude Code
firebase-data-connectfirebase/agent-skillsSkill5032d agoApache-2.0A74Claude Code