Skip to content
Agentmart
Submit a tool

scienceclaw-benchmark-for48

Use when a task asks to locate the clauses of contracts or NDAs (split into candidate spans) that support or contradict fixed natural-language hypotheses…

Skill by beita6969

IndexedMIT★ 1,019
Write a review

Chalk Labs

Need help deploying scienceclaw-benchmark-for48?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/beita6969-scienceclaw-benchmark-for48

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when a task asks to locate the clauses of contracts or NDAs (split into candidate spans) that support or contradict fixed natural-language hypotheses, ContractNLI-style: inputs are contract spans, hypotheses and annotated training contracts; the deliverable is, per (contract, hypothesis) pair, an Entailment or Contradiction label plus one relevance score per span, judged by mean average precision. Corresponds to FoR48 of the companion ScienceClaw-Eval benchmark.

Use cases: documents, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/scienceclaw-benchmark-for48

What's inside

Skill name
scienceclaw-benchmark-for48
Description
Use when a task asks to locate the clauses of contracts or NDAs (split into candidate spans) that support or contradict fixed natural-language hypotheses, ContractNLI-style: inputs are contract spans, hypotheses and annotated training contracts; the deliverable is, per (contract, hypothesis) pair, an Entailment or Contradiction label plus one relevance score per span, judged by mean average precision. Corresponds to FoR48 of the companion ScienceClaw-Eval benchmark.
License
MIT
Instructions
21 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Contract evidence identification (ContractNLI)

## Task
- Inputs: contracts as ordered candidate spans (`doc_id`, `span_texts`, or text plus character spans); a fixed set of hypotheses (key, text, short description); training contracts with annotations per (contract, hypothesis): label Entailment / Contradiction / NotMentioned and evidence-span indices.
- Deliverable: one dict per requested pair, in the given order: `{"label": "Entailment" | "Contradiction", "span_scores": [float in [0, 1]] * n_spans}`, scores in span order. The label is binary (requested pairs are ones the contract mentions); never output NotMentioned.

## Quality
Mean over pairs of the average precision of the span scores against the gold evidence spans (mAP, higher is better). Secondary: precision at 80 % recall and label accuracy. A baseline: lexical overlap of the hypothesis' content words with the span, plus the per-hypothesis majority label.

## Tools
- `scilib.contracts.fit_predict(train_documents, train_annotations, hypotheses, items, documents, seed=0)`: per-hypothesis TF-IDF logistic regression over spans (neighbour context, contract-grouped out-of-fold scores), then a LightGBM re-ranker on similarity (cosine, BM25, overlap), position and nearest-training-evidence features; a label model reads the top spans. Typed operator `contract_evidence_identification`.
- `scilib.contracts.cross_validate(...)`: contract-grouped k-fold estimate (`map`, `p_at_r80`, `nli_binary_accuracy`, `per_hypothesis_map`); `annotation_pairs`, `evaluate_predictions`, `average_precision`, `precision_at_recall` for metrics (operator `contract_evidence_metrics`).
- Optional `ContractModel(plm=True)` (or a subset of `PLM_GROUPS`: rerank, nli, cos, emb_lr, emb_knn) adds pretrained features through `scilib.textenc`: BGE-large sentence embeddings, BGE-reranker-large relevance, DeBERTa-v3-large NLI (weight ids `bge_large_en`, `bge_reranker_large`, `nli_deberta_v3_large`). Check `scilib.textenc.available()` or `scienceclaw_tools(operation=weights)` first; it is costly (every span against every hypothesis; GPU or remote worker).

## Rules
- Never fit or tune on the pairs being predicted; split validation folds by contract, not by pair or span.
- `span_scores` must be finite, in [0, 1], one per span; `label` only Entailment or Contradiction.
- Check `per_hypothesis_map`: hypotheses with few training pairs fall back to a hypothesis-independent model and are weaker.
- The pretrained encoders were not trained on this task's labels, but their public pretraining text may overlap contract text; disclose that when they are used.

From beita6969/ScienceClaw, MIT.

More from beita6969/ScienceClaw

Signals

Stars
1,019
Forks
109
Open issues
1
Last commit (this folder)
Oct 5, 2026 (25 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from beita6969

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get scienceclaw-benchmark-for48 running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying scienceclaw-benchmark-for48?

CallGet help
Cite this page

scienceclaw-benchmark-for48 skill. Agent Mart. https://agentmart.dev/skills/beita6969-scienceclaw-benchmark-for48 (last updated 2026-10-24)