/swe-guidelines:arch-benchmark-browserfrom swe-guidelines
Runs a benchmark prompt across ChatGPT, Claude, Gemini, and Grok, saves answers with conversation URLs, and optionally compares results with earlier runs.
Ships in swe-guidelines. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Ask four products the same question and keep the answers with their
proof. The prompt, contract, size map, and schema live at
../../benchmark/browser/ and
../../benchmark/schema/browser-session.schema.json, paths from this
skill's folder as realpath resolves it. If any is missing, stop and
say the installation is incomplete.
The arguments name two sizes, model=<size> effort=<size>, each of
xs, s, m, l, xl. A missing one is m. It may also
name a subset of sites (sites=claude.ai,gemini.google.com); the
default is all four. It may ask for a comparison with earlier runs:
compare=<run_id>,<run_id> names them, and compare=all means every
earlier run. Without compare=, nothing is compared.
Facts that decide how the steps below go. Read them before the browser.
get_page_text and read_page are refused while a
screenshot works; on others find is refused while read_page
works. When a read tool is refused, use a screenshot and zoom, and
transcribe from it. Say in the output which site was read that way.shift+Return. Type one line, press shift+Return, type the next;
a blank line is two shift+Return.browser_batch has a deadline of its own: at most five ten-second
waits and one screenshot per batch, or it times out. A tool that is
refused once on a domain with "Permission denied for this action" may
succeed on the next call; retry once before treating it as a fact.note says
so.sizes.yaml lists the
five labels, left to right. A chevron beside that label opens the
model list ("Latest" and older models). After a pick, the chip shows
the stop's label, not the model.find. It opens
one list of modes: Fast, Build, Auto, Expert, Heavy, and a
"SuperGrok" row with an Upgrade button. There is no effort control;
the "+" at the left holds files, projects, skills, and connectors.
Auto, Expert, and Heavy need a SuperGrok plan. On an account without
one, clicking them opens a plan page (the URL ends in #subscribe)
and the chip keeps its mode; the × at the page's top right closes it.
Never switch to "Private" at the top right. An answer advances only
while its tab is in front.Score: NN/100, wherever it is. gemini.google.com's page text also
holds the sidebar's conversation titles. They are the person's:
never copy them.Read prompt.md, which holds both the prompt and the contract, and
sizes.yaml. The browser README is for people and is not an input.
Resolve, per site, the model and effort labels the sizes ask for.
Say them before touching the browser, and always put them in the
run's note in results.json.
Note the run's start with date -u +%Y-%m-%dT%H:%M:%SZ, the form
of every time the run records; make the run folder
~/Downloads/benchmark_browser/<YYYYMMDD-HHMMSS>/ from the same
moment, in UTC. Every file of the run goes there. Then read
the commit the repository's default branch points at, with
git ls-remote <url> HEAD, where <url> is the repository URL in
the prompt. The first field it prints is the run's
repository_head, whatever each answer says it read. When the
command fails, it is unknown and the run's note gives the error.
Call tabs_context_mcp with createIfEmpty; never use or close an
empty tab it makes. Then tabs_create_mcp one tab per site, and
navigate each to its new-chat URL:
https://chatgpt.com/, https://claude.ai/new,
https://gemini.google.com/app, https://grok.com/. Take a
screenshot of each. A page that shows a sign-in button, a login
form, or no composer is not-signed-in: record it, tell the person
which site to sign in to, and go on with the sites that are. Never
type an email or a password, ever.
Per site, first look, with find or a screenshot, for a line that
says the product can act on the person's machine, such as
claude.ai's "Computer actions available". When one shows, on any
site, set nothing and send nothing: the session is not-run, and
its note asks the person to turn that setting off. Never change
it yourself. Look again right after the send and at every poll: any
line naming a device of the person's, under the header or in the
composer, is such a line, whatever state it reads (claude.ai's
"Connected", "Asleep or app closed"). A link or a button to download
or install an app is not: the line says the product can act on the
machine, or names a device of the person's. When the line shows,
click the stop control ("Stop response") where one shows and record
the session not-run with the same note: both times are the
stop's moment, polls the polls made, that poll included, and
nothing it answered is scored. A line that first shows after the
site is done, while its answer is read or its picture taken, counts
the same: the session is not-run, both its times the moment the
line was seen, and nothing it answered is scored.
Otherwise set the model and the effort, then verify with a
screenshot of the chip. model_label is the model picker's checked
entry as the list writes it; effort_label is the checked effort
entry or the stop's label. The chip is the check.
<model> <effort>.Click the size's effort even when the chip already shows it. Where
the size map's effort is none, effort_label is none. If the
label does not match what the size asked for, try once more, then
record the label the page shows and go on: the results carry what
was actually used, never what was asked for.
A locked model, mode, or effort is the exception, on every site, and
is not tried once more. Close what opened. Then take that site's
entries in sizes.yaml, in the same map (model or effort), for the
smaller sizes, from the next smaller one down to xs: skip an entry
already tried, and click the first one that stays checked (Fast on
grok.com, for Expert or Heavy). Record that entry, name the locked
one in note ("Expert needs a SuperGrok plan"), and step 7 records
the session smaller-mode. A locked entry is not tried again in the
run. When no smaller size's entry stays checked, send nothing: the
session is not-run, and note names the locked entries.
Click the composer and type the prompt from prompt.md, a blank
line, and the contract, line by line with shift+Return between
lines. Type each of the contract's items without its leading dash:
this is the one place that rule lives, and contract records the
text as typed. Send with Return. The send time, from date -u, is
the session's started_at. Take one screenshot showing the sent
message and the chip; it is a check and is not saved.
Do step 4 and step 5 for every site first, then poll each site at
most 180 times, and count its polls into polls. A poll starts
at least a minute after the start of the site's last poll, and a
site's first poll at least a minute after its send; where no other
site's poll fills that minute, wait out the rest with ten-second
waits. A
poll is one batch: first a scaled (0.4) screenshot, which brings
the tab to the front, then up to five ten-second waits. The poll
also looks for step 4's line in its screenshot and any page text it
reads. On claude.ai and grok.com the signal is in the page text:
end the batch with one get_page_text and keep it to four waits,
so the batch stays inside its deadline. Where get_page_text is
refused, on either site, compare the poll's screenshot with the
previous one instead: the same last line of the answer, and no stop
control.
references/grok-done.md says.Done is the signal named above. The finish time is date -u, run as
the first call after the poll that shows the signal, and note says
it was read after that poll's waits. On grok.com, run date -u at
the end of every poll: the finish time is the first of the two polls
that matched. An error the product prints in place of an answer ends the
polling of that attempt, and step 7's errored says what follows.
When an answer is already done at the first poll, the finish time is
the send time plus the site's own "Worked for" figure where it shows
one, except on grok.com, or else the first poll's time, and note
says which. After 180 polls or three hours from the send,
record timed-out with what the page shows so far.
When a site is done, read the conversation URL from
tabs_context_mcp and drop its query string. Then read the answer,
once: with the site's copy button and pbpaste, as
references/copy-answer.md says, or, where that fails, with
get_page_text. A copy button that shows later, as at step 9,
changes nothing. Find the
Score: NN/100 line, and what the answer's Method says it read: a
commit, a tag, or a branch and a date, for read_version ("not
stated" when it names none). Save <site>.md in the run folder as
references/site-file.md says. The statuses:
ok: a score was found.smaller-mode: in place of ok, when step 4 fell back from a
locked model, mode, or effort.no-score: an answer and no score line; the number the answer
gives elsewhere goes in note.refused: a reply that declines, or says it cannot read the
repository; never no-score or errored.errored: only the product's own error in place of an answer
("I seem to be encountering an error"), never a reply in the
model's own words. Read that attempt's URL from
tabs_context_mcp, without its query string, and try once
more: navigate the site's tab to its new-chat URL, do step 4 again
without clicking a locked entry, do step 5, and poll as step 6
says. Every field of the session is the second attempt's, and its
polls count from 0, with 180 polls and three hours of its
own. A fallback on the first attempt holds for the second: it is
smaller-mode in place of ok, and note still names the locked
entry. note keeps the first attempt, as one remark: the error in
the page's words, its URL, and its poll count. When the second
attempt errors too, the session is errored, and there is no
third.timed-out: as in step 6.not-signed-in and not-run: as in steps 3 and 4. There is no
answer. url is the address the tab shows, without its query
string; model_label and effort_label are not set;
read_version is not stated; score is null; polls is 0, or
step 4's count; both times are the moment
step 3 or step 4 found or stopped it; and <site>.md holds the
header only.An answer cut short by a tool-use limit that still satisfies the
contract is ok with a note; do not press Continue. note holds
every remark on the session, in the order they arose, separated by
"; ". A session with no remark has no note key.
Write results.json in the run folder in the schema, with python3:
run_id is the folder name, started_at and repository_head from
step 2, finished_at from the moment of writing, prompt and
contract the two texts as typed, sizes the two sizes, note
with the labels step 1 resolved, and one entry per site, whose
response_path is <site>.md. Read it back with python3 and hold
it to the schema file, at the top and in each session: every
required key is there, no key is there that the schema does not
list, and each value is inside the type, enum, minimum,
maximum, and format the schema gives its key. A value outside
them is corrected, never bent to fit.
Per site that sent the prompt, bring its score line into view, or,
where there is none, the first line the page wrote back: an answer,
a refused decline, an errored message, or what a not-run
session wrote before its stop, else the stop's own line (claude.ai's
"Claude's response was interrupted") or the sent message. Take one
picture of it into the run folder as references/evidence-picture.md
says. It stays below the header, and no zoom shows a line naming a
device. These are the evidence a pull request carries.
Close the tabs tabs_create_mcp opened in step 3, and no other.
Only when the arguments have compare=: compare this run with the
earlier ones as references/compare.md says.
Only when the working directory is a checkout of this repository:
check the run in there, redacted, with its row, and run
make runs, as references/check-in.md says. It opens no pull
request.
In prose: the run folder path; what was measured, which is the
repository, its repository_head, the version each site says it read,
and the two sizes; per site, the model and effort labels, the score,
read_version, and the conversation URL; any site that was not signed
in, not run, refused, errored, or timed out, with the reason in the
page's own words where it gave one; which sites were read from
screenshots. When the sites read different versions, say so. A
smaller-mode session is named with the entry its size asked for and
the entry that ran, and it is left out of any comparison of like for
like, across sites or across runs. The table step 11 makes follows,
when it was asked for. Last, what step 12 checked in, or why it
checked nothing in.
agents/openai.yaml (opens in a new tab)references/check-in.md (opens in a new tab)references/compare.md (opens in a new tab)references/copy-answer.md (opens in a new tab)references/evidence-picture.md (opens in a new tab)references/grok-done.md (opens in a new tab)references/site-file.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub baristaze/swe_guidelines --plugin swe-guidelines22 skills in this plugin
/arch-benchmarkRun a benchmark scenario (a skill, a command, or a question) in a declared runtime and have frontier models score it against the rubric. Use to measure a change to a skill or the text./arch-deviateRecord a deliberate deviation from the guideline as an ADR under docs/adr/: the rule quoted, the decision, the consequences. Use when a finding is accepted as intentional./arch-explainExplain how the guideline applies to a question, a file, or a change, citing the sections and lenses that govern it. Use when onboarding or before a cross-layer change.Other plugins' skills for the same job