codebam/hermes-skills/arch-aur-packaging

Claude Code and agent skill by codebam/hermes-skills

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Write Arch/AUR PKGBUILDs and their release docs.

Install

npx vskill@latest install codebam/hermes-skills/arch-aur-packaging

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as codebam/hermes-skills/arch-aur-packaging.

Arch / AUR packaging and release docs

Authoring PKGBUILDs and the docs that ship with a release (CHANGELOG, CONTRIBUTING, a *.1 man page) is a recurring class of work. This skill covers the durable conventions and the verification step.

Ground truth first — always

Before writing any new PKGBUILD or release doc, READ the existing material:

  • The existing PKGBUILD(s) in the tree are the model — match their voice,

dependency lists, comments, and structure. Do not invent a fresh format.

  • The project's README / docs explain naming and versioning (e.g. how engines

like webkitgtk vs wpe vs chromium are named, and how tags are cut, vX.Y.Z).

  • git log --oneline of the relevant branch gives the changelog material.
  • Regenerate/update any README that describes the package set so it doesn't

drift from what now lives in the tree.

Source package vs -bin package

  • A source PKGBUILD compiles the tagged tree. Pin it to a tag

(_tag=vX.Y.Z) or a release tarball — never a moving branch; an unreproducible package is not a package.

  • A -bin PKGBUILD unpacks the release artifact (often itself an Arch

.pkg.tar.zst) instead of compiling — saved build time for the user. source_x86_64 points at the GitHub release URL; the download name should NOT end in .pkg.tar.* so makepkg doesn't mistake it for the output.

  • Both install a binary of the same name, so they set provides/conflicts

so a system takes exactly one (each engine variant conflicts with the others and with the C binary).

  • -bin recipes commonly set options=('!strip' '!debug') because the

artifact was already stripped upstream.

  • Mirror the model package's depends/optdepends/makedepends, adjusting

only for what differs (e.g. the wpe variant links wpewebkit + glib2 + json-glib instead of webkitgtk-6.0 + gtk4; it builds --features wpe and installs one binary at /usr/bin/viewport with no wrapper).

Placeholders

When a tag/artifact does not exist yet, ship a version consistent with the project (e.g. the current release) and MARK every placeholder loudly — pkgver, _tag, the sha256sums, and in the source URL. Write PLACEHOLDER_... into the checksum or an explicit comment so a build fails visibly rather than silently installing the wrong thing. Note what the version bump is for in a comment.

Release docs

  • CHANGELOG.md — Keep-a-Changelog format: [Unreleased] section grouping

work areas (Protocols / Tests / Shipping / Docs), then released versions with real dates pulled from git show -s --format=%ci <tag>. Do not invent versions or dates beyond "Unreleased".

  • CONTRIBUTING.md — only cite commands/scripts that actually exist in the

tree (verify before writing: scripts/integration.sh, the pre-commit hook, the CI config). Describe build/test steps, the pre-commit/CI behaviour, and the code conventions the tree actually uses.

  • Man page — MUST document the REAL flags. Derive them from the argument

parser in source (clap/structopt/Opt tables), NOT from prose docs, which can describe a different binary (e.g. the old C compositor). See references/man-page-and-release-docs.md. Pitfall: a naive grep -oE '"--[a-z-]+"' main.rs also matches flags the binary passes to subprocesses (e.g. systemctl --user, dbus-update-activation-environment --systemd) — those are NOT flags of the binary itself and must NOT go in the man page. Distinguish the binary's own argument-parser table from args forwarded in Command::new(...).args([...]).

Verification

Cheap validators, run before commit:

  • bash -n <PKGBUILD> — all PKGBUILDs parse.
  • nroff -man / groff — render the man page: `nix run nixpkgs#groff -- -man

-Tutf8 file.1`. Exit 0 with no stderr = clean.

  • Check every markdown link / referenced command resolves to a real file.
  • If the harness wants npm test and the changed files are docs/PKGBUILDs

(no JS under data/shell/tests/*.js), explain that the JS suite is irrelevant to them, but run it anyway to close the verification gate.

Pitfalls

The Cargo.lock gotcha (version bumps with --locked builds)

When bumping the workspace version in a Rust project (the root Cargo.toml [workspace] version = "..." field), the version in Cargo.lock is NOT updated automatically by the text edit — it is a separate file managed by cargo. If the PKGBUILD or CI runs cargo fetch --locked or cargo build --locked, the mismatch between Cargo.toml (new version) and Cargo.lock (old version) causes an immediate build failure:

error: cannot update the lock file .../Cargo.lock because --locked was passed to prevent this

Fix: After bumping the version in Cargo.toml, run cargo fetch (or nix run nixpkgs#cargo -- fetch on NixOS) to regenerate Cargo.lock, then commit both files together. If the release commit already went out without the lockfile update, git add Cargo.lock && git commit --amend it, move the tag (git tag -d vX.Y.Z && git tag -a vX.Y.Z), and force-push.

This is the single most common release-cutting mistake for Rust + Arch/AUR workflows.

Empty AUR repos on first push

AUR repos registered at aur.archlinux.org but never pushed to clone as empty repositories with no branches. git commit on an unborn branch means HEAD points nowhere, and git push origin master fails with:

error: src refspec master does not match any

Fix: git checkout -b master BEFORE git add/git commit, so the commit lands on a named branch. Then git push origin master succeeds.

See references/release-cutting-workflow.md for full push mechanics.

NixOS host notes

  • Every shell command in a shared worktree: export

GIT_CONFIG_COUNT=1 GIT_CONFIG_KEY_0=safe.directory GIT_CONFIG_VALUE_0='*' (repo owned by another user).

  • No sudo; run tools via nix run nixpkgs#<pkg>.
  • Do NOT touch other worktrees or main; commit (git add + commit) but do not

push/merge unless asked.

See also references/man-page-and-release-docs.md for worked examples of the rule-map/OPTIONS-table extraction and Keep-a-Changelog structure.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/codebam/hermes-skills/arch-aur-packaging/badge)](https://verified-skill.com/skills/codebam/hermes-skills/arch-aur-packaging)

Something wrong with this skill or its page? Tell us.