Agent skill

Install Anserini Fatjar

by castorini in castorini/anserini

Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository.

Apache-2.0Auto-check passedTesting & QA

Install Install Anserini Fatjar

skills CLI
$ npx skills add castorini/anserini --skill install-anserini-fatjar -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install castorini/anserini install-anserini-fatjar --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/castorini/anserini.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/install-anserini-fatjar .claude/skills/install-anserini-fatjar && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
install-anserini-fatjar
GitHub stars
1.2k
Token cost
~1.3k tokens
SKILL.md length
445 words
Files
2
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository.

  • Works in 4 steps: Verify Runtime Tools → Download Fatjar → Smoke Test → …
  • Users want fast setup
  • SKILL.md covers Overview, Workflow, 1. Verify Runtime Tools and 2. Download Fatjar, plus 5 more sections
  • Calls java, curl and wget; reaches repo1.maven.org

What it does

Install Anserini Fatjar is an agent skill from castorini/anserini. Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository. Use when users want fast setup, smoke tests, or CLI examples from a released Anserini jar.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Testing & QA, covering QA and bug reports. It works with Java. The repository describes itself as: Anserini is a Lucene toolkit for reproducible information retrieval research. The licence is Apache-2.0.

When your agent uses it

  • Users want fast setup
  • CLI examples from a released Anserini jar

Example prompts

  • “/install-anserini-fatjar”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Verify Runtime Tools
  2. Download Fatjar
  3. Smoke Test
  4. Command Execution

What it can do on your machine

Read from SKILL.md and the folder at commit e2a19f5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • java
    • curl
    • wget

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • repo1.maven.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Install Anserini Fatjar loads about 1.3k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 445 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from castorini/anserini at commit e2a19f5, republished under its Apache-2.0 licence (© castorini). 445 words, ~1,259 tokens.

Download SKILL.mdSave it as .claude/skills/install-anserini-fatjar/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
install-anserini-fatjar
description
Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository. Use when users want fast setup, smoke tests, or CLI examples from a released Anserini jar.
metadata.version
v0.2.1

Install Anserini Fatjar

Overview

Use this skill to install and verify Anserini quickly from a published fatjar. Fatjar reproduction workflows are designed to run directly from the Maven Central fatjar, so a source checkout is not required. Download the released anserini-*-fatjar.jar from Maven Central, set ANSERINI_JAR to the downloaded file, and smoke test it.

Do not clone or build the source repository in this workflow.

If the user needs source development, local code changes, or a snapshot jar built from the current checkout, use $install-anserini-dev-env instead.

Workflow

  1. Verify runtime tools.
  2. Download the released fatjar from Maven Central.
  3. Run the CACM prebuilt-index smoke test.
  4. Use $anserini-cli for CLI examples after setup.

1. Verify Runtime Tools

Run:

bash
java -version

Require:

  • Java available on PATH
  • Java major version 21, matching Anserini's current runtime/build requirement

2. Download Fatjar

Choose the requested Anserini release. If the user does not specify a version, verify the latest Maven Central release before choosing ANSERINI_VERSION. Check:

text
https://repo1.maven.org/maven2/io/anserini/anserini/maven-metadata.xml

A quick command-line check is:

bash
ANSERINI_VERSION="$(curl -sS https://repo1.maven.org/maven2/io/anserini/anserini/maven-metadata.xml \
  | sed -n 's:.*<release>\(.*\)</release>.*:\1:p')"
test -n "$ANSERINI_VERSION"

Then download that release:

bash
curl -fL -o "anserini-${ANSERINI_VERSION}-fatjar.jar" \
  "https://repo1.maven.org/maven2/io/anserini/anserini/${ANSERINI_VERSION}/anserini-${ANSERINI_VERSION}-fatjar.jar"
ANSERINI_JAR="anserini-${ANSERINI_VERSION}-fatjar.jar"
test -f "$ANSERINI_JAR"

If the user requested a specific release, set ANSERINI_VERSION to that version instead of the discovered latest release before downloading.

If curl is unavailable, use wget:

bash
wget "https://repo1.maven.org/maven2/io/anserini/anserini/${ANSERINI_VERSION}/anserini-${ANSERINI_VERSION}-fatjar.jar"
ANSERINI_JAR="anserini-${ANSERINI_VERSION}-fatjar.jar"
test -f "$ANSERINI_JAR"

All subsequent commands assume ANSERINI_JAR points to the downloaded fatjar. Keep commands pinned to this jar unless the user asks to change versions.

3. Smoke Test

Run:

bash
java -cp "$ANSERINI_JAR" io.anserini.search.SearchCollection \
  -threads 1 \
  -index cacm \
  -topics cacm \
  -output run.cacm.bm25.txt \
  -hits 1000 \
  -bm25

Treat a successful run and generated run.cacm.bm25.txt file as proof the runtime is ready. This command follows the CACM prebuilt-index reproduction config and may download the small CACM prebuilt index and topics on first use.

Then evaluate the run with Anserini's Java trec_eval wrapper:

bash
java -cp "$ANSERINI_JAR" io.anserini.eval.TrecEval \
  -c \
  -m map \
  -m P.30 \
  cacm \
  run.cacm.bm25.txt

Expected scores are:

text
map     all     0.3123
P_30    all     0.1942

To verify them mechanically:

bash
java -cp "$ANSERINI_JAR" io.anserini.eval.TrecEval \
  -c \
  -m map \
  -m P.30 \
  cacm \
  run.cacm.bm25.txt | tee eval.cacm.bm25.txt

grep -q $'map\tall\t0.3123' eval.cacm.bm25.txt
grep -q $'P_30\tall\t0.1942' eval.cacm.bm25.txt
Show full SKILL.md (173 more words)Show less

4. Command Execution

Run Anserini commands against the downloaded jar:

bash
java -cp "$ANSERINI_JAR" <main-class> <args>

Keep all commands pinned to the same jar version unless the user asks to change versions.

Canonical Anserini skills live at:

text
https://github.com/castorini/anserini/tree/master/.agents/skills

After fatjar setup:

  • Use $anserini-cli for command-line usage, registry lookup, search, and REST examples.
  • Use $anserini-reproduction for reproduction workflows and result verification.
  • Do not use $install-anserini-dev-env unless the user needs a source checkout, local code changes, or a jar built from source.

Troubleshooting

  • No fatjar found: download the release fatjar from Maven Central and set ANSERINI_JAR to that path.
  • Download returns 404: confirm the requested Anserini version exists on Maven Central.
  • ClassNotFoundException: confirm ANSERINI_JAR points to the downloaded anserini-*-fatjar.jar, not the thin jar.
  • Java errors: use a supported Java version and re-run.

Completion Criteria

Treat setup as complete when all are true:

  • ANSERINI_JAR points to an existing downloaded anserini-*-fatjar.jar.
  • The CACM SearchCollection smoke test executes successfully and writes run.cacm.bm25.txt.
  • Java TrecEval verifies MAP 0.3123 and P30 0.1942 for the CACM run.
  • The user can run target commands via java -cp ....

© castorini, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/install-anserini-fatjar of castorini/anserini.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit e2a19f5

Compare with similar skills

Install Anserini Fatjar next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Install Anserini Fatjar compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Install Anserini Fatjar this skillcastorini/anserini1.2k—~1.3kAutomated safety check: PassApache-2.0
Spring Data Testingarangodb/spring-data116—~844Automated safety check: PassApache-2.0
Dev Workflowiflytek/skillhub5.2k—~1.7kAutomated safety check: NotesApache-2.0
Testing And CIiflytek/skillhub5.2k—~1.1kAutomated safety check: PassApache-2.0
Detecting Command Injection Patternsjeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: PassMIT
Detecting Eval Exec Usagejeremylongshore/tons-of-skills-marketplace2.8k—~1.1kAutomated safety check: PassMIT

Similar skills

  • Spring Data Testing

    arangodb/spring-data

    Write and run tests for arangodb/spring-data, select regression coverage, and reproduce CircleCI failures.

    116 GitHub stars~844 tokensUpdated 12 days ago
    Testing & QAAuto-check passed
  • Dev Workflow

    iflytek/skillhub

    The complete development workflow for SkillHub contributors including local dev, staging validation, testing, and PR creation.

    5.2k GitHub stars~1.7k tokensUpdated yesterday
    Testing & QAAuto-check: notes
  • Testing And CI

    iflytek/skillhub

    Testing conventions, CI pipeline rules, and smoke test coverage for SkillHub.

    5.2k GitHub stars~1.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Detecting Command Injection Patterns

    jeremylongshore/tons-of-skills-marketplace

    Scan a source tree for command-injection vulnerable patterns: shell=True calls in Python subprocess, os.system / os.popen with interpolated strings, Node childprocess.exec with template literals…

    2.8k GitHub stars~1.3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Detecting Eval Exec Usage

    jeremylongshore/tons-of-skills-marketplace

    Scan a source tree for dynamic-code-execution APIs that an attacker can hijack: Python eval / exec / compile, JavaScript eval / Function() / setTimeout(string), Ruby eval / instanceeval / classeval…

    2.8k GitHub stars~1.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Plays an authorized Game Boy or Game Boy Color ROM in one persistent headless Coffee GB session, inspecting frames and keeping an action trace for replay or tests.

    1.2k GitHub stars~1.3k tokensUpdated 10 days ago
    Game DevelopmentAuto-check passed

More from castorini/anserini

  • Anserini CLI

    castorini/anserini

    Run Anserini command-line and REST workflows from either a built fatjar or an Anserini source checkout.

    1.2k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Anserini Reproduction

    castorini/anserini

    Reproduce experimental results with Anserini. An agent skill from castorini/anserini.

    1.2k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Install Anserini Dev Env

    castorini/anserini

    Set up and verify Anserini source-development environments. An agent skill from castorini/anserini.

    1.2k GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Install Anserini Fatjar

What does Install Anserini Fatjar do?

Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository. Install Anserini Fatjar is an agent skill from castorini/anserini. Install and verify Anserini quickly by downloading the published fatjar from Maven Central instead of cloning or building the source repository.

When should I use Install Anserini Fatjar?

Install Anserini Fatjar fits situations like: users want fast setup; CLI examples from a released Anserini jar.

How do I install Install Anserini Fatjar in Claude Code?

Run `npx skills add castorini/anserini --skill install-anserini-fatjar -a claude-code`. Or copy the skill folder (.agents/skills/install-anserini-fatjar in castorini/anserini) into .claude/skills/install-anserini-fatjar in your project. Claude Code loads it when a task matches its description.

How do I install Install Anserini Fatjar in Codex?

Run `npx skills add castorini/anserini --skill install-anserini-fatjar -a codex`. Or copy the skill folder (.agents/skills/install-anserini-fatjar in castorini/anserini) into .agents/skills/install-anserini-fatjar in your project. Codex loads it when a task matches its description.

Can I use Install Anserini Fatjar in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add castorini/anserini --skill install-anserini-fatjar -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/install-anserini-fatjar, .gemini/skills/install-anserini-fatjar, .github/skills/install-anserini-fatjar and .opencode/skills/install-anserini-fatjar in your project.

What does Install Anserini Fatjar need to run?

Going by SKILL.md and its folder, Install Anserini Fatjar needs the command-line tools its instructions call (java, curl and wget).

Does Install Anserini Fatjar access the network?

SKILL.md names 1 domain. In commands or code: repo1.maven.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Install Anserini Fatjar safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Install Anserini Fatjar use?

Install Anserini Fatjar is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Install Anserini Fatjar use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Install Anserini Fatjar?

Skills that share tags, products or a category with Install Anserini Fatjar: Spring Data Testing (arangodb/spring-data, 116 stars), Dev Workflow (iflytek/skillhub, 5.2k stars), Testing And CI (iflytek/skillhub, 5.2k stars) and Detecting Command Injection Patterns (jeremylongshore/tons-of-skills-marketplace, 2.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Install Anserini Fatjar?

castorini (a GitHub organization) maintains it in castorini/anserini, which has 1,198 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 10, 2026.

Source: castorini/anserini on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.