con un clic
release
Tag release, update PKGBUILD checksums, and push to AUR.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Tag release, update PKGBUILD checksums, and push to AUR.
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
| name | release |
| description | Tag release, update PKGBUILD checksums, and push to AUR. |
| disable-model-invocation | true |
| allowed-tools | Read, Edit, Bash, Glob, Grep, AskUserQuestion |
| argument-hint | [version] |
Creates a git tag, updates PKGBUILD checksums, and pushes to AUR.
aur-pkg) containing ONLY PKGBUILD and .SRCINFOpacman-contrib — Provides updpkgsums for automatic checksum updatesRun these commands in parallel to check current state:
git branch --show-current
git remote show origin | grep 'HEAD branch'
If not on master/main → Use AskUserQuestion to confirm proceeding.
$ARGUMENTS — If provided, use as version (e.g., 1.1.1 or v1.1.1).
If not provided, extract from workspace Cargo.toml:
grep -A1 '^\[workspace\.package\]' Cargo.toml | grep 'version' | sed 's/.*"\(.*\)".*/\1/'
Normalize version: ensure tag format is vX.Y.Z (add v prefix if missing).
Update pkgver in PKGBUILD to match the release version (without v prefix):
sed -i "s/^pkgver=.*/pkgver=X.Y.Z/" PKGBUILD
Reset pkgrel to 1 if version changed:
sed -i "s/^pkgrel=.*/pkgrel=1/" PKGBUILD
Run these commands in parallel:
git tag -l "vX.Y.Z"
git ls-remote --tags origin | grep "vX.Y.Z"
git pull origin main
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
Output: Created and pushed tag: vX.Y.Z
Wait briefly for GitHub to generate the tarball, then use updpkgsums:
sleep 5 # Wait for GitHub to process the tag
updpkgsums
If checksum generation fails → Use AskUserQuestion: "Checksum generation failed. Retry or skip?"
makepkg --printsrcinfo > .SRCINFO
git add PKGBUILD .SRCINFO
git commit -m "$(cat <<'EOF'
chore: update sha256sums for vX.Y.Z
EOF
)"
git push origin main
Check if AUR remote exists:
git remote get-url aur 2>/dev/null || echo "not configured"
If not configured → Use AskUserQuestion: "AUR remote not configured. Add it now?"
If user confirms:
git remote add aur ssh://aur@aur.archlinux.org/mpvpaper-rs.git
AUR requires a repository containing ONLY PKGBUILD and .SRCINFO. Use the aur-pkg orphan branch.
git branch --list aur-pkg
# Create orphan branch with only packaging files
git checkout --orphan aur-pkg
git rm -rf --cached . >/dev/null 2>&1 || true
git add PKGBUILD .SRCINFO
git commit -m "Initial AUR package for mpvpaper-rs vX.Y.Z"
git push aur aur-pkg:master
git checkout main
git checkout aur-pkg
git checkout main -- PKGBUILD .SRCINFO
git commit -m "Update to vX.Y.Z"
git push aur aur-pkg:master
git checkout main
Important: If checkout fails due to untracked files, use git checkout main -f to force switch back.
Release vX.Y.Z completed!
Tag: vX.Y.Z (pushed to origin)
Checksum: updated
AUR: pushed
GitHub: https://github.com/bityoungjae/mpvpaper-rs/releases/tag/vX.Y.Z
AUR: https://aur.archlinux.org/packages/mpvpaper-rs
| Situation | Action |
|---|---|
| Not on master/main | Ask user to confirm or abort |
| Tag already exists | Error and abort |
| updpkgsums not installed | Error: "updpkgsums is required. Install with: sudo pacman -S pacman-contrib" |
| Checksum generation fails | Retry or skip with user confirmation |
| Push fails | Show error, suggest manual resolution |
| AUR remote not configured | Ask user to add it or skip AUR push |
| AUR push fails | Show SSH key setup instructions if auth error |
| Checkout to main fails | Use git checkout main -f to force switch |
AUR repositories require:
PKGBUILD and .SRCINFO files (no source code)master branch onlyThis skill uses an orphan branch (aur-pkg) that:
master branch via git push aur aur-pkg:master[workspace.package].version)mpvpaper-rs and mpvpaper-rs-holdercargo build --frozen --release --all-features