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.
npx skills add GoldenWing-360/claude-security-skills --skill payload-cms-securitygit clone --depth 1 https://github.com/GoldenWing-360/claude-security-skillsWrote 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.
[](https://agentmods.dev/skills/goldenwing-360/claude-security-skills/payload-cms-security)<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/payload-cms-security"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/payload-cms-security/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.
<a href="https://agentmods.dev/skills/goldenwing-360/claude-security-skills/payload-cms-security"><img src="https://agentmods.dev/badge/skills/goldenwing-360/claude-security-skills/payload-cms-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.02547 |
| Opus 5.5 | $0.00030 | $0.01019 |
| Sonnet 5.5 | $0.00015 | $0.00509 |
| Haiku 4.5 | $0.00007 | $0.00255 |
Grade A, and why
payload-cms-security 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Payload CMS Security
Payload (v2 / v3) gives you a powerful headless CMS in a Node app, but its security depends almost entirely on the access functions you write per collection and per field. Defaults are reasonable but not strict — production-readiness requires intentional config.
When to invoke
- Shipping a Payload app to production
- Opening the admin UI to non-developer team members or clients
- After a Payload major version upgrade (v2 → v3)
- Adding a new collection, especially user-generated or multi-tenant data
- Investigating a "user X saw user Y's data" incident
Step 1 — Lock the admin UI
By default the admin is at /admin on the same origin as the app. That is a permanent target.
Three layers of defense, use at least two:
- Zero Trust / IP allowlist in front — put
/adminbehind SSO with Cloudflare Access, Tailscale, or a VPN. The admin should not be reachable from the open internet for most projects. Seecloudflare-hardening. - Rate limit auth endpoints —
/api/users/loginand friends. Cloudflare Rate Limit orexpress-rate-limiton the Express app. - Strong auth for admin users — long passphrases, MFA where supported (Payload v3 has plugins for this), no shared accounts.
Optional but worth it: move /admin to an unguessable path via routes.admin. Not strong security, but cuts noise:
// payload.config.ts
export default buildConfig({
routes: { admin: '/cms-' + process.env.ADMIN_PATH_SUFFIX },
...
});
Step 2 — Access control per collection
Every collection has access functions that decide who can create, read, update, delete. Defaults often allow logged-in users more than intended.
// collections/Invoices.ts
import type { CollectionConfig } from 'payload/types';
const isAdmin = ({ req: { user } }) => user?.role === 'admin';
const isOwnerOrAdmin = ({ req: { user } }) => {
if (!user) return false;
if (user.role === 'admin') return true;
// Restrict to documents where ownerId equals the requesting user
return { ownerId: { equals: user.id } };
};
export const Invoices: CollectionConfig = {
slug: 'invoices',
access: {
create: ({ req: { user } }) => Boolean(user),
read: isOwnerOrAdmin,
update: isOwnerOrAdmin,
delete: isAdmin,
},
fields: [/* ... */],
};
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.
- 3mo ago First seen · 258 lines · 74 tokens per session scan A f76fdfec115e
payload-cms-security is a skill published in the GitHub repository GoldenWing-360/claude-security-skills (23 stars, last pushed 1mo ago), licensed MIT. It adds 74 tokens to every session and 2,547 once invoked, about $0.0003 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.
payload-cms-security compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| payload-cms-securityGoldenWing-360/claude-security-skills | Skill | 23 | 1mo ago | MIT | A | 74 | Claude Code, Codex |
| ux-auditjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 217 | Claude Code |
| tanstack-startjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 115 | Claude Code |
| design-loopjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 130 | Claude Code |
| product-showcasejezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 117 | Claude Code |
| google-apps-scriptjezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 89 | Claude Code |
| cloudflare-apijezweb/claude-skills | Skill | 1.1k | 1mo ago | MIT | A | 141 | Claude Code |