/fetch:tabroom-resultsfrom fetch
Downloads a competitor's judges' scores, ranks, points, and written ballot comments from a Tabroom tournament history page. Returns JSON and Markdown to a directory.
Ships in fetch. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pull one competitor's results for one tournament into a directory: each round's judges, their ranks and points, and each judge's written feedback. This skill knows nothing about vaults. It retrieves, and stops. notes:clip turns the result into a note.
$ARGUMENTS:
tabroom.com/user/student/history.mhtml?tourn_id=<n>&student_id=<n>. Any other Tabroom page is refused.A competitor's ballots show for the competitor's own Tabroom login (and an account linked to that student). Every other signed-in account gets the same URL with the tournament name, the event and the entry code, and no results table. That reads as "ballots not released yet", and it is usually the wrong account.
Verified 2026-11-13 on one URL in two Chrome profiles: an account that did not own the entry got a header and no table; the competitor's account got every round, ballot and comment.
So settle which browser holds the right login before fetching. The script reports the account it saw (account in results.json, and in the error when it finds no rounds). If that is not the competitor's account, switch browsers; do not conclude the feedback is missing.
The DOM logic is references/extraction.js, tested under jsdom. URL parsing, validation, date resolution and writing are ${CLAUDE_PLUGIN_ROOT}/scripts/tabroom_results.py. Do not re-implement either by hand.
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/tabroom_results.py "<history-url>" [out_dir]
Run it via the Bash tool outside the sandbox (it drives $B). It goes through _browse.sync_browse_page(), so the headed-mode check is automatic. It reads the history page, then the tournament's own page for its dates.
gstack attaches to one Chrome session. When the competitor's login lives in a different profile, read the page with a driver connected to that profile (Claude in Chrome, selected with list_connected_browsers and select_browser), then hand the result to the same script.
references/extraction.js in the page, then window.__tabroom.extract(). It is synchronous and needs no clicks: the feedback rows are already in the DOM, hidden.https://www.tabroom.com/index/tourn/main.mhtml?tourn_id=<n>, evaluate extraction.js again, and call window.__tabroom.tournamentInfo().extract() object as a JSON file, with the tournamentInfo() object under a tournament_info key.python3 ${CLAUDE_PLUGIN_ROOT}/scripts/tabroom_results.py --extracted <file.json> "<history-url>" [out_dir]
Getting the object out of the page intact is the hard part of Route B. Measured with Claude in Chrome on 2026-11-13:
| What you return from the page | What arrives |
|---|---|
the extract() object itself | everything below five levels of nesting replaced by [TRUNCATED: Max depth exceeded] |
| one long string | cut at roughly 1,000 characters |
raw outerHTML, or a string containing a URL with a query | [BLOCKED: Cookie/query string data] |
an array of 850-character slices of JSON.stringify(extract()), four slices per call | intact |
So stash the JSON on window, read it out in slices, and prove the reassembled file is the page's string before using it:
const s = JSON.stringify(window.__tabroom.extract()); window.__s = s;
let h = 5381; for (let i = 0; i < s.length; i++) h = ((h * 33) ^ s.charCodeAt(i)) >>> 0;
({len: s.length, djb2: h}) // then: [0,1,2,3].map(i => window.__s.slice(i*850, (i+1)*850))
s = json.dumps(json.load(open(path)), separators=(",", ":"), ensure_ascii=False)
h = 5381
for ch in s:
h = ((h * 33) ^ ord(ch)) & 0xFFFFFFFF # must equal the page's len and djb2
A reassembled file whose length or hash differs has a dropped or altered character in a judge's words. Fix it before running the script; do not ship it.
| File | Contents |
|---|---|
results.json | type: tabroom-results, source, tourn_id, student_id, student, tournament, tournament_url, tournament_dates_label, tournament_start, tournament_end, location, account, entries, rounds_count, ballots_count, feedback_count, feedback_chars, captured_utc |
results.md | plain Markdown, no vault syntax: a results table with one row per ballot, then every ballot's feedback under round and judge headings |
Each entry (one per event entered) has event, code, columns and rounds. Each round has fields (the page's own columns: Round, Start, Room, Section, Speak), date, judges (judge plus scores as {label, value} pairs) and feedback (per judge: label and sections, each a heading such as "Reason for Rank/Decision" or "Comments for you" with ordered blocks).
Output contract: final stdout line OUTPUT_DIR:<abs path>. On failure (a non-history URL, no rounds on the page, no student name, no judge in any round) it exits non-zero with no marker. Warnings go to stderr: tournament dates unknown, or ballots with no written feedback.
| Trait of the page | Handled in |
|---|---|
Feedback sits in a display:none row (tr.feedback) that a button reveals; visible-text extraction returns scores and no comments | extraction.js feedbackOf() reads textContent, paired to its round by the button's toggleView('<id>') |
| tablesorter clones the table into an empty sticky-header copy | resultTables() skips it |
| A judge's scores are leaf spans titled by role ("Rank", "Points"); an elimination round has an empty Points span | judgesOf() keeps the label and drops empty values |
| Comments mix paragraphs, numbered lists and bullets, and judges type several lines into one list item | blocksOf() keeps block order and kind; textOf() keeps <br> as a line break |
| The page prints "Sat 5:30 PM" with no date | round_date() resolves the weekday inside the tournament's date range, and leaves it null when that weekday occurs twice |
A judge's line can start with #, - or 1. | render_markdown() escapes the leading character so the words stay words |
account is the competitor's login, not whoever happened to be signed in.feedback_count against ballots_count. A ballot without feedback is reported on stderr. That is the source lacking it (the judge wrote nothing, or the tournament has not released comments), not an extraction failure, and the report should say which ballots.rounds_count matches the rounds visible on the page, elimination rounds included.fields and scores carry whatever labels the page uses, so they should come through, but that has not been checked against a live debate page. Read results.md against the page the first time.entries. The fixture covers one./user/student/index.mhtml) is not crawled.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mayank-io/mstack --plugin fetch11 skills in this plugin
/alphaxiv-paperUse when user shares an arxiv or alphaxiv URL, mentions a paper ID like 2401.12345, or asks to explain, summarize, or analyze a research paper. Fetches structured AI-generated overview from alphaxiv.org instead of reading raw PDFs./blog-postThis skill should be used when the user shares a blog/article URL (Medium, Substack, personal blog, news/long-form post) and asks to "download this blog post", "save this article", "archive this post with images", "clip this medium article", or otherwise wants a self-contained local copy. Extracts clean markdown via Defuddle, recovers lazy-loaded images via the gstack browser (which Defuddle drops), and — when the article contains Vedic astrology charts — invokes the fetch:vedic-chart skill to digitize them. Saves a folder with frontmatter + an images/ subfolder./ig-postExtract an Instagram reel or post — caption, author, metrics, images — and download the video, then transcribe its audio so the spoken content is captured, not just the caption. Use when the user says "clip this reel", "what does this instagram post say", "download this reel", "transcribe this reel", or shares an instagram.com/reel/, /p/, or /tv/ URL./linkedin-postExtract a LinkedIn post or article — author, headline, full text, engagement metrics, images, and any URLs it shares — using the gstack browser. Use when the user says "read this linkedin post", "get this linkedin post", "extract this linkedin post", "get this linkedin article", or shares a linkedin.com/posts, linkedin.com/feed/update or linkedin.com/pulse URL. Returns content and images to a directory; it does not write notes./notion-public-siteDownload all pages from a public Notion site as Markdown files with cross-references and embedded images. Use when the user shares a public Notion site URL and wants to archive, save, mirror, or extract the contents as local markdown./pubmed-nlmFetch a PubMed/NLM biomedical article — metadata, structured abstract, MeSH terms, and PMC full text when open access. Use when the user shares a pubmed.ncbi.nlm.nih.gov URL, a PMID, a PMC id, or a journal DOI and wants to save, clip, read, or summarize the paper.