payload-project-kickoff
Skill0 starsChanged 13 days agoMITView on GitHub
Entry point for every Payload CMS + Next.js website session. Use at the start of any task on a Payload project, when starting a new site from a brief or Figma link, when adding a backend to an existing frontend, or when unsure which skill applies. Loads guardrails, reads PROJECT.md, detects the scenario, writes a phased plan, and routes each phase to the right skill.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-guardrailsSkill
- creative-frontendSkill
- figma-handoffSkill
- payload-admin-brandingSkill
- payload-auth-rbacSkill
- payload-bookings-paymentsSkill
- payload-bootstrapSkill
- payload-deploy-vercelSkill
- payload-forms-crmSkill
- payload-integrationsSkill
- payload-legal-trustSkill
- payload-live-previewSkill
- payload-localizationSkill
- payload-mcpSkill
- payload-mediaSkill
- payload-performanceSkill
- payload-seo-geoSkill
- payload-testingSkill
- project-architectureSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 3 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Run this skill first in every session.
- Very specific: line 16
Read PROJECT.md at the repository root.
- Very specific: line 17
If it is missing, copy assets/PROJECT.template.md to PROJECT.md.
- Distinctive: line 18
Read AGENTS.md at the root if it exists.
- Very specific: line 19
If PROJECT.md has a ## Session log, read the last entry and continue from its "Next step".
- Very specific: line 23
Read package.json and list the top-level folders.
- Very specific: line 39
Check for .agents/skills/payload/SKILL.md or .claude/skills/payload/SKILL.md.
- Very specific: line 47
Write the plan into PROJECT.md under ## Phases as a checklist.
- Very specific: line 49
When the brief has a Figma URL, add a Design handoff line before phase 1 (figma-handoff).
- Very specific: line 87
Do not substitute any of these unless PROJECT.md records the client's approval.
- Distinctive: line 112
When several models share a project, assign roles as described in references/model-roles.md.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Payload project kickoff
Run this skill first in every session. It costs a few file reads and prevents rebuilding work that already exists.
Step 1: Load the rules
- Load the
agent-guardrailsskill and follow it for the whole session. - Read
PROJECT.mdat the repository root.- If it is missing, copy assets/PROJECT.template.md to
PROJECT.md. Fill in only what the brief states. WriteTBDfor anything unknown. Never invent client names, prices, addresses, or legal text.
- If it is missing, copy assets/PROJECT.template.md to
- Read
AGENTS.mdat the root if it exists. If it does not exist, copy assets/AGENTS.template.md toAGENTS.md. - If
PROJECT.mdhas a## Session log, read the last entry and continue from its "Next step".
Step 2: Detect the scenario
Read package.json and list the top-level folders. Do not install anything to detect the scenario.
| Signal | Scenario | First skill |
Empty folder, or no package.json | A. New site | payload-bootstrap |
Next.js app, no payload dependency | B. Backend for an existing frontend | project-architecture (refactor first), then payload-bootstrap |
Vite, Create React App, or Lovable export (no next dependency) | C. Migrate to Next.js, then add the backend | project-architecture (migration playbook) |
payload dependency present | D. Feature or fix | The feature skill from the routing table |
| Brief includes a Figma link | Frontend from design | figma-handoff, then scenario A or B |
Record the scenario in PROJECT.md under ## Scenario.
Step 3: Make sure the official Payload skill is installed
Payload maintains an official skill that documents the full API (collections, fields, hooks, access control, queries). These skills cover stack decisions and flows on top of it. Read the official skill whenever you need API details; do not guess field options or hook signatures.
- Check for
.agents/skills/payload/SKILL.mdor.claude/skills/payload/SKILL.md. - If missing:
- Scenario A:
payload-bootstrapinstalls it throughcreate-payload-app --agent. - Scenarios B, C, D: run
npx degit payloadcms/payload/tools/claude-plugin/skills/payload#3.x .agents/skills/payload
- Scenario A:
- The
3.xbranch matches Payload 3. Never install the skill from the default branch; it documents Payload 4.
Step 4: Write the phased plan
Write the plan into PROJECT.md under ## Phases as a checklist. Use only the phases the brief needs, in this order.
When the brief has a Figma URL, add a Design handoff line before phase 1 (figma-handoff). When the design needs motion, 3D, or a copied component, add a Creative frontend line next (creative-frontend). The numbered phases stay in this order:
- Architecture: folder layout, refactor an existing frontend (
project-architecture) - Bootstrap and data model (
payload-bootstrap) - Admin: roles, branding, languages (
payload-auth-rbac,payload-admin-branding,payload-localization) - Content: live preview, media, SEO and GEO, legal pages (
payload-live-preview,payload-media,payload-seo-geo,payload-legal-trust) - Business flows: forms, bookings, payments, integrations, MCP (
payload-forms-crm,payload-bookings-payments,payload-integrations,payload-mcp) - Performance (
payload-performance) - Testing (
payload-testing) - Deploy (
payload-deploy-vercel)
Each phase line names its skill and a one-line "Done when". Work on one phase at a time. Smaller models should finish one phase per session.
Step 5: Route tasks to skills
| Task | Skill |
| New project, install Payload, data model | payload-bootstrap |
| Folder layout, refactor, migrate from Vite or Lovable | project-architecture |
| Figma file, frames, design handoff | figma-handoff |
| GSAP, Lenis, Motion, 3D, Rive, or a copied free component | creative-frontend |
| Admin colors, logo, sidebar, dashboard | payload-admin-branding |
| Multiple languages, RTL, translated admin | payload-localization |
| Live preview, drafts, preview button | payload-live-preview |
| Images, video, files, uploads | payload-media |
Metadata, sitemap, JSON-LD, llms.txt, AI links | payload-seo-geo |
| Privacy, terms, cookies, trust page, GDPR | payload-legal-trust |
| Contact forms, leads, CRM, CSV export | payload-forms-crm |
| Booking, payments, calendar, confirmations | payload-bookings-payments |
| Email, Google Sheets, Drive, Search Console, spam protection | payload-integrations |
| MCP server for the client | payload-mcp |
| Users, roles, permissions | payload-auth-rbac |
| Speed, caching, bundles | payload-performance |
| Tests, saves failing, preview broken | payload-testing |
| Deploy, env vars, migrations, cron | payload-deploy-vercel |
Fixed stack
Do not substitute any of these unless PROJECT.md records the client's approval.
| Concern | Choice | Skill |
| Framework | Next.js latest stable (App Router) + Payload 3.x | payload-bootstrap |
| Database | libSQL / Turso with @payloadcms/db-sqlite | payload-bootstrap |
| Hosting | Vercel, Hobby limits respected | payload-deploy-vercel |
| Images | Cloudinary or Cloudflare R2, direct browser upload | payload-media |
| Video | Mux; Vimeo or unlisted YouTube as alternatives | payload-media |
| Resend; Mailgun over SMTP as alternative | payload-integrations | |
| Styling | Tailwind CSS | project-architecture |
Coding rules for every phase
- TypeScript strict. No
anyin new code. - Server data: React Server Components with the Payload Local API.
- Client data: TanStack Query. Never
useEffect+fetchfor data. - Forms: React Hook Form + Zod through
@hookform/resolvers/zod. Use Zod's built-in validators (z.email(),z.url(),z.e164()); never hand-written regex. - shadcn/ui is never the base design system. The shadcn CLI may fetch one specific registry component only when
PROJECT.mdlists it. - Install the latest stable version of each package: check with
pnpm view <package> versionbefore adding it. - Package manager: pnpm.
- Full conventions:
project-architectureskill.
Model roles
When several models share a project, assign roles as described in references/model-roles.md.
Done when
PROJECT.mdexists, with the scenario and phases filled inAGENTS.mdexists at the root- The official Payload skill is installed from the
3.xbranch - The current phase and its skill are named in
PROJECT.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

