Skip to content

huggingface/paperswithcode

This repository hosts the code of Papers with Code, which tracks trending AI research with code, datasets and leaderboards.

https://skillcdn.ai/gh/huggingface/paperswithcode

Connect this address to your AI to use this skill. How to connect

  • Unverified
  • Default branchmain
  • Commit67161e6
  • LicenseApache-2.0
  • Searchwords
View on GitHub

remote-paper-curation

Safely curate one Papers With Code paper from a remote Hugging Face Job without direct database access.

Path
.agents/skills/remote-paper-curation/SKILL.md
License
Apache-2.0

Warnings for the author

  • Not listed or searched: a skill under a hidden directory is discoverable only when the repository has no visible skill.

Remote Paper Curation

This Job has no PostgreSQL credentials. Never read backend/keys.env, run SQL, or edit repository files. Fetch the job-scoped paper context with:

python3 jobs/curation_api.py context

Runner images differ: call python3 (there may be no python), and fetch web pages with python3 and urllib.request, since curl and wget may be missing.

Read the validated paper_markdown or paper_pdf in the source manifest. When a source document supplies local_path, read that file and verify its sha256 before use. Preflight has already downloaded this exact paper text; its private bucket URL may return 401 after the download credential is removed. Use the supplied url for citations and source coverage, and the local file for reading. Never request or recover the removed bucket credential. Do not treat a 401 from re-fetching that URL as missing evidence when the verified local copy is available. An external paper's paper_source entry may carry the local_path of the page's prepared Markdown copy. First-party release sites often return 403 to the runner, so read that copy and cite the entry's url. Mark the source covered, not unavailable, when the copy was read. A cached image caption, SVG title, diagram notice, empty wrapper, or successful HTTP response alone does not count as reading the paper. The PDF preflight checks only the first two pages for readable content and artifact URLs; read the relevant body, experiment tables, and captions yourself before curating. If no substantive source can be read, report the failure rather than marking the source inspected or URL extraction complete.

An external paper (paper.source == "external") is a release page, model card, or report with no arXiv text, so its manifest usually has no paper_markdown or paper_pdf. Then the paper_source document is the paper: read it in full, together with the model_card, github_readme, and project_page documents, and curate from them exactly as you would from paper text. The missing Markdown or PDF is not missing evidence. For enrich-paper:

  • Tag the tasks and methods the release page states. Examples: a speech-only conversation model is speech-to-speech or spoken dialogue, and an action model for robots is robotics or robot manipulation. Use only existing taxonomy entries and the same high-confidence bar as for paper text.
  • Add the official Hugging Face repositories the page links or is itself, to hf_models, hf_datasets, or hf_spaces. A paper.source_url on huggingface.co/<org>/<repo> is the release's own model card. Include the publisher's official quantized or size variants of this release, never community mirrors or fine-tunes. Never put Hugging Face URLs in repositories: it holds only https://github.com/<owner>/<repo> URLs, and the API rejects anything else.
  • Link the publisher as an organization when the page names it.
  • Set urls_extracted=true after this complete check, including a clean no-result.

Report a release page that cannot be read (blocked, empty, or a script shell with no text) as a source failure; do not tag from the title alone.

For enrichment, search the existing task taxonomy for the actual contribution, including when the paper starts with no tasks. Accept an official artifact only when it belongs to this exact paper. Shared navigation links to sibling products, lab home pages, and website templates are not paper artifacts; a shared vendor or domain does not establish ownership. Preserve existing manual links and report questionable existing links separately.

If context includes retry_feedback, address its exact rejection before apply. Re-read current rows and sources; a prior proposal is not evidence.

When context has promoted_benchmark, this add-evals job re-checks the paper for that one new benchmark only. Submit evaluations and evaluation_removals only for promoted_benchmark.dataset_id, and report every other benchmark the paper mentions as not_applicable with detail outside the promoted benchmark; the server rejects rows on any other dataset.

context.paper.removed_leaderboards lists the task/dataset boards where a row of this paper was deleted, usually by a curator after author feedback. Never propose a new row there or remove the row that survived: the server skips such new rows (evaluations_skipped_removed) and rejects such removals. Report the benchmark as not_applicable with detail removed by a curator. Updating this paper's existing row there is still allowed.

Choose the workflow from the context's job kind. For enrich-paper, submit only the enrich payload; keep evaluations, evaluation_removals, validation_evidence, and benchmark_gaps as empty arrays. Benchmark discovery and score/gap submission below belong to add-evals, even if the enrichment paper contains evaluation tables. The scheduled workflow runs that stage separately. Follow the enrichment instructions below for links and taxonomy.

Search existing task/method taxonomy with:

python3 jobs/curation_api.py taxonomy "image generation"

Each job has a budget of 30 taxonomy searches, and one search returns the matching tasks, methods, and organizations together. Search the specific names the paper uses (its task, the methods it introduces or builds on, its affiliations), not generic words such as efficiency or latency, and run related searches in one shell command. Past the budget the command fails with HTTP 429 Scoped query limit reached. That is final for the job, not a rate limit: never sleep or retry; continue with the IDs you already have.

For every benchmark name found in an evaluation table, search the configured leaderboards with:

python3 jobs/curation_api.py leaderboards "GenEval"

This returns the authorized task and dataset IDs, configured metrics, ranking direction, canonical scale, harness support, and recent values for scale checks. Use the exact returned metric scale, not a general normalization convention. For each submitted metric, include one score_evidence entry keyed by task_id, dataset_id, and metric, with the original source_value, source_scale (0-100 for percentages, 0-1 for fractions, native for other units), primary source_url, and table_reference identifying the table, model row, column, and protocol. Put these entries in the proposal's top-level score_evidence array, next to evaluations, not inside each evaluation. Every metric key in every evaluation's metrics needs its own entry, so a row with MAE and Acc-2 needs two. When you drop an evaluation, drop its entries too. For example:

{"task_id": 11, "dataset_id": 792, "metric": "Success Rate",
 "source_value": 86.89, "source_scale": "0-100",
 "source_url": "https://arxiv.org/html/2609.12641",
 "table_reference": "Table II, ImageWAM LIT, Overall, zero-shot LIBERO-Plus"}

That percentage must remain 86.89 on a 0-100 leaderboard. Convert it to 0.8689 only if the exact configured metric uses 0-1. Conversely, convert a source fraction to percent when the leaderboard uses 0-100. Preserve native units for non-rate metrics; do not guess conversions from magnitude. The server checks source-to-stored conversion and rejects missing evidence or a mismatch, including fractions that happen to fit inside 0–100 bounds. If metadata conflicts with source or existing leaderboard evidence, skip the result and report the conflict instead of choosing a scale arbitrarily. A missing % sign or unit label is not a conflict. When the metric is a rate (accuracy, pass@k, resolve or success rate) and the table prints values above 1 on a 0–100 range, record source_scale: "0-100"; a fraction cannot exceed 1, so this is not a guess from magnitude. Skip only when every value is at most 1 or the text defines another unit.

Benchmark result images (add-evals only)

Lab release pages, model cards, and READMEs often publish their whole results table or chart only as an image; the page text may mention just a few scores. Read result images before you list the paper's benchmarks:

  1. Every results_image entry in /tmp/url_candidates.json source_documents is a results table or chart that the preflight already downloaded from the paper's page (local_path; alt is its caption). Open each one with the view_image tool before you enumerate benchmarks, and give each one its own source_coverage entry (its url) that lists every benchmark it shows. The server rejects proposals that omit one. Use status unavailable only if the file cannot be opened.
  2. For other source documents, open any embedded image whose caption, alt text, or file name suggests results (<img>, Markdown ![...](...)). An image the page itself embeds is first-party whatever host serves it (release pages often use a CDN such as storage.googleapis.com). Download it to /tmp/charts/ with Python (urllib.request, browser User-Agent), preferring a linked full-size original, then open it with view_image.
  3. Import only values printed in the image as numbers (a table cell, or a data label on or above a bar). Never estimate a value from bar height, axis gridlines, or pixel position; skip unlabeled bars.
  4. The cell, column, or bar must unambiguously belong to the introduced model: its header, label, or legend entry names the release. Comparator columns and bars stay excluded, as in text tables.
  5. Apply every text-table rule: exact benchmark version, split, setting (thinking/tools/pass@k), metric definition, and scale. A row label such as OSWorld-2.1 (Offline subset) or a panel title names the benchmark; a footnote or a linked methodology page may define the protocol. If the image and its linked notes omit protocol details that the leaderboard needs, skip and report.
  6. Cite the image. In score_evidence, source_url is the image URL and table_reference is Results image on <page URL>: row/panel "<exact benchmark label>", column/bar "<exact model label>", printed value "<exact text>". Use the same citation in any validation_evidence entry that relies on the image.

Prefer a text table whenever both carry the same score; images fill gaps. Report which values came from images in the audit.

Each job has a budget of 150 leaderboards lookups; past it the command fails with HTTP 429 Scoped query limit reached, which is final for the job: never sleep or retry. Look up the headline benchmarks of the release page or main results table first, then the long tail (for example a model card's base-model table). If you hit the limit, keep going: submit every eligible result whose leaderboard you already retrieved, and report each benchmark you could not look up as not_applicable with detail leaderboard lookup budget exhausted. A lookup failure for some benchmarks never justifies skipping verified ones.

Query every benchmark the paper reports under its exact name and common variants (for example ImageNet, ImageNet-1K, ILSVRC-2012); the first match may be a different task, such as an inpainting board named ImageNet. Try exact names and common spelling variants, but reject semantically different datasets or splits even when their names are similar. The taxonomy command searches only task and method names. Never use an empty taxonomy result to conclude that a benchmark or leaderboard is missing.

Establish the exact benchmark version, split, task/language coverage, aggregation, tool setting, and metric definition before selecting the best eligible result. Never substitute a subset for a complete suite, an overall score for a split, or instruction-level accuracy for prompt-level accuracy because it is higher. Skip an unverified protocol match and scores known to include invalid trials; report the source evidence instead. A familiar baseline used as an experimental probe is not a model introduced by the paper.

For add-evals, follow the conservative rules in add-evals/SKILL.md, but write a JSON payload containing evaluations (each has this job's paper_id) and submit it with python3 jobs/curation_api.py apply payload.json. Always include evaluation_removals, validation_evidence, and benchmark_gaps arrays. Updating an existing row requires its exact context before_state, a field-level diff, and primary-paper evidence. The server recomputes the diff between the stored row and the row you submit in evaluations, and field_diff must equal it exactly: one key per changed top-level field, each {"before": <stored value>, "after": <submitted value>}, with whole values (all of metrics, not one metric). Fields you leave unchanged must be copied verbatim from before_state, or they become part of the diff. To correct one score:

{"evaluation_id": 38506, "before_state": {...},
 "field_diff": {"metrics": {"before": {"Dice": 0.95}, "after": {"Dice": 0.948}}},
 "evidence": [{"source_url": "...", "table": "Table 2", "snippet": "..."}]}

If the apply is rejected with expected field_diff for evaluation <id>, the message contains the diff the server computed. Either use it as field_diff or fix the submitted row so it no longer changes fields you did not mean to change. Duplicate consolidation additionally requires every matched row ID and the canonical-row selection reason. Remove an invalid row only with its full before-state and unambiguous primary-paper evidence. Set num_parameters and hf_model_url on every new evaluation whose exact model variant has an official Hugging Face model repository, such as one in the paper's hf_models or the pinned model card. hf_model_url is that repository root (https://huggingface.co/<org>/<name>). num_parameters is the raw integer safetensors.total from that repository's Hub API, for example 852985920 rather than 800M. Without safetensors, use the size that the paper or model card states for that exact variant, converted to a raw integer. Use total, not active, parameters for MoE models. Leave both fields unset when no official source covers that exact variant; never copy them from a sibling size, a base model, or a headline. Use only configured leaderboard IDs and exact metric names returned by the leaderboards command; IDs from papers or web sources are not database IDs. Never invent IDs, create benchmark metadata, or import comparator rows. Submit an empty evaluation list only after running the leaderboards command for every benchmark found across the required sources and checking eligible results against configured leaderboards and existing rows. Already-satisfied results are omitted. Never submit best_rank: the server derives ranks from the complete leaderboard. Do not rewrite existing rows just to rephrase methodology or source URLs; omit already-correct rows. If an actual factual correction is needed, supply the exact field diff and primary evidence required by the schema. The helper will report no_changes when nothing needs writing; do not describe that outcome as an applied mutation.

Whenever context.source_candidate.model_release is present, eligibility is restricted to that exact release, including its canonical name and aliases. This also applies to retries labeled hf-daily-cron; the supplied release determines scope, not the trigger label. An older paper may document the family without reporting results for this release. Never relabel older or sibling model results as the triggering release, including after a model-ownership validation error. If the exact release has no eligible results, submit empty evaluations even when the older paper has configured benchmarks. Apply the same restriction to benchmark_gaps and explain older or sibling results as not_paper_native in source coverage.

The pinned official model card in source_candidate.model_card_url is first-party evidence for the triggering release. When it reports scores for that exact release (for example a dated point release such as …-1017), those scores are eligible results for it even when the paper only reports an earlier release of the family; never mark them not_paper_native. Submit them with the release's canonical name (or a supplied alias) as model_name, the pinned

This skill’s instructions are not fully loaded. Continue to read all inherited rules and required context.

Files of this skill

This skill has no supporting files.

Browse all supporting files