Benchmark how other products, libraries and papers solve the design problem in front of you, then recommend an approach that fits this codebase's constraints. It frames the question from the code, sends one research agent per group of the field in parallel (products facing the same user problem, engines and libraries, papers and standards), maps the current code while they run, keeps only claims a fetched primary source supports, catalogs the sources with /flagrare:research-catalog, and write...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Benchmark?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/flagrare-benchmark)
---
name: benchmark
description: Benchmark how other products, libraries and papers solve the design problem in front of you, then recommend an approach that fits this codebase's constraints. It frames the question from the code, sends one research agent per group of the field in parallel (products facing the same user problem, engines and libraries, papers and standards), maps the current code while they run, keeps only claims a fetched primary source supports, catalogs the sources with /flagrare:research-catalog, and writes a synthesis: the patterns, which approach wins for this kind of problem and why, a recommendation mapped to the constraints, what is fragile, and what each open issue becomes. Use when the user says "benchmark", "what's out there", "how do others do this", "how does X handle this", "compare approaches", "prior art", "state of the art", "rethink X", or asks for a robust solution to a problem other products have already met. Hands off to /flagrare:one-for-all or /flagrare:atdd-plan when a design follows.
---
# Benchmark
> **No em-dashes.** Nothing this skill writes may contain an em-dash; use a comma, colon, or parentheses instead. See `/flagrare:write-docs`.
Most design problems have been met before. Sync conflicts, rate limits, undo, permissions, search ranking, retries: someone shipped an answer, wrote down why, and collected complaints from the users it failed. Designing from first principles skips all of that. Asking "what's out there?" in chat gets an answer from memory, with confident details nobody checked.
This skill is the repeatable version: frame the question from the code, survey the field in parallel, keep only what a source shows, and turn it into a recommendation for this codebase, not a literature review.
**It is not the design.** It ends with a recommendation and the evidence for it. The design document, the decisions and the acceptance tests belong to `/flagrare:one-for-all` (no ticket) or `/flagrare:atdd-plan` (a ticket with decisions made).
## When to use, and when not
- **Use it** when the problem is one other products clearly face, the cheap answer has already failed or looks fragile, and the choice is costly to reverse: a data model, a protocol, a user-facing behavior.
- **Skip it** for a library API question (read the docs), a bug with a clear cause (fix it), or a choice that is cheap to change later (pick a default and say so).
## Step 1: Frame the question from the code
Write one paragraph before any research: what the system does today in this area, what breaks or is missing, and the constraints any answer must fit (the stack, the data shapes, who writes the data, scale, offline or online, which parts are manual). Take every fact from the code, the issues and the docs. Never ask the user for a fact the repo can answer.
The paragraph is the brief for the research agents. A question framed as "how do apps handle X" gets a generic survey; a question framed with the real constraints ("short text records, one authoritative server, devices offline for days, a web editor too") gets answers you can use.
## Step 2: Survey the field in parallel
Split the field into 2 or 3 groups and start one background research agent per group, in a single message:
1. **Products** that face the same user problem (the apps your users would compare you with).
2. **Engines, libraries and frameworks** that solve it as infrastructure.
3. **Papers, essays and standards**, when the problem has theory behind it. Fold this group into the second when it doesn't.
Each agent gets the Step 1 paragraph, its group with named examples to start from (it may add others), and these rules:
> For each item report: how it detects or decides the case, how it resolves it, at what granularity, what the user sees, and known complaints or failure reports. Cite a primary source URL (official docs, engineering blog, source code, spec, maintainer post) for every claim. Say plainly when you could not verify something, and do not fill the gap from memory. Name authors and dates only when the page you fetched shows them. End with the patterns across items and a recommendation for the constraints given, marked as your synthesis. Write nothing to disk. Under 1000 words.
## Step 3: Map the current code while they run
The comparison is against what the code does, not what it was meant to do. While the agents research, run `/flagrare:codebase-explore` (or read the area directly when it is small): the full path of the behavior, every reader and writer of the data it touches, which values come from which clock or source, and prior attempts in git history. Note every place today's behavior matches a failure mode the field already names.
## Step 4: Keep only what a source shows
Before anything reaches the synthesis:
- **Unverified items never count as support.** An item an agent marked unverified can appear in the catalog as unverified. It cannot be the reason for a recommendation.
- **Attribution comes from the fetched page.** Authors, organizations and dates that the agent did not see on the source are "unknown". Fix or drop them rather than fill them in.
- **Keep dissent.** A source that warns against the approach you like (its own docs saying the merge can duplicate text, say) goes in, because it is often the most useful finding.
- **Separate primary from secondary.** A write-up about a product is not the product's docs; say which one you have.
## Step 5: Catalog
Run `/flagrare:research-catalog` with the sources that informed the answer, before the synthesis goes to the user. Each source gets its contribution in a sentence, and the catalog links forward to the design document that will use it.
## Step 6: Synthesis
Write it for someone deciding, in this order:
1. **The patterns**: the 3 to 6 approaches the field uses, each with who uses it.
2. **What dominates for this kind of problem, and why**: the conditions under which each approach wins.
3. **The recommendation for this codebase**: mapped to each Step 1 constraint, with the source behind each choice.
4. **What is fragile**: the approaches to avoid here, and which of them the code does today.
5. **What each open issue becomes**: fixed by the design, replaced by a different issue, made unnecessary, or still open.
Keep it short. A table works for comparing the field; the recommendation stays in prose, because its reasons are the point.
## Step 7: Hand off
When a design follows, pass the synthesis and the catalog path to `/flagrare:one-for-all` (no ticket, decisions still open) or `/flagrare:atdd-plan` (decisions made). The recommendation's open choices become that skill's questions; don't ask them here as well.
## Anti-patterns
- **Researching before framing.** A survey without the constraints produces a list of products, not an answer.
- **Answering from memory.** "Linear uses last-writer-wins per field" is a claim; without a fetched source it is unverified, however familiar it sounds.
- **One agent for the whole field.** It goes deep on the first group it finds and thin on the rest.
- **Comparing against the intended design.** The code may not do what its comments say; Step 3 compares against what it does.
- **A recommendation that ignores the constraints.** The dominant approach in the field can be wrong here (a CRDT for a few lines of text, a library for a problem one server already solves).
- **Padding the catalog.** Cite the sources the answer was built from, not every page an agent opened.
## Field-tested
Built after the same request came up again and again on different problems. The first time it ran as a process, a sync design for short records showed what it buys: the products and engines agreed on detecting conflicts with a server-assigned version instead of device clocks, and the code mapped in Step 3 used device clocks in two places, one of which nobody had reported. The verification step also caught author names and dates the agents had supplied without having seen them on the page.