Agent skill

Nixpkgs Patched

by ryan4yin in ryan4yin/nix-config

A skill your agent uses when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that…

MITAuto-check passedDevelopment

Install Nixpkgs Patched

skills CLI
$ npx skills add ryan4yin/nix-config --skill nixpkgs-patched -a claude-code

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

GitHub CLI
$ gh skill install ryan4yin/nix-config nixpkgs-patched --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/ryan4yin/nix-config.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/nixpkgs-patched .claude/skills/nixpkgs-patched && 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
nixpkgs-patched
GitHub stars
2.1k
Token cost
~1.1k tokens
SKILL.md length
516 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that…

  • Works in 5 steps: Confirm the exact target → Refresh the patched branch → Validate before publishing → …
  • Temporarily carrying an unmerged nixpkgs pull request
  • SKILL.md covers 1. Confirm the exact target, 2. Refresh the patched branch, 3. Validate before publishing and 4. Publish and consume it, plus 1 more section
  • Calls git, just and nix

What it does

Nixpkgs Patched is an agent skill from ryan4yin/nix-config. Use when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that branch from this nix-config flake, including a WORKAROUNDS.md row whose removal condition is carrying the patch.

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

It sits in Development, covering Pull requests. The repository describes itself as: ❄️ My nix config for both desktops(NixOS+macOS) and homelab servers(NixOS). The licence is MIT.

When your agent uses it

  • Temporarily carrying an unmerged nixpkgs pull request
  • Commit in the personal ryan4yin/nixpkgs fork
  • Updating the nixos-unstable-patched branch
  • Consuming that branch from this nix-config flake

Example prompts

  • “/nixpkgs-patched”

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Confirm the exact target
  2. Refresh the patched branch
  3. Validate before publishing
  4. Publish and consume it
  5. Roll back

What it can do on your machine

Read from SKILL.md and the folder at commit 9d69832. 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:

    • git
    • just
    • nix
    • gh

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

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    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

Nixpkgs Patched loads about 1.1k tokens when it runs. Until then it costs about 76 tokens; SKILL.md has 516 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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

The full file from ryan4yin/nix-config at commit 9d69832, republished under its MIT licence (© ryan4yin). 516 words, ~1,104 tokens.

Download SKILL.mdSave it as .claude/skills/nixpkgs-patched/SKILL.md (or your agent's skills folder).
name
nixpkgs-patched
description
Use when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that branch from this nix-config flake, including a WORKAROUNDS.md row whose removal condition is carrying the patch.

Carrying a nixpkgs patch

This is a temporary supply-chain change across two repositories:

text
upstream nixpkgs PR → personal fork branch → nix-config lock entry → host/package validation

Keep the upstream commit identifiable, keep a rollback ref, and never activate a host merely because the fork branch pushed successfully.

1. Confirm the exact target

Before changing either repository, confirm the remotes, branch, PR commits, and local work:

bash
git remote -v
git status --short
git branch --show-current
git fetch origin nixos-unstable
git fetch fork nixos-unstable-patched
gh pr view <pr> --repo NixOS/nixpkgs --json state,baseRefName,commits

The intended fork is ryan4yin/nixpkgs and the intended branch is nixos-unstable-patched. In ~/src/nixpkgs, origin is NixOS/nixpkgs and the fork is fork (or ryan4yin); never push the patched branch to origin. Confirm the names; do not infer a remote from its position in the list.

2. Refresh the patched branch

Do this in the nixpkgs checkout (~/src/nixpkgs), preserving any existing work:

  1. Save a rollback ref to the current patched tip.
  2. Align the branch with the current origin/nixos-unstable.
  3. Cherry-pick the exact PR commit(s), using -x so the upstream source remains recorded.
  4. Resolve conflicts deliberately and inspect the complete diff against upstream.

If alignment rewrites the remote branch, this is an impactful GitHub operation: preview the new history and push only with --force-with-lease, never --force. Stop if the remote changed in an unexpected way. An upstream PR targets master unless it says otherwise, while the patched branch tracks nixos-unstable; confirm the PR's base commit is contained in nixos-unstable before cherry-picking, and stop if the patch depends on unreleased changes. If the PR depends on another PR, review both changes and record their order.

3. Validate before publishing

For a local patched-branch update, validate only the package(s) the user intends to use. Use normal Nix commands from the nixpkgs checkout, such as nix build .#<package> or a specifically requested passthru.tests.<name>. These commands build their required dependencies; do not separately build or test unrelated packages just because they changed on the branch.

nixpkgs-review is for reviewing an upstream nixpkgs PR. Do not use it to validate ordinary local package use or a patched-branch lock update. For this workflow, inspect the diff and commit list:

bash
git diff --check
git log --oneline --decorate origin/nixos-unstable..HEAD

Run package builds or tests only when the user requests them or when the selected package is needed to complete the requested local verification. Record which package and checks were actually run; never imply that unrelated packages or platforms were covered.

Show full SKILL.md (150 more words)Show less

4. Publish and consume it

After authorization and validation:

bash
git push --force-with-lease fork nixos-unstable-patched
git ls-remote fork refs/heads/nixos-unstable-patched

Then in this repository, update only the patched input and inspect the lock diff:

bash
nix flake update nixpkgs-patched
git diff -- flake.lock
just test
just eval-host <affected-host>
just build-host <affected-host>

The nix-config eval and host-build commands validate this configuration. They are not a reason to build every package in the patched nixpkgs branch. Run a host build only for a host that consumes the changed package and only when the user asks for that validation.

Keep the nixpkgs fork change, lock update, and unrelated configuration changes separate. Do not run just niri, just local, or a remote deployment from this skill; activation is a separate authorized step in nix-config-update.

5. Roll back

If validation fails, restore the fork branch from the saved ref, update the lock back to the previous revision, and re-run the affected checks. If the branch was already pushed, restoring it is another impactful remote change: confirm the current remote tip and use --force-with-lease.

© ryan4yin, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/nixpkgs-patched of ryan4yin/nix-config.

Open the folder on GitHubat commit 9d69832

Compare with similar skills

Nixpkgs Patched 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.

Nixpkgs Patched compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nixpkgs Patched this skillryan4yin/nix-config2.1k—~1.1kAutomated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Record PR Demo

    payloadcms/payload

    A skill your agent uses when a Payload pull request needs a concise visual walkthrough for reviewers.

    45k GitHub stars~1k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from ryan4yin/nix-config

All 9 skills in this repo
  • Nix Config Umu Game

    ryan4yin/nix-config

    A skill your agent uses when installing a Windows game launcher (二次元 / gacha or any non-Steam game) on a NixOS desktop via umu-launcher, given an installer URL or an .exe, when such a launcher opens…

    2.1k GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Nix Config Debug

    ryan4yin/nix-config

    A skill your agent uses when something here is broken or stops working: an eval or build error, a failed activation, a dead or restarting unit, a mihomo or DNS outage, an unreachable host or MicroVM…

    2.1k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Nix Config Desktop

    ryan4yin/nix-config

    A skill your agent uses when changing what the desktop shows or runs: Niri/Noctalia config, a window that is the wrong size, garbled, or missing after a reboot, autostart, fcitx5 or vinput input…

    2.1k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Nix Config Secrets

    ryan4yin/nix-config

    A skill your agent uses when adding, changing, renaming, or removing an agenix secret, deciding whether a secret belongs to agenix or to the encrypted dotfiles sync, wiring a secret into a host, or…

    2.1k GitHub stars~2.9k tokensUpdated today
    Auto-check: notes
  • Nix Config Update

    ryan4yin/nix-config

    A skill your agent uses when a version changes here: upgrading or updating a package or nixpkgs, bumping or pinning a flake input (a tag or commit, not a branch), or deploying the result to hosts…

    2.1k GitHub stars~2.3k tokensUpdated today
    Auto-check: notes
  • Nixpkgs Review

    ryan4yin/nix-config

    A skill your agent uses when reviewing an upstream NixOS/nixpkgs pull request before it is merged -- a PR number or NixOS/nixpkgs123 link -- including its package changes, passthru tests…

    2.1k GitHub stars~2.8k tokensUpdated today
    Auto-check passed

Categories

Questions about Nixpkgs Patched

What does Nixpkgs Patched do?

A skill your agent uses when temporarily carrying an unmerged nixpkgs pull request or commit in the personal ryan4yin/nixpkgs fork, updating the nixos-unstable-patched branch, or consuming that…. Nixpkgs Patched is an agent skill from ryan4yin/nix-config.md row whose removal condition is carrying the patch.

When should I use Nixpkgs Patched?

Nixpkgs Patched fits situations like: temporarily carrying an unmerged nixpkgs pull request; commit in the personal ryan4yin/nixpkgs fork; updating the nixos-unstable-patched branch; consuming that branch from this nix-config flake.

How do I install Nixpkgs Patched in Claude Code?

Run `npx skills add ryan4yin/nix-config --skill nixpkgs-patched -a claude-code`. Or copy the skill folder (.agents/skills/nixpkgs-patched in ryan4yin/nix-config) into .claude/skills/nixpkgs-patched in your project. Claude Code loads it when a task matches its description.

How do I install Nixpkgs Patched in Codex?

Run `npx skills add ryan4yin/nix-config --skill nixpkgs-patched -a codex`. Or copy the skill folder (.agents/skills/nixpkgs-patched in ryan4yin/nix-config) into .agents/skills/nixpkgs-patched in your project. Codex loads it when a task matches its description.

Can I use Nixpkgs Patched 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 ryan4yin/nix-config --skill nixpkgs-patched -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nixpkgs-patched, .gemini/skills/nixpkgs-patched, .github/skills/nixpkgs-patched and .opencode/skills/nixpkgs-patched in your project.

What does Nixpkgs Patched need to run?

Going by SKILL.md and its folder, Nixpkgs Patched needs the command-line tools its instructions call (git, just, nix and gh).

Does Nixpkgs Patched access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Nixpkgs Patched safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nixpkgs Patched use?

Nixpkgs Patched is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nixpkgs Patched use?

About 1.1k tokens (SKILL.md is roughly 4.4k 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 Nixpkgs Patched?

Skills that share tags, products or a category with Nixpkgs Patched: Finishing a Development Branch (obra/superpowers, 297k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and PR Design Doc (OpenHands/OpenHands, 90k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nixpkgs Patched?

ryan4yin (a GitHub user) maintains it in ryan4yin/nix-config, which has 2,092 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 10, 2026.

Source: ryan4yin/nix-config on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.