analyze-ci
Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR)…
Review a pull request and emit a validated review payload.
$ npx -y skills add mlflow/mlflow --skill pr-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pr-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review a pull request and emit a validated review payload.
name: pr-review description: Review a pull request and emit a validated review payload. disable-model-invocation: true argument-hint: "<pr_url> <pr_checkout> <payload_path> <media_dir> <base_dir>" arguments: [pr_url, pr_checkout, payload_path, media_dir, base_dir]
Review $pr_url and write a JSON review payload to $payload_path. Do not post anything: writing that payload is the whole job.
The PR is checked out at `$pr_checkout`, not in the working directory:
$base_dir # the working directory: this skill and the `skills`
# CLI come from here, and nothing you review does
$pr_checkout # the reviewed tree: the PR merged into its baseThe working directory holds a checkout of the same repository, so it looks like the code under review and is not guaranteed to match it. Everything aimed at the PR needs the prefix: `git -C $pr_checkout ...`, `$pr_checkout/<path>` to open or grep a file, and `cd $pr_checkout && ...` for anything that builds or runs repository code. The `uv run` commands below are the exception: `--directory $base_dir` pins each one to this checkout, so it keeps using this tree's `skills` package and rules even when the working directory has moved into `$pr_checkout`. uv resolves its workspace from the working directory, and so does the rule loader, so dropping the flag silently hands both to the code under review.
The commands below take `<pr_url>` from the PR URL above, and `<owner>`, `<repo>`, and `<pr_number>` from its parts.
These reads are independent. Issue them as parallel tool calls in a single turn, not sequentially.
**PR title and description**
gh pr view <pr_url> --json title,body
**PR diff hunks**. `$pr_checkout` holds the merge ref (see step 3), so `HEAD^1 HEAD` is exactly the PR diff:
git -C $pr_checkout diff HEAD^1 HEAD | uv run --directory $base_dir --package skills skills annotate-diff
Each line comes back as `old_line new_line | <marker> content`, which gives you the `line` and `side` to anchor each comment on: `-` is `side=LEFT` at `old_line`, `+` is `side=RIGHT` at `new_line`, and an unmarked context line is `side=RIGHT` at `new_line`. Pass `--help` for the rest.
**Existing review threads**, so you can avoid duplicating prior feedback. Up to 100 threads (open, resolved, and outdated) with up to 20 comments each:
gh api graphql -F owner=<owner> -F repo=<repo> -F pr=<pr_number> \
--jq '.data.repository.pullRequest.reviewThreads.nodes | map(.comments = .comments.nodes)' \
-f query='
query($owner: String!, $repo: String!, $pr: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
reviewThreads(first: 100) {
nodes {
isResolved
isOutdated
path
line
comments(first: 20) {
nodes { author { login } body }
}
}
}
}
}
}'Load the repository style rules applicable to the changed files:
git -C $pr_checkout diff --name-only HEAD^1 | uv run --directory $base_dir --package skills skills load-rules
`$pr_checkout` holds the PR merged into the base (`refs/pull/<pr_number>/merge`), so its file contents reflect the post-merge state. Explore it for context beyond the diff (existing patterns, call sites of changed symbols, file conventions), scoping every search to that directory.
The merge ref's base parent is reachable as `HEAD^1`. When the diff doesn't show enough (verifying a refactor preserved behavior, reading a masked deleted file, or seeing the pre-change version of a heavily modified one), use `git -C $pr_checkout show HEAD^1:<path>` rather than re-fetching the file over the API. The checkout is shallow, so nothing older than `HEAD^1` exists: `git log` and `git blame` stop at the shallow boundary rather than reaching the commit that actually introduced a line. Neither errors, so don't trust them for pre-change history.
Verify rather than infer. A `grep` through the installed package, a `uv run python -c '...'`, a web fetch, or a web search (`$base_dir/.claude/skills/pr-review/search-web.sh "<query>"`) will settle most questions in seconds, and an unverified finding should be dropped rather than hedged. When the cheap checks don't settle it, escalate to the expensive ones: build the docs site, build and boot the UI, start the backend.
Node and `agent-browser` are on PATH for docs and UI changes. Capture to an absolute path named for what it shows: `agent-browser screenshot --full $media_dir/example.png`, and cite that same path in a finding.
Evaluate the changed code across these dimensions:
file findings against the changed lines (added, modified, or deleted), even if surrounding code looks suboptimal.
simple typos.
postdate
The open source AI engineering platform for agents, LLMs, and ML models. MLflow enables teams of all sizes to debug, evaluate, monitor, and optimize production-quality AI applications while controlling costs and managing access to models and data.
Repo: mlflow/mlflow
Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR)…
GitHub Actions workflow and composite action conventions for MLflow. Use when writing,…
Python coding and testing conventions for MLflow. Use when writing, modifying, or reviewing…
Review a GitHub PR's UI/UX changes by launching the MLflow web app, driving a headless…
Upload one or more local images or videos to GitHub and get back a `user-attachments` URL for…
Configure MLflow tracing for Claude Code.