Pixel-CLI/pixel / .agents/skills/release
release
VerifiedCut a pixel release end to end — pick the version, prepare the release commit (changelog cut, lockstep version bump, Cargo.lock, check-release) with prepare.sh in a pull request into main, tag vX.Y.Z on its merge to trigger .github/workflows/release.yml, and verify the published release, the install.sh asset and the Homebrew tap with evidence. Also covers resuming an interrupted release, patch releases while main is not releasable, and recovering from a failed Release run. Use when asked to release, publish, tag or ship a new pixel version, bump the version, cut the changelog, check a published release, or when the Release workflow failed.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 30.6 KB |
| check-candidate.py | script | 3.2 KB |
| prepare.shexecutable | script | 23.7 KB |
| references/security-release.md | markdown | 3.6 KB |
check-candidate.py
View on GitHub#!/usr/bin/env python3
# SPDX-FileCopyrightText: The Pixel contributors
# SPDX-License-Identifier: MIT
"""Read-only guard between prepare, merge and tag. Run from the repository root.
Usage: check-candidate.py BASE PREPARE_HEAD --tip FETCHED_BASE [--merge MERGE] [--maintenance]
Pass the recorded SHAs, not moving branch names, for BASE and PREPARE_HEAD.
Without --merge, the fetched target must still equal BASE. After squash merge,
MERGE must have BASE as its sole parent and the exact PREPARE_HEAD tree.
Use --maintenance for a fully tested backport PR: its diff may include code.
This does not attest CI, approvals or semantic changelog completeness.
"""
import argparse
import os
from pathlib import Path
import subprocess
import sys
# These redirect Git away from the repository in the invocation directory.
GIT_CONTEXT = {"GIT_DIR", "GIT_WORK_TREE", "GIT_COMMON_DIR", "GIT_INDEX_FILE",
"GIT_OBJECT_DIRECTORY", "GIT_ALTERNATE_OBJECT_DIRECTORIES", "GIT_PREFIX"}
GIT_ENV = {key: value for key, value in os.environ.items() if key not in GIT_CONTEXT}
def git(*args):
return subprocess.check_output(["git", *args], text=True, env=GIT_ENV).strip()
def check(base, head, tip, merge, maintenance):
base, head, tip = (git("rev-parse", "--verify", f"{ref}^{{commit}}")
for ref in (base, head, tip))
subprocess.run(["git", "merge-base", "--is-ancestor", base, head], check=True, env=GIT_ENV)
if base == head:
raise ValueError("prepare head must contain a release commit")
scope = Path(__file__).resolve().parents[3] / "scripts/release/release-prepare-only.py"
if not maintenance:
subprocess.run([sys.executable, str(scope), base, head], check=True, env=GIT_ENV)
fragments = git("ls-tree", "-r", "--name-only", head, ".github/changelog.d").splitlines()
if any(path.endswith(".md") for path in fragments):
raise ValueError("candidate still contains unreleased changelog fragments")
if merge is None:
if tip != base:
raise ValueError("base moved: refresh candidate and changelog coverage, then revalidate")
else:
merge = git("rev-parse", "--verify", f"{merge}^{{commit}}")
subprocess.run(["git", "merge-base", "--is-ancestor", merge, tip], check=True, env=GIT_ENV)
if git("show", "-s", "--format=%P", merge) != base:
raise ValueError("merge parent differs from recorded base; candidate is stale")
if git("rev-parse", f"{head}^{{tree}}") != git("rev-parse", f"{merge}^{{tree}}"):
raise ValueError("merge tree differs from validated prepare head; do not tag")
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("base")
parser.add_argument("head")
parser.add_argument("--tip", required=True)
parser.add_argument("--merge")
parser.add_argument("--maintenance", action="store_true")
args = parser.parse_args()
try:
check(args.base, args.head, args.tip, args.merge, args.maintenance)
except (ValueError, subprocess.CalledProcessError) as error:
print(f"release candidate refused: {error}", file=sys.stderr)
return 1
print("release candidate: ancestry, scope and content verified")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 196k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |