audit-dependencies
Use when fixing dependency vulnerabilities, running pnpm audit, or when the audit-dependencies CI check fails
Use when new translation keys are added to packages to generate new translations strings
$ npx -y skills add payloadcms/payload --skill generate-translations --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/generate-translationsContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when new translation keys are added to packages to generate new translations strings
name: generate-translations description: Use when new translation keys are added to packages to generate new translations strings allowed-tools: Write, Bash(date:*), Bash(mkdir -p *)
Payload has two separate translation systems:
1. **Core Translations** - for core Payload packages (packages/ui, packages/payload, packages/next) 2. **Plugin Translations** - for plugins (packages/plugin-\*)
---
**When to use:** Adding translations to core Payload packages (packages/ui, packages/payload, packages/next)
1. **Add the English translation** to `packages/translations/src/languages/en.ts`
export const enTranslations = {
authentication: {
// ... existing keys
newFeature: 'New Feature Text',
},
}2. **Add client key** (if needed for client-side usage) to `packages/translations/src/clientKeys.ts`
3. **Generate translations for all languages**
---
**When to use:** Adding translations to any plugin package (packages/plugin-\*)
1. **Verify plugin has translations folder**
2. **Add the English translation** to the plugin's `packages/plugin-{name}/src/translations/languages/en.ts`
export const enTranslations = {
'plugin-multi-tenant': {
'new-feature-label': 'New Feature',
},
}3. **Generate translations for all languages**
If a plugin doesn't have a translations folder yet, **ask the user if they want to scaffold one**.
packages/plugin-{name}/src/translations/
├── index.ts
├── types.ts
└── languages/
├── en.ts
├── es.ts
└── ... (all other language files)1. **types.ts** - Define the plugin's translation types 2. **index.ts** - Export all translations and re-export types 3. **languages/en.ts** - English translations (the source for generation) 4. **languages/\*.ts** - Other language files (initially empty, will be generated)
1. Create `tools/scripts/src/generateTranslations/plugin-{name}.ts`
2. Add script to `tools/scripts/package.json`:
"generateTranslations:plugin-{name}": "node --no-deprecation --import @swc-node/register/esm-register src/generateTranslations/plugin-{name}.ts"---
Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
Repo: payloadcms/payload
Use when fixing dependency vulnerabilities, running pnpm audit, or when the audit-dependencies CI check fails
Use when writing a Playwright visual regression (screenshot comparison) test, tagging a test `@visual`, generating or updating baseline screenshots, running…
Use when CI tests fail on main branch after PR merge, when investigating flaky test failures, or when user provides a PR URL/number to aggregate all failing…
Use when UI changes are complete and e2e tests need updating. Analyzes what changed in UI components and systematically finds/fixes affected tests.
Review UI4 CSS migrations for proper token usage. Checks that CSS variables are used instead of hardcoded values.
Manually invoked skill for reskinning Payload UI components. Requires Figma URL. Usage: /ui4