Checkout Webkit Commit
Developmentcheckout-webkit-commitCheckout Webkit Commit is an Agent Skill for development published in the WebKit/WebKit repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Use when the user wants to checkout a branch, checkout a PR, checkout a commit or move HEAD to a specific commit in the WebKit repository. The user can specify a pull requests by number or URL.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/WebKit/WebKit/blob/HEAD/.claude/plugins/git-webkit/skills/checkout/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/checkout-webkit-commit, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Use git-webkit checkout instead of git checkout to check out branches, commits, or pull requests when the string provided does not match a hash, branch or tag in the repository.
How to use
Check out a branch or commit
git-webkit checkout <branch-or-ref>
Check out a pull request
git-webkit checkout pr-<number>
Check out a PR from an alternate remote
When the user provides a PR URL (e.g., https://github.com/<org>/<repo>/pull/<number>), extract the remote and PR number, then use --remote:
git-webkit checkout pr-<number> --remote <remote>
Locating git-webkit
If git-webkit is not in PATH, use Tools/Scripts/git-webkit instead (relative to the repository root).
Rules
- Use
git-webkit checkoutinstead ofgit checkoutorgit switchin the WebKit repository. - When the user provides a PR URL, parse the remote from the URL and pass it with
--remote. - Convert any commit hashes in the output to WebKit identifiers using
git-webkit findbefore presenting them to the user. Always display identifiers in backticks (e.g.,285301@main). - Never prefix
git-webkitorTools/Scripts/git-webkitwithpython3. The script is directly executable.