The skill documents code block metadata as `header="Title"` and
`highlight="[1, 3-5]"`, but the tokenizer has only ever read the
`key: value` form. Since 7bbe2636dc that mismatch is fatal rather than
silent, so a guide written to the skill's own example now fails the
build with `Invalid code block metadata`. That change did not update
this file.
Correct the metadata syntax and document the `highlight` range
semantics and the `hideDollar` flag. Drop the `<docs-code>` `diff`
attribute, removed in 8ec0a4ee5c, and stop describing `preview` as a
StackBlitz link, which is disabled. Add the attributes `<docs-code>`
and `<docs-card>` accept, correct `<docs-video>` to `title` rather
than `alt`, which the extension has never read, and note that mermaid
works only in a fenced block.
`determine_review_type.sh` sets `set -euo pipefail`, which breaks its own error
handling. With no arguments, `[ -z "$1" ]` trips `set -u` and bash exits with an
`unbound variable` error before the usage text prints. When a `gh` call fails,
`set -e` exits at the command substitution, so the `if [ $? -ne 0 ]` checks below
it never run and the error messages never print.
Check `$#` before reading `$1`, and test the `gh` calls with `if ! VAR=$(...)`,
which is `set -e` safe, so the messages already in the script can fire. Reject an
empty argument as well, since `gh pr view ""` falls back to the pull request of
the current branch and the script then reports on the wrong one. Pass the argument
after `--` so a value that starts with a dash is not read as a flag, and send the
errors to stderr, because stdout carries the `local` or `remote` result.
Add the `command -v gh` guard the four sibling scripts in this directory already
have, so a missing `gh` reports itself instead of looking like a login problem.
I've had some success asking the Antigravity agent to find flaky tests and propose fixes for them, then just running it in the background and reviewing what it finds. Upstreaming this to the repo so others can use it, since it includes helpful notes like `--runs_per_test` and leveraging random seeds as well as an iteration loop.
I opted not to have the agent do anything with PRs just yet, but if this is useful and we build confidence in it, we can explore that in the future.
The current PR review skill blindly attempts to checkout branches using the `gh` CLI.
This creates fatal errors if the branch being checked out is already tied to a different git worktree.
Additionally, the logic didn't give the user a clear way to enforce a remote code review when they are the author.
This change updates the `Execution Workflow` to prioritize an explicit user instruction to review remotely, and updates the `Local Code Review` instructions to enforce checking for worktree conflicts before executing local checkouts.
This commit introduces an AI agent skill for reviewing pull requests
against the Angular repository. It establishes guidelines for ensuring
code cleanliness, performance, testing, API design, and payload size.
It supports performing reviews through both the GitHub CLI (remote) and
local editing, factoring in package-specific guidelines (e.g., router)
and prioritizing user approval before posting comments. By checking existing
comments first, the agent can avoid duplicate reviews.
This provides the AI agent with a reproducible workflow for providing
constructive, manual PR feedback.
Antigravity does not support AGENTS.md, instead it has "workspace rules" (antigravity.google/docs/rules-workflows). This commit adds a symlink for the workspace rule.