OpenParable
Skip to content
← Back to skills

Checkout Webkit Commit

Development
checkout-webkit-commit

Checkout 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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
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

  1. Use git-webkit checkout instead of git checkout or git switch in the WebKit repository.
  2. When the user provides a PR URL, parse the remote from the URL and pass it with --remote.
  3. Convert any commit hashes in the output to WebKit identifiers using git-webkit find before presenting them to the user. Always display identifiers in backticks (e.g., 285301@main).
  4. Never prefix git-webkit or Tools/Scripts/git-webkit with python3. The script is directly executable.