rabbyhub/rabby-mobile/yarn-patch-maintainer
- community
Checking that the SKILL.md file is still in the repository.
Create, refresh, or clean Yarn `patch:` dependencies in this repository without leaking generated build artifacts into `.yarn/patches`. Use when Codex needs to update an existing patched dependency, regenerate a patch from local package edits, remove accidental build outputs from a patch file, or reconcile a workspace dependency such as `apps/mobile/package.json` with the checked-in patch under `.yarn/patches`.
Install
npx vskill@latest install rabbyhub/rabby-mobile/yarn-patch-maintainerSKILL.md
Yarn Patch Maintainer
Use this skill to keep patched third-party dependencies reproducible and reviewable.
Prefer Yarn's own patch and patch-commit workflow over hand-written diffs.
Workflow
- Find the workspace that owns the dependency.
In this repo, react-native-keychain is owned by apps/mobile/package.json.
- Run
yarn patch <locator>from that workspace.
Example:
``bash cd apps/mobile yarn patch react-native-keychain@npm:9.2.3 --json ``
Record the returned temporary patch directory.
- Apply edits inside the temporary directory.
Prefer direct edits there.
If the working changes already exist under node_modules, copy only source files back into the patch directory and explicitly exclude generated outputs such as:
android/buildios/build.gradlebuild- compiled bundles, dex files, or cache directories
Example:
``bash patch_dir='<path returned by yarn patch>' rsync -a --delete \ --exclude 'android/build' \ --exclude 'ios/build' \ apps/mobile/node_modules/react-native-keychain/ \ "$patch_dir/" ``
- Commit the patch with Yarn.
``bash cd apps/mobile yarn patch-commit -s "$patch_dir" ``
- Inspect the generated patch file under .yarn/patches.
Reject the result if it contains generated files or opaque binary deltas.
Checks
Run these checks after patch-commit:
The second command should return nothing for a clean source-only patch.
Repo-Specific Notes
- This repo uses Yarn 4 with
nodeLinker: node-modules; local edits often happen underapps/mobile/node_modules/..., but those edits are only staging material and should be re-serialized throughyarn patch. - The checked-in patch files live at the repo root under
.yarn/patches, even when the owning dependency is declared from a workspace package. - After
yarn patch-commit -s, re-check the dependency entry in the workspace manifest. If Yarn rewrites the patch locator to an incorrect path such as~/.yarn/patches/..., restore the repo-relative path that matches the checked-in file.
For apps/mobile/package.json, the correct pattern is:
Rules
- Do not regenerate a patch from a raw
git diffbetween cache zips andnode_modulesunless Yarn's own patch flow is blocked. - Do not keep build outputs inside
.yarn/patches, even if they came from the local installed package. - Do not assume
patch-commitpreserved the workspace manifest path correctly; inspect it. - Keep the patch narrowly scoped to the package sources and tests that need to be versioned.
Reporting
When you finish a patch refresh, report:
- the workspace where you ran
yarn patch - the package locator you patched
- the patch file path under
.yarn/patches - whether you had to fix the workspace manifest path manually
- whether the patch was checked for generated artifacts
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/yarn-patch-maintainer/SKILL.md
Popularity
- Repository stars
- 82
- Repository forks
- 37
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rabbyhub/rabby-mobile/yarn-patch-maintainer)