Agent skill

Fix Payload Duplicate Deps

by jhb-software in jhb-software/payload-plugins

Fix Payload admin crashes from duplicate @payloadcms/ui/payload/react in the dep graph.

No licenceAuto-check: warnings

Install Fix Payload Duplicate Deps

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add jhb-software/payload-plugins --skill fix-payload-duplicate-deps -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jhb-software/payload-plugins fix-payload-duplicate-deps --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jhb-software/payload-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/fix-payload-duplicate-deps .claude/skills/fix-payload-duplicate-deps && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fix-payload-duplicate-deps
GitHub stars
104
Token cost
~498 tokens
SKILL.md length
169 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
None found

At a glance

Fix Payload admin crashes from duplicate @payloadcms/ui/payload/react in the dep graph.

  • Works in 5 steps: Confirm duplication. In the failing… → Find the forking dep. Diff the suffixes… → Pin via pnpm.overrides. Read… → …
  • A @payloadcms/ui hook returns undefined — Cannot destructure property config of useConfig()
  • SKILL.md covers Workflow, Don't and Fallbacks
  • Calls pnpm

What it does

Fix Payload Duplicate Deps is an agent skill from jhb-software/payload-plugins. Fix Payload admin crashes from duplicate @payloadcms/ui/payload/react in the dep graph. Use when a @payloadcms/ui hook returns undefined — Cannot destructure property 'config' of useConfig(), useUploadHandlers must be used within UploadHandlersProvider, or a plugin dev app failing to start with React-context errors.

Its SKILL.md is about 500 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with React, Payload CMS and pnpm. The repository describes itself as: A collection of powerful plugins designed to enhance Payload CMS.

When your agent uses it

  • A @payloadcms/ui hook returns undefined — Cannot destructure property config of useConfig()
  • UseUploadHandlers must be used within UploadHandlersProvider
  • A plugin dev app failing to start with React-context errors

Example prompts

  • “config”
  • “/fix-payload-duplicate-deps”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Confirm duplication. In the failing plugin dir
  2. Find the forking dep. Diff the suffixes — the dep that differs is forking resolution. Usually next (plugin peer-range vs dev app pin)…
  3. Pin via pnpm.overrides. Read /dev/package.json for the version the dev app pins, then add to the plugin's package.json
  4. Reinstall (ask user)
  5. Verify. grep ... | sort -u shows one @payloadcms/ui entry and one forking-dep version.

What it can do on your machine

Read from SKILL.md and the folder at commit 43204de. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • payloadcms.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fix Payload Duplicate Deps loads about 498 tokens when it runs. Until then it costs about 89 tokens; SKILL.md has 169 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~89
When it runs · the whole SKILL.md, loaded when a task matches
~498

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningMentions a credentials file (SSH keys, cloud or package-manager tokens)SKILL.md:46
    version; `auto-install-peers=false` in `.npmrc`; webpack `resolve.alias` (last resort).

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 169 words (~498 tokens).

“Two copies of @payloadcms/ui (or payload/react) → provider in copy A, hook reads from copy B → context undefined. Fix resolution, not the call site. Ref: https://payloadcms.com/docs/troubleshooting/troubleshooting”

— opening of SKILL.md by jhb-software
name
fix-payload-duplicate-deps

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/fix-payload-duplicate-deps of jhb-software/payload-plugins.

Open the folder on GitHubat commit 43204de

Compare with similar skills

Fix Payload Duplicate Deps next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fix Payload Duplicate Deps compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fix Payload Duplicate Deps this skilljhb-software/payload-plugins104—~498Automated safety check: WarnNone
@pierre/diffs Code Renderingpierrecomputer/pierre6.2k2 repos~803Automated safety check: PassApache-2.0
React Syncvercel/next.js143k—~486Automated safety check: PassMIT
Audit Dependenciespayloadcms/payload45k—~2.8kAutomated safety check: PassMIT
Pnpm Engineteambit/bit18k—~1.9kAutomated safety check: PassCustom licence
Generate Translationspayloadcms/payload45k—~1.1kAutomated safety check: PassMIT

Similar skills

  • @pierre/diffs Code Rendering

    pierrecomputer/pierre

    Guides an agent through using @pierre/diffs to render syntax-highlighted files and diffs, and to build editing and review surfaces in React or plain JavaScript.

    6.2k GitHub starsUsed in 2 repos~803 tokens
    DevelopmentAuto-check passed
  • React Sync

    vercel/next.js

    Official

    Build local React changes in the bundle variants consumed by Next.js, sync them into a local Next.js checkout, and test the resulting integration.

    143k GitHub stars~486 tokensUpdated today
    Auto-check passed
  • Audit Dependencies

    payloadcms/payload

    A skill your agent uses when fixing dependency vulnerabilities, running pnpm audit, or when the audit-dependencies CI check fails

    45k GitHub stars~2.8k tokensUpdated yesterday
    SecurityAuto-check passed
  • Pnpm Engine

    teambit/bit

    Work on the pnpm Rust engine (@pnpm/napi, the pacquet crates) that bit install runs through.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Generate Translations

    payloadcms/payload

    A skill your agent uses when new translation keys are added to packages to generate new translations strings

    45k GitHub stars~1.1k tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • LangBot Core Development

    langbot-app/LangBot

    Covers developing the LangBot core backend and web UI: dev setup, repo layout, API auth types, adding endpoints, migrations and keeping the MCP server in step.

    18k GitHub stars~1.4k tokensUpdated yesterday
    DevelopmentAuto-check: notes

More from jhb-software/payload-plugins

  • Bump Dependencies

    jhb-software/payload-plugins

    Run the bundled bump-dependencies.sh to bump plugin dependencies, then walk every non-patch version change to surface breaking changes and apply any plugin-side updates needed.

    104 GitHub stars~3.2k tokensUpdated 2 days ago
    Auto-check passed
  • Verify PR

    jhb-software/payload-plugins

    Check out a GitHub PR, identify the plugin it touches, start that plugin's dev app, and tell the user the exact page + steps to exercise the change in the admin panel.

    104 GitHub stars~735 tokensUpdated 2 days ago
    Auto-check passed

Questions about Fix Payload Duplicate Deps

What does Fix Payload Duplicate Deps do?

Fix Payload admin crashes from duplicate @payloadcms/ui/payload/react in the dep graph. Fix Payload Duplicate Deps is an agent skill from jhb-software/payload-plugins. Fix Payload admin crashes from duplicate @payloadcms/ui/payload/react in the dep graph.

When should I use Fix Payload Duplicate Deps?

Fix Payload Duplicate Deps fits situations like: A @payloadcms/ui hook returns undefined — Cannot destructure property config of useConfig(); useUploadHandlers must be used within UploadHandlersProvider; A plugin dev app failing to start with React-context errors.

How do I install Fix Payload Duplicate Deps in Claude Code?

Run `npx skills add jhb-software/payload-plugins --skill fix-payload-duplicate-deps -a claude-code`. Or copy the skill folder (.claude/skills/fix-payload-duplicate-deps in jhb-software/payload-plugins) into .claude/skills/fix-payload-duplicate-deps in your project. Claude Code loads it when a task matches its description.

How do I install Fix Payload Duplicate Deps in Codex?

Run `npx skills add jhb-software/payload-plugins --skill fix-payload-duplicate-deps -a codex`. Or copy the skill folder (.claude/skills/fix-payload-duplicate-deps in jhb-software/payload-plugins) into .agents/skills/fix-payload-duplicate-deps in your project. Codex loads it when a task matches its description.

Can I use Fix Payload Duplicate Deps in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jhb-software/payload-plugins --skill fix-payload-duplicate-deps -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-payload-duplicate-deps, .gemini/skills/fix-payload-duplicate-deps, .github/skills/fix-payload-duplicate-deps and .opencode/skills/fix-payload-duplicate-deps in your project.

What does Fix Payload Duplicate Deps need to run?

Going by SKILL.md and its folder, Fix Payload Duplicate Deps needs the command-line tools its instructions call (pnpm).

Does Fix Payload Duplicate Deps access the network?

SKILL.md names 1 domain. As links in the text: payloadcms.com. This is read from the text; nothing was executed.

Is Fix Payload Duplicate Deps safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): mentions a credentials file (ssh keys, cloud or package-manager tokens). Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Fix Payload Duplicate Deps use?

No licence was found for Fix Payload Duplicate Deps or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Fix Payload Duplicate Deps use?

About 498 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fix Payload Duplicate Deps?

Skills that share tags, products or a category with Fix Payload Duplicate Deps: @pierre/diffs Code Rendering (pierrecomputer/pierre, 6.2k stars), React Sync (vercel/next.js, 143k stars), Audit Dependencies (payloadcms/payload, 45k stars) and Pnpm Engine (teambit/bit, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fix Payload Duplicate Deps?

jhb-software (a GitHub organization) maintains it in jhb-software/payload-plugins, which has 104 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 6, 2026.

Source: jhb-software/payload-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.